[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.chM6 ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhjohM6 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]hhhjohM6 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]hhhjohM6 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohM6 ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjohM6 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.chM6 hjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohM6 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.chM7 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&]uh1hhjIhM7 hjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM7 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.chM8 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&]uh1hhjhM8 hjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhM8 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.chM9 hjubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9 hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM9 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.chM< 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.chM> 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.chMA 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.chMB 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$hMv ubj{)}(hvsscanfh]j)}(hvsscanfh]hvsscanf}(hjk$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjF$hhhjX$hMv 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$hMv ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjB$hhhjX$hMv ubah}(h]j=$ah ](jjeh"]h$]h&]jj)jhuh1jhjX$hMv 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.chMv hj%hhubah}(h]h ]h"]h$]h&]uh1jhj?$hhhjX$hMv 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.chMz 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.chMw hj%ubj2)}(hhh]h)}(h input bufferh]h input buffer}(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%``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.chMx hj&ubj2)}(hhh]h)}(hformat of bufferh]hformat of buffer}(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``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.chMz 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.chMy hje&ubah}(h]h ]h"]h$]h&]uh1j1hjI&ubeh}(h]h ]h"]h$]h&]uh1jhjd&hMz 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.chKuubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj-hKuubj{)}(h kstrtoullh]j)}(h kstrtoullh]h kstrtoull}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj-hKuubj)}(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-hKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj-hKuubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhj-hKuhj-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.chKuhjI/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hKuubeh}(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.chKyhjh/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.chKxhj/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.chKvhj/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKxhj/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.chK}hj/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.chKyhj/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hK}hj/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.chK~hj/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&]uh1hhj0hK~hj0ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hK~hj/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.chKhj7ubj2)}(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&]uh1hhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj7ubeh}(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.chKhj6ubh)}(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.chKhj6ubeh}(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.chMSubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 8hhhj8hMSubj{)}(h kstrtoboolh]j)}(h kstrtoboolh]h kstrtobool}(hj08hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj 8hhhj8hMSubj)}(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 8hhhj8hMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hMSubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhj8hMShj8hhubj)}(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.chMShj8hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMSubeh}(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.chMWhj9ubj )}(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.chMThj69ubj2)}(hhh]h)}(h input stringh]h input string}(hjU9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ9hMThjR9ubah}(h]h ]h"]h$]h&]uh1j1hj69ubeh}(h]h ]h"]h$]h&]uh1jhjQ9hMThj39ubj)}(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.chMUhjo9ubj2)}(hhh]h)}(hresulth]hresult}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMUhj9ubah}(h]h ]h"]h$]h&]uh1j1hjo9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMUhj39ubeh}(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.chMWhj9ubh)}(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.chMVhj9ubeh}(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}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9hhhX/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&]uh1j1hj9hhhj:hKubj{)}(hstring_get_sizeh]j)}(hstring_get_sizeh]hstring_get_size}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhj: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}(hj5:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7:modnameN classnameNj] j` )}jc ]jf )}jY j:sbc.string_get_sizeasbuh1hhj.:ubj2)}(h h]h }(hjU:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.:ubj)}(hsizeh]hsize}(hjc: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 ]jQ:c.string_get_sizeasbuh1hhjx:ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjx:ubj)}(hblk_sizeh]hblk_size}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx: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}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubh)}(hhh]j)}(hstring_size_unitsh]hstring_size_units}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jQ:c.string_get_sizeasbuh1hhj:ubj2)}(h h]h }(hj;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}(hjC;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?;ubj2)}(h h]h }(hjQ;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?;ubj)}(hjh]h*}(hj_;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?;ubj)}(hbufh]hbuf}(hjl;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&]jjuh1jhj9hhhj:hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj:hKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhj:hKhj9hhubj)}(hhh]h)}(h#get the size in the specified unitsh]h#get the size in the specified units}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj;hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj:hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhhhNhNubj)}(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)}(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.chKhj;ubj )}(hhh](j)}(h0``u64 size`` The size to be converted in blocks h](j)}(h ``u64 size``h]j)}(hj <h]hu64 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:27: ./lib/string_helpers.chKhj<ubj2)}(hhh]h)}(h"The size to be converted in blocksh]h"The size to be converted in blocks}(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=``u64 blk_size`` Size of the block (use 1 for size in bytes) h](j)}(h``u64 blk_size``h]j)}(hjE<h]h u64 blk_size}(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.chKhj?<ubj2)}(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)}(hj^<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ<hKhj[<ubah}(h]h ]h"]h$]h&]uh1j1hj?<ubeh}(h]h ]h"]h$]h&]uh1jhjZ<hKhj<ubj)}(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)}(hj~<h]h"const enum string_size_units units}(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.chKhjx<ubj2)}(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}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1j1hjx<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj<ubj)}(h"``char *buf`` buffer to format to 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj<ubj2)}(hhh]h)}(hbuffer to format toh]hbuffer to format 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<ubj)}(h``int len`` length of buffer h](j)}(h ``int len``h]j)}(hj<h]hint len}(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.chKhj<ubj2)}(hhh]h)}(hlength of bufferh]hlength of buffer}(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)}(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.chK!hj;ubh)}(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. }(hjA=hhhNhNubj)}(h**buf**h]hbuf}(hjI=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA=ubhJ should have room for at least 9 bytes and will always be zero terminated.}(hjA=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chK hj;ubh)}(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).}(hjb=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chK$hj;ubeh}(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}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=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&]uh1j1hj=hhhj=hKubj{)}(hparse_int_array_userh]j)}(hparse_int_array_userh]hparse_int_array_user}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhhj=hKubj)}(h4(const char __user *from, size_t count, int **array)h](j)}(hconst char __user *fromh](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=ubh__user}(hj=hhhNhNubj2)}(h h]h }(hj >hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hfromh]hfrom}(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 reftargetjB>modnameN classnameNj] j` )}jc ]jf )}jY j=sbc.parse_int_array_userasbuh1hhj9>ubj2)}(h h]h }(hj`>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9>ubj)}(hcounth]hcount}(hjn>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h int **arrayh](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]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(harrayh]harray}(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(Split string into a sequence of integersh]h(Split string into a sequence of integers}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhhhNhNubj)}(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)}(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.chKhj?ubj )}(hhh](j)}(h?``const char __user *from`` The user space buffer to read from h](j)}(h``const char __user *from``h]j)}(hj(?h]hconst char __user *from}(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.chKhj"?ubj2)}(hhh]h)}(h"The user space buffer to read fromh]h"The user space buffer to read from}(hjA?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=?hKhj>?ubah}(h]h ]h"]h$]h&]uh1j1hj"?ubeh}(h]h ]h"]h$]h&]uh1jhj=?hKhj?ubj)}(h5``size_t count`` The maximum number of bytes to read h](j)}(h``size_t count``h]j)}(hja?h]h size_t count}(hjc?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.chKhj[?ubj2)}(hhh]h)}(h#The maximum number of bytes to readh]h#The maximum number of bytes to read}(hjz?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv?hKhjw?ubah}(h]h ]h"]h$]h&]uh1j1hj[?ubeh}(h]h ]h"]h$]h&]uh1jhjv?hKhj?ubj)}(h9``int **array`` Returned pointer to sequence of integers h](j)}(h``int **array``h]j)}(hj?h]h int **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.chKhj?ubj2)}(hhh]h)}(h(Returned pointer to sequence of integersh]h(Returned pointer to sequence of integers}(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)}(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.chKhj?ubh)}(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 }(hj?hhhNhNubj)}(h **array**h]harray}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhM is allocated and initialized with a sequence of integers extracted from the }(hj?hhhNhNubj)}(h**from**h]hfrom}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhV plus an additional element that begins the sequence and specifies the integers count.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj?ubh)}(hNCaller takes responsibility for freeing **array** when it is no longer needed.h](h(Caller takes responsibility for freeing }(hj@hhhNhNubj)}(h **array**h]harray}(hj&@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh when it is no longer needed.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj?ubeh}(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}(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 }(hjn@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[@hhhjm@hMubj{)}(hstring_unescapeh]j)}(hstring_unescapeh]hstring_unescape}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[@hhhjm@hMubj)}(h7(char *src, char *dst, size_t size, unsigned int flags)h](j)}(h char *srch](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)}(hsrch]hsrc}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h char *dsth](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)}(hdsth]hdst}(hjAhhhNhNubah}(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#AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%AmodnameN classnameNj] j` )}jc ]jf )}jY j@sbc.string_unescapeasbuh1hhjAubj2)}(h h]h }(hjCAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hsizeh]hsize}(hjQAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfAubj2)}(h h]h }(hjxAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfAubj )}(hinth]hint}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfAubj)}(hflagsh]hflags}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhj[@hhhjm@hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjW@hhhjm@hMubah}(h]jR@ah ](jjeh"]h$]h&]jj)jhuh1jhjm@hMhjT@hhubj)}(hhh]h)}(h&unquote characters in the given stringh]h&unquote characters in the given string}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjT@hhhjm@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhhhNhNubj)}(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)}(hjAh]h Parameters}(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.chM"hjAubj )}(hhh](j)}(h&``char *src`` source buffer (escaped) h](j)}(h ``char *src``h]j)}(hj Bh]h char *src}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjBubj2)}(hhh]h)}(hsource buffer (escaped)h]hsource buffer (escaped)}(hj&BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"BhMhj#Bubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj"BhMhjBubj)}(h-``char *dst`` destination buffer (unescaped) h](j)}(h ``char *dst``h]j)}(hjFBh]h char *dst}(hjHBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM hj@Bubj2)}(hhh]h)}(hdestination buffer (unescaped)h]hdestination buffer (unescaped)}(hj_BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[BhM hj\Bubah}(h]h ]h"]h$]h&]uh1j1hj@Bubeh}(h]h ]h"]h$]h&]uh1jhj[BhM hjBubj)}(h>``size_t size`` size of the destination buffer (0 to unlimit) h](j)}(h``size_t size``h]j)}(hjBh]h size_t size}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM!hjyBubj2)}(hhh]h)}(h-size of the destination buffer (0 to unlimit)h]h-size of the destination buffer (0 to unlimit)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM!hjBubah}(h]h ]h"]h$]h&]uh1j1hjyBubeh}(h]h ]h"]h$]h&]uh1jhjBhM!hjBubj)}(h1``unsigned int flags`` combination of the flags. h](j)}(h``unsigned int flags``h]j)}(hjBh]hunsigned int flags}(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.chM"hjBubj2)}(hhh]h)}(hcombination of the flags.h]hcombination of the flags.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM"hjBubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM"hjBubeh}(h]h ]h"]h$]h&]uh1j hjAubh)}(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.chM$hjAubh)}(h5The function unquotes characters in the given string.h]h5The function unquotes characters in the given string.}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM$hjAubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM&hjAubh)}(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:}(hj'ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM)hjAubh 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}hj8Csbah}(h]h ]h"]h$]h&]jjuh1j6ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM-hjAubh)}(h **Return**h]j)}(hjICh]hReturn}(hjKChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM?hjAubh)}(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.}(hj_ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM@hjAubeh}(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}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjChMubj{)}(hstring_escape_memh]j)}(hstring_escape_memh]hstring_escape_mem}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjChMubj)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj )}(hcharh]hchar}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hsrch]hsrc}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t iszh](h)}(hhh]j)}(hsize_th]hsize_t}(hj+DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Dubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-DmodnameN classnameNj] j` )}jc ]jf )}jY jCsbc.string_escape_memasbuh1hhj$Dubj2)}(h h]h }(hjKDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$Dubj)}(hiszh]hisz}(hjYDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h char *dsth](j )}(hcharh]hchar}(hjrDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnDubj)}(hdsth]hdst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t oszh](h)}(hhh]j)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jGDc.string_escape_memasbuh1hhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hoszh]hosz}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hj EhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hinth]hint}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hj&EhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hflagsh]hflags}(hj4EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hconst char *onlyh](j)}(hjh]hconst}(hjMEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIEubj2)}(h h]h }(hjZEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIEubj )}(hcharh]hchar}(hjhEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIEubj2)}(h h]h }(hjvEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIEubj)}(honlyh]honly}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhjChMhjChhubj)}(hhh]h)}(h+quote characters in the given memory bufferh]h+quote characters in the given memory buffer}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhhhNhNubj)}(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)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj )}(hhh](j)}(h.``const char *src`` source buffer (unescaped) h](j)}(h``const char *src``h]j)}(hjEh]hconst char *src}(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)}(hsource buffer (unescaped)h]hsource buffer (unescaped)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubj)}(h"``size_t isz`` source buffer size h](j)}(h``size_t isz``h]j)}(hj5Fh]h size_t isz}(hj7FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Fubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj/Fubj2)}(hhh]h)}(hsource buffer sizeh]hsource buffer size}(hjNFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJFhMhjKFubah}(h]h ]h"]h$]h&]uh1j1hj/Fubeh}(h]h ]h"]h$]h&]uh1jhjJFhMhjEubj)}(h+``char *dst`` destination buffer (escaped) h](j)}(h ``char *dst``h]j)}(hjnFh]h char *dst}(hjpFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjhFubj2)}(hhh]h)}(hdestination buffer (escaped)h]hdestination buffer (escaped)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j1hjhFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubj)}(h'``size_t osz`` destination buffer size h](j)}(h``size_t osz``h]j)}(hjFh]h size_t osz}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjFubj2)}(hhh]h)}(hdestination buffer sizeh]hdestination buffer size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubj)}(h0``unsigned int flags`` combination of the flags h](j)}(h``unsigned int flags``h]j)}(hjFh]hunsigned int flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjFubj2)}(hhh]h)}(hcombination of the flagsh]hcombination of the flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubj)}(hX``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. h](j)}(h``const char *only``h]j)}(hjGh]hconst char *only}(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.chMhjGubj2)}(hhh]h)}(hNULL-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.h](htNULL-terminated string containing characters used to limit the selected escape class. If characters are included in }(hj2GhhhNhNubj)}(h**only**h]honly}(hj:GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Gubh? that would not normally be escaped by the classes selected in }(hj2GhhhNhNubj)}(h **flags**h]hflags}(hjLGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Gubh, they will be copied to }(hj2GhhhNhNubj)}(h**dst**h]hdst}(hj^GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Gubh unescaped.}(hj2GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj/Gubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhj.GhMhjEubeh}(h]h ]h"]h$]h&]uh1j hjEubh)}(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:27: ./lib/string_helpers.chMhjEubh)}(hgThe process of escaping byte buffer includes several parts. They are applied in the following sequence.h]hgThe process of escaping byte buffer includes several parts. They are applied in the following sequence.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj)}(hXh1. 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. h]henumerated_list)}(hhh](j)}(hbThe character is not matched to the one from **only** string and thus must go as-is to the output.h]h)}(hbThe character is not matched to the one from **only** string and thus must go as-is to the output.h](h-The character is not matched to the one from }(hjGhhhNhNubj)}(h**only**h]honly}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh- string and thus must go as-is to the output.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(h|The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output.h]h)}(h|The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output.h]h|The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(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 }(hjHhhhNhNubj)}(h **flags**h]hflags}(hj"HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh. }(hjHhhhNhNubj)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hj4HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh and }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjFHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhg are going last since they cover any character. Note that they actually can’t go together, otherwise }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjXHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh will be ignored.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM hjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jGhjGubah}(h]h ]h"]h$]h&]uh1jhjGhMhjEubh)}(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:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj7C)}(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}hjHsbah}(h]h ]h"]h$]h&]jjuh1j6ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubh)}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhF would help to pass additional characters to the escaped, when one of }(hjHhhhNhNubj)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, }(hjHhhhNhNubj)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, or }(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh is provided.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM1hjEubh)}(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 }(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, }(hjHhhhNhNubj)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh and }(hjHhhhNhNubj)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hj%IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh6 have the higher priority than the rest of the flags (}(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hj7IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhM is the highest). It doesn’t make much sense to use either of them without }(hjHhhhNhNubj)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hjIIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh or }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hj[IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh:, because they cover most of the other character classes. }(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjmIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh can utilize }(hjHhhhNhNubj)}(h``ESCAPE_SPACE``h]h ESCAPE_SPACE}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh or }(hjHhhhNhNubj)}(h``ESCAPE_SPECIAL``h]hESCAPE_SPECIAL}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh in addition to the above.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM4hjEubh)}(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:27: ./lib/string_helpers.chM;hjEubh)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM<hjEubeh}(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}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIhhhjIhMubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMubj{)}(hkasprintf_strarrayh]j)}(hkasprintf_strarrayh]hkasprintf_strarray}(hj,JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Jubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhjIhMubj)}(h)(gfp_t gfp, const char *prefix, size_t n)h](j)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjKJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMJmodnameN classnameNj] j` )}jc ]jf )}jY j.Jsbc.kasprintf_strarrayasbuh1hhjDJubj2)}(h h]h }(hjkJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDJubj)}(hgfph]hgfp}(hjyJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@Jubj)}(hconst char *prefixh](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)}(hprefixh]hprefix}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@Jubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]jgJc.kasprintf_strarrayasbuh1hhjJubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]hn}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@Jubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhjIhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjIhMhjIhhubj)}(hhh]h)}(h-allocate and fill array of sequential stringsh]h-allocate and fill array of sequential strings}(hjGKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjDKhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_Kjj_Kjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``gfp_t gfp`` flags for the slab allocator ``const char *prefix`` prefix to be used ``size_t n`` amount of lines 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)}(hjiKh]h Parameters}(hjkKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjcKubj )}(hhh](j)}(h+``gfp_t gfp`` flags for the slab allocator h](j)}(h ``gfp_t gfp``h]j)}(hjKh]h gfp_t gfp}(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)}(hflags for the slab allocatorh]hflags for the slab allocator}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubj)}(h)``const char *prefix`` prefix to be used h](j)}(h``const char *prefix``h]j)}(hjKh]hconst char *prefix}(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)}(hprefix to be usedh]hprefix to be used}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubj)}(h8``size_t n`` amount of lines to be allocated and filled h](j)}(h ``size_t n``h]j)}(hjKh]hsize_t n}(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)}(h*amount of lines to be allocated and filledh]h*amount of lines to be allocated and filled}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjKubeh}(h]h ]h"]h$]h&]uh1j hjcKubh)}(h**Description**h]j)}(hj5Lh]h Description}(hj7LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Lubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjcKubh)}(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 }(hjKLhhhNhNubj)}(h**n**h]hn}(hjSLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKLubh strings using pattern “}(hjKLhhhNhNubj)}(h ``s-````zu``h]hs-````zu}(hjeLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKLubhp”, where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use.}(hjKLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjcKubh)}(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.}(hj~LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjcKubeh}(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}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLhhhjLhMubj{)}(hkfree_strarrayh]j)}(hkfree_strarrayh]hkfree_strarray}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhjLhMubj)}(h(char **array, size_t n)h](j)}(h char **arrayh](j )}(hcharh]hchar}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(harrayh]harray}(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjMmodnameN classnameNj] j` )}jc ]jf )}jY jLsbc.kfree_strarrayasbuh1hhj5Mubj2)}(h h]h }(hj\MhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Mubj)}(hjh]hn}(hjjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jhjLhMhjLhhubj)}(hhh]h)}(hYfree a number of dynamically allocated strings contained in an array and the array itselfh]hYfree a number of dynamically allocated strings contained in an array and the array itself}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhhhNhNubj)}(hXF**Parameters** ``char **array`` Dynamically allocated array of strings to free. ``size_t n`` Number of strings (starting from the beginning of the array) to free. **Description** Passing a non-NULL **array** and **n** == 0 as well as NULL **array** are valid use-cases. If **array** is NULL, the function does nothing.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:27: ./lib/string_helpers.chMhjMubj )}(hhh](j)}(hA``char **array`` Dynamically allocated array of strings to free. h](j)}(h``char **array``h]j)}(hjMh]h char **array}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubj2)}(hhh]h)}(h/Dynamically allocated array of strings to free.h]h/Dynamically allocated array of strings to free.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(hS``size_t n`` Number of strings (starting from the beginning of the array) to free. h](j)}(h ``size_t n``h]j)}(hj Nh]hsize_t n}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Nubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjNubj2)}(hhh]h)}(hENumber of strings (starting from the beginning of the array) to free.h]hENumber of strings (starting from the beginning of the array) to free.}(hj&NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"NhMhj#Nubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhj"NhMhjMubeh}(h]h ]h"]h$]h&]uh1j hjMubh)}(h**Description**h]j)}(hjHNh]h Description}(hjJNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubh)}(hPassing a non-NULL **array** and **n** == 0 as well as NULL **array** are valid use-cases. If **array** is NULL, the function does nothing.h](hPassing a non-NULL }(hj^NhhhNhNubj)}(h **array**h]harray}(hjfNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Nubh and }(hj^NhhhNhNubj)}(h**n**h]hn}(hjxNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Nubh == 0 as well as NULL }(hj^NhhhNhNubj)}(h **array**h]harray}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Nubh are valid use-cases. If }(hj^NhhhNhNubj)}(h **array**h]harray}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Nubh$ is NULL, the function does nothing.}(hj^NhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j skip_spaces (C function) c.skip_spaceshNtauh1hhhhhhNhNubj)}(hhh](j)}(h$char * skip_spaces (const char *str)h]j)}(h"char *skip_spaces(const char *str)h](j )}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMIubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNhhhjNhMIubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMIubj{)}(h skip_spacesh]j)}(h skip_spacesh]h skip_spaces}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNhhhjNhMIubj)}(h(const char *str)h]j)}(hconst char *strh](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj,OhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hcharh]hchar}(hj:OhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjHOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjVOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hstrh]hstr}(hjcOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjNhhhjNhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMIubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jhjNhMIhjNhhubj)}(hhh]h)}(h(Removes leading whitespace from **str**.h](h Removes leading whitespace from }(hjOhhhNhNubj)}(h**str**h]hstr}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMIhjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhhhNhNubj)}(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)}(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:27: ./lib/string_helpers.chMMhjOubj )}(hhh]j)}(h/``const char *str`` The string to be stripped. h](j)}(h``const char *str``h]j)}(hjOh]hconst char *str}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMJhjOubj2)}(hhh]h)}(hThe string to be stripped.h]hThe string to be stripped.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMJhjOubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMJhjOubah}(h]h ]h"]h$]h&]uh1j hjOubh)}(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:27: ./lib/string_helpers.chMLhjOubh)}(hCReturns a pointer to the first non-whitespace character in **str**.h](h;Returns a pointer to the first non-whitespace character in }(hj1PhhhNhNubj)}(h**str**h]hstr}(hj9PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Pubh.}(hj1PhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strim (C function)c.strimhNtauh1hhhhhhNhNubj)}(hhh](j)}(hchar * strim (char *s)h]j)}(hchar *strim(char *s)h](j )}(hcharh]hchar}(hjrPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMWubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnPhhhjPhMWubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnPhhhjPhMWubj{)}(hstrimh]j)}(hstrimh]hstrim}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnPhhhjPhMWubj)}(h (char *s)h]j)}(hchar *sh](j )}(hcharh]hchar}(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)}(hjY)h]hs}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjnPhhhjPhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjPhhhjPhMWubah}(h]jePah ](jjeh"]h$]h&]jj)jhuh1jhjPhMWhjgPhhubj)}(hhh]h)}(h3Removes leading and trailing whitespace from **s**.h](h-Removes leading and trailing whitespace from }(hjQhhhNhNubj)}(h**s**h]hs}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMWhj Qhhubah}(h]h ]h"]h$]h&]uh1jhjgPhhhjPhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8Qjj8Qjjjuh1jhhhhhNhNubj)}(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)}(hjBQh]h Parameters}(hjDQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Qubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM[hjah"]h$]h&]uh1j1hjRhhhj$RhMqubj{)}(h sysfs_streqh]j)}(h sysfs_streqh]h sysfs_streq}(hj7RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Rubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhj$RhMqubj)}(h (const char *s1, const char *s2)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjSRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjORubj2)}(h h]h }(hj`RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjORubj )}(hcharh]hchar}(hjnRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjORubj2)}(h h]h }(hj|RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjORubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjORubj)}(hs1h]hs1}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjORubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKRubj)}(hconst char *s2h](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj )}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hs2h]hs2}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKRubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhj$RhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhj$RhMqubah}(h]j Rah ](jjeh"]h$]h&]jj)jhuh1jhj$RhMqhj Rhhubj)}(hhh]h)}(h9return true if strings are equal, modulo trailing newlineh]h9return true if strings are equal, modulo trailing newline}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMqhjShhubah}(h]h ]h"]h$]h&]uh1jhj Rhhhj$RhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6Sjj6Sjjjuh1jhhhhhNhNubj)}(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)}(hj@Sh]h Parameters}(hjBShhhNhNubah}(h]h ]&h"]h$]h&]uh1jhj>Subah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMuhj:Subj )}(hhh](j)}(h``const char *s1`` one string h](j)}(h``const char *s1``h]j)}(hj_Sh]hconst char *s1}(hjaShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMrhjYSubj2)}(hhh]h)}(h one stringh]h one string}(hjxShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtShMrhjuSubah}(h]h ]h"]h$]h&]uh1j1hjYSubeh}(h]h ]h"]h$]h&]uh1jhjtShMrhjVSubj)}(h"``const char *s2`` another string h](j)}(h``const char *s2``h]j)}(hjSh]hconst char *s2}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMshjSubj2)}(hhh]h)}(hanother stringh]hanother string}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMshjSubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjShMshjVSubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMuhj:Subh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMthj:Subeh}(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}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hj'ThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhj&ThMubj{)}(h match_stringh]j)}(h match_stringh]h match_string}(hj9ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Tubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhj&ThMubj)}(h8(const char *const *array, size_t n, const char *string)h](j)}(hconst char *const *arrayh](j)}(hjh]hconst}(hjUThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQTubj2)}(h h]h }(hjbThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQTubj )}(hcharh]hchar}(hjpThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQTubj2)}(h h]h }(hj~ThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQTubj)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQTubj)}(harrayh]harray}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMTubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]jf )}jY j;Tsbc.match_stringasbuh1hhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]hn}(hj UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMTubj)}(hconst char *stringh](j)}(hjh]hconst}(hj#UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2)}(h h]h }(hj0UhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj )}(hcharh]hchar}(hj>UhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjLUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hjZUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hstringh]hstring}(hjgUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMTubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhj&ThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhj&ThMubah}(h]j Tah ](jjeh"]h$]h&]jj)jhuh1jhj&ThMhj Thhubj)}(hhh]h)}(h matches given string in an arrayh]h matches given string in an array}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhj Thhhj&ThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhhhNhNubj)}(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)}(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.chMhjUubj )}(hhh](j)}(h/``const char * const *array`` array of strings h](j)}(h``const char * const *array``h]j)}(hjUh]hconst char * const *array}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubj2)}(hhh]h)}(harray of stringsh]harray of strings}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjUubj)}(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 Vh]hsize_t n}(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:27: ./lib/string_helpers.chMhjVubj2)}(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$VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj VhMhj!Vubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhj VhMhjUubj)}(h,``const char *string`` string to match with h](j)}(h``const char *string``h]j)}(hjDVh]hconst char *string}(hjFVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj>Vubj2)}(hhh]h)}(hstring to match withh]hstring to match with}(hj]VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYVhMhjZVubah}(h]h ]h"]h$]h&]uh1j1hj>Vubeh}(h]h ]h"]h$]h&]uh1jhjYVhMhjUubeh}(h]h ]h"]h$]h&]uh1j hjUubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Vubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubh)}(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 }(hjVhhhNhNubj)}(h**n**h]hn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either }(hjVhhhNhNubj)}(h**n**h]hn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhA elements have been compared OR the first NULL element was found.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubh)}(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:27: ./lib/string_helpers.chMhjUubh)}(hLindex of a **string** in the **array** if matches, or ``-EINVAL`` otherwise.h](h index of a }(hjVhhhNhNubj)}(h **string**h]hstring}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh in the }(hjVhhhNhNubj)}(h **array**h]harray}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh if matches, or }(hjVhhhNhNubj)}(h ``-EINVAL``h]h-EINVAL}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh otherwise.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjUubeh}(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}(hjTWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjcWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPWhhhjbWhMubj{)}(h__sysfs_match_stringh]j)}(h__sysfs_match_stringh]h__sysfs_match_string}(hjuWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPWhhhjbWhMubj)}(h5(const char *const *array, size_t n, const char *str)h](j)}(hconst char *const *arrayh](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)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(harrayh]harray}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jf )}jY jwWsbc.__sysfs_match_stringasbuh1hhjXubj2)}(h h]h }(hj9XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]hn}(hjGXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hconst char *strh](j)}(hjh]hconst}(hj_XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Xubj2)}(h h]h }(hjlXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[Xubj )}(hcharh]hchar}(hjzXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[Xubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[Xubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Xubj)}(hstrh]hstr}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjPWhhhjbWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLWhhhjbWhMubah}(h]jGWah ](jjeh"]h$]h&]jj)jhuh1jhjbWhMhjIWhhubj)}(hhh]h)}(h matches given string in an arrayh]h matches given string in an array}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjIWhhhjbWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhhhNhNubj)}(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)}(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.chMhjXubj )}(hhh](j)}(h/``const char * const *array`` array of strings h](j)}(h``const char * const *array``h]j)}(hjYh]hconst char * const *array}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Yubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjYubj2)}(hhh]h)}(harray of stringsh]harray of strings}(hj'YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#YhMhj$Yubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhj#YhMhjYubj)}(hM``size_t n`` number of strings in the array or -1 for NULL terminated arrays h](j)}(h ``size_t n``h]j)}(hjGYh]hsize_t n}(hjIYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjAYubj2)}(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`YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\YhMhj]Yubah}(h]h ]h"]h$]h&]uh1j1hjAYubeh}(h]h ]h"]h$]h&]uh1jhj\YhMhjYubj)}(h)``const char *str`` string to match with h](j)}(h``const char *str``h]j)}(hjYh]hconst char *str}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Yubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjzYubj2)}(hhh]h)}(hstring to match withh]hstring to match with}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1j1hjzYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjYubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjXubh)}(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 }(hjYhhhNhNubj)}(h**str**h]hstr}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh in the }(hjYhhhNhNubj)}(h **array**h]harray}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubhW or -EINVAL, just like match_string(). Uses sysfs_streq instead of strcmp for matching.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjXubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjXubh)}(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 }(hjZhhhNhNubj)}(h**n**h]hn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either }(hjZhhhNhNubj)}(h**n**h]hn}(hj-ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubhA elements have been compared OR the first NULL element was found.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjXubeh}(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}(hjfZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjuZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbZhhhjtZhMubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbZhhhjtZhMubj{)}(h strreplaceh]j)}(h strreplaceh]h strreplace}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbZhhhjtZhMubj)}(h(char *str, char old, char new)h](j)}(h char *strh](j )}(hcharh]hchar}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hstrh]hstr}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hchar oldh](j )}(hcharh]hchar}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(holdh]hold}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hchar newh](j )}(hcharh]hchar}(hj'[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#[ubj2)}(h h]h }(hj5[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#[ubj)}(hnewh]hnew}(hjC[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhjbZhhhjtZhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^ZhhhjtZhMubah}(h]jYZah ](jjeh"]h$]h&]jj)jhuh1jhjtZhMhj[Zhhubj)}(hhh]h)}(h/Replace all occurrences of character in string.h]h/Replace all occurrences of character in string.}(hjm[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjj[hhubah}(h]h ]h"]h$]h&]uh1jhj[ZhhhjtZhMubeh}(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)}(hj[h]h 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)}(hThe string to operate on.h]hThe string to operate on.}(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+``char old`` The character being replaced. h](j)}(h ``char old``h]j)}(hj[h]hchar 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:27: ./lib/string_helpers.chMhj[ubj2)}(hhh]h)}(hThe character being replaced.h]hThe character being replaced.}(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)}(h5``char new`` The character **old** is replaced with. h](j)}(h ``char new``h]j)}(hj \h]hchar 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:27: ./lib/string_helpers.chMhj\ubj2)}(hhh]h)}(h'The character **old** is replaced with.h](hThe character }(hj9\hhhNhNubj)}(h**old**h]hold}(hjA\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9\ubh is replaced with.}(hj9\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5\hMhj6\ubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhj5\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&]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 }(hj\hhhNhNubj)}(h**old**h]hold}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh character with a }(hj\hhhNhNubj)}(h**new**h]hnew}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh one in the given string }(hj\hhhNhNubj)}(h**str**h]hstr}(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:27: ./lib/string_helpers.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:27: ./lib/string_helpers.chMhj[ubh)}(h%pointer to the string **str** itself.h](hpointer to the string }(hj\hhhNhNubj)}(h**str**h]hstr}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh itself.}(hj\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 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!]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 }(hj0]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhj/]hMubj{)}(hmemcpy_and_padh]j)}(hmemcpy_and_padh]hmemcpy_and_pad}(hjB]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhj/]hMubj)}(hE(void *dest, size_t dest_len, const void *src, size_t count, int pad)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hj^]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZ]ubj2)}(h h]h }(hjl]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZ]ubj)}(hjh]h*}(hjz]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ]ubj)}(hdesth]hdest}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV]ubj)}(hsize_t dest_lenh](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 jD]sbc.memcpy_and_padasbuh1hhj]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hdest_lenh]hdest_len}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV]ubj)}(hconst void *srch](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 )}(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)}(hsrch]hsrc}(hj.^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV]ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjJ^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjL^modnameN classnameNj] j` )}jc ]j]c.memcpy_and_padasbuh1hhjC^ubj2)}(h h]h }(hjh^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjC^ubj)}(hcounth]hcount}(hjv^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV]ubj)}(hint padh](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)}(hpadh]hpad}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV]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'Copy one buffer to another with paddingh]h'Copy one buffer to another with padding}(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** ``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)}(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 ``void *dest`` Where to copy to h](j)}(h``void *dest``h]j)}(hj_h]h void *dest}(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)}(hWhere to copy toh]hWhere to copy to}(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)}(h0``size_t dest_len`` The destination buffer size h](j)}(h``size_t dest_len``h]j)}(hjO_h]hsize_t dest_len}(hjQ_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjI_ubj2)}(hhh]h)}(hThe destination buffer sizeh]hThe destination buffer size}(hjh_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd_hMhje_ubah}(h]h ]h"]h$]h&]uh1j1hjI_ubeh}(h]h ]h"]h$]h&]uh1jhjd_hMhj _ubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj_ubj2)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(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 count`` The number of bytes to copy 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj_ubj2)}(hhh]h)}(hThe number of bytes to copyh]hThe number of bytes to copy}(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)}(hI``int pad`` Character to use for padding if space is left in destination.h](j)}(h ``int pad``h]j)}(hj_h]hint pad}(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=Character to use for padding if space is left in destination.h]h=Character to use for padding if space is left in destination.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.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&]uh1jhhhhhNhNubeh}(h]string-conversionsah ]h"]string conversionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hString Manipulationh]hString Manipulation}(hjF`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC`hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j unsafe_memcpy (C macro)c.unsafe_memcpyhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h unsafe_memcpyh]j)}(h unsafe_memcpyh]j{)}(h unsafe_memcpyh]j)}(hjg`h]h unsafe_memcpy}(hjq`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhji`hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhje`hhhj`hKubah}(h]j``ah ](jjeh"]h$]h&]jj)jhuh1jhj`hKhjb`hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjb`hhhj`hKubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1jhhhjC`hNhNubh)}(h2``unsafe_memcpy (dst, src, bytes, justification)``h]j)}(hj`h]h.unsafe_memcpy (dst, src, bytes, justification)}(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:33: ./include/linux/fortify-string.hhKhjC`hhubj)}(h6memcpy implementation with no FORTIFY bounds checking h]h)}(h5memcpy implementation with no FORTIFY bounds checkingh]h5memcpy implementation with no FORTIFY bounds checking}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj`ubah}(h]h ]h"]h$]h&]uh1jhj`hKhjC`hhubj)}(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)}(hj`h]h Parameters}(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:33: ./include/linux/fortify-string.hhKhj`ubj )}(hhh](j)}(h/``dst`` Destination memory address to write to h](j)}(h``dst``h]j)}(hj`h]hdst}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj`ubj2)}(hhh]h)}(h&Destination memory address to write toh]h&Destination memory address to write to}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ahKhj aubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj ahKhj`ubj)}(h+``src`` Source memory address to read from h](j)}(h``src``h]j)}(hj0ah]hsrc}(hj2ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.aubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj*aubj2)}(hhh]h)}(h"Source memory address to read fromh]h"Source memory address to read from}(hjIahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEahKhjFaubah}(h]h ]h"]h$]h&]uh1j1hj*aubeh}(h]h ]h"]h$]h&]uh1jhjEahKhj`ubj)}(h:``bytes`` How many bytes to write to **dst** from **src** h](j)}(h ``bytes``h]j)}(hjiah]hbytes}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgaubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcaubj2)}(hhh]h)}(h/How many bytes to write to **dst** from **src**h](hHow many bytes to write to }(hjahhhNhNubj)}(h**dst**h]hdst}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh from }(hjahhhNhNubj)}(h**src**h]hsrc}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1hhj~ahKhjaubah}(h]h ]h"]h$]h&]uh1j1hjcaubeh}(h]h ]h"]h$]h&]uh1jhj~ahKhj`ubj)}(hM``justification`` Free-form text or comment describing why the use is needed h](j)}(h``justification``h]j)}(hjah]h justification}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjaubj2)}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahKhj`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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj`ubh)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strncpy (C function) c.strncpyhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(hDchar * strncpy (char * const p, const char *q, __kernel_size_t size)h]j)}(hAchar *strncpy(char *const p, const char *q, __kernel_size_t size)h](j )}(hcharh]hchar}(hjBbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>bhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubj2)}(h h]h }(hjQbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>bhhhjPbhKubj)}(hjh]h*}(hj_bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>bhhhjPbhKubj{)}(hstrncpyh]j)}(hstrncpyh]hstrncpy}(hjpbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>bhhhjPbhKubj)}(h4(char *const p, const char *q, __kernel_size_t size)h](j)}(h char *const ph](j )}(hcharh]hchar}(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)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]hp}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(h const char *qh](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj )}(hcharh]hchar}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hqh]hq}(hj,chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(h__kernel_size_t sizeh](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjHchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJcmodnameN classnameNj] j` )}jc ]jf )}jY jrbsb c.strncpyasbuh1hhjAcubj2)}(h h]h }(hjhchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAcubj)}(hsizeh]hsize}(hjvchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhj>bhhhjPbhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:bhhhjPbhKubah}(h]j5bah ](jjeh"]h$]h&]jj)jhuh1jhjPbhKhj7bhhubj)}(hhh]h)}(h7Copy a string to memory with non-guaranteed NUL paddingh]h7Copy a string to memory with non-guaranteed NUL padding}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjchhubah}(h]h ]h"]h$]h&]uh1jhj7bhhhjPbhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhjC`hNhNubj)}(hX?**Parameters** ``char * const p`` pointer to destination of copy ``const char *q`` pointer to NUL-terminated source string to copy ``__kernel_size_t size`` bytes to write at **p** **Description** If strlen(**q**) >= **size**, the copy of **q** will stop after **size** bytes, and **p** will NOT be NUL-terminated If strlen(**q**) < **size**, following the copy of **q**, trailing NUL bytes will be written to **p** until **size** total bytes have been written. Do not use this function. While FORTIFY_SOURCE tries to avoid over-reads of **q**, it cannot defend against writing unterminated results to **p**. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of **p**'s contents is unambiguous: +--------------------+--------------------+------------+ | **p** needs to be: | padded to **size** | not padded | +====================+====================+============+ | NUL-terminated | strscpy_pad() | strscpy() | +--------------------+--------------------+------------+ | not NUL-terminated | strtomem_pad() | strtomem() | +--------------------+--------------------+------------+ Note strscpy*()'s differing return values for detecting truncation, and strtomem*()'s expectation that the destination is marked with __nonstring when it is a character array.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubj )}(hhh](j)}(h2``char * const p`` pointer to destination of copy h](j)}(h``char * const p``h]j)}(hjch]hchar * const p}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubj2)}(hhh]h)}(hpointer to destination of copyh]hpointer to destination of copy}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhjchKhjcubj)}(hB``const char *q`` pointer to NUL-terminated source string to copy h](j)}(h``const char *q``h]j)}(hjdh]h const char *q}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjdubj2)}(hhh]h)}(h/pointer to NUL-terminated source string to copyh]h/pointer to NUL-terminated source string to copy}(hj3dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/dhKhj0dubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhj/dhKhjcubj)}(h1``__kernel_size_t size`` bytes to write at **p** h](j)}(h``__kernel_size_t size``h]j)}(hjSdh]h__kernel_size_t size}(hjUdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQdubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjMdubj2)}(hhh]h)}(hbytes to write at **p**h](hbytes to write at }(hjldhhhNhNubj)}(h**p**h]hp}(hjtdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjldubeh}(h]h ]h"]h$]h&]uh1hhjhdhKhjidubah}(h]h ]h"]h$]h&]uh1j1hjMdubeh}(h]h ]h"]h$]h&]uh1jhjhdhKhjcubeh}(h]h ]h"]h$]h&]uh1j hjcubh)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubh)}(htIf strlen(**q**) >= **size**, the copy of **q** will stop after **size** bytes, and **p** will NOT be NUL-terminatedh](h If strlen(}(hjdhhhNhNubj)}(h**q**h]hq}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh) >= }(hjdhhhNhNubj)}(h**size**h]hsize}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh, the copy of }(hjdhhhNhNubj)}(h**q**h]hq}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh will stop after }(hjdhhhNhNubj)}(h**size**h]hsize}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh bytes, and }(hjdhhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh will NOT be NUL-terminated}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubh)}(hIf strlen(**q**) < **size**, following the copy of **q**, trailing NUL bytes will be written to **p** until **size** total bytes have been written.h](h If strlen(}(hjehhhNhNubj)}(h**q**h]hq}(hj#ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh) < }(hjehhhNhNubj)}(h**size**h]hsize}(hj5ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh, following the copy of }(hjehhhNhNubj)}(h**q**h]hq}(hjGehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh(, trailing NUL bytes will be written to }(hjehhhNhNubj)}(h**p**h]hp}(hjYehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh until }(hjehhhNhNubj)}(h**size**h]hsize}(hjkehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh total bytes have been written.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubh)}(hX$Do not use this function. While FORTIFY_SOURCE tries to avoid over-reads of **q**, it cannot defend against writing unterminated results to **p**. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of **p**'s contents is unambiguous:h](hLDo not use this function. While FORTIFY_SOURCE tries to avoid over-reads of }(hjehhhNhNubj)}(h**q**h]hq}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh;, it cannot defend against writing unterminated results to }(hjehhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubhs. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of }(hjehhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh’s contents is unambiguous:}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehjeubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehjeubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jehjeubhthead)}(hhh]hrow)}(hhh](hentry)}(hhh]h)}(h**p** needs to be:h](j)}(h**p**h]hp}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh needs to be:}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjeubah}(h]h ]h"]h$]h&]uh1jehjeubje)}(hhh]h)}(hpadded to **size**h](h padded to }(hj(fhhhNhNubj)}(h**size**h]hsize}(hj0fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(fubeh}(h]h ]h"]h$]h&]uh1hhjfhKhj%fubah}(h]h ]h"]h$]h&]uh1jehjeubje)}(hhh]h)}(h not paddedh]h not padded}(hjMfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjJfubah}(h]h ]h"]h$]h&]uh1jehjeubeh}(h]h ]h"]h$]h&]uh1jehjeubah}(h]h ]h"]h$]h&]uh1jehjeubhtbody)}(hhh](je)}(hhh](je)}(hhh]h)}(hNUL-terminatedh]hNUL-terminated}(hjxfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjufubah}(h]h ]h"]h$]h&]uh1jehjrfubje)}(hhh]h)}(h strscpy_pad()h]h strscpy_pad()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jehjrfubje)}(hhh]h)}(h strscpy()h]h strscpy()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jehjrfubeh}(h]h ]h"]h$]h&]uh1jehjofubje)}(hhh](je)}(hhh]h)}(hnot NUL-terminatedh]hnot NUL-terminated}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjfubah}(h]h ]h"]h$]h&]uh1jehjfubje)}(hhh]h)}(hstrtomem_pad()h]hstrtomem_pad()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jehjfubje)}(hhh]h)}(h strtomem()h]h strtomem()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jehjfubeh}(h]h ]h"]h$]h&]uh1jehjofubeh}(h]h ]h"]h$]h&]uh1jmfhjeubeh}(h]h ]h"]h$]h&]colsKuh1jehjeubah}(h]h ]h"]h$]h&]uh1jehjcubh)}(hNote strscpy*()'s differing return values for detecting truncation, and strtomem*()'s expectation that the destination is marked with __nonstring when it is a character array.h]hNote strscpy*()’s differing return values for detecting truncation, and strtomem*()’s expectation that the destination is marked with __nonstring when it is a character array.}(hj#ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strnlen (C function) c.strnlenhNtauh1hhjC`hhhNhNubj)}(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}(hjUghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWgmodnameN classnameNj] j` )}jc ]jf )}jY strnlensb c.strnlenasbuh1hhjNghhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubj2)}(h h]h }(hjwghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNghhhjvghKubj{)}(hstrnlenh]j)}(hjsgh]hstrnlen}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNghhhjvghKubj)}(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}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]hp}(hjhhhhNhNubah}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj hmodnameN classnameNj] j` )}jc ]jqg c.strnlenasbuh1hhjhubj2)}(h h]h }(hjah"]h$]h&]uh1j1hjhubj)}(hmaxlenh]hmaxlen}(hjJhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjNghhhjvghKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJghhhjvghKubah}(h]jEgah ](jjeh"]h$]h&]jj)jhuh1jhjvghKhjGghhubj)}(hhh]h)}(h=Return bounded count of characters in a NUL-terminated stringh]h=Return bounded count of characters in a NUL-terminated string}(hjthhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjqhhhubah}(h]h ]h"]h$]h&]uh1jhjGghhhjvghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1jhhhjC`hNhNubj)}(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}(hjhhhhNhNubah}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhKhjhubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhKhjhubj)}(hB``__kernel_size_t maxlen`` maximum number of characters to count. h](j)}(h``__kernel_size_t maxlen``h]j)}(hjhh]h__kernel_size_t maxlen}(hjhhhhNhNubah}(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&maximum number of characters to count.h]h&maximum number of characters to count.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjiubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjihKhjhubeh}(h]h ]h"]h$]h&]uh1j hjhubh)}(h**Description**h]j)}(hj)ih]h Description}(hj+ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'iubah}(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 }(hj?ihhhNhNubj)}(h**p**h]hp}(hjGihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?iubh# (NOT including the final NUL), or }(hj?ihhhNhNubj)}(h **maxlen**h]hmaxlen}(hjYihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?iubh', if no NUL has been found up to there.}(hj?ihhhNhNubeh}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strlen (C macro)c.strlenhNtauh1hhjC`hhhNhNubj)}(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&]jjjjijjijjjuh1jhhhjC`hNhNubh)}(h``strlen (p)``h]j)}(hjih]h strlen (p)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjC`hhubj)}(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}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubah}(h]h ]h"]h$]h&]uh1jhjihKhjC`hhubj)}(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)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubj )}(hhh]j)}(h1``p`` pointer to NUL-terminated string to count. h](j)}(h``p``h]j)}(hjjh]hp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjjubj2)}(hhh]h)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hj5jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1jhKhj2jubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhj1jhKhjjubah}(h]h ]h"]h$]h&]uh1j hjiubh)}(h**Description**h]j)}(hjWjh]h Description}(hjYjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubh)}(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 }(hjmjhhhNhNubj)}(h**p**h]hp}(hjujhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmjubh is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen().}(hjmjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjiubh)}(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.hhKhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strlcat (C function) c.strlcathNtauh1hhjC`hhhNhNubj)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY strlcatsb c.strlcatasbuh1hhjjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMMubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhjjhMMubj{)}(hstrlcath]j)}(hjjh]hstrlcat}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhjjhMMubj)}(h2(char *const p, const char *const q, size_t avail)h](j)}(h char *const ph](j )}(hcharh]hchar}(hj!khhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj2)}(h h]h }(hj/khhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hj=khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]hconst}(hjJkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjWkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]hp}(hjekhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst char *const qh](j)}(hjh]hconst}(hj}khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjykubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjykubj )}(hcharh]hchar}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjykubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjykubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjykubj)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjykubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjykubj)}(hj.ch]hq}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjykubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h size_t availh](h)}(hhh]j)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jj c.strlcatasbuh1hhjkubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(havailh]havail}(hj#lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjjhMMhjjhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjMlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMMhjJlhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjeljjeljjjuh1jhhhjC`hNhNubj)}(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)}(hjolh]h Parameters}(hjqlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmlubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMQhjilubj )}(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.hhMOhjlubj2)}(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&]uh1hhjlhMOhjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMOhjlubj)}(hM``const char * const q`` pointer to ``NUL-terminated`` string to append from h](j)}(h``const char * const q``h]j)}(hjlh]hconst char * const q}(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.hhMPhjlubj2)}(hhh]h)}(h3pointer to ``NUL-terminated`` string to append fromh](h pointer to }(hjlhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh string to append from}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMPhjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMPhjlubj)}(h2``size_t avail`` Maximum bytes available in **p** h](j)}(h``size_t avail``h]j)}(hj$mh]h size_t avail}(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.hhMQhjmubj2)}(hhh]h)}(h Maximum bytes available in **p**h](hMaximum bytes available in }(hj=mhhhNhNubj)}(h**p**h]hp}(hjEmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=mubeh}(h]h ]h"]h$]h&]uh1hhj9mhMQhj:mubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhj9mhMQhjlubeh}(h]h ]h"]h$]h&]uh1j hjilubh)}(h**Description**h]j)}(hjmmh]h Description}(hjomhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkmubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMShjilubh)}(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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh, but will not write beyond }(hjmhhhNhNubj)}(h **avail**h]havail}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh3 bytes total, potentially truncating the copy from }(hjmhhhNhNubj)}(h**q**h]hq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh. }(hjmhhhNhNubj)}(h**p**h]hp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh will stay }(hjmhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh only if a }(hjmhhhNhNubj)}(h``NUL``h]hNUL}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh already existed within the }(hjmhhhNhNubj)}(h **avail**h]havail}(hj-nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh bytes of }(hjmhhhNhNubj)}(h**p**h]hp}(hj?nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh3. If so, the resulting number of bytes copied from }(hjmhhhNhNubj)}(h**q**h]hq}(hjQnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh will be at most “}(hjmhhhNhNubj)}(h **avail**h]havail}(hjcnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh - strlen(}(hjmhhhNhNubj)}(h**p**h]hp}(hjunhhhNhNubah}(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.hhMRhjilubh)}(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.hhMYhjilubh)}(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 }(hjnhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubhH regardless of truncation, similar to snprintf(). If return value is >= }(hjnhhhNhNubj)}(h **avail**h]havail}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh , the string has been truncated.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM^hjilubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcat (C function)c.strcathNtauh1hhjC`hhhNhNubj)}(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}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj2)}(h h]h }(hj#ohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhj"ohMubj)}(hjh]h*}(hj1ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhj"ohMubj{)}(hstrcath]j)}(hstrcath]hstrcat}(hjBohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>oubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhj"ohMubj)}(h(char *const p, const char *q)h](j)}(h char *const ph](j )}(hcharh]hchar}(hj^ohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZoubj2)}(h h]h }(hjlohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZoubj)}(hjh]h*}(hjzohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZoubj)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZoubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZoubj)}(hjh]hp}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVoubj)}(h const char *qh](j)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj )}(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)}(hj.ch]hq}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVoubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhj"ohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj ohhhj"ohMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhj"ohMhj ohhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hj'phhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj$phhubah}(h]h ]h"]h$]h&]uh1jhj ohhhj"ohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?pjj?pjjjuh1jhhhjC`hNhNubj)}(hX**Parameters** ``char * const p`` pointer to NUL-terminated string to append to ``const char *q`` pointer to NUL-terminated source string to append from **Description** Do not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the destination buffer size is known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. At the very least, use strncat(). Returns **p**.h](h)}(h**Parameters**h]j)}(hjIph]h Parameters}(hjKphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGpubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjCpubj )}(hhh](j)}(hA``char * const p`` pointer to NUL-terminated string to append to h](j)}(h``char * const p``h]j)}(hjhph]hchar * const p}(hjjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfpubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjbpubj2)}(hhh]h)}(h-pointer to NUL-terminated string to append toh]h-pointer to NUL-terminated string to append to}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}phMhj~pubah}(h]h ]h"]h$]h&]uh1j1hjbpubeh}(h]h ]h"]h$]h&]uh1jhj}phMhj_pubj)}(hI``const char *q`` pointer to NUL-terminated source string to append from h](j)}(h``const char *q``h]j)}(hjph]h const char *q}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjpubj2)}(hhh]h)}(h6pointer to NUL-terminated source string to append fromh]h6pointer to NUL-terminated source string to append from}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhj_pubeh}(h]h ]h"]h$]h&]uh1j hjCpubh)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjCpubh)}(hXDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the destination buffer size is known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. At the very least, use strncat().h]hXDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the destination buffer size is known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. At the very least, use strncat().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjCpubh)}(hReturns **p**.h](hReturns }(hjqhhhNhNubj)}(h**p**h]hp}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjCpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strncat (C function) c.strncathNtauh1hhjC`hhhNhNubj)}(hhh](j)}(hLchar * strncat (char * const p, const char * const q, __kernel_size_t count)h]j)}(hHchar *strncat(char *const p, const char *const q, __kernel_size_t count)h](j )}(hcharh]hchar}(hjBqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>qhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj2)}(h h]h }(hjQqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>qhhhjPqhMubj)}(hjh]h*}(hj_qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>qhhhjPqhMubj{)}(hstrncath]j)}(hstrncath]hstrncat}(hjpqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>qhhhjPqhMubj)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]hp}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(hconst char *const qh](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj )}(hcharh]hchar}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]hconst}(hj,rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hj9rhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hj.ch]hq}(hjGrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(h__kernel_size_t counth](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjbrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_rubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdrmodnameN classnameNj] j` )}jc ]jf )}jY jrqsb c.strncatasbuh1hhj[rubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[rubj)}(hcounth]hcount}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubeh}(h]h ]h"]h$]h&]jjuh1jhj>qhhhjPqhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:qhhhjPqhMubah}(h]j5qah ](jjeh"]h$]h&]jj)jhuh1jhjPqhMhj7qhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjrhhubah}(h]h ]h"]h$]h&]uh1jhj7qhhhjPqhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhjC`hNhNubj)}(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)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjrubj )}(hhh](j)}(hA``char * const p`` pointer to NUL-terminated string to append to h](j)}(h``char * const p``h]j)}(hjrh]hchar * const p}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjrubj2)}(hhh]h)}(h-pointer to NUL-terminated string to append toh]h-pointer to NUL-terminated string to append to}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjshMhjrubj)}(hA``const char * const q`` pointer to source string to append from h](j)}(h``const char * const q``h]j)}(hj4sh]hconst char * const q}(hj6shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2subah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj.subj2)}(hhh]h)}(h'pointer to source string to append fromh]h'pointer to source string to append from}(hjMshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIshMhjJsubah}(h]h ]h"]h$]h&]uh1j1hj.subeh}(h]h ]h"]h$]h&]uh1jhjIshMhjrubj)}(h;``__kernel_size_t count`` Maximum bytes to read from **q** h](j)}(h``__kernel_size_t count``h]j)}(hjmsh]h__kernel_size_t count}(hjoshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjksubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjgsubj2)}(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&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1j1hjgsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjrubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjrubh)}(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 }(hjshhhNhNubj)}(h **count**h]hcount}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh bytes from }(hjshhhNhNubj)}(h**q**h]hq}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubhE (stopping at the first NUL byte) after the NUL-terminated string at }(hjshhhNhNubj)}(h**p**h]hp}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh. }(hjshhhNhNubj)}(h**p**h]hp}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh will be NUL-terminated.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjrubh)}(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 }(hj#thhhNhNubj)}(h**p**h]hp}(hj+thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#tubh and }(hj#thhhNhNubj)}(h**q**h]hq}(hj=thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#tubhc are known to the compiler. Prefer building the string with formatting, via scnprintf() or similar.}(hj#thhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjrubh)}(hReturns **p**.h](hReturns }(hjVthhhNhNubj)}(h**p**h]hp}(hj^thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVtubh.}(hjVthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcpy (C function)c.strcpyhNtauh1hhjC`hhhNhNubj)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjthMubj)}(h$(char *const p, const char *const q)h](j)}(h char *const ph](j )}(hcharh]hchar}(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)}(hjh]hconst}(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hjh]hp}(hj%uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hconst char *const qh](j)}(hjh]hconst}(hj=uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9uubj2)}(h h]h }(hjJuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9uubj )}(hcharh]hchar}(hjXuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9uubj2)}(h h]h }(hjfuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9uubj)}(hjh]h*}(hjtuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9uubj)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9uubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9uubj)}(hj.ch]hq}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9uubeh}(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(Copy a string into another string bufferh]h(Copy a string into another string buffer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhjC`hNhNubj)}(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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjuubj )}(hhh](j)}(h2``char * const p`` pointer to destination of copy h](j)}(h``char * const p``h]j)}(hjvh]hchar * const p}(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)}(hpointer to destination of copyh]hpointer to destination of copy}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjuubj)}(hI``const char * const q`` pointer to NUL-terminated source string to copy h](j)}(h``const char * const q``h]j)}(hj?vh]hconst char * const q}(hjAvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=vubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj9vubj2)}(hhh]h)}(h/pointer to NUL-terminated source string to copyh]h/pointer to NUL-terminated source string to copy}(hjXvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTvhMhjUvubah}(h]h ]h"]h$]h&]uh1j1hj9vubeh}(h]h ]h"]h$]h&]uh1jhjTvhMhjuubeh}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hjzvh]h Description}(hj|vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxvubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjuubh)}(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.hhMhjuubh)}(hReturns **p**.h](hReturns }(hjvhhhNhNubj)}(h**p**h]hp}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strncasecmp (C function) c.strncasecmphNtauh1hhjC`hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjwhhhjwhK#ubj{)}(h strncasecmph]j)}(h strncasecmph]h strncasecmp}(hj%whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!wubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjwhK#ubj)}(h,(const char *s1, const char *s2, size_t len)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjAwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=wubj2)}(h h]h }(hjNwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=wubj )}(hcharh]hchar}(hj\whhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=wubj2)}(h h]h }(hjjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=wubj)}(hjh]h*}(hjxwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=wubj)}(hs1h]hs1}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9wubj)}(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}(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)}(hs2h]hs2}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9wubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]jf )}jY j'wsb c.strncasecmpasbuh1hhjwubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hlenh]hlen}(hj,xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9wubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhK#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjwhK#ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjwhK#hjvhhubj)}(hhh]h)}(h2Case insensitive, length-limited string comparisonh]h2Case insensitive, length-limited string comparison}(hjVxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK#hjSxhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjwhK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnxjjnxjjjuh1jhhhjC`hNhNubj)}(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)}(hjxxh]h Parameters}(hjzxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvxubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK'hjrxubj )}(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)}(hjxh]hconst char *s2}(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)}(hThe other stringh]hThe other string}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhK%hjxubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhK%hjxubj)}(h:``size_t len`` the maximum number of characters to compareh](j)}(h``size_t len``h]j)}(hj yh]h size_t len}(hj yhhhNhNubah}(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)}(h+the maximum number of characters to compareh]h+the maximum number of characters to compare}(hj"yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK&hjyubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhK'hjxubeh}(h]h ]h"]h$]h&]uh1j hjrxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j stpcpy (C function)c.stpcpyhNtauh1hhjC`hhhNhNubj)}(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}(hjcyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_yhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKubj2)}(h h]h }(hjryhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_yhhhjqyhKubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_yhhhjqyhKubj{)}(hstpcpyh]j)}(hstpcpyh]hstpcpy}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj_yhhhjqyhKubj)}(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 }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh __restrict__}(hjyhhhNhNubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hdesth]hdest}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst char *__restrict__ srch](j)}(hjh]hconst}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj )}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hj*zhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hj8zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh __restrict__}(hjyhhhNhNubj2)}(h h]h }(hjIzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hsrch]hsrc}(hjWzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj_yhhhjqyhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[yhhhjqyhKubah}(h]jVyah ](jjeh"]h$]h&]jj)jhuh1jhjqyhKhjXyhhubj)}(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.chKhj~zhhubah}(h]h ]h"]h$]h&]uh1jhjXyhhhjqyhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhjC`hNhNubj)}(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)}(hjzh]h Parameters}(hjzhhhNhNubah}(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)}(hjzh]hchar *__restrict__ dest}(hjzhhhNhNubah}(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.chKhjzubj2)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhKhjzubj)}(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)}(hj{h]hconst char *__restrict__ 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.chKhj{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.}(hj'{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhj${ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj#{hKhjzubeh}(h]h ]h"]h$]h&]uh1j hjzubh)}(h**Description**h]j)}(hjJ{h]h Description}(hjL{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH{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}(hjh{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`{ubh character in }(hj`{hhhNhNubj)}(h**dest**h]hdest}(hjz{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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcmp (C function)c.strcmphNtauh1hhjC`hhhNhNubj)}(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}(hj{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}(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*}(hj9|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hcsh]hcs}(hjF|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 }(hjl|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[|ubj )}(hcharh]hchar}(hjz|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{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&]jjjj|jj|jjjuh1jhhhjC`hNhNubj)}(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&]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 *cs`` One string 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)}(h One stringh]h One 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)}(h!``const char *ct`` Another stringh](j)}(h``const char *ct``h]j)}(hjG}h]hconst char *ct}(hjI}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjA}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&]uh1j1hjA}ubeh}(h]h ]h"]h$]h&]uh1jhj\}hMhj}ubeh}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strncmp (C function) c.strncmphNtauh1hhjC`hhhNhNubj)}(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.chM)ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}hhhj}hM)ubj{)}(hstrncmph]j)}(hstrncmph]hstrncmp}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhj}hM)ubj)}(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 }(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)}(hcsh]hcs}(hj"~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&]uh1jhj7~ubj2)}(h h]h }(hjH~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7~ubj )}(hcharh]hchar}(hjV~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7~ubj2)}(h h]h }(hjd~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7~ubj)}(hjh]h*}(hjr~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7~ubj)}(hcth]hct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7~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 }(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}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"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.chM)hj~hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjC`hNhNubj)}(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)}(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)}(h``const char *cs`` One string h](j)}(h``const char *cs``h]j)}(hj4h]hconst char *cs}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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 One stringh]h One string}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM*hjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM*hj+ubj)}(h"``const char *ct`` Another string h](j)}(h``const char *ct``h]j)}(hjmh]hconst char *ct}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM+hjgubj2)}(hhh]h)}(hAnother stringh]hAnother string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhM+hj+ubj)}(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.chM-hjubj2)}(hhh]h)}(h&The maximum number of bytes to compareh]h&The maximum number of bytes to compare}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM,hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hj+ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strchr (C function)c.strchrhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h$char * strchr (const char *s, int c)h]j)}(h"char *strchr(const char *s, 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.chMBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMBubj{)}(hstrchrh]j)}(hstrchrh]hstrchr}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMBubj)}(h(const char *s, int c)h](j)}(h const char *sh](j)}(hjh]hconst}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj )}(hcharh]hchar}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(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&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMBhjhhubj)}(hhh]h)}(h4Find the first occurrence of a character in a stringh]h4Find the first 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.chMBhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(hj h]h Parameters}(hjhhhNhNubah}(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.chMFhjubj )}(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.chMChj&ubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMChjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMChj#ubj)}(h&``int c`` The character to search for h](j)}(h ``int c``h]j)}(hjeh]hint c}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMDhj_ubj2)}(hhh]h)}(hThe character to search forh]hThe character to search for}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMDhj{ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMDhj#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.chMFhjubh)}(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}(hjhhhNhNubah}(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.chMEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strchrnul (C function) c.strchrnulhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h'char * strchrnul (const char *s, int c)h]j)}(h%char *strchrnul(const char *s, 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.chMUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMUubj{)}(h strchrnulh]j)}(h strchrnulh]h strchrnul}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMUubj)}(h(const char *s, int c)h](j)}(h const char *sh](j)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj )}(hcharh]hchar}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(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&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMUhjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMUhj߂hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.chMYhjubj )}(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.chMVhjubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMVhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMVhjubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMWhjVubj2)}(hhh]h)}(hThe character to search forh]hThe character to search for}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMWhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMWhjubeh}(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.chMYhjubh)}(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.chMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strrchr (C function) c.strrchrhNtauh1hhjC`hhhNhNubj)}(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.chMxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj؃hhhjhMxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؃hhhjhMxubj{)}(hstrrchrh]j)}(hstrrchrh]hstrrchr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj؃hhhjhMxubj)}(h(const char *s, int c)h](j)}(h const char *sh](j)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj )}(hcharh]hchar}(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)}(hjY)h]hs}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjhhhNhNubah}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj؃hhhjhMxubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjԃhhhjhMxubah}(h]jσah ](jjeh"]h$]h&]jj)jhuh1jhjhMxhjуhhubj)}(hhh]h)}(h3Find the last occurrence of a character in a stringh]h3Find the last occurrence of a character in a string}(hjDŽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMxhjĄhhubah}(h]h ]h"]h$]h&]uh1jhjуhhhjhMxubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߄jj߄jjjuh1jhhhjC`hNhNubj)}(hf**Parameters** ``const char *s`` The string to be searched ``int c`` The character 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.chM|hjubj )}(hhh](j)}(h,``const char *s`` The string to be searched h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(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.chMyhjubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjubj)}(h%``int c`` The character to search forh](j)}(h ``int c``h]j)}(hjAh]hint c}(hjChhhNhNubah}(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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMzhjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM{hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strnchr (C function) c.strnchrhNtauh1hhjC`hhhNhNubj)}(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.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hstrnchrh]j)}(hstrnchrh]hstrnchr}(hjɅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŅubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h$(const char *s, size_t count, 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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj݅ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jf )}jY j˅sb c.strnchrasbuh1hhj=ubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hcounth]hcount}(hjrhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hc}(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+Find a character in a length limited stringh]h+Find a character in a length limited string}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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)}(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.chMhj ubj2)}(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&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubj)}(h9``size_t count`` The number of characters to be searched h](j)}(h``size_t count``h]j)}(hjJh]h size_t count}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjDubj2)}(hhh]h)}(h'The number of characters to be searchedh]h'The number of characters to be searched}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjubj)}(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.chMhj}ubj2)}(hhh]h)}(hThe character to search forh]hThe character to search for}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubh)}(h[Note that the ``NUL-terminator`` is considered part of the string, and can be searched for.h](hNote that the }(hjԇhhhNhNubj)}(h``NUL-terminator``h]hNUL-terminator}(hj܇hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԇubh; is considered part of the string, and can be searched for.}(hjԇhhhNhNubeh}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strspn (C function)c.strspnhNtauh1hhjC`hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY strspnsbc.strspnasbuh1hhjhhhP/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&]uh1j1hjhhhj9hMubj{)}(hstrspnh]j)}(hj6h]hstrspn}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj9hMubj)}(h#(const char *s, const char *accept)h](j)}(h const char *sh](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hconst char *accepth](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)}(haccepth]haccept}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hMhj hhubj)}(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 }(hj1hhhNhNubj)}(h**s**h]hs}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh which only contain letters in }(hj1hhhNhNubj)}(h **accept**h]haccept}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(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 hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jhhhjC`hNhNubj)}(hp**Parameters** ``const char *s`` The string to be searched ``const char *accept`` The string to search forh](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjmubj )}(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 *accept`` The string to search forh](j)}(h``const char *accept``h]j)}(hjˉh]hconst char *accept}(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ʼnubj2)}(hhh]h)}(hThe string to search forh]hThe string to search for}(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ʼnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcspn (C function) c.strcspnhNtauh1hhjC`hhhNhNubj)}(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}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jf )}jY strcspnsb c.strcspnasbuh1hhj!hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!hhhjIhMubj{)}(hstrcspnh]j)}(hjFh]hstrcspn}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj!hhhjIhMubj)}(h#(const char *s, const char *reject)h](j)}(h const char *sh](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)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hconst char *rejecth](j)}(hjh]hconst}(hjӊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϊubj2)}(h h]h }(hjhhhNhNubah}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϊubj)}(hrejecth]hreject}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhjIhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjIhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjIhMhjhhubj)}(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 }(hjAhhhNhNubj)}(h**s**h]hs}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh# which does not contain letters in }(hjAhhhNhNubj)}(h **reject**h]hreject}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(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&]uh1jhjhhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhjC`hNhNubj)}(hk**Parameters** ``const char *s`` The string to be searched ``const char *reject`` The string to avoidh](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.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}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strpbrk (C function) c.strpbrkhNtauh1hhjC`hhhNhNubj)}(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}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhjChMubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjChMubj{)}(hstrpbrkh]j)}(hstrpbrkh]hstrpbrk}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChMubj)}(h (const char *cs, const char *ct)h](j)}(hconst char *csh](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}(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}(hjÌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hconst char *cth](j)}(hjh]hconst}(hj܌hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj،ubj2)}(h h]h }(hjhhhNhNubah}(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)}(hcth]hct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj،ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhjChMhj*hhubj)}(hhh]h)}(h0Find the first occurrence of a set of charactersh]h0Find the first occurrence of a set of characters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jhhhjC`hNhNubj)}(hq**Parameters** ``const char *cs`` The string to be searched ``const char *ct`` The characters to search forh](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjfubj )}(hhh](j)}(h-``const char *cs`` The string to be searched h](j)}(h``const char *cs``h]j)}(hjh]hconst char *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)}(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 *ct`` The characters to search forh](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.chMhjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjٍhMhjubeh}(h]h ]h"]h$]h&]uh1j hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strsep (C function)c.strsephNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h(char * strsep (char **s, const char *ct)h]j)}(h&char *strsep(char **s, const char *ct)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{)}(hstrseph]j)}(hstrseph]hstrsep}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj,hMubj)}(h(char **s, const char *ct)h](j)}(hchar **sh](j )}(hcharh]hchar}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(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)}(hconst char *cth](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 }(hjߎhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcth]hct}(hjhhhNhNubah}(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)}(hSplit a string into tokensh]hSplit a string into tokens}(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&]uh1jhjhhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jhhhjC`hNhNubj)}(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)}(hjFh]h Parameters}(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.chMhj@ubj )}(hhh](j)}(h'``char **s`` The string to be searched h](j)}(h ``char **s``h]j)}(hjeh]hchar **s}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj\ubj)}(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&]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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj@ubh)}(hIstrsep() updates **s** to point after the token, ready for the next call.h](hstrsep() updates }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 to point after the token, ready for the next call.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj@ubh)}(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. ;)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset (C function)c.memsethNtauh1hhjC`hhhNhNubj)}(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}(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 }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;hhhjMhMubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubj{)}(hmemseth]j)}(hmemseth]hmemset}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhjMhMubj)}(h(void *s, int c, 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)}(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&]noemphjjuh1jhjubj)}(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 josbc.memsetasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcounth]hcount}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jhjMhMhj4hhubj)}(hhh]h)}(h,Fill a region of memory with the given valueh]h,Fill a region of memory with the given value}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jhhhjC`hNhNubj)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjuubj )}(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.chMhjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``int c`` The byte to fill the area with 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.chMhj͑ubj2)}(hhh]h)}(hThe byte to fill the area withh]hThe byte to fill the area with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj͑ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hj h]h size_t count}(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.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 hjuubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjuubh)}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset16 (C function) c.memset16hNtauh1hhjC`hhhNhNubj)}(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}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM#ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubj{)}(hmemset16h]j)}(hmemset16h]hmemset16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM#ubj)}(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.memset16asbuh1hhjҒ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)}(h uint16_t vh](h)}(hhh]j)}(huint16_th]huint16_t}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]j c.memset16asbuh1hhj(ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hvh]hv}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]j c.memset16asbuh1hhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(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"Fill a memory area with a uint16_th]h"Fill a memory area with a uint16_t}(hj͓hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM#hjʓhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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``uint16_t *s`` Pointer to the start of the area. h](j)}(h``uint16_t *s``h]j)}(hjh]h uint16_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$hjubj2)}(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&]uh1hhj#hM$hj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hM$hjubj)}(h/``uint16_t v`` The value to fill the area with h](j)}(h``uint16_t v``h]j)}(hjGh]h uint16_t v}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM%hjAubj2)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM%hj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM%hjubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(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&hjzubj2)}(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&]uh1j1hjzubeh}(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&]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 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 }(hjєhhhNhNubj)}(h **count**h]hcount}(hjٔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjєubh> is the number of uint16_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.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset32 (C function) c.memset32hNtauh1hhjC`hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM9ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hM9ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM9ubj{)}(hmemset32h]j)}(hmemset32h]hmemset32}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hM9ubj)}(h'(uint32_t *s, uint32_t v, size_t count)h](j)}(h uint32_t *sh](h)}(hhh]j)}(huint32_th]huint32_t}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jf )}jY jBsb c.memset32asbuh1hhjXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(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 }(hjӕhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj]h]hv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(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 ]j{ c.memset32asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcounth]hcount}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hM9hjhhubj)}(hhh]h)}(h"Fill a memory area with a uint32_th]h"Fill a memory area with a uint32_t}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM9hjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(hjth]h Parameters}(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.chM=hjnubj )}(hhh](j)}(h2``uint32_t *s`` Pointer to the start of the area. h](j)}(h``uint32_t *s``h]j)}(hjh]h uint32_t *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)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubj)}(h/``uint32_t v`` The value to fill the area with h](j)}(h``uint32_t v``h]j)}(hj̖h]h uint32_t v}(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 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&]uh1j1hjƖubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(h/``size_t count`` The number of values to store 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.chM<hjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(h**Description**h]j)}(hj@h]h Description}(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.chM>hjnubh)}(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 }(hjVhhhNhNubj)}(h **count**h]hcount}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh> is the number of uint32_ts to store, not the number of bytes.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM=hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset64 (C function) c.memset64hNtauh1hhjC`hhhNhNubj)}(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&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMOubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMOubj{)}(hmemset64h]j)}(hmemset64h]hmemset64}(hjŗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMOubj)}(h'(uint64_t *s, uint64_t v, size_t count)h](j)}(h uint64_t *sh](h)}(hhh]j)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jǗsb c.memset64asbuh1hhjݗ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)}(h uint64_t vh](h)}(hhh]j)}(huint64_th]huint64_t}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]j c.memset64asbuh1hhj3ubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hj]h]hv}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٗubj)}(h size_t counth](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 ]j c.memset64asbuh1hhjzubj2)}(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&]noemphjjuh1jhjٗubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMOubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMOhjhhubj)}(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.chMOhjԘhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.chMShjubj )}(hhh](j)}(h2``uint64_t *s`` Pointer to the start of the area. h](j)}(h``uint64_t *s``h]j)}(hjh]h uint64_t *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.chMPhjubj2)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMPhj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hMPhjubj)}(h/``uint64_t v`` The value to fill the area with h](j)}(h``uint64_t v``h]j)}(hjQh]h uint64_t v}(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.chMQhjKubj2)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMQhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMQhjubj)}(h/``size_t count`` The number of values to store 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.chMRhjubj2)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjubeh}(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.chMThjubh)}(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}(hjhhhNhNubah}(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.chMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memcpy (C function)c.memcpyhNtauh1hhjC`hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMeubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj*hMeubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hMeubj{)}(hmemcpyh]j)}(hmemcpyh]hmemcpy}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj*hMeubj)}(h+(void *dest, const void *src, size_t count)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hdesth]hdest}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(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}(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)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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 reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jLsbc.memcpyasbuh1hhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcounth]hcount}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj*hMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj*hMehjhhubj)}(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.chMehj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhjC`hNhNubj)}(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)}(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.chMihj|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.chMfhjubj2)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(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.chMghjԛubj2)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hjԛubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubj)}(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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhhj ubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhhj)ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhhjubeh}(h]h ]h"]h$]h&]uh1j hj|ubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMjhj|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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMihj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memmove (C function) c.memmovehNtauh1hhjC`hhhNhNubj)}(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}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubj{)}(hmemmoveh]j)}(hmemmoveh]hmemmove}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM{ubj)}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjٜubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٜubj)}(hdesth]hdest}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٜubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj՜ubj)}(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}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj՜ubj)}(h size_t counth](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.memmoveasbuh1hhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(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"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.chM{hjԝhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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 *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.chM|hjubj2)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hj1hhhNhNubah}(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 void *src`` Where to copy from h](j)}(h``const void *src``h]j)}(hjQh]hconst void *src}(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)}(hWhere to copy fromh]hWhere to copy from}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM}hjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhM}hjubj)}(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&]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.}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memcmp (C function)c.memcmphNtauh1hhjC`hhhNhNubj)}(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}(hjhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hmemcmph]j)}(hmemcmph]hmemcmp}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h.(const void *cs, const void *ct, size_t count)h](j)}(hconst void *csh](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj )}(hvoidh]hvoid}(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)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hconst void *cth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjßhhhNhNubah}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcth]hct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(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 j?sbc.memcmpasbuh1hhjubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcounth]hcount}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hCompare two areas of memoryh]hCompare two areas of memory}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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 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}(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 void *ct`` Another area of memory h](j)}(h``const void *ct``h]j)}(hjh]hconst void *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 area of memoryh]hAnother area of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bcmp (C function)c.bcmphNtauh1hhjC`hhhNhNubj)}(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&]uh1jhjwhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhjhMubj{)}(hbcmph]j)}(hbcmph]hbcmp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjhMubj)}(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 }(hjšhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(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)}(hah]ha}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *bh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(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)}(hbh]hb}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.bcmpasbuh1hhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjphhubj)}(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.}(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&]uh1jhjphhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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 void *a`` pointer to first buffer. h](j)}(h``const void *a``h]j)}(hjh]h const void *a}(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.chMhjubj2)}(hhh]h)}(hpointer to first buffer.h]hpointer to first buffer.}(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 void *b`` pointer to second buffer. h](j)}(h``const void *b``h]j)}(hjGh]h const void *b}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjAubj2)}(hhh]h)}(hpointer to second buffer.h]hpointer to second buffer.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubj)}(h ``size_t len`` size of buffers. h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(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.chMhjzubj2)}(hhh]h)}(hsize of buffers.h]hsize of buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubh)}(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.}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memscan (C function) c.memscanhNtauh1hhjC`hhhNhNubj)}(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}(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{)}(hmemscanh]j)}(hmemscanh]hmemscan}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h (void *addr, int c, size_t size)h](j)}(h void *addrh](j )}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(haddrh]haddr}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(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&]noemphjjuh1jhjBubj)}(h size_t sizeh](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 j0sb c.memscanasbuh1hhjubj2)}(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&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h&Find a character in an area of memory.h]h&Find a 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhjC`hNhNubj)}(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)}(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.chMhj7ubj )}(hhh](j)}(h``void *addr`` The memory area h](j)}(h``void *addr``h]j)}(hj\h]h void *addr}(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.chMhjVubj2)}(hhh]h)}(hThe memory areah]hThe memory area}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubj)}(h!``int c`` The byte 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.chMhjubj2)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubj)}(h&``size_t size`` The size of the area. 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjȥubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj7ubh)}(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 }(hjhhhNhNubj)}(h**c**h]hc}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or 1 byte past the area if }(hjhhhNhNubj)}(h**c**h]hc}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not found}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strstr (C function)c.strstrhNtauh1hhjC`hhhNhNubj)}(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}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhMubj{)}(hstrstrh]j)}(hstrstrh]hstrstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnhhhjhMubj)}(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 }(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)}(hs1h]hs1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](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)}(hs2h]hs2}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjghhubj)}(hhh]h)}(h7Find the first substring in a ``NUL`` terminated stringh](hFind the first substring in a }(hjhhhNhNubj)}(h``NUL``h]hNUL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh terminated string}(hjhhhNhNubeh}(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&]uh1jhjghhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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.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 *s2`` The string to search forh](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.chMhj ubj2)}(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&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhjѧubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strnstr (C function) c.strnstrhNtauh1hhjC`hhhNhNubj)}(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}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjihhhP/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&]uh1j1hjihhhj{hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubj{)}(hstrnstrh]j)}(hstrnstrh]hstrnstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhj{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 }(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)}(hs1h]hs1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](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 }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hs2h]hs2}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.strnstrasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhj{hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj{hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1jhj{hMhjbhhubj)}(hhh]h)}(h3Find the first substring in a length-limited stringh]h3Find the first substring in a length-limited string}(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&]uh1jhjbhhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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}(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.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 for h](j)}(h``const char *s2``h]j)}(hjFh]hconst char *s2}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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 search forh]hThe string to search for}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjubj)}(h9``size_t len`` the maximum number of characters to searchh](j)}(h``size_t len``h]j)}(hjh]h size_t len}(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*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&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memchr (C function)c.memchrhNtauh1hhjC`hhhNhNubj)}(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.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjժhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjժhhhjhMubj{)}(hmemchrh]j)}(hmemchrh]hmemchr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjժhhhjhMubj)}(h (const void *s, int c, size_t n)h](j)}(h const void *sh](j)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjhhhNhNubah}(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)}(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 sbc.memchrasbuh1hhjubj2)}(h h]h }(hj֫hhhNhNubah}(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&]jjuh1jhjժhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjѪhhhjhMubah}(h]j̪ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjΪhhubj)}(hhh]h)}(h&Find a character in an area of memory.h]h&Find a character in an area of memory.}(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ΪhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhjC`hNhNubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(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!hj)ubj )}(hhh](j)}(h"``const void *s`` The memory area h](j)}(h``const void *s``h]j)}(hjNh]h const void *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.chMhjHubj2)}(hhh]h)}(hThe memory areah]hThe memory area}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(h!``int c`` The byte 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.chMhjubj2)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubj)}(h#``size_t n`` The size of the area. h](j)}(h ``size_t n``h]j)}(hjh]hsize_t n}(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.chM hjubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hj٬hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjլhM hj֬ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjլhM 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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM"hj)ubh)}(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 }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if }(hjhhhNhNubj)}(h**c**h]hc}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not found}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM!hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memchr_inv (C function) c.memchr_invhNtauh1hhjC`hhhNhNubj)}(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}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhP/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&]uh1j1hjrhhhjhM>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhM>ubj{)}(h memchr_invh]j)}(h memchr_invh]h memchr_inv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhM>ubj)}(h((const void *start, int c, size_t bytes)h](j)}(hconst void *starth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjͭhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(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)}(hstarth]hstart}(hjhhhNhNubah}(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 }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hc}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t bytesh](h)}(hhh]j)}(hsize_th]hsize_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.memchr_invasbuh1hhjMubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hbytesh]hbytes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhM>ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhM>hjkhhubj)}(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&]uh1jhjkhhhjhM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjĮjjĮjjjuh1jhhhjC`hNhNubj)}(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)}(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.chMBhjȮubj )}(hhh](j)}(h&``const void *start`` The memory area h](j)}(h``const void *start``h]j)}(hjh]hconst void *start}(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`` Find a character other than c 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)}(hFind a character other than ch]hFind a character other than c}(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'``size_t bytes`` The size of the area. h](j)}(h``size_t bytes``h]j)}(hj_h]h size_t bytes}(hjahhhNhNubah}(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.chMAhjYubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMAhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthMAhjubeh}(h]h ]h"]h$]h&]uh1j h jȮ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.chMChjȮubh)}(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}(hjʯhhhNhNubah}(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.chMBhjȮubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memdup_array_user (C function)c.memdup_array_userhNtauh1hhjC`hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj#hKubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hKubj{)}(hmemdup_array_userh]j)}(hmemdup_array_userh]hmemdup_array_user}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj#hKubj)}(h/(const void __user *src, size_t n, size_t size)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)}(hsize_t nh](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 jEsbc.memdup_array_userasbuh1hhjʰubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjʰubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʰubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(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 ]jc.memdup_array_userasbuh1hhjubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjFhhhNhNubah}(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)}(hduplicate array from user spaceh]hduplicate array from user space}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjmhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.hhKhjubj )}(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}(hjʱhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƱhKhjDZubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjƱhKhjubj)}(h-``size_t n`` number of array members to copy h](j)}(h ``size_t n``h]j)}(hjh]hsize_t n}(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)}(hnumber of array members to copyh]hnumber of array members to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h)``size_t size`` size of one array member 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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubj2)}(hhh]h)}(hsize of one array memberh]hsize of one array member}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubh)}(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().}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vmemdup_array_user (C function)c.vmemdup_array_userhNtauh1hhjC`hhhNhNubj)}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK+ubj{)}(hvmemdup_array_userh]j)}(hvmemdup_array_userh]hvmemdup_array_user}(hjѲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͲubah}(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}(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 }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jf )}jY jӲsbc.vmemdup_array_userasbuh1hhjXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(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.vmemdup_array_userasbuh1hhjubj2)}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK+hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.hhK/hjubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj?h]hconst void __user *src}(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)}(hsource address in user spaceh]hsource address in user space}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThK,hjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThK,hj6ubj)}(h-``size_t n`` number of array members to copy 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.hhK-hjrubj2)}(hhh]h)}(hnumber of array members to copyh]hnumber of array members to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK-hjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhK-hj6ubj)}(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}(hjʴhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƴhK.hjǴubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjƴhK.hj6ubeh}(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.hhK0hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strscpy (C macro) c.strscpyhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(hstrscpyh]j)}(hstrscpyh]j{)}(hstrscpyh]j)}(hj+h]hstrscpy}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(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)hhhjHhK\ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jhjHhK\hj&hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj&hhhjHhK\ubeh}(h]h ](jmacroeh"]h$]h&]jjjjajjajjjuh1jhhhjC`hNhNubh)}(h``strscpy (dst, src, ...)``h]j)}(hjgh]hstrscpy (dst, src, ...)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK^hjC`hhubj)}(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}(hjhhhNhNubah}(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&]uh1jhjhK\hjC`hhubj)}(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.hhK]hjubj2)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(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&``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.hhK^hjubj2)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string 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^hjubj)}(h.``...`` Size of destination buffer (optional) 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.hhK_hj'ubj2)}(hhh]h)}(h%Size of destination buffer (optional)h]h%Size of destination buffer (optional)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhK_hjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhK_hjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKahjubh)}(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}(hjhhhNhNubah}(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 }(hjöhhhNhNubj)}(h**...**h]h...}(hj˶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjöubh is only required when }(hjöhhhNhNubj)}(h**dst**h]hdst}(hjݶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjöubhC is not an array, or when the copy needs to be smaller than sizeof(}(hjöhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjöubh).}(hjöhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKehjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhhjubh)}(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 }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (not including the trailing }(hjhhhNhNubj)}(h``NUL``h]hNUL}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) or -E2BIG if }(hjhhhNhNubj)}(h**size**h]hsize}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0 or the copy from }(hjhhhNhNubj)}(h**src**h]hsrc}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh was truncated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strscpy_pad (C macro) c.strscpy_padhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h strscpy_padh]j)}(h strscpy_padh]j{)}(h strscpy_padh]j)}(hjh]h strscpy_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.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&]jjjjjjjjjuh1jhhhjC`hNhNubh)}(h``strscpy_pad (dst, src, ...)``h]j)}(hjķh]hstrscpy_pad (dst, src, ...)}(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.hhKhjC`hhubj)}(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.hhKhjڷubah}(h]h ]h"]h$]h&]uh1jhjhKhjC`hhubj)}(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)}(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.hhKhjubj )}(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.hhKhjubj2)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubj)}(h&``src`` Where to copy the string from h](j)}(h``src``h]j)}(hjQh]hsrc}(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.hhKhjKubj2)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjubj)}(h#``...`` Size of destination buffer h](j)}(h``...``h]j)}(hjh]h...}(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)}(hSize of destination bufferh]hSize of destination buffer}(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&]uh1jhjøubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubh)}(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}(hjhhhNhNubah}(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.hhKhjubh)}(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 }(hjhhhNhNubj)}(h``NUL``h]hNUL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubh)}(h **Return**h]j)}(hj.h]hReturn}(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.hhKhjubj)}(hhh](j)}(hEThe number of characters copied (not including the trailing ``NULs``)h]h)}(hjIh](hah"]h$]h&]uh1j1hjhhhjιhM ubj{)}(h mem_is_zeroh]j)}(h mem_is_zeroh]h mem_is_zero}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݹubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjιhM ubj)}(h(const void *s, size_t n)h](j)}(h const void *sh](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*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t nh](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 ]jf )}jY jsb c.mem_is_zeroasbuh1hhjUubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(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 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.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjιhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj˺jj˺jjjuh1jhhhjC`hNhNubj)}(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&]uh1jhjӺubah}(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)}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjubj2)}(hhh]h)}(hThe memory areah]hThe memory area}(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"``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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM"hj'ubj2)}(hhh]h)}(hThe size of the areah]hThe size of the area}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM"hjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM"hjubeh}(h]h ]h"]h$]h&]uh1j hjϺubh)}(h **Return**h]j)}(hjhh]hReturn}(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$hjϺubh)}(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$hjϺubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sysfs_match_string (C macro)c.sysfs_match_stringhNtauh1hhjC`hhhNhNubj)}(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.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjĻhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjĻhMJhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjĻhMJubeh}(h]h ](jmacroeh"]h$]h&]jjjjݻjjݻjjjuh1jhhhjC`hNhNubh)}(h``sysfs_match_string (_a, _s)``h]j)}(hjh]hsysfs_match_string (_a, _s)}(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.hhMLhjC`hhubj)}(h!matches given string in an array h]h)}(h matches given string in an arrayh]h matches given string in an array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhj hMJhjC`hhubj)}(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)}(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.hhMNhjubj )}(hhh](j)}(h``_a`` array of strings h](j)}(h``_a``h]j)}(hj7h]h_a}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMKhj1ubj2)}(hhh]h)}(harray of stringsh]harray of strings}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMKhjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMKhj.ubj)}(h``_s`` string to match with h](j)}(h``_s``h]j)}(hjph]h_s}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMLhjjubj2)}(hhh]h)}(hstring to match withh]hstring to match with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhj.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:39: ./include/linux/string.hhMNhjubh)}(hNHelper for __sysfs_match_string(). Calculates the size of **a** automatically.h](h:Helper for __sysfs_match_string(). Calculates the size of }(hjhhhNhNubj)}(h**a**h]ha}(hjɼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh automatically.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memzero_explicit (C function)c.memzero_explicithNtauh1hhjC`hhhNhNubj)}(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}(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{)}(hmemzero_explicith]j)}(hmemzero_explicith]hmemzero_explicit}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM_ubj)}(h(void *s, size_t count)h](j)}(hvoid *sh](j )}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjY)h]hs}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(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 j%sbc.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&]noemphjjuh1jhj7ubeh}(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=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&]uh1jhjhhhjhM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.hhMchjubj )}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMahjubj2)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMahj2ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMahjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjUh]h size_t count}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMbhjOubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMbhjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMbhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMdhjubh)}(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.hhMdhjubh)}(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.hhMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kbasename (C function) c.kbasenamehNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h)const char * kbasename (const char *path)h]j)}(h'const char *kbasename(const char *path)h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMsubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMsubj{)}(h kbasenameh]j)}(h kbasenameh]h kbasename}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMsubj)}(h(const char *path)h]j)}(hconst char *pathh](j)}(hjh]hconst}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj )}(hcharh]hchar}(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjܾhhhjhMsubah}(h]j׾ah ](jjeh"]h$]h&]jj)jhuh1jhjhMshjپ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.hhMshjhhubah}(h]h ]h"]h$]h&]uh1jhjپhhhjhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjϿjjϿjjjuh1jhhhjC`hNhNubj)}(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.hhMwhjӿubj )}(hhh]j)}(h8``const char *path`` path to extract the filename from. h](j)}(h``const char *path``h]j)}(hjh]hconst char *path}(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.hhMuhjubj2)}(hhh]h)}(h"path to extract the filename from.h]h"path to extract the filename from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMuhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMuhjubah}(h]h ]h"]h$]h&]uh1j hjӿubh)}(h **Return**h]j)}(hj3h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjӿubh)}(h^Pointer to the filename portion inside **path**. If no '/' exists, returns **path** unchanged.h](h'Pointer to the filename portion inside }(hjIhhhNhNubj)}(h**path**h]hpath}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh . If no ‘/’ exists, returns }(hjIhhhNhNubj)}(h**path**h]hpath}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh unchanged.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjӿubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strtomem_pad (C macro)c.strtomem_padhNtauh1hhjC`hhhNhNubj)}(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&]jjjjjjjjjuh1jhhhjC`hNhNubh)}(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.hhMhjC`hhubj)}(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&]uh1jhjhMhjC`hhubj)}(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)}(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:39: ./include/linux/string.hhMhjubj )}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j)}(h``dest``h]j)}(hj&h]hdest}(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.hhMhj ubj2)}(hhh]h)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(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)``src`` Pointer to NUL-terminated string 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.hhMhjYubj2)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubj)}(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&]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)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(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 }(hj hhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh& is not an argument, as the length of }(hj hhhNhNubj)}(h**dest**h]hdest}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh& must be discoverable by the compiler.}(hj hhhNhNubeh}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strtomem (C macro) c.strtomemhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(hstrtomemh]j)}(hstrtomemh]j{)}(hstrtomemh]j)}(hjWh]hstrtomem}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjthMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jhjthMhjRhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjRhhhjthMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubh)}(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.hhMhjC`hhubj)}(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&]uh1jhjhMhjC`hhubj)}(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.hhMhjubj )}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) 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 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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hj h]hsrc}(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 NUL-terminated stringh]h Pointer to NUL-terminated string}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(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().}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memtostr (C macro) c.memtostrhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(hmemtostrh]j)}(hmemtostrh]j{)}(hmemtostrh]j)}(hjh]hmemtostr}(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&]jjjjjjjjjuh1jhhhjC`hNhNubh)}(h``memtostr (dest, src)``h]j)}(hj h]hmemtostr (dest, src)}(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.hhMhjC`hhubj)}(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}(hj#hhhNhNubah}(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&]uh1jhj1hMhjC`hhubj)}(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)}(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.hhMhj8ubj )}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hj]h]hdest}(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.hhMhjWubj2)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(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&]uh1jhjhMhjTubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj8ubh)}(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.hhMhj8ubh)}(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.hhMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memtostr_pad (C macro)c.memtostr_padhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h memtostr_padh]j)}(h memtostr_padh]j{)}(h memtostr_padh]j)}(hjCh]h memtostr_pad}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhj`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&]jjjjyjjyjjjuh1jhhhjC`hNhNubh)}(h``memtostr_pad (dest, src)``h]j)}(hjh]hmemtostr_pad (dest, 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.hhMhjC`hhubj)}(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&]uh1jhjhMhjC`hhubj)}(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)}(hj h]hsrc}(hjhhhNhNubah}(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.hhMhjubj2)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(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&]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.}(hj]hhhNhNubah}(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 }(hjlhhhNhNubj)}(h**dest**h]hdest}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh and }(hjlhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh must be known at compile-time.}(hjlhhhNhNubeh}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset_after (C macro)c.memset_afterhNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h memset_afterh]j)}(h memset_afterh]j{)}(h memset_afterh]j)}(hjh]h memset_after}(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&]jjjjjjjjjuh1jhhhjC`hNhNubh)}(h!``memset_after (obj, v, member)``h]j)}(hjh]hmemset_after (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.hhMhjC`hhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhjC`hhubj)}(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)}(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.hhMhj$ubj )}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hjIh]hobj}(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.hhMhjCubj2)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubj)}(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.hhMhj|ubj2)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj@ubj)}(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&]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)}(h=This is good for clearing padding following the given member.h]h=This is good for clearing padding following the given member.}(hj hhhNhNubah}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset_startat (C macro)c.memset_startathNtauh1hhjC`hhhNhNubj)}(hhh](j)}(hmemset_startath]j)}(hmemset_startath]j{)}(hmemset_startath]j)}(hj5h]hmemset_startat}(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:39: ./include/linux/string.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjRhM ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhjRhM hj0hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj0hhhjRhM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjkjjkjjjuh1jhhhjC`hNhNubh)}(h#``memset_startat (obj, v, member)``h]j)}(hjqh]hmemset_startat (obj, v, member)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjC`hhubj)}(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.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hjC`hhubj)}(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.hhM hjubj2)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.hhM hjubj2)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``member`` struct member to start writing at h](j)}(h ``member``h]j)}(hj7h]hmember}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hj1ubj2)}(hhh]h)}(h!struct member to start writing ath]h!struct member to start writing at}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM hjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM hjubeh}(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:39: ./include/linux/string.hhMhjubh)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j str_has_prefix (C function)c.str_has_prefixhNtauh1hhjC`hhhNhNubj)}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hstr_has_prefixh]j)}(hjh]hstr_has_prefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hj hhhNhNubah}(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 }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstrh]hstr}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](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)}(hprefixh]hprefix}(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#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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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)}(h'``const char *str`` The string to test 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.hhMhjubj2)}(hhh]h)}(hThe string to testh]hThe string to test}(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@``const char *prefix`` The string to see if **str** starts with h](j)}(h``const char *prefix``h]j)}(hjNh]hconst char *prefix}(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.hhMhjHubj2)}(hhh]h)}(h(The string to see if **str** starts withh](hThe string to see if }(hjghhhNhNubj)}(h**str**h]hstr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh starts with}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhj 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:39: ./include/linux/string.hhMhjubj )}(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 hjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!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$hjubj)}(hhh](j)}(h4strlen(**prefix**) if **str** starts with **prefix**h]h)}(hjh](hstrlen(}(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) if }(hjhhhNhNubj)}(h**str**h]hstr}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh starts with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjChhhNhNubah}(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&]uh1jhjubj)}(h+0 if **str** does not start with **prefix**h]h)}(hj`h](h0 if }(hjbhhhNhNubj)}(h**str**h]hstr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh does not start with }(hjbhhhNhNubj)}(h **prefix**h]hprefix}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjWhM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strstarts (C function) c.strstartshNtauh1hhjC`hhhNhNubj)}(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.hhM0ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM0ubj{)}(h strstartsh]j)}(h strstartsh]h strstarts}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM0ubj)}(h%(const char *str, const char *prefix)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 }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstrh]hstr}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj )}(hcharh]hchar}(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)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM0hjhhubj)}(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}(hjhhhNhNubah}(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.hhM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.hhM4hjubj )}(hhh](j)}(h&``const char *str`` string to examine 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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM1hj"ubj2)}(hhh]h)}(hstring to examineh]hstring to examine}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM1hj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM1hjubj)}(h+``const char *prefix`` prefix to look for. h](j)}(h``const char *prefix``h]j)}(hjah]hconst char *prefix}(hjchhhNhNubah}(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.hhM2hj[ubj2)}(hhh]h)}(hprefix to look for.h]hprefix to look for.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM2hjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM2hjubeh}(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.hhM4hjubh)}(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.hhM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strends (C function) c.strendshNtauh1hhjC`hhhNhNubj)}(hhh](j)}(h3bool strends (const char *str, const char *suffix)h]j)}(h1bool strends(const char *str, const char *suffix)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{)}(hstrendsh]j)}(hstrendsh]hstrends}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM=ubj)}(h%(const char *str, const char *suffix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj )}(hcharh]hchar}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsuffixh]hsuffix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(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 string ends with another string.h]h+Check if a string ends with another string.}(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&]uh1jhjhhhjhM=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhjC`hNhNubj)}(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)}(hj.h]h Parameters}(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.hhMAhj(ubj )}(hhh](j)}(hG``const char *str`` NULL-terminated string to check against **suffix** h](j)}(h``const char *str``h]j)}(hjMh]hconst char *str}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM>hjGubj2)}(hhh]h)}(h2NULL-terminated string to check against **suffix**h](h(NULL-terminated string to check against }(hjfhhhNhNubj)}(h **suffix**h]hsuffix}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1hhjbhM>hjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM>hjDubj)}(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?hjDubeh}(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.hhMAhj(ubh)}(h?True if **str** ends with **suffix**. False in all other cases.h](hTrue if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ends with }(hjhhhNhNubj)}(h **suffix**h]hsuffix}(hj hhhNhNubah}(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.hhMAhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrdup (C function) c.kstrduphNtauh1hhjC`hhhNhNubj)}(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}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjThKKubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjThKKubj{)}(hkstrduph]j)}(hkstrduph]hkstrdup}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjThKKubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jvsb c.kstrdupasbuh1hhjubj2)}(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&]jjuh1jhjBhhhjThKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThKKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhjThKKhj;hhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKhjDhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhjC`hNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjcubj )}(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)}(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.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}(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 hjcubh)}(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.chKOhjcubh)}(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}(hj,hhhNhNubah}(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.chKOhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrdup_const (C function)c.kstrdup_consthNtauh1hhjC`hhhNhNubj)}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjrhKYubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjahhhjrhKYubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjrhKYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjrhKYubj{)}(h kstrdup_consth]j)}(h kstrdup_consth]h kstrdup_const}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjrhKYubj)}(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&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj+modnameN classnameNj] j` )}jc ]jf )}jY jsbc.kstrdup_constasbuh1hhj"ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hgfph]hgfp}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjrhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjrhKYubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjrhKYhjZhhubj)}(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.chKYhj~hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjrhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.chKZhjubj2)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory 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.chK[hjubj2)}(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&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hj6h]hNote}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(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().}(hjLhhhNhNubah}(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)}(hj]h]hReturn}(hj_hhhNhNubah}(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.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.}(hjshhhNhNubah}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrndup (C function) c.kstrnduphNtauh1hhjC`hhhNhNubj)}(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*}(hjhhhNhNubah}(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}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t maxh](h)}(hhh]j)}(hsize_th]hsize_t}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.kstrndupasbuh1hhjDubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hmaxh]hmax}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(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 ]jg c.kstrndupasbuh1hhjubj2)}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(hj h]h Parameters}(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.chKqhjubj )}(hhh](j)}(h*``const char *s`` the string to duplicate 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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKnhj&ubj2)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKnhjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKnhj#ubj)}(h5``size_t max`` read at most **max** chars from **s** h](j)}(h``size_t max``h]j)}(hjeh]h size_t max}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKohj_ubj2)}(hhh]h)}(h%read at most **max** chars from **s**h](h read at most }(hj~hhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh chars from }(hj~hhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1hhjzhKohj{ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKohj#ubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory 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.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}(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 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.chKrhjubh)}(h7Use kmemdup_nul() instead if the size is known exactly.h]h7Use kmemdup_nul() instead if the size is known exactly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjubh)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(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.chKthjubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hj6hhhNhNubj)}(h**s**h]hs}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh or }(hj6hhhNhNubj)}(h``NULL``h]hNULL}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh in case of error}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kmemdup (C function) c.kmemduphNtauh1hhjC`hhhNhNubj)}(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 }(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj5modnameN classnameNj] j` )}jc ]jf )}jY jsb c.kmemdupasbuh1hhj,ubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hlenh]hlen}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jO c.kmemdupasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK}ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhjhK}hj~hhubj)}(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&]uh1jhj~hhhjhK}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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 void *src`` memory region to duplicate h](j)}(h``const void *src``h]j)}(hjh]hconst void *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.chKhjubj2)}(hhh]h)}(hmemory region to duplicateh]hmemory region to duplicate}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubj)}(h$``size_t len`` memory region length h](j)}(h``size_t len``h]j)}(hjMh]h size_t len}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjGubj2)}(hhh]h)}(hmemory region lengthh]hmemory region length}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhj ubj)}(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&]uh1jhjhKhj ubeh}(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)}(hsnewly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](hnewly allocated copy of }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubahJ}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhH in case of error, result is physically contiguous. Use kfree() to free.}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kmemdup_nul (C function) c.kmemdup_nulhNtauh1hhjC`hhhNhNubj)}(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}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&hhhj8hKubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj8hKubj{)}(h kmemdup_nulh]j)}(h kmemdup_nulh]h kmemdup_nul}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj8hKubj)}(h&(const char *s, size_t len, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(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 jZsb c.kmemdup_nulasbuh1hhjubj2)}(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&]noemphjjuh1jhjlubj)}(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.kmemdup_nulasbuh1hhjubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfph]hgfp}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj8hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj8hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj8hKhjhhubj)}(hhh]h)}(h5Create a NUL-terminated string from unterminated datah]h5Create a NUL-terminated string from unterminated data}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhj8hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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)}(hThe size of the datah]hThe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj 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;hKhj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjah]hReturn}(hjchhhNhNubah}(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.chKhjubh)}(hOnewly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](hnewly allocated copy of }(hjwhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh with NUL-termination or }(hjwhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh in case of error}(hjwhhhNhNubeh}(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&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memdup_user (C function) c.memdup_userhNtauh1hhjC`hhhNhNubj)}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj{)}(h memdup_userh]j)}(h memdup_userh]h memdup_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(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 }(hj!hhhNhNubah}(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 }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjjhhhNhNubah}(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 jsb 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&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjh]hconst void __user *src}(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.chKhjubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj5ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj4hKhjubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjXh]h size_t len}(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)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjnubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjubeh}(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)}(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.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vmemdup_user (C function)c.vmemdup_userhNtauh1hhjC`hhhNhNubj)}(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}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj{)}(h vmemdup_userh]j)}(h vmemdup_userh]h vmemdup_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh__user}(hjhhhNhNubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjxhhhNhNubah}(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 reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.vmemdup_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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(hjh]h Parameters}(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.chKhjubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj-h]hconst void __user *src}(hj/hhhNhNubah}(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.chKhj'ubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhj$ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjfh]h size_t len}(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.chKhj`ubj2)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(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 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)}(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.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strndup_user (C function)c.strndup_userhNtauh1hhjC`hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(h strndup_userh]j)}(h strndup_userh]h strndup_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(const char __user *s, long n)h](j)}(hconst char __user *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,ubh__user}(hj,hhhNhNubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hjyhhhNhNubah}(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)}(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&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h,duplicate an existing string from user spaceh]h,duplicate an existing string from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(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.chM hjubj )}(hhh](j)}(h1``const char __user *s`` The string to duplicate h](j)}(h``const char __user *s``h]j)}(hj$h]hconst char __user *s}(hj&hhhNhNubah}(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.chMhjubj2)}(hhh]h)}(hThe string to duplicateh]hThe string to duplicate}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(hH``long n`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h ``long n``h]j)}(hj]h]hlong n}(hj_hhhNhNubah}(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.chMhjWubj2)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memdup_user_nul (C function)c.memdup_user_nulhNtauh1hhjC`hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM$ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM$ubj{)}(hmemdup_user_nulh]j)}(hmemdup_user_nulh]hmemdup_user_nul}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM$ubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubh__user}(hj5hhhNhNubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(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 jsbc.memdup_user_nulasbuh1hhjubj2)}(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&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM$hjhhubj)}(hhh]h)}(h9duplicate memory region from user space and NUL-terminateh]h9duplicate memory region from user space and NUL-terminate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjC`hNhNubj)}(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)}(hj%h]h Parameters}(hj'hhhNhNubah}(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.chM(hjubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjDh]hconst void __user *src}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM&hj>ubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM&hjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM&hj;ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hj}h]h size_t len}(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.chM'hjwubj2)}(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&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhM'hj;ubeh}(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.chM)hjubh)}(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)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjC`hhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK/ubh)}(h7The Linux kernel provides more basic utility functions.h]h7The Linux kernel provides more basic utility functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjhhubh)}(hhh](h)}(hBit Operationsh]hBit Operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j set_bit (C function) c.set_bithNtauh1hhjhhhNhNubj)}(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}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhjKhKubj{)}(hset_bith]j)}(hset_bith]hset_bit}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjKhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(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 }(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&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjKhKubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jhjKhKhj2hhubj)}(hhh]h)}(hAtomically set a bit in memoryh]hAtomically set a bit in memory}(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.hhKhj7hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhjhNhNubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjVubj )}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjuubj2)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhKhjrubj)}(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&]uh1jhjhKhjrubeh}(h]h ]h"]h$]h&]uh1j hjVubh)}(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:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjVubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjVubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hjhhhNhNubj)}(h**nr**h]hnr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clear_bit (C function) c.clear_bithNtauh1hhjhhhNhNubj)}(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}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!ubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhjchK!ubj{)}(h clear_bith]j)}(h clear_bith]h clear_bit}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjchK!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}(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)}(haddrh]haddr}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjchK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjchK!ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jhjchK!hjJhhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!hjNhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjchK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jhhhjhNhNubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjmubj )}(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}(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 hjmubh)}(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:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjmubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(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$hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j change_bit (C function) c.change_bithNtauh1hhjhhhNhNubj)}(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}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.ubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGhhhjYhK.ubj{)}(h change_bith]j)}(h change_bith]h change_bit}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjYhK.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}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhK.ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjYhK.hj@hhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(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.hjDhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhjhNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjcubj )}(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)}(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.hhK0hjubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubeh}(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&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjcubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK1hjcubh)}(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}(hj)hhhNhNubah}(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.hhK3hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j test_and_set_bit (C function)c.test_and_set_bithNtauh1hhjhhhNhNubj)}(hhh](j)}(h=bool test_and_set_bit (long nr, volatile unsigned long *addr)h]j)}(hubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhjohK>ubj{)}(htest_and_set_bith]j)}(htest_and_set_bith]htest_and_set_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhjohK>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}(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)}(haddrh]haddr}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjohK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjohK>ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjohK>hjWhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(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>hjZhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjohK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhjhNhNubj)}(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&]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.hhKBhjyubj )}(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)}(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 count fromh]hAddress to count from}(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 hjyubh)}(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:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjyubh)}(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.hhKAhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j test_and_clear_bit (C function)c.test_and_clear_bithNtauh1hhjhhhNhNubj)}(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}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjShhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjShhhjdhKLubj{)}(htest_and_clear_bith]j)}(htest_and_clear_bith]htest_and_clear_bit}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhjdhKLubj)}(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}(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)}(haddrh]haddr}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjdhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjdhKLubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhjdhKLhjLhhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLhjOhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjdhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjnubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubeh}(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&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjnubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKOhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  test_and_change_bit (C function)c.test_and_change_bithNtauh1hhjhhhNhNubj)}(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}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHhhhjYhKZubj{)}(htest_and_change_bith]j)}(htest_and_change_bith]htest_and_change_bit}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjYhKZubj)}(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}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjYhKZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjYhKZubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jhjYhKZhjAhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZhjDhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjYhKZubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhjhNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjcubj )}(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)}(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 count fromh]hAddress to count from}(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 hjcubh)}(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:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjcubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(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]hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ___set_bit (C function) c.___set_bithNtauh1hhjhhhNhNubj)}(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}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=hhhjOhKubj{)}(h ___set_bith]j)}(h ___set_bith]h ___set_bit}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhhjOhKubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(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}(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*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhKubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jhjOhKhj6hhubj)}(hhh]h)}(hSet a bit in memoryh]hSet a bit in memory}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjVhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jhhhjhNhNubj)}(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)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjuubj )}(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}(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)}(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 hjuubh)}(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:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjuubh)}(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.}(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.hhKhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ___clear_bit (C function)c.___clear_bithNtauh1hhjhhhNhNubj)}(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}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!ubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhjahK!ubj{)}(h ___clear_bith]j)}(h ___clear_bith]h ___clear_bit}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjahK!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}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjahK!ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjahK!hjHhhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjkhhhNhNubah}(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!hjhhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(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&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK#hjubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(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&]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)}(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.}(hj6hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ___change_bit (C function)c.___change_bithNtauh1hhjhhhNhNubj)}(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}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjahhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjshK1ubj{)}(h ___change_bith]j)}(h ___change_bith]h ___change_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjshK1ubj)}(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 }(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}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj8hhhNhNubah}(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&]jjuh1jhjahhhjshK1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjshK1ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjshK1hjZhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(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.hhK1hjzhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshK1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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.hhK2hjubj2)}(hhh]h)}(hthe bit to changeh]hthe bit to change}(hjhhhNhNubah}(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)}(hjh]hvolatile 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.hhK3hjubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK3hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hK3hjubeh}(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: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.}(hjHhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  ___test_and_set_bit (C function)c.___test_and_set_bithNtauh1hhjhhhNhNubj)}(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}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjshhhx/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&]uh1j1hjshhhjhKYubj{)}(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&]jjuh1jzhjshhhjhKYubj)}(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 }(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}(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)}(haddrh]haddr}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhKYubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjhKYhjlhhubj)}(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&]uh1jhjlhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(h7``volatile unsigned long *addr`` Address to count 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.hhK[hjubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj!hhhNhNubah}(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)}(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: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.}(hjYhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "___test_and_clear_bit (C function)c.___test_and_clear_bithNtauh1hhjhhhNhNubj)}(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&]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}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKhubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1jhjhKhhj}hhubj)}(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&]uh1jhj}hhhjhKhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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.hhKlhjubj )}(hhh](j)}(h"``unsigned long nr`` 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.hhKihjubj2)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKihjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKihjubj)}(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&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKjhjubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKjhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hKjhjubeh}(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&]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.}(hjjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #___test_and_change_bit (C function)c.___test_and_change_bithNtauh1hhjhhhNhNubj)}(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}(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}(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 }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj )}(hlongh]hlong}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hjh]h*}(hjyhhhNhNubah}(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&]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&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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.hhKxhjubj2)}(hhh]h)}(h Bit to changeh]h Bit to change}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(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&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKyhj$ubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKyhj@ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKyhjubeh}(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: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.}(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.hhKzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j _test_bit (C function) c._test_bithNtauh1hhjhhhNhNubj)}(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}(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)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(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)}(hDetermine whether a bit is seth]hDetermine whether a bit is set}(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&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](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`` bit number to test 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)}(hbit number to testh]hbit number to test}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjVh]h"const volatile unsigned long *addr}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjPubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(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.hhKhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j _test_bit_acquire (C function)c._test_bit_acquirehNtauh1hhjhhhNhNubj)}(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 }(hjhhhNhNubah}(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}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj )}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(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)}(h7Determine, with acquire semantics, whether a bit is seth]h7Determine, with acquire semantics, whether a bit is set}(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&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](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`` bit number to test 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.hhKhjubj2)}(hhh]h)}(hbit number to testh]hbit number to test}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hj\h]h"const volatile unsigned long *addr}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjVubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clear_bit_unlock (C function)c.clear_bit_unlockhNtauh1hhjhhhNhNubj)}(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}(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)}(hjh]hvolatile}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj )}(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)}(hjh]h*}(hj{hhhNhNubah}(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&]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&]jjjjjjjjjuh1jhhhjhNhNubj)}(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}(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.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&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjubj2)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(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)}(hj,h]hvolatile unsigned long *addr}(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.hhKhj&ubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjubeh}(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&]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.}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __clear_bit_unlock (C function)c.__clear_bit_unlockhNtauh1hhjhhhNhNubj)}(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}(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&]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&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.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)}(hj"h]hvolatile unsigned long *addr}(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.hhK!hjubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting 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&]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.}(hjshhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "test_and_set_bit_lock (C function)c.test_and_set_bit_lockhNtauh1hhjhhhNhNubj)}(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}(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}(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&]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&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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.hhK3hjubj )}(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&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK0hjubj2)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubj)}(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&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK1hjubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hK1hj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hK1hjubeh}(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&]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.}(hjhhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (xor_unlock_is_negative_byte (C function)c.xor_unlock_is_negative_bytehNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(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}(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)}(hmaskh]hmask}(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 }(hj1 hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hunsignedh]hunsigned}(hj? hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjM 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)}(hjh]h*}(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(haddrh]haddr}(hj hhhNhNubah}(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)}(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 jjjuh1jhhhjhNhNubj)}(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&]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.hhK@hj ubj2)}(hhh]h)}(h+Change the bits which are set in this mask.h]h+Change the bits which are set in this mask.}(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@hj 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)}(hj( h]hvolatile unsigned long *addr}(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.hhKAhj" ubj2)}(hhh]h)}(h6The address of the word containing the byte to change.h]h6The address of the word containing the byte to change.}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj= hKAhj> ubah}(h]h ]h"]h$]h&]uh1j1hj" ubeh}(h]h ]h"]h$]h&]uh1jhj= hKAhj ubeh}(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&]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 }(hjy hhhNhNubj)}(h**addr**h]haddr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy 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.}(hjy 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&]uh1jhjhhhNhNubeh}(h]bit-operationsah ]h"]bit operationsah$]h&]uh1hhjhhhhhK4ubh)}(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.}(hj 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.}(hj 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:}(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)}(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.}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK$hj hhubj7C)}(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&]jjuh1j6ChZ/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.}(hjJ 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.:}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKfhj hhubj7C)}(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)}hjh sbah}(h]h ]h"]h$]h&]jjuh1j6ChZ/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}(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&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hj+ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj' ubj2)}(h h]h }(hj8 hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj' ubj )}(hunsignedh]hunsigned}(hjF hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj' ubj2)}(h h]h }(hjT 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)}(hjh]h*}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj' ubj)}(hsrch]hsrc}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj' 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 }(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 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKShj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7 jj7 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)}(hjA h]h Parameters}(hjC 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}(hjb 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.chKThjZ ubj2)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju hKThjv ubah}(h]h ]h"]h$]h&]uh1j1hjZ ubeh}(h]h ]h"]h$]h&]uh1jhju hKThjW 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 hKUhjW ubj)}(h+``unsigned shift`` shift by this many bits h](j)}(h``unsigned shift``h]j)}(hj h]hunsigned shift}(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.chKVhj ubj2)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKVhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKVhjW ubj)}(h(``unsigned nbits`` bitmap size, in bits h](j)}(h``unsigned nbits``h]j)}(hj h]hunsigned 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.chKWhjubj2)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKWhj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKWhjW ubeh}(h]h ]h"]h$]h&]uh1j hj; ubh)}(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: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.}(hj\hhhNhNubah}(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 }(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)}(hdsth]hdst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj )}(hlongh]hlong}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnbitsh]hnbits}(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)jhuh1jhjhKhjhhubj)}(hhh]h)}(h*logical left shift of the bits in a bitmaph]h*logical left shift of the bits in a bitmap}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhj 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)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjnubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h/``unsigned int shift`` shift by this many bits h](j)}(h``unsigned int shift``h]j)}(hjh]hunsigned int 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.chKhjubj2)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h,``unsigned int nbits`` bitmap size, in bits 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.chKhj8ubj2)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShKhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShKhjubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(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.chKhjnubh)}(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.chKhjnubeh}(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}(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_cuth]j)}(h bitmap_cuth]h bitmap_cut}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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}(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)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj )}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj )}(hlongh]hlong}(hjhhhNhNubah}(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)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int firsth](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)}(hfirsth]hfirst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cuth](j )}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcuth]hcut}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nbitsh](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)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(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)}(hah"]h$]h&]uh1j1hjhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hbitmap_find_next_zero_area_offh]j)}(hbitmap_find_next_zero_area_offh]hbitmap_find_next_zero_area_off}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj5hhhNhNubah}(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*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hmaph]hmap}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubj)}(hunsigned long starth](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)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj )}(hinth]hint}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hnrh]hnr}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(h align_maskh]h align_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long align_offseth](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_offseth]h align_offset}(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#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hj+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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jhhhj hNhNubj)}(hXF**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.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjGubj )}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjlh]hunsigned long *map}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjfubj2)}(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&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hjh]hunsigned long start}(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 bitnumber to start searching ath]h#The bitnumber to start searching at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hjh]hunsigned int nr}(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 number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjcubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjPh]hunsigned long align_mask}(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.chMhjJubj2)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjcubj)}(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&]uh1jhjhMhjcubeh}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjGubh)}(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 }(hjhhhNhNubj)}(h**align_mask**h]h align_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubht should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus }(hjhhhNhNubj)}(h**align_offset**h]h align_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is multiple of that power of 2.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjGubeh}(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}(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{)}(h bitmap_remaph]j)}(h bitmap_remaph]h bitmap_remap}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj;hMubj)}(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}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj )}(hlongh]hlong}(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)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj )}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj )}(hlongh]hlong}(hjxhhhNhNubah}(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)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hconst unsigned long *newh](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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj )}(hinth]hint}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hnbitsh]hnbits}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(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)}(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&]uh1jhj"hhhj;hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj 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)}(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)}(h'``unsigned long *dst`` remapped result 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.chMhjubj2)}(hhh]h)}(hremapped resulth]hremapped result}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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)}(hsubset to be remappedh]hsubset to be remapped}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hjHh]hconst unsigned long *old}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjBubj2)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubj)}(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.chMhj{ubj2)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps 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.chMhjubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(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 }(hj hhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh and }(hj hhhNhNubj)}(h**new**h]hnew}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hj hhhNhNubj)}(h**old**h]hold}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh" is mapped to the n-th set bit in }(hj hhhNhNubj)}(h**new**h]hnew}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hj hhhNhNubj)}(h**new**h]hnew}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is less than the weight of }(hj hhhNhNubj)}(h**old**h]hold}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh*, map the position of the n-th set bit in }(hj hhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh( to the position of the m-th set bit in }(hj hhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, where m == n % w.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(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 }(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 bitmaps are empty, or if }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 point to the same location, then this routine copies }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**dst**h]hdst}(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:78: ./lib/bitmap.chMhjubh)}(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.chMhjubh)}(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 }(hjF hhhNhNubj)}(h**src**h]hsrc}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubh, placing the result in }(hjF hhhNhNubj)}(h**dst**h]hdst}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubh&, clearing any bits previously set in }(hjF hhhNhNubj)}(h**dst**h]hdst}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubh.}(hjF hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(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}(hj 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.chMhjubeh}(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 }(hjM!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&]noemphjjuh1jhj7!ubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hjt!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjp!ubj )}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjp!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjp!ubj )}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjp!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)}(holdh]hold}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7!ubj)}(hconst unsigned long *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 )}(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 }(hj2"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hj@"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hnewh]hnew}(hjM"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7!ubj)}(hint bitsh](j )}(hinth]hint}(hjf"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjb"ubj2)}(h h]h }(hjt"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjb"ubj)}(hbitsh]hbits}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7!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)}(h6Apply map defined by a pair of bitmaps to a single bith]h6Apply map defined by a pair of bitmaps to a single bit}(hj"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&]jjjj"jj"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)}(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.chMhj"ubj )}(hhh](j)}(h)``int oldbit`` bit position to be mapped h](j)}(h``int oldbit``h]j)}(hj"h]h int oldbit}(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)}(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&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj"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;#hMhj"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}(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.chMhjY#ubj2)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjx#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt#hMhju#ubah}(h]h ]h"]h$]h&]uh1j1hjY#ubeh}(h]h ]h"]h$]h&]uh1jhjt#hMhj"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}(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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"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 }(hj#hhhNhNubj)}(h**old**h]hold}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh and }(hj#hhhNhNubj)}(h**new**h]hnew}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hj#hhhNhNubj)}(h**old**h]hold}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh" is mapped to the n-th set bit in }(hj#hhhNhNubj)}(h**new**h]hnew}(hj'$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hj#hhhNhNubj)}(h**new**h]hnew}(hj9$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh is less than the weight of }(hj#hhhNhNubj)}(h**old**h]hold}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh*, map the position of the n-th set bit in }(hj#hhhNhNubj)}(h**old**h]hold}(hj]$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh( to the position of the m-th set bit in }(hj#hhhNhNubj)}(h**new**h]hnew}(hjo$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh, where m == n % w.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"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#hj"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}(hj$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&hj"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 }(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 **oldbit**h]holdbit}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh$ is 5, then this routine returns 13.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM)hj"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.chMubj2)}(h h]h }(hj>%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+%hhhj=%hMubj{)}(hbitmap_from_arr32h]j)}(hbitmap_from_arr32h]hbitmap_from_arr32}(hjP%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+%hhhj=%hMubj)}(h;(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjl%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjh%ubj2)}(h h]h }(hjz%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjh%ubj )}(hlongh]hlong}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjh%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjh%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh%ubj)}(hbitmaph]hbitmap}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd%ubj)}(hconst u32 *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 ]jf )}jY jR%sbc.bitmap_from_arr32asbuh1hhj%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&]noemphjjuh1jhjd%ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj<&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8&ubj2)}(h h]h }(hjJ&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8&ubj )}(hinth]hint}(hjX&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8&ubj2)}(h h]h }(hjf&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8&ubj)}(hnbitsh]hnbits}(hjt&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd%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)}(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.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj$%hhhj=%hMubeh}(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)}(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)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj&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&hMhj&ubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhj&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}(hj1'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)}(hjQ'h]hunsigned int nbits}(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.chM"hjK'ubj2)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjj'hhhNhNubj)}(h **bitmap**h]hbitmap}(hjr'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj'ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM!hjg'ubah}(h]h ]h"]h$]h&]uh1j1hjK'ubeh}(h]h ]h"]h$]h&]uh1jhjf'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_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&]uh1jhj'hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM5ubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj'hM5ubj{)}(hbitmap_to_arr32h]j)}(hbitmap_to_arr32h]hbitmap_to_arr32}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj'hM5ubj)}(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&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj'modnameN classnameNj] j` )}jc ]jf )}jY j'sbc.bitmap_to_arr32asbuh1hhj'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}(hj4(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hconst unsigned long *bitmaph](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 )}(hunsignedh]hunsigned}(hjh(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjI(ubj2)}(h h]h }(hjv(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjI(ubj )}(hlongh]hlong}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjI(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)}(hbitmaph]hbitmap}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI(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'hM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj'hM5ubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhj'hM5hj'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.chM5hj%)hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hM5ubeh}(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)}(hjJ)h]h Parameters}(hjL)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH)ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM9hjD)ubj )}(hhh](j)}(h@``u32 *buf`` array of u32 (in host byte order), the dest bitmap h](j)}(h ``u32 *buf``h]j)}(hji)h]hu32 *buf}(hjk)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM6hjc)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~)hM6hj)ubah}(h]h ]h"]h$]h&]uh1j1hjc)ubeh}(h]h ]h"]h$]h&]uh1jhj~)hM6hj`)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.chM7hj)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)hM7hj)ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM7hj`)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.chM9hj)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.chM8hj)ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM9hj`)ubeh}(h]h ]h"]h$]h&]uh1j hjD)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}(hjC*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?*hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMNubj2)}(h h]h }(hjR*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?*hhhjQ*hMNubj{)}(hbitmap_from_arr64h]j)}(hbitmap_from_arr64h]hbitmap_from_arr64}(hjd*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?*hhhjQ*hMNubj)}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx*ubj)}(hconst u64 *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)}(hu64h]hu64}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jf )}jY jf*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}(hj7+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx*ubj)}(hunsigned int nbitsh](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}(hjl+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjL+ubj2)}(h h]h }(hjz+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjL+ubj)}(hnbitsh]hnbits}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx*ubeh}(h]h ]h"]h$]h&]jjuh1jhj?*hhhjQ*hMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;*hhhjQ*hMNubah}(h]j6*ah ](jjeh"]h$]h&]jj)jhuh1jhjQ*hMNhj8*hhubj)}(hhh]h)}(h0copy the contents of u64 array of bits to bitmaph]h0copy the contents of u64 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.chMNhj+hhubah}(h]h ]h"]h$]h&]uh1jhj8*hhhjQ*hMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+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)}(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.chMRhj+ubj )}(hhh](j)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMOhj+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,hMOhj ,ubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhj,hMOhj+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.chMPhj&,ubj2)}(hhh]h)}(h4array of u64 (in host byte order), the source bitmaph]h4array of u64 (in host byte order), the source bitmap}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA,hMPhjB,ubah}(h]h ]h"]h$]h&]uh1j1hj&,ubeh}(h]h ]h"]h$]h&]uh1jhjA,hMPhj+ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hje,h]hunsigned int nbits}(hjg,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMRhj_,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.chMQhj{,ubah}(h]h ]h"]h$]h&]uh1j1hj_,ubeh}(h]h ]h"]h$]h&]uh1jhjz,hMRhj+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_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}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMlubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,hhhj,hMlubj{)}(hbitmap_to_arr64h]j)}(hbitmap_to_arr64h]hbitmap_to_arr64}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj,hMlubj)}(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 j,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}(hjH-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hja-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]-ubj2)}(h h]h }(hjn-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}(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,hMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hMlubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jhj,hMlhj,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.chMlhj9.hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjT.jjT.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.chMphjX.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.chMmhjw.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.hMmhj.ubah}(h]h ]h"]h$]h&]uh1j1hjw.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMmhjt.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.chMnhj.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.hMnhj.ubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMnhjt.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.chMphj.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.chMohj/ubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhj/hMphjt.ubeh}(h]h ]h"]h$]h&]uh1j hjX.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_pos_to_ord (C function)c.bitmap_pos_to_ordhNtauh1hhj hhhNhNubj)}(hhh](j)}(hVint bitmap_pos_to_ord (const unsigned long *buf, unsigned int pos, unsigned int nbits)h]j)}(hUint bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j )}(hinth]hint}(hjW/hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjS/hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj2)}(h h]h }(hjf/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjS/hhhje/hMubj{)}(hbitmap_pos_to_ordh]j)}(hbitmap_pos_to_ordh]hbitmap_pos_to_ord}(hjx/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjS/hhhje/hMubj)}(h@(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j)}(hconst unsigned long *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 )}(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)}(hbufh]hbuf}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj 0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 0ubj )}(hinth]hint}(hj)0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 0ubj2)}(h h]h }(hj70hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 0ubj)}(hposh]hpos}(hjE0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj^0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZ0ubj2)}(h h]h }(hjl0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZ0ubj )}(hinth]hint}(hjz0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZ0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZ0ubj)}(hnbitsh]hnbits}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjS/hhhje/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjO/hhhje/hMubah}(h]jJ/ah ](jjeh"]h$]h&]jj)jhuh1jhje/hMhjL/hhubj)}(hhh]h)}(h3find ordinal of set bit at given position in bitmaph]h3find ordinal of set bit at given position in bitmap}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjL/hhhje/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhj 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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubj )}(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&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubj2)}(hhh]h)}(hpointer to a bitmaph]hpointer to a bitmap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubj)}(hJ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) h](j)}(h``unsigned int pos``h]j)}(hj:1h]hunsigned int pos}(hj<1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj81ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj41ubj2)}(hhh]h)}(h4a bit position in **buf** (0 <= **pos** < **nbits**)h](ha bit position in }(hjS1hhhNhNubj)}(h**buf**h]hbuf}(hj[1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS1ubh (0 <= }(hjS1hhhNhNubj)}(h**pos**h]hpos}(hjm1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS1ubh < }(hjS1hhhNhNubj)}(h **nbits**h]hnbits}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS1ubh)}(hjS1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjO1hMhjP1ubah}(h]h ]h"]h$]h&]uh1j1hj41ubeh}(h]h ]h"]h$]h&]uh1jhjO1hMhj0ubj)}(h@``unsigned int nbits`` number of valid bit positions in **buf** h](j)}(h``unsigned int nbits``h]j)}(hj1h]hunsigned int nbits}(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)}(h(number of valid bit positions in **buf**h](h!number of valid bit positions in }(hj1hhhNhNubj)}(h**buf**h]hbuf}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubeh}(h]h ]h"]h$]h&]uh1j hj0ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubh)}(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}(hj"2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh (of length }(hj2hhhNhNubj)}(h **nbits**h]hnbits}(hj42hhhNhNubah}(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}(hjF2hhhNhNubah}(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.chMhj0ubh)}(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 }(hj_2hhhNhNubj)}(h**buf**h]hbuf}(hjg2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubh, then }(hj_2hhhNhNubj)}(h**pos**h]hpos}(hjy2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubhL values 4 through 7 will get mapped to 0 through 3, respectively, and other }(hj_2hhhNhNubj)}(h**pos**h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubh% values will get mapped to -1. When }(hj_2hhhNhNubj)}(h**pos**h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubh" value 7 gets mapped to (returns) }(hj_2hhhNhNubj)}(h**ord**h]hord}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubhZ value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in }(hj_2hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubh.}(hj_2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubh)}(hDThe bit positions 0 through **bits** are valid positions in **buf**.h](hThe bit positions 0 through }(hj2hhhNhNubj)}(h**bits**h]hbits}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh are valid positions in }(hj2hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(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.chMhj0ubeh}(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}(hj-3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)3hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM>ubj2)}(h h]h }(hj<3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)3hhhj;3hM>ubj{)}(h bitmap_ontoh]j)}(h bitmap_ontoh]h bitmap_onto}(hjN3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)3hhhj;3hM>ubj)}(h_(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjf3ubj2)}(h h]h }(hjx3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjf3ubj )}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjf3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjf3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf3ubj)}(hdsth]hdst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjb3ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj 4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(horigh]horig}(hj(4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjb3ubj)}(hconst unsigned long *relmaph](j)}(hjh]hconst}(hjA4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=4ubj2)}(h h]h }(hjN4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=4ubj )}(hunsignedh]hunsigned}(hj\4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=4ubj2)}(h h]h }(hjj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=4ubj )}(hlongh]hlong}(hjx4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=4ubj)}(hrelmaph]hrelmap}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjb3ubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj )}(hinth]hint}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hbitsh]hbits}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjb3ubeh}(h]h ]h"]h$]h&]jjuh1jhj)3hhhj;3hM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%3hhhj;3hM>ubah}(h]j 3ah ](jjeh"]h$]h&]jj)jhuh1jhj;3hM>hj"3hhubj)}(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.chM>hj5hhubah}(h]h ]h"]h$]h&]uh1jhj"3hhhj;3hM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj45jj45jjjuh1jhhhj 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)}(hj>5h]h Parameters}(hj@5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<5ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMBhj85ubj )}(hhh](j)}(h3``unsigned long *dst`` resulting translated bitmap h](j)}(h``unsigned long *dst``h]j)}(hj]5h]hunsigned long *dst}(hj_5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM?hjW5ubj2)}(hhh]h)}(hresulting translated bitmaph]hresulting translated bitmap}(hjv5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr5hM?hjs5ubah}(h]h ]h"]h$]h&]uh1j1hjW5ubeh}(h]h ]h"]h$]h&]uh1jhjr5hM?hjT5ubj)}(h;``const unsigned long *orig`` original untranslated bitmap h](j)}(h``const unsigned long *orig``h]j)}(hj5h]hconst unsigned long *orig}(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.chM@hj5ubj2)}(hhh]h)}(horiginal untranslated bitmaph]horiginal untranslated bitmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM@hj5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM@hjT5ubj)}(hD``const unsigned long *relmap`` bitmap relative to which translated h](j)}(h``const unsigned long *relmap``h]j)}(hj5h]hconst unsigned long *relmap}(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.chMAhj5ubj2)}(hhh]h)}(h#bitmap relative to which translatedh]h#bitmap relative to which translated}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMAhj5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMAhjT5ubj)}(h>``unsigned int bits`` number of bits in each of these bitmaps h](j)}(h``unsigned int bits``h]j)}(hj6h]hunsigned int bits}(hj 6hhhNhNubah}(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.chMBhj6ubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj!6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMBhj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMBhjT5ubeh}(h]h ]h"]h$]h&]uh1j hj85ubh)}(h**Description**h]j)}(hjC6h]h Description}(hjE6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA6ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMDhj85ubh)}(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 }(hjY6hhhNhNubj)}(h**dst**h]hdst}(hja6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY6ubh3 iff there exists some m such that the n-th bit of }(hjY6hhhNhNubj)}(h **relmap**h]hrelmap}(hjs6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY6ubh is set, the m-th bit of }(hjY6hhhNhNubj)}(h**orig**h]horig}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY6ubh is set, and the n-th bit of }(hjY6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY6ubh is also the m-th _set_ bit of }(hjY6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY6ubhu. (If you understood the previous sentence the first time your read it, you’re overqualified for your current job.)}(hjY6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMChj85ubh)}(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, }(hj6hhhNhNubj)}(h**orig**h]horig}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is mapped onto (surjectively) }(hj6hhhNhNubj)}(h**dst**h]hdst}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh+, using the map { | the n-th bit of }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is the m-th set bit of }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh }.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMIhj85ubh)}(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}(hj!7hhhNhNubah}(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}(hj37hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh= are mapped nowhere. In particular, if for all bits m set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hjE7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, m >= W, then }(hj7hhhNhNubj)}(h**dst**h]hdst}(hjW7hhhNhNubah}(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}(hji7hhhNhNubah}(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}(hj{7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, for each bit (m) set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(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.chMMhj85ubj )}(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():}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMphj7ubj2)}(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 }(hj7hhhNhNubj)}(h **relmap**h]hrelmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh has bits 30-39 set, and }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhG has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh* will have bits 31, 33, 35, 37 and 39 set.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMXhj7ubh)}(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}(hj 8hhhNhNubah}(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}(hj08hhhNhNubah}(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}(hjB8hhhNhNubah}(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\hj7ubh)}(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 }(hj[8hhhNhNubj)}(h**orig**h]horig}(hjc8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[8ubh8 (as in the above example), it means turn on the bit in }(hj[8hhhNhNubj)}(h**dst**h]hdst}(hju8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[8ubhB corresponding to whatever is the second bit that is turned on in }(hj[8hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[8ubh. The second bit in }(hj[8hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[8ubhO that was turned on in the above example was bit 31, so we turned on bit 31 in }(hj[8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[8ubh.}(hj[8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMahj7ubh)}(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 }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh?, because they were the 4th, 6th, 8th and 10th set bits set in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh), and the 4th, 6th, 8th and 10th bits of }(hj8hhhNhNubj)}(h**orig**h]horig}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh) (i.e. bits 3, 5, 7 and 9) were also set.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMghj7ubh)}(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 }(hj 9hhhNhNubj)}(h**orig**h]horig}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh, it means turn on the bit in }(hj 9hhhNhNubj)}(h**dst**h]hdst}(hj#9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubhC corresponding to whatever is the twelfth bit that is turned on in }(hj 9hhhNhNubj)}(h **relmap**h]hrelmap}(hj59hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh?. In the above example, there were only ten bits turned on in }(hj 9hhhNhNubj)}(h **relmap**h]hrelmap}(hjG9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh% (30..39), so that bit 11 was set in }(hj 9hhhNhNubj)}(h**orig**h]horig}(hjY9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh had no affect on }(hj 9hhhNhNubj)}(h**dst**h]hdst}(hjk9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh.}(hj 9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMlhj7ubeh}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMphj7ubj)}(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():}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj9ubj2)}(hhh](h)}(h-Let's say **relmap** has these ten bits set::h](h Let’s say }(hj9hhhNhNubj)}(h **relmap**h]hrelmap}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh has these ten bits set:}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMshj9ubj7C)}(h40 41 42 43 45 48 53 61 74 95h]h40 41 42 43 45 48 53 61 74 95}hj9sbah}(h]h ]h"]h$]h&]jjuh1j6ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMuhj9ubh)}(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.)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMwhj9ubh)}(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 }(hj9hhhNhNubj)}(h**dst**h]hdst}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh result:}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMzhj9ubj7C)}(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&]jjuh1j6ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM~hj9ubh)}(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}(hjA:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh" bitmap modulo ten (the weight of }(hj:hhhNhNubj)}(h **relmap**h]hrelmap}(hjS: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.chMhj9ubj)}(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]je)}(hhh]je)}(hhh](je)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehjs:ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehjs:ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehjs:ubjnf)}(hhh](je)}(hhh](je)}(hhh]h)}(h**orig**h]j)}(hj:h]horig}(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:81: ./lib/bitmap.chMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(htmph]htmp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h**dst**h]j)}(hj:h]hdst}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(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&]uh1jehj:ubje)}(hhh]h)}(hj;h]h0}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h40h]h40}(hj,;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ;hMhj);ubah}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h1h]h1}(hjL;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjI;ubah}(h]h ]h"]h$]h&]uh1jehjF;ubje)}(hhh]h)}(hjN;h]h1}(hjd;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ;hMhja;ubah}(h]h ]h"]h$]h&]uh1jehjF;ubje)}(hhh]h)}(h41h]h41}(hjz;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ;hMhjw;ubah}(h]h ]h"]h$]h&]uh1jehjF;ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(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&]uh1jehj;ubje)}(hhh]h)}(hj;h]h9}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubje)}(hhh]h)}(h95h]h95}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h10h]h10}(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&]uh1jehj;ubje)}(hhh]h)}(hj;h]h0}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubje)}(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&]uh1jehj;ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hjM<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjJ<ubah}(h]h ]h"]h$]h&]uh1jehjG<ubje)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hje<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[<hMhjb<ubah}(h]h ]h"]h$]h&]uh1jehjG<ubje)}(hhh]h)}(h 41 43 48 61h]h 41 43 48 61}(hj|<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[<hMhjy<ubah}(h]h ]h"]h$]h&]uh1jehjG<ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(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&]uh1jehj<ubje)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubje)}(hhh]h)}(h40 41 42 43 45h]h40 41 42 43 45}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(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.chMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubje)}(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&]uh1jehj<ubje)}(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&]uh1jehj<ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(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.chMhj7=ubah}(h]h ]h"]h$]h&]uh1jehj4=ubje)}(hhh]h)}(hj;h]h0}(hjR=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH=hMhjO=ubah}(h]h ]h"]h$]h&]uh1jehj4=ubje)}(hhh]h)}(h40h]h40}(hjh=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH=hMhje=ubah}(h]h ]h"]h$]h&]uh1jehj4=ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(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&]uh1jehj=ubje)}(hhh]h)}(h0 1 2 3h]h0 1 2 3}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jehj=ubje)}(hhh]h)}(h 40 41 42 43h]h 40 41 42 43}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jehj=ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 0 12 24 36h]h 0 12 24 36}(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&]uh1jehj=ubje)}(hhh]h)}(h0 2 4 6h]h0 2 4 6}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jehj=ubje)}(hhh]h)}(h 40 42 45 53h]h 40 42 45 53}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jehj=ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(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&]uh1jehj >ubje)}(hhh]h)}(h1 2 8h]h1 2 8}(hj>>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4>hMhj;>ubah}(h]h ]h"]h$]h&]uh1jehj >ubje)}(hhh]h)}(h41 42 74 [#f1]_h](h 41 42 74 }(hjU>hhhNhNubj<)}(h[#f1]_h]h1}(hj]>hhhNhNubah}(h]id2ah ]h"]h$]h&]j/<Kj0<j1<j2<j3<uh1j<hjU>j4<Kubeh}(h]h ]h"]h$]h&]uh1hhj4>hMhjR>ubah}(h]h ]h"]h$]h&]uh1jehj >ubeh}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jmfhjs:ubeh}(h]h ]h"]h$]h&]colsKuh1jehjp:ubah}(h]h ]h"]h$]h&]uh1jehjl:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj9ubeh}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj7ubeh}(h]h ]h"]h$]h&]uh1j hj85ubhfootnote)}(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}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>hhhNhNubh)}(hvFor these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty.h](hSFor these marked lines, if we hadn’t first done bitmap_fold() into tmp, then the }(hj>hhhNhNubj)}(h**dst**h]hdst}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh result would have been empty.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubeh}(h]j1<ah ]h"]f1ah$]h&](j*<jg>ej/<Kj2<j3<uh1j>hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj85ubh)}(h`If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty.h](h If either of }(hj>hhhNhNubj)}(h**orig**h]horig}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh or }(hj>hhhNhNubj)}(h **relmap**h]hrelmap}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh is empty (no set bits), then }(hj>hhhNhNubj)}(h**dst**h]hdst}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh will be returned empty.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj85ubh)}(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}(hj5?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}(hjG?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-?ubh) then }(hj-?hhhNhNubj)}(h**dst**h]hdst}(hjY?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.chMhj85ubh)}(h:All bits in **dst** not set by the above rule are cleared.h](h All bits in }(hjr?hhhNhNubj)}(h**dst**h]hdst}(hjz?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr?ubh' not set by the above rule are cleared.}(hjr?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj85ubeh}(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}(hj?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 }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhj?hMubj{)}(h bitmap_foldh]j)}(h bitmap_foldh]h bitmap_fold}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhj?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}(hj5@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hconst unsigned long *origh](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 )}(hunsignedh]hunsigned}(hji@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJ@ubj2)}(h h]h }(hjw@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ@ubj )}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJ@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)}(horigh]horig}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hunsigned int szh](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)}(hszh]hsz}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubj2)}(h h]h }(hj&AhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj )}(hinth]hint}(hj4AhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjBAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hnbitsh]hnbits}(hjPAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(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)}(h6fold larger bitmap into smaller, modulo specified sizeh]h6fold larger bitmap into smaller, modulo specified size}(hjzAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjwAhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhj 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)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjAubj )}(hhh](j)}(h0``unsigned long *dst`` resulting smaller bitmap h](j)}(h``unsigned long *dst``h]j)}(hjAh]hunsigned long *dst}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjAubj2)}(hhh]h)}(hresulting smaller bitmaph]hresulting smaller bitmap}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjAubj)}(h5``const unsigned long *orig`` original larger bitmap h](j)}(h``const unsigned long *orig``h]j)}(hjAh]hconst unsigned long *orig}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjAubj2)}(hhh]h)}(horiginal larger bitmaph]horiginal larger bitmap}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj BhMhj Bubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj BhMhjAubj)}(h#``unsigned int sz`` specified size h](j)}(h``unsigned int sz``h]j)}(hj-Bh]hunsigned int sz}(hj/BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Bubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj'Bubj2)}(hhh]h)}(hspecified sizeh]hspecified size}(hjFBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBBhMhjCBubah}(h]h ]h"]h$]h&]uh1j1hj'Bubeh}(h]h ]h"]h$]h&]uh1jhjBBhMhjAubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjfBh]hunsigned int nbits}(hjhBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdBubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj`Bubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{BhMhj|Bubah}(h]h ]h"]h$]h&]uh1j1hj`Bubeh}(h]h ]h"]h$]h&]uh1jhj{BhMhjAubeh}(h]h ]h"]h$]h&]uh1j hjAubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjAubh)}(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 }(hjBhhhNhNubj)}(h**orig**h]horig}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh, set bit oldbit mod }(hjBhhhNhNubj)}(h**sz**h]hsz}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh in }(hjBhhhNhNubj)}(h**dst**h]hdst}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh. Clear all other bits in }(hjBhhhNhNubj)}(h**dst**h]hdst}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubhY. See further the comment and Example [2] for bitmap_onto() for why and how to use this.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjAubeh}(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}(hj.ChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*ChhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKubj2)}(h h]h }(hj=ChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*Chhhjah"]h$]h&]uh1j1hj*Chhhjah"]h$]h&]uh1j1hjCubj )}(hlongh]hlong}(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)}(hmaph]hmap}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hsizeh]hsize}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hj6DhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2Dubj2)}(h h]h }(hjDDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2Dubj )}(hlongh]hlong}(hjRDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2Dubj2)}(h h]h }(hj`DhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2Dubj)}(hstarth]hstart}(hjnDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hinth]hint}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hnrh]hnr}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned long align_maskh](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 }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(h align_maskh]h align_mask}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhj*Chhhjah"]h$]h&]uh1j1hjFhhhjGhMubj{)}(hbitmap_or_equalh]j)}(hbitmap_or_equalh]hbitmap_or_equal}(hj#GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjGhMubj)}(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}(hj?GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Gubj2)}(h h]h }(hjLGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;Gubj )}(hunsignedh]hunsigned}(hjZGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;Gubj2)}(h h]h }(hjhGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;Gubj )}(hlongh]hlong}(hjvGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;Gubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;Gubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Gubj)}(hsrc1h]hsrc1}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Gubj)}(hconst unsigned long *src2h](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj )}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hsrc2h]hsrc2}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Gubj)}(hconst unsigned long *src3h](j)}(hjh]hconst}(hj1HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Hubj2)}(h h]h }(hj>HhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Hubj )}(hunsignedh]hunsigned}(hjLHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-Hubj2)}(h h]h }(hjZHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Hubj )}(hlongh]hlong}(hjhHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-Hubj2)}(h h]h }(hjvHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Hubj)}(hsrc3h]hsrc3}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Gubj)}(hunsigned int nbitsh](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)}(hnbitsh]hnbits}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Gubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjGhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjGhMhjFhhubj)}(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}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj Ihhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$Ijj$Ijjjuh1jhhhj 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)}(hj.Ih]h Parameters}(hj0IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Iubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj(Iubj )}(hhh](j)}(h2``const unsigned long *src1`` Pointer to bitmap 1 h](j)}(h``const unsigned long *src1``h]j)}(hjMIh]hconst unsigned long *src1}(hjOIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjGIubj2)}(hhh]h)}(hPointer to bitmap 1h]hPointer to bitmap 1}(hjfIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbIhMhjcIubah}(h]h ]h"]h$]h&]uh1j1hjGIubeh}(h]h ]h"]h$]h&]uh1jhjbIhMhjDIubj)}(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)}(hjIh]hconst unsigned long *src2}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj2)}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjDIubj)}(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)}(hjIh]hconst unsigned long *src3}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj2)}(hhh]h)}(hCPointer to bitmap 3. Compare to the result of ***src1** | ***src2**h](h.Pointer to bitmap 3. Compare to the result of }(hjIhhhNhNubj)}(h ***src1**h]h*src1}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh | }(hjIhhhNhNubj)}(h ***src2**h]h*src2}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjDIubj)}(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}(hj1JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-JhMhj.Jubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhj-JhMhjDIubeh}(h]h ]h"]h$]h&]uh1j hj(Iubh)}(h **Return**h]j)}(hjSJh]hReturn}(hjUJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj(Iubh)}(h=True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h True if (}(hjiJhhhNhNubj)}(h ***src1**h]h*src1}(hjqJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiJubh | }(hjiJhhhNhNubj)}(h ***src2**h]h*src2}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiJubh) == }(hjiJhhhNhNubj)}(h ***src3**h]h*src3}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiJubh, false otherwise}(hjiJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj(Iubeh}(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}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhjJhMubj )}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhjJhMubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhjJhMubj{)}(hbitmap_weight_fromh]j)}(hbitmap_weight_fromh]hbitmap_weight_from}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhjJhMubj)}(hC(const unsigned long *bitmap, unsigned int start, unsigned int end)h](j)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hj'KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Kubj2)}(h h]h }(hj4KhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Kubj )}(hunsignedh]hunsigned}(hjBKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#Kubj2)}(h h]h }(hjPKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Kubj )}(hlongh]hlong}(hj^KhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#Kubj2)}(h h]h }(hjlKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Kubj)}(hjh]h*}(hjzKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Kubj)}(hbitmaph]hbitmap}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned int starth](j )}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj )}(hinth]hint}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hstarth]hstart}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned int endh](j )}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj )}(hinth]hint}(hj LhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hendh]hend}(hj)LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhjJhMhjJhhubj)}(hhh]h)}(h"Hamming weight for a memory regionh]h"Hamming weight for a memory region}(hjSLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjPLhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkLjjkLjjjuh1jhhhj 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)}(hjuLh]h Parameters}(hjwLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsLubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjoLubj )}(hhh](j)}(h1``const unsigned long *bitmap`` The base address h](j)}(h``const unsigned long *bitmap``h]j)}(hjLh]hconst unsigned long *bitmap}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLubj2)}(hhh]h)}(hThe base addressh]hThe base address}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(h9``unsigned int start`` The bitnumber to starts weighting h](j)}(h``unsigned int start``h]j)}(hjLh]hunsigned int start}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLubj2)}(hhh]h)}(h!The bitnumber to starts weightingh]h!The bitnumber to starts weighting}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(h-``unsigned int end`` the bitmap size in bits h](j)}(h``unsigned int end``h]j)}(hjMh]hunsigned int end}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjMubj2)}(hhh]h)}(hthe bitmap size in bitsh]hthe bitmap size in bits}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubeh}(h]h ]h"]h$]h&]uh1j hjoLubh)}(h**Description**h]j)}(hjAMh]h Description}(hjCMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Mubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjoLubh)}(hUReturns the number of set bits in the region. If **start** >= **end**, return >= end.h](h1Returns the number of set bits in the region. If }(hjWMhhhNhNubj)}(h **start**h]hstart}(hj_MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWMubh >= }(hjWMhhhNhNubj)}(h**end**h]hend}(hjqMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWMubh, return >= end.}(hjWMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjoLubeh}(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}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMTubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhjMhMTubj{)}(hbitmap_scatterh]j)}(hbitmap_scatterh]hbitmap_scatter}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhjMhMTubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMubj2)}(h h]h }(hjMhhhNhNubah}(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*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hdsth]hdst}(hj,NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjENhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjANubj2)}(h h]h }(hjRNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjANubj )}(hunsignedh]hunsigned}(hj`NhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjANubj2)}(h h]h }(hjnNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjANubj )}(hlongh]hlong}(hj|NhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjANubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjANubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjANubj)}(hsrch]hsrc}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjANubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj )}(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 }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hmaskh]hmask}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj7OhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3Oubj2)}(h h]h }(hjEOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3Oubj )}(hinth]hint}(hjSOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3Oubj2)}(h h]h }(hjaOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3Oubj)}(hnbitsh]hnbits}(hjoOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhMTubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjMhMTubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjMhMThjMhhubj)}(hhh]h)}(h,Scatter a bitmap according to the given maskh]h,Scatter a bitmap according to the given mask}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMThjOhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhj 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)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMXhjOubj )}(hhh](j)}(h(``unsigned long *dst`` scattered bitmap h](j)}(h``unsigned long *dst``h]j)}(hjOh]hunsigned long *dst}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMUhjOubj2)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMUhjOubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMUhjOubj)}(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.hhMVhj Pubj2)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hj,PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(PhMVhj)Pubah}(h]h ]h"]h$]h&]uh1j1hj Pubeh}(h]h ]h"]h$]h&]uh1jhj(PhMVhjOubj)}(hZ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjLPh]hconst unsigned long *mask}(hjNPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJPubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWhjFPubj2)}(hhh]h)}(h;mask representing bits to assign to in the scattered bitmaph]h;mask representing bits to assign to in the scattered bitmap}(hjePhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaPhMWhjbPubah}(h]h ]h"]h$]h&]uh1j1hjFPubeh}(h]h ]h"]h$]h&]uh1jhjaPhMWhjOubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjPh]hunsigned int nbits}(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)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMXhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMXhjOubeh}(h]h ]h"]h$]h&]uh1j hjOubh)}(h**Description**h]j)}(hjPh]h Description}(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.hhMZhjOubh)}(hEScatters bitmap with sequential bits according to the given **mask**.h](h 0000000001011010 0001001100010011 0000001100000010}(hjTQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM^hjOubh)}(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)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMbhjOubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMdhjOubj7C)}(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}hjQsbah}(h]h ]h"]h$]h&]jjuh1j6ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMfhjOubh)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMqhjOubeh}(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}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQhhhZ/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&]uh1j1hjQhhhjRhMubj{)}(h bitmap_gatherh]j)}(h bitmap_gatherh]h bitmap_gather}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjRhMubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj2RhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.Rubj2)}(h h]h }(hj@RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.Rubj )}(hlongh]hlong}(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)}(hdsth]hdst}(hjwRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*Rubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj )}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hsrch]hsrc}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*Rubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hj ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj )}(hunsignedh]hunsigned}(hj$ShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hj2ShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj )}(hlongh]hlong}(hj@ShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjNShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hj\ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hmaskh]hmask}(hjiShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*Rubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~Subj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Subj )}(hinth]hint}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~Subj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Subj)}(hnbitsh]hnbits}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*Rubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjRhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhjRhMhjQhhubj)}(hhh]h)}(h'Gather a bitmap according to given maskh]h'Gather a bitmap according to given mask}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjShhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jhhhj 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)}(hj%Th]hunsigned long *dst}(hj'ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Tubah}(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}(hj>ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ThMhj;Tubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhj:ThMhjTubj)}(h.``const unsigned long *src`` scattered bitmap h](j)}(h``const unsigned long *src``h]j)}(hj^Th]hconst unsigned long *src}(hj`ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Tubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXTubj2)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hjwThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsThMhjtTubah}(h]h ]h"]h$]h&]uh1j1hjXTubeh}(h]h ]h"]h$]h&]uh1jhjsThMhjTubj)}(h]``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjTh]hconst unsigned long *mask}(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)}(h>mask representing bits to extract from in the scattered bitmaph]h>mask representing bits to extract from in the scattered bitmap}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjTh]hunsigned int nbits}(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)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjThhhNhNubah}(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&]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 }(hj!UhhhNhNubj)}(h**mask**h]hmask}(hj)UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Uubh.}(hj!UhhhNhNubeh}(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)}(hjDUh]hExample}(hjFUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBUubah}(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 }(hjZUhhhNhNubj)}(h**src**h]hsrc}(hjbUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZUubh bitmap = 0x0302, with }(hjZUhhhNhNubj)}(h**mask**h]hmask}(hjtUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZUubh = 0x1313, }(hjZUhhhNhNubj)}(h**dst**h]hdst}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZUubh will be 0x001a.}(hjZUhhhNhNubeh}(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 }(hjUhhhNhNubj)}(h**src**h]hsrc}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh }(hjUhhhNhNubj)}(h**mask**h]hmask}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh }(hjUhhhNhNubj)}(h**dst**h]hdst}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh> 0000001100000010 0001001100010011 0000000000011010}(hjUhhhNhNubeh}(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)}(hjUhhhNhNubah}(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:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubj7C)}(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&]jjuh1j6ChZ/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.}(hj VhhhNhNubah}(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.}(hj/VhhhNhNubah}(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^VhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZVhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hjmVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZVhhhjlVhMubj{)}(hbitmap_release_regionh]j)}(hbitmap_release_regionh]hbitmap_release_region}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Vubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZVhhhjlVhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj )}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hbitmaph]hbitmap}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj )}(hinth]hint}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hj#WhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hposh]hpos}(hj1WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h int orderh](j )}(hinth]hint}(hjJWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFWubj2)}(h h]h }(hjXWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFWubj)}(horderh]horder}(hjfWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjZVhhhjlVhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVVhhhjlVhMubah}(h]jQVah ](jjeh"]h$]h&]jj)jhuh1jhjlVhMhjSVhhubj)}(hhh]h)}(hrelease allocated bitmap regionh]hrelease allocated bitmap region}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjSVhhhjlVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhj 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)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjWubj )}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjWh]hunsigned long *bitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjWubj2)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubj)}(h8``unsigned int pos`` beginning of bit region to release h](j)}(h``unsigned int pos``h]j)}(hj Xh]hunsigned int pos}(hj XhhhNhNubah}(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}(hj#XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhj Xubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjWubj)}(hD``int order`` region size (log base 2 of number of bits) to release h](j)}(h ``int order``h]j)}(hjCXh]h int order}(hjEXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAXubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj=Xubj2)}(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\XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXXhMhjYXubah}(h]h ]h"]h$]h&]uh1j1hj=Xubeh}(h]h ]h"]h$]h&]uh1jhjXXhMhjWubeh}(h]h ]h"]h$]h&]uh1j hjWubh)}(h**Description**h]j)}(hj~Xh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Xubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjWubh)}(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).}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjWubeh}(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}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXhhhjXhMubj{)}(hbitmap_allocate_regionh]j)}(hbitmap_allocate_regionh]hbitmap_allocate_region}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjXhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj )}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hj*YhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hj8YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hbitmaph]hbitmap}(hjEYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj^YhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZYubj2)}(h h]h }(hjlYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZYubj )}(hinth]hint}(hjzYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZYubj)}(hposh]hpos}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h int orderh](j )}(hinth]hint}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(horderh]horder}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjXhMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjXhMhjXhhubj)}(hhh]h)}(hallocate bitmap regionh]hallocate bitmap region}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Zjj Zjjjuh1jhhhj 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)}(hj6Zh]hunsigned long *bitmap}(hj8ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Zubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj0Zubj2)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjOZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKZhMhjLZubah}(h]h ]h"]h$]h&]uh1j1hj0Zubeh}(h]h ]h"]h$]h&]uh1jhjKZhMhj-Zubj)}(h9``unsigned int pos`` beginning of bit region to allocate h](j)}(h``unsigned int pos``h]j)}(hjoZh]hunsigned int pos}(hjqZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjiZubj2)}(hhh]h)}(h#beginning of bit region to allocateh]h#beginning of bit region to allocate}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1j1hjiZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj-Zubj)}(hE``int order`` region size (log base 2 of number of bits) to allocate h](j)}(h ``int order``h]j)}(hjZh]h int order}(hjZhhhNhNubah}(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)}(h6region size (log base 2 of number of bits) to allocateh]h6region size (log base 2 of number of bits) to allocate}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj-Zubeh}(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&]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.}(hjZhhhNhNubah}(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}(hja[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 }(hjp[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj][hhhjo[hMubj{)}(hbitmap_find_free_regionh]j)}(hbitmap_find_free_regionh]hbitmap_find_free_region}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj][hhhjo[hMubj)}(h5(unsigned long *bitmap, unsigned int bits, int order)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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[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}(hj4\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(h int orderh](j )}(hinth]hint}(hjM\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjI\ubj2)}(h h]h }(hj[\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjI\ubj)}(horderh]horder}(hji\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj][hhhjo[hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjY[hhhjo[hMubah}(h]jT[ah ](jjeh"]h$]h&]jj)jhuh1jhjo[hMhjV[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.hhMhj\hhubah}(h]h ]h"]h$]h&]uh1jhjV[hhhjo[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\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.hhMhj\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)}(hjF]h]h int order}(hjH]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD]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 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:84: ./include/linux/bitmap.hhMhj\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}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh of }(hj]hhhNhNubj)}(h**bits**h]hbits}(hj]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.hhMhj\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.hhMhj\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.hhMhj\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&]jjjjS^jjS^jjjuh1jhhhj hNhNubh)}(h``BITMAP_FROM_U64 (n)``h]j)}(hjY^h]hBITMAP_FROM_U64 (n)}(hj[^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW^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.}(hjs^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjo^ubah}(h]h ]h"]h$]h&]uh1jhj^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)}(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.hhMhj^ubj )}(hhh]j)}(h``n`` u64 value 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:84: ./include/linux/bitmap.hhMhj^ubj2)}(hhh]h)}(h u64 valueh]h u64 value}(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:84: ./include/linux/bitmap.hhMhj^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.hhMhj^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.hhM hj^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.hhM hj^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.hhMhj^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.hhMhj^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}(hji_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhje_hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM%ubj2)}(h h]h }(hjx_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hje_hhhjw_hM%ubj{)}(hbitmap_from_u64h]j)}(hbitmap_from_u64h]hbitmap_from_u64}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhje_hhhjw_hM%ubj)}(h(unsigned long *dst, u64 mask)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&]noemphjjuh1jhj_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 j_sbc.bitmap_from_u64asbuh1hhj`ubj2)}(h h]h }(hj'`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hmaskh]hmask}(hj5`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhje_hhhjw_hM%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhja_hhhjw_hM%ubah}(h]j\_ah ](jjeh"]h$]h&]jj)jhuh1jhjw_hM%hj^_hhubj)}(hhh]h)}(h Check and swap words within u64.h]h Check and swap words within u64.}(hj_`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM%hj\`hhubah}(h]h ]h"]h$]h&]uh1jhj^_hhhjw_hM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjw`jjw`jjjuh1jhhhj 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)}(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.hhM)hj{`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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM'hj`ubj2)}(hhh]h)}(hdestination bitmaph]hdestination 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)}(h``u64 mask`` source bitmap h](j)}(h ``u64 mask``h]j)}(hj`h]hu64 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:84: ./include/linux/bitmap.hhM&hj`ubj2)}(hhh]h)}(h source bitmaph]h 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`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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM(hj{`ubh)}(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 }(hj*ahhhNhNubj)}(h``(u32 *)(:c:type:`val`)[*]``h]h(u32 *)(:c:type:`val`)[*]}(hj2ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*aubh7 to read u64 mask, we will get the wrong word. That is }(hj*ahhhNhNubj)}(h``(u32 *)(:c:type:`val`)[0]``h]h(u32 *)(:c:type:`val`)[0]}(hjDahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*aubh@ gets the upper 32 bits, but we expect the lower 32-bits of u64.}(hj*ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM(hj{`ubeh}(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}(hj}ahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyahhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM4ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyahhhjahM4ubj )}(hlongh]hlong}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyahhhjahM4ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyahhhjahM4ubj{)}(h bitmap_readh]j)}(h bitmap_readh]h bitmap_read}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyahhhjahM4ubj)}(hD(const unsigned long *map, unsigned long start, unsigned long nbits)h](j)}(hconst unsigned long *maph](j)}(hjh]hconst}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj )}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj )}(hlongh]hlong}(hj bhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hjh]h*}(hj)bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hmaph]hmap}(hj6bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjObhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKbubj2)}(h h]h }(hj]bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKbubj )}(hlongh]hlong}(hjkbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKbubj2)}(h h]h }(hjybhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKbubj)}(hstarth]hstart}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long nbitsh](j )}(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)}(hnbitsh]hnbits}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjyahhhjahM4ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuahhhjahM4ubah}(h]jpaah ](jjeh"]h$]h&]jj)jhuh1jhjahM4hjrahhubj)}(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.hhM4hjbhhubah}(h]h ]h"]h$]h&]uh1jhjrahhhjahM4ubeh}(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)}(hj$ch]h Parameters}(hj&chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"cubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM8hjcubj )}(hhh](j)}(hA``const unsigned long *map`` address to the bitmap memory region h](j)}(h``const unsigned long *map``h]j)}(hjCch]hconst unsigned long *map}(hjEchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAcubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM5hj=cubj2)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hj\chhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXchM5hjYcubah}(h]h ]h"]h$]h&]uh1j1hj=cubeh}(h]h ]h"]h$]h&]uh1jhjXchM5hj:cubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hj|ch]hunsigned long start}(hj~chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzcubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM6hjvcubj2)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM6hjcubah}(h]h ]h"]h$]h&]uh1j1hjvcubeh}(h]h ]h"]h$]h&]uh1jhjchM6hj:cubj)}(hL``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG h](j)}(h``unsigned long nbits``h]j)}(hjch]hunsigned long nbits}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM7hjcubj2)}(hhh]h)}(h3size of value in bits, nonzero, up to BITS_PER_LONGh]h3size of value in bits, nonzero, up to BITS_PER_LONG}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM7hjcubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhjchM7hj:cubeh}(h]h ]h"]h$]h&]uh1j hjcubh)}(h **Return**h]j)}(hjch]hReturn}(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.hhM9hjcubh)}(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}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh bit offset within the }(hjdhhhNhNubj)}(h**map**h]hmap}(hj2dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh memory region. For }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hjDdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh = 0 and }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hjVdhhhNhNubah}(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.hhM9hjcubeh}(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}(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMQubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjdhMQubj{)}(h bitmap_writeh]j)}(h bitmap_writeh]h bitmap_write}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjdhMQubj)}(hS(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j)}(hunsigned long *maph](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)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hmaph]hmap}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hunsigned long valueh](j )}(hunsignedh]hunsigned}(hj*ehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&eubj2)}(h h]h }(hj8ehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&eubj )}(hlongh]hlong}(hjFehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&eubj2)}(h h]h }(hjTehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&eubj)}(hvalueh]hvalue}(hjbehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hj{ehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjweubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjweubj )}(hlongh]hlong}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjweubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjweubj)}(hstarth]hstart}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjweubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hunsigned long nbitsh](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)}(hnbitsh]hnbits}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhMQubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjdhMQhjdhhubj)}(hhh]h)}(h(write n-bit value within a memory regionh]h(write n-bit value within a memory region}(hj.fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMQhj+fhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFfjjFfjjjuh1jhhhj 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)}(hjPfh]h Parameters}(hjRfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNfubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMUhjJfubj )}(hhh](j)}(h;``unsigned long *map`` address to the bitmap memory region h](j)}(h``unsigned long *map``h]j)}(hjofh]hunsigned long *map}(hjqfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmfubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMRhjifubj2)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMRhjfubah}(h]h ]h"]h$]h&]uh1j1hjifubeh}(h]h ]h"]h$]h&]uh1jhjfhMRhjffubj)}(h9``unsigned long value`` value to write, clamped to nbits h](j)}(h``unsigned long value``h]j)}(hjfh]hunsigned long value}(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.hhMShjfubj2)}(hhh]h)}(h value to write, clamped to nbitsh]h value to write, clamped to nbits}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMShjfubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMShjffubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hjfh]hunsigned long start}(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.hhMThjfubj2)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMThjfubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMThjffubj)}(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.hhMUhjgubj2)}(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.}(hj3ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ghMUhj0gubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhj/ghMUhjffubeh}(h]h ]h"]h$]h&]uh1j hjJfubh)}(h**Description**h]j)}(hjUgh]h Description}(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.hhMWhjJfubh)}(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 }(hjkghhhNhNubj)}(h **nbits**h]hnbits}(hjsghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkgubh+ calls of __assign_bit(), i.e. bits beyond }(hjkghhhNhNubj)}(h **nbits**h]hnbits}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkgubh are ignored:}(hjkghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMVhjJfubj)}(h]for (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h]j )}(hhh]j)}(hUfor (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h](j)}(h!for (bit = 0; bit < nbits; bit++)h]h!for (bit = 0; bit < nbits; bit++)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMZhjgubj2)}(hhh]h)}(h2__assign_bit(start + bit, bitmap, val & BIT(bit));h]h2__assign_bit(start + bit, bitmap, val & BIT(bit));}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMZhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMZhjgubah}(h]h ]h"]h$]h&]uh1j hjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMYhjJfubh)}(hIFor **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](hFor }(hjghhhNhNubj)}(h **nbits**h]hnbits}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh == 0 and }(hjghhhNhNubj)}(h **nbits**h]hnbits}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh) > BITS_PER_LONG no writes are performed.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM\hjJfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]bitmap-operationsah ]h"]bitmap operationsah$]h&]uh1hhjhhhhhK@ubh)}(hhh](h)}(hCommand-line Parsingh]hCommand-line Parsing}(hj'hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hhhhhhKXubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j get_option (C function) c.get_optionhNtauh1hhj$hhhhNhNubj)}(hhh](j)}(h&int get_option (char **str, int *pint)h]j)}(h%int get_option(char **str, int *pint)h](j )}(hinth]hint}(hjNhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$ubj2)}(h h]h }(hj]hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhhj\hhK$ubj{)}(h get_optionh]j)}(h get_optionh]h get_option}(hjohhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhhj\hhK$ubj)}(h(char **str, int *pint)h](j)}(h char **strh](j )}(hcharh]hchar}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hstrh]hstr}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(h int *pinth](j )}(hinth]hint}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hpinth]hpint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhhj\hhK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhhj\hhK$ubah}(h]jAhah ](jjeh"]h$]h&]jj)jhuh1jhj\hhK$hjChhhubj)}(hhh]h)}(h#Parse integer from an option stringh]h#Parse integer from an option string}(hj-ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$hj*ihhubah}(h]h ]h"]h$]h&]uh1jhjChhhhj\hhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEijjEijjjuh1jhhhj$hhNhNubj)}(hXo**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. Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range Leading hyphen without integer is no integer case, but we consume it for the sake of simplification.h](h)}(h**Parameters**h]j)}(hjOih]h Parameters}(hjQihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMiubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjIiubj )}(hhh](j)}(h``char **str`` option string h](j)}(h``char **str``h]j)}(hjnih]h char **str}(hjpihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjliubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK%hjhiubj2)}(hhh]h)}(h option stringh]h option string}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihK%hjiubah}(h]h ]h"]h$]h&]uh1j1hjhiubeh}(h]h ]h"]h$]h&]uh1jhjihK%hjeiubj)}(hB``int *pint`` (optional output) integer value parsed from **str** h](j)}(h ``int *pint``h]j)}(hjih]h int *pint}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK&hjiubj2)}(hhh]h)}(h3(optional output) integer value parsed from **str**h](h,(optional output) integer value parsed from }(hjihhhNhNubj)}(h**str**h]hstr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1hhjihK&hjiubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjihK&hjeiubeh}(h]h ]h"]h$]h&]uh1j hjIiubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjIiubj)}(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. Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range 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.}(hj jhhhNhNubah}(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}(hj!jhhhNhNubah}(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)}(hReturn values: 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]hReturn values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range}(hj:jhhhNhNubah}(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.}(hjIjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK3hjjubeh}(h]h ]h"]h$]h&]uh1jhjjhK'hjIiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j get_options (C function) c.get_optionshNtauh1hhj$hhhhNhNubj)}(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~jhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKSubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzjhhhjjhKSubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzjhhhjjhKSubj{)}(h get_optionsh]j)}(h get_optionsh]h get_options}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzjhhhjjhKSubj)}(h'(const char *str, int nints, int *ints)h](j)}(hconst char *strh](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)}(hstrh]hstr}(hj khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h int nintsh](j )}(hinth]hint}(hj%khhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!kubj2)}(h h]h }(hj3khhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!kubj)}(hnintsh]hnints}(hjAkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h int *intsh](j )}(hinth]hint}(hjZkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVkubj2)}(h h]h }(hjhkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVkubj)}(hjh]h*}(hjvkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVkubj)}(hintsh]hints}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjzjhhhjjhKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvjhhhjjhKSubah}(h]jqjah ](jjeh"]h$]h&]jj)jhuh1jhjjhKShjsjhhubj)}(hhh]h)}(h&Parse a string into a list of integersh]h&Parse a string into a list of integers}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKShjkhhubah}(h]h ]h"]h$]h&]uh1jhjsjhhhjjhKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhj$hhNhNubj)}(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)}(hjkh]h Parameters}(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.chKWhjkubj )}(hhh](j)}(h(``const char *str`` String to be parsed h](j)}(h``const char *str``h]j)}(hjkh]hconst char *str}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKThjkubj2)}(hhh]h)}(hString to be parsedh]hString to be parsed}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKThjlubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjlhKThjkubj)}(h$``int nints`` size of integer array h](j)}(h ``int nints``h]j)}(hj'lh]h int nints}(hj)lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%lubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKUhj!lubj2)}(hhh]h)}(hsize of integer arrayh]hsize of integer array}(hj@lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjah"]h$]h&]uh1j1hj[mhhhjmmhKubj )}(hlongh]hlong}(hj|mhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[mhhhjmmhKubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[mhhhjmmhKubj )}(hlongh]hlong}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[mhhhjmmhKubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[mhhhjmmhKubj{)}(hmemparseh]j)}(hmemparseh]hmemparse}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[mhhhjmmhKubj)}(h (const char *ptr, char **retptr)h](j)}(hconst char *ptrh](j)}(hjh]hconst}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj )}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hj nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hptrh]hptr}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(h char **retptrh](j )}(hcharh]hchar}(hj1nhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-nubj2)}(h h]h }(hj?nhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-nubj)}(hjh]h*}(hjMnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-nubj)}(hjh]h*}(hjZnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-nubj)}(hretptrh]hretptr}(hjgnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhj[mhhhjmmhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWmhhhjmmhKubah}(h]jRmah ](jjeh"]h$]h&]jj)jhuh1jhjmmhKhjTmhhubj)}(hhh]h)}(h.parse a string with mem suffixes into a numberh]h.parse a string with mem suffixes into a number}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKhjnhhubah}(h]h ]h"]h$]h&]uh1jhjTmhhhjmmhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jhhhj$hhNhNubj)}(hX**Parameters** ``const char *ptr`` Where parse begins ``char **retptr`` (output) Optional pointer to next char after parse completes **Description** Parses a string into a number. The number stored at **ptr** is potentially suffixed with K, M, G, T, P, E.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKhjnubj )}(hhh](j)}(h'``const char *ptr`` Where parse begins h](j)}(h``const char *ptr``h]j)}(hjnh]hconst char *ptr}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKhjnubj2)}(hhh]h)}(hWhere parse beginsh]hWhere parse begins}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjnubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjnubj)}(hO``char **retptr`` (output) Optional pointer to next char after parse completes h](j)}(h``char **retptr``h]j)}(hj oh]h char **retptr}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKhjoubj2)}(hhh]h)}(h<(output) Optional pointer to next char after parse completesh]h<(output) Optional pointer to next char after parse completes}(hj$ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ohKhj!oubahX }(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhj ohKhjnubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(h**Description**h]j)}(hjFoh]h Description}(hjHohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDoubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKhjnubj)}(hkParses a string into a number. The number stored at **ptr** is potentially suffixed with K, M, G, T, P, E.h]h)}(hkParses a string into a number. The number stored at **ptr** is potentially suffixed with K, M, G, T, P, E.h](h5Parses a string into a number. The number stored at }(hj`ohhhNhNubj)}(h**ptr**h]hptr}(hjhohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`oubh/ is potentially suffixed with K, M, G, T, P, E.}(hj`ohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKhj\oubah}(h]h ]h"]h$]h&]uh1jhjohKhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhhNhNubeh}(h]command-line-parsingah ]h"]command-line parsingah$]h&]uh1hhjhhhhhKXubh)}(hhh](h)}(hError Pointersh]hError Pointers}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohhhhhK^ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j IS_ERR_VALUE (C macro)c.IS_ERR_VALUEhNtauh1hhjohhhNhNubj)}(hhh](j)}(h IS_ERR_VALUEh]j)}(h IS_ERR_VALUEh]j{)}(h IS_ERR_VALUEh]j)}(hjoh]h IS_ERR_VALUE}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohKubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjohKhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjohKubeh}(h]h ](jmacroeh"]h$]h&]jjjjojjojjjuh1jhhhjohNhNubh)}(h``IS_ERR_VALUE (x)``h]j)}(hjoh]hIS_ERR_VALUE (x)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhjohhubj)}(hDetect an error pointer. h]h)}(hDetect an error pointer.h]hDetect an error pointer.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhj pubah}(h]h ]h"]h$]h&]uh1jhjphKhjohhubj)}(h**Parameters** ``x`` The pointer to check. **Description** Like IS_ERR(), but does not generate a compiler warning if result is unused.h](h)}(h**Parameters**h]j)}(hj+ph]h Parameters}(hj-phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)pubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhj%pubj )}(hhh]j)}(h``x`` The pointer to check. h](j)}(h``x``h]j)}(hjJph]hx}(hjLphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhjDpubj2)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjcphhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_phKhj`pubah}(h]h ]h"]h$]h&]uh1j1hjDpubeh}(h]h ]h"]h$]h&]uh1jhj_phKhjApubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhj%pubh)}(hLLike IS_ERR(), but does not generate a compiler warning if result is unused.h]hLLike IS_ERR(), but does not generate a compiler warning if result is unused.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhj%pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ERR_PTR (C function) c.ERR_PTRhNtauh1hhjohhhNhNubj)}(hhh](j)}(hvoid * ERR_PTR (long error)h]j)}(hvoid *ERR_PTR(long error)h](j )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjphhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhjphKubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphKubj{)}(hERR_PTRh]j)}(hERR_PTRh]hERR_PTR}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjphKubj)}(h (long error)h]j)}(h long errorh](j )}(hlongh]hlong}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubj2)}(h h]h }(hj"qhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(herrorh]herror}(hj0qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj qubah}(h]h ]h"]h$]h&]jjuh1jhjphhhjphKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphKubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jhjphKhjphhubj)}(hhh]h)}(hCreate an error pointer.h]hCreate an error pointer.}(hjZqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhjWqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrqjjrqjjjuh1jhhhjohNhNubj)}(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)}(hj|qh]h Parameters}(hj~qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzqubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK#hjvqubj )}(hhh]j)}(h&``long error`` A negative error code. h](j)}(h``long error``h]j)}(hjqh]h long error}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK hjqubj2)}(hhh]h)}(hA negative error code.h]hA negative error code.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhK hjqubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhK hjqubah}(h]h ]h"]h$]h&]uh1j hjvqubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK"hjvqubh)}(hEncodes **error** into a pointer value. Users should consider the result opaque and not assume anything about how the error is encoded.h](hEncodes }(hjqhhhNhNubj)}(h **error**h]herror}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubhv into a pointer value. Users should consider the result opaque and not assume anything about how the error is encoded.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK!hjvqubh)}(h **Return**h]j)}(hjrh]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK$hjvqubh)}(h2A pointer with **error** encoded within its value.h](hA pointer with }(hj%rhhhNhNubj)}(h **error**h]herror}(hj-rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%rubh encoded within its value.}(hj%rhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK%hjvqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j INIT_ERR_PTR (C macro)c.INIT_ERR_PTRhNtauh1hhjohhhNhNubj)}(hhh](j)}(h INIT_ERR_PTRh]j)}(h INIT_ERR_PTRh]j{)}(h INIT_ERR_PTRh]j)}(hj`rh]h INIT_ERR_PTR}(hjjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfrubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbrhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK-ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj^rhhhj}rhK-ubah}(h]jYrah ](jjeh"]h$]h&]jj)jhuh1jhj}rhK-hj[rhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[rhhhj}rhK-ubeh}(h]h ](jmacroeh"]h$]h&]jjjjrjjrjjjuh1jhhhjohNhNubh)}(h``INIT_ERR_PTR (error)``h]j)}(hjrh]hINIT_ERR_PTR (error)}(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/hjohhubj)}(hInit a const error pointer. h]h)}(hInit a const error pointer.h]hInit a const error pointer.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK-hjrubah}(h]h ]h"]h$]h&]uh1jhjrhK-hjohhubj)}(h**Parameters** ``error`` A negative error code. **Description** Like ERR_PTR(), but usable to initialize static variables.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.hhK1hjrubj )}(hhh]j)}(h!``error`` A negative error code. h](j)}(h ``error``h]j)}(hjrh]herror}(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.}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshK.hjsubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjshK.hjrubah}(h]h ]h"]h$]h&]uh1j hjrubh)}(h**Description**h]j)}(hj+sh]h Description}(hj-shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)subah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK0hjrubh)}(h:Like ERR_PTR(), but usable to initialize static variables.h]h:Like ERR_PTR(), but usable to initialize static variables.}(hjAshhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK/hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j PTR_ERR (C function) c.PTR_ERRhNtauh1hhjohhhNhNubj)}(hhh](j)}(h&long PTR_ERR (__force const void *ptr)h]j)}(h%long PTR_ERR(__force const void *ptr)h](j )}(hlongh]hlong}(hjpshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlshhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK;ubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlshhhj~shK;ubj{)}(hPTR_ERRh]j)}(hPTR_ERRh]hPTR_ERR}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlshhhj~shK;ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjshhhNhNubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj )}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hptrh]hptr}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjlshhhj~shK;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhshhhj~shK;ubah}(h]jcsah ](jjeh"]h$]h&]jj)jhuh1jhj~shK;hjeshhubj)}(hhh]h)}(h-Extract the error code from an error pointer.h]h-Extract the error code from an error pointer.}(hj-thhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK;hj*thhubah}(h]h ]h"]h$]h&]uh1jhjeshhhj~shK;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEtjjEtjjjuh1jhhhjohNhNubj)}(hk**Parameters** ``__force const void *ptr`` An error pointer. **Return** The error code within **ptr**.h](h)}(h**Parameters**h]j)}(hjOth]h Parameters}(hjQthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK?hjItubj )}(hhh]j)}(h.``__force const void *ptr`` An error pointer. h](j)}(h``__force const void *ptr``h]j)}(hjnth]h__force const void *ptr}(hjpthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjltubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhjItubh)}(hThe error code within **ptr**.h](hThe error code within }(hjthhhNhNubj)}(h**ptr**h]hptr}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK=hjItubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j IS_ERR (C function)c.IS_ERRhNtauh1hhjohhhNhNubj)}(hhh](j)}(h%bool IS_ERR (__force const void *ptr)h]j)}(h$bool IS_ERR(__force const void *ptr)h](j )}(hj8h]hbool}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKHubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhj uhKHubj{)}(hIS_ERRh]j)}(hIS_ERRh]hIS_ERR}(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhj uhKHubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hj8uhhhNhNubj2)}(h h]h }(hj@uhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8uubj)}(hjh]hconst}(hjNuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8uubj2)}(h h]h }(hj[uhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8uubj )}(hvoidh]hvoid}(hjiuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8uubj2)}(h h]h }(hjwuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8uubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8uubj)}(hptrh]hptr}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4uubah}(h]h ]h"]h$]h&]jjuh1jhjthhhj uhKHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhj uhKHubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhj uhKHhjthhubj)}(hhh]h)}(hDetect an error pointer.h]hDetect an error pointer.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKHhjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhj uhKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhjohNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to check. **Return** true if **ptr** is an error pointer, false otherwise.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKLhjuubj )}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hjuh]h__force const void *ptr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKIhjuubj2)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKIhjvubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjvhKIhjuubah}(h]h ]h"]h$]h&]uh1j hjuubh)}(h **Return**h]j)}(hj8vh]hReturn}(hj:vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6vubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKKhjuubh)}(h5true if **ptr** is an error pointer, false otherwise.h](htrue if }(hjNvhhhNhNubj)}(h**ptr**h]hptr}(hjVvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNvubh& is an error pointer, false otherwise.}(hjNvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKJhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j IS_ERR_OR_NULL (C function)c.IS_ERR_OR_NULLhNtauh1hhjohhhNhNubj)}(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}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjvhKUubj{)}(hIS_ERR_OR_NULLh]j)}(hIS_ERR_OR_NULLh]hIS_ERR_OR_NULL}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjvhKUubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjvhhhNhNubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hptrh]hptr}(hj!whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjvhKUubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjvhKUhjvhhubj)}(hhh]h)}(h*Detect an error pointer or a null pointer.h]h*Detect an error pointer or a null pointer.}(hjKwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUhjHwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjvhKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcwjjcwjjjuh1jhhhjohNhNubj)}(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)}(hjmwh]h Parameters}(hjowhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkwubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKYhjgwubj )}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hjwh]h__force const void *ptr}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKVhjwubj2)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhKVhjwubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKVhjwubah}(h]h ]h"]h$]h&]uh1j hjgwubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXhjgwubh)}(h8Like IS_ERR(), but also returns true for a null pointer.h]h8Like IS_ERR(), but also returns true for a null pointer.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKWhjgwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ERR_CAST (C function) c.ERR_CASThNtauh1hhjohhhNhNubj)}(hhh](j)}(h)void * ERR_CAST (__force const void *ptr)h]j)}(h'void *ERR_CAST(__force const void *ptr)h](j )}(hvoidh]hvoid}(hj xhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`ubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjxhK`ubj)}(hjh]h*}(hj)xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhK`ubj{)}(hERR_CASTh]j)}(hERR_CASTh]hERR_CAST}(hj:xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6xubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjxhK`ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjRxhhhNhNubj2)}(h h]h }(hjZxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRxubj)}(hjh]hconst}(hjhxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRxubj2)}(h h]h }(hjuxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRxubj )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRxubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRxubj)}(hptrh]hptr}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNxubah}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhK`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhK`ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjxhK`hjxhhubj)}(hhh]h)}(h?Explicitly cast an error-valued pointer to another pointer typeh]h?Explicitly cast an error-valued pointer to another pointer type}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`hjxhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhK`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhjohNhNubj)}(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)}(hjxh]h Parameters}(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.hhKdhjxubj )}(hhh]j)}(h1``__force const void *ptr`` The pointer to cast. h](j)}(h``__force const void *ptr``h]j)}(hjyh]h__force const void *ptr}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKahjyubj2)}(hhh]h)}(hThe pointer to cast.h]hThe pointer to cast.}(hj0yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,yhKahj-yubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhj,yhKahjyubah}(h]h ]h"]h$]h&]uh1j hjxubh)}(h**Description**h]j)}(hjRyh]h Description}(hjTyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPyubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKchjxubh)}(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.}(hjhyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKbhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j PTR_ERR_OR_ZERO (C function)c.PTR_ERR_OR_ZEROhNtauh1hhjohhhNhNubj)}(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}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKmubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjyhKmubj{)}(hPTR_ERR_OR_ZEROh]j)}(hPTR_ERR_OR_ZEROh]hPTR_ERR_OR_ZERO}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjyhKmubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjyhhhNhNubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj )}(hvoidh]hvoid}(hjzhhhNhNubah}(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&]uh1jhjyubj)}(hptrh]hptr}(hj*zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhjyhhhjyhKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhKmubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhjyhKmhjyhhubj)}(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.}(hjTzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKmhjQzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjyhKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjlzjjlzjjjuh1jhhhjohNhNubj)}(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)}(hjvzh]h Parameters}(hjxzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtzubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKqhjpzubj )}(hhh]j)}(h7``__force const void *ptr`` A potential error pointer. h](j)}(h``__force const void *ptr``h]j)}(hjzh]h__force const void *ptr}(hjzhhhNhNubah}(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.hhKnhjzubj2)}(hhh]h)}(hA potential error pointer.h]hA potential error pointer.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKnhjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhKnhjzubah}(h]h ]h"]h$]h&]uh1j hjpzubh)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKphjpzubh)}(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, }(hjzhhhNhNubj)}(h ``return PTR_ERR_OR_ZERO(ptr);``h]hreturn PTR_ERR_OR_ZERO(ptr);}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh replaces:}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKohjpzubj7C)}(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}uh1j6ChW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKshjpzubh)}(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.hhKzhjpzubh)}(hEThe error code within **ptr** if it is an error pointer; 0 otherwise.h](hThe error code within }(hj2{hhhNhNubj)}(h**ptr**h]hptr}(hj:{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2{ubh( if it is an error pointer; 0 otherwise.}(hj2{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK{hjpzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjohhhNhNubeh}(h]error-pointersah ]h"]error pointersah$]h&]uh1hhjhhhhhK^ubh)}(hhh](h)}(hSortingh]hSorting}(hje{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb{hhhhhKdubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sort_r (C function)c.sort_rhNtauh1hhjb{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 }(hj.|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hnumh]hnum}(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}(hjX|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZ|modnameN classnameNj] j` )}jc ]j*|c.sort_rasbuh1hhjQ|ubj2)}(h h]h }(hjv|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQ|ubj)}(hsizeh]hsize}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ|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 ]j*|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 ]j*|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}(hj-}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)}ubj2)}(h h]h }(hj:}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)}ubj )}(hvoidh]hvoid}(hjH}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)}ubj2)}(h h]h }(hjV}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)}ubj)}(hjh]h*}(hjd}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)}ubj)}(hprivh]hpriv}(hjq}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)}(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}jjjuh1jhhhjb{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)}(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.chMhj~ubj2)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(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 size`` size of each element h](j)}(h``size_t size``h]j)}(hjN~h]h size_t size}(hjP~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL~ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjH~ubj2)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjg~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc~hMhjd~ubah}(h]h ]h"]h$]h&]uh1j1hjH~ubeh}(h]h ]h"]h$]h&]uh1jhjc~hMhj}ubj)}(h9``cmp_r_func_t cmp_func`` pointer to comparison function h](j)}(h``cmp_r_func_t cmp_func``h]j)}(hj~h]hcmp_r_func_t cmp_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.chMhj~ubj2)}(hhh]h)}(hpointer to comparison functionh]hpointer to comparison function}(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=``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.chMhj~ubj2)}(hhh]h)}(h pointer to swap function or NULLh]h pointer to swap function or NULL}(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)}(hB``const void *priv`` third argument passed to comparison function h](j)}(h``const void *priv``h]j)}(hj~h]hconst void *priv}(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)}(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&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubeh}(h]h ]h"]h$]h&]uh1j hj}ubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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.}(hjJhhhNhNubah}(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.}(hjYhhhNhNubah}(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.}(hjhhhhNhNubah}(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&]uh1jhjb{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sort_r_nonatomic (C function)c.sort_r_nonatomichNtauh1hhjb{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}(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)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t numh](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.sort_r_nonatomicasbuh1hhjubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnumh]hnum}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](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 ]j5c.sort_r_nonatomicasbuh1hhj\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&]noemphjjuh1jhjubj)}(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 ]j5c.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&]noemphjjuh1jhjubj)}(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 ]j5c.sort_r_nonatomicasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h swap_funch]h swap_func}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *privh](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&]uh1j1hj4ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hprivh]hpriv}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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&]jjjjjjjjjuh1jhhhjb{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:hjށubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM;hjubj2)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM;hj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hM;hjށubj)}(h%``size_t size`` size of each element h](j)}(h``size_t size``h]j)}(hjYh]h size_t size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM<hjSubj2)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM<hjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM<hjށ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.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=hjށ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)}(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>hjށ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.chM?hjubj2)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(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}(hjAhhhNhNubah}(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.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().}(hjUhhhNhNubah}(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&]uh1jhjb{hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_sort (C function) c.list_sorthNtauh1hhjb{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}(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)}(hprivh]hpriv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct list_head *headh](j)}(hstructh]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 jsb c.list_sortasbuh1hhjubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hj]hhhNhNubah}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj{modnameN classnameNj] j` )}jc ]j> c.list_sortasbuh1hhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hcmph]hcmp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhKYubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjhKYhjyhhubj)}(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&]uh1jhjyhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjb{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.chKZhj ubj2)}(hhh]h)}(h6private data, opaque to list_sort(), passed to **cmp**h](h/private data, opaque to list_sort(), passed to }(hj)hhhNhNubj)}(h**cmp**h]hcmp}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1hhj%hKZhj&ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(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)}(hjWh]hstruct list_head *head}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK[hjQubj2)}(hhh]h)}(hthe list to sorth]hthe list to sort}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhK[hjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhK[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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (”}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh > }(hjhhhNhNubj)}(h**b**h]hb}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0” if you want an ascending sort), and <= 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort before }(hjhhhNhNubj)}(h**b**h]hb}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubhemphasis)}(h*or*h]hor}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jghjubhq 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}(hj{hhhNhNubah}(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(}(hj܆hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh, }(hj܆hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh') must return the opposite sign of cmp(}(hj܆hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh, }hj܆sbj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh). - Transitivity: if cmp(}(hj܆hhhNhNubj)}(h**a**h]ha}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh, }hj܆sbj)}(h**b**h]hb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh) <= 0 and cmp(}(hj܆hhhNhNubj)}(h**b**h]hb}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh, }hj܆sbj)}(h**c**h]hc}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh) <= 0, then cmp(}(hj܆hhhNhNubj)}(h**a**h]ha}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh, }hj܆sbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܆ubh) <= 0.}(hj܆hhhNhNubeh}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKqhjubj7C)}(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&]jjuh1j6ChT/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.}(hjއhhhNhNubah}(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).}(hj hhhNhNubah}(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.}(hjhhhNhNubah}(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.}(hj)hhhNhNubah}(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:}(hj8hhhNhNubah}(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)}(hjLh]hCThe state of bit k-1 (when k == 0, consider bit -1 always set), and}(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&]uh1jhjGubj)}(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)).}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjbubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhj[hKhjubh)}(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&]uh1jhjb{hhhNhNubeh}(h]sortingah ]h"]sortingah$]h&]uh1hhjhhhhhKdubh)}(hhh](h)}(hText Searchingh]hText Searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKmubh)}(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 hjhhubj)}(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.chKhj݈ubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubh)}(h ARCHITECTUREh]h ARCHITECTURE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjhhubj7C)}(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)}hjsbah}(h]h ]h"]h$]h&]jjj{j{nonej{}uh1j6ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjhhubh)}(hUSAGEh]hUSAGE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK6hjhhubj)}(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.}(hj)hhhNhNubah}(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.}(hj8hhhNhNubah}(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.}(hjGhhhNhNubah}(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&]uh1jhj7hK8hjhhubh)}(h EXAMPLE::h]hEXAMPLE:}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKLhjhhubj7C)}(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);}hjksbah}(h]h ]h"]h$]h&]jjuh1j6ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKNhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  textsearch_register (C function)c.textsearch_registerhNtauh1hhjhhhNhNubj)}(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)}(hjh]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)}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̉ubj)}(hopsh]hops}(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)}(hregister a textsearch moduleh]hregister a textsearch module}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhjhNhNubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjoubj )}(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 hjoubh)}(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.chKhjoubh)}(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.chKhjoubh)}(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.chKhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "textsearch_unregister (C function)c.textsearch_unregisterhNtauh1hhjhhhNhNubj)}(hhh](j)}(h.int textsearch_unregister (struct ts_ops *ops)h]j)}(h-int textsearch_unregister(struct ts_ops *ops)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhjChKubj{)}(htextsearch_unregisterh]j)}(htextsearch_unregisterh]htextsearch_unregister}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(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 jXsbc.textsearch_unregisterasbuh1hhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hopsh]hops}(hjˋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChKubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhjChKhj*hhubj)}(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&]uh1jhj*hhhjChKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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}(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/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hj6h]hstruct ts_ops *ops}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj0ubj2)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj-ubah}(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&]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&]refdocj3< 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.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'textsearch_find_continuous (C function)c.textsearch_find_continuoushNtauh1hhjhhhNhNubj)}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(htextsearch_find_continuoush]j)}(htextsearch_find_continuoush]htextsearch_find_continuous}(hj*hhhNhNubah}(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)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(h ts_configh]h ts_config}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf )}jY j,sbc.textsearch_find_continuousasbuh1hhjBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hstruct ts_state *stateh](j)}(hjh]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 reftargetj؍modnameN classnameNj] j` )}jc ]jc.textsearch_find_continuousasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hconst void *datah](j)}(hjh]hconst}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj )}(hvoidh]hvoid}(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)}(hdatah]hdata}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(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&]noemphjjuh1jhj>ubeh}(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&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(hj h]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)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hj(h]hstruct ts_config *conf}(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)}(hsearch configurationh]hsearch configuration}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjah]hstruct ts_state *state}(hjchhhNhNubah}(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)}(h search stateh]h search state}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjubj)}(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&]uh1jhjhKhjubj)}(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&]uh1jhjhKhjubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(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.chKhjubh)}(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 }(hj3hhhNhNubj)}(h ``UINT_MAX``h]hUINT_MAX}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh if no occurrence was found.}(hj3hhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_prepare (C function)c.textsearch_preparehNtauh1hhjhhhNhNubj)}(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)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhjhKubh)}(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_prepareasbuh1hhjphhhjhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhKubj{)}(htextsearch_prepareh]j)}(hjh]htextsearch_prepare}(hjӐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϐubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjhKubj)}(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}(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)}(halgoh]halgo}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *patternh](j)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hpatternh]hpattern}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(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 }(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&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hflagsh]hflags}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhKubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjihhubj)}(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&]uh1jhjihhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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&]uh1hhjݒhKhjޒubah}(h]h ]h"]h$]h&]uh1j1hj’ubeh}(h]h ]h"]h$]h&]uh1jhjݒhKhjubj)}(h%``const void *pattern`` pattern data h](j)}(h``const void *pattern``h]j)}(hjh]hconst void *pattern}(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 pattern datah]h pattern data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h'``unsigned int len`` length of pattern h](j)}(h``unsigned int len``h]j)}(hj:h]hunsigned int len}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubj2)}(hhh]h)}(hlength of patternh]hlength of pattern}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhjubj)}(h#``gfp_t gfp_mask`` allocation mask h](j)}(h``gfp_t gfp_mask``h]j)}(hjsh]hgfp_t gfp_mask}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjmubj2)}(hhh]h)}(hallocation maskh]hallocation mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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&]uh1hhjhKhj“ubah}(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&]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&]uh1jhj ubah}(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}(hj+hhhNhNubah}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj$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.}(hj]hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_destroy (C function)c.textsearch_destroyhNtauh1hhjhhhNhNubj)}(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)}(hjh]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&]noemphjjuh1jhjubah}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3hjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhjhNhNubj)}(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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM7hjhubj )}(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 hjhubh)}(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.chM6hjhubh)}(hEReleases all references of the configuration and frees up the memory.h]hEReleases all references of the configuration and frees up the memory.}(hjޕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM5hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_next (C function)c.textsearch_nexthNtauh1hhjhhhNhNubj)}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhK_ubj )}(hinth]hint}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhjhK_ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhK_ubj{)}(htextsearch_nexth]j)}(htextsearch_nexth]htextsearch_next}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhK_ubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(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 jLsbc.textsearch_nextasbuh1hhjbubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hstruct ts_state *stateh](j)}(hjh]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_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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԖubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK_hjhhubj)}(hhh]h)}(h continue searching for a patternh]h continue searching for a pattern}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_hjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jhhhjhNhNubj)}(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)}(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:117: ./include/linux/textsearch.hhKchjuubj )}(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 hjuubh)}(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:117: ./include/linux/textsearch.hhKchjuubh)}(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.hhKbhjuubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKfhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_find (C function)c.textsearch_findhNtauh1hhjhhhNhNubj)}(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}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKvubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhjphKvubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^hhhjphKvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhjphKvubj{)}(htextsearch_findh]j)}(htextsearch_findh]htextsearch_find}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhjphKvubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjhhhNhNubah}(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}(hj٘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֘ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjۘmodnameN 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)}(hjh]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)}(hts_stateh]hts_state}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jc.textsearch_findasbuh1hhj)ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphKvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphKvubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjphKvhjWhhubj)}(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&]uh1jhjWhhhjphKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjƙjjƙjjjuh1jhhhjhNhNubj)}(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&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(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.hhKxhj"ubj2)}(hhh]h)}(h search stateh]h search state}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKxhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKxhjubeh}(h]h ]h"]h$]h&]uh1j hjʙubh)}(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: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.}(hjyhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #textsearch_get_pattern (C function)c.textsearch_get_patternhNtauh1hhjhhhNhNubj)}(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)}(hjh]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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jؚsbc.textsearch_get_patternasbuh1hhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hconfh]hconf}(hjKhhhNhNubah}(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}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'textsearch_get_pattern_len (C function)c.textsearch_get_pattern_lenhNtauh1hhjhhhNhNubj)}(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&]uh1jhj hhh_/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&]uh1j1hj hhhjhKubj )}(hinth]hint}(hj-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhjhKubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhKubj{)}(htextsearch_get_pattern_lenh]j)}(htextsearch_get_pattern_lenh]htextsearch_get_pattern_len}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(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 jOsbc.textsearch_get_pattern_lenasbuh1hhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hconfh]hconf}(hjœhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](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:117: ./include/linux/textsearch.hhKhjubj )}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hj-h]hstruct ts_config *conf}(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.hhKhj'ubj2)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhj$ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]text-searchingah ]h"]text searchingah$]h&]uh1hhjhhhhhKmubeh}(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&]uh1hhj~hhhhhKzubh)}(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}(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.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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK3hjubah}(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.hhK7hjubj )}(hhh](j)}(h``a`` first addend h](j)}(h``a``h]j)}(hjCh]ha}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK4hj=ubj2)}(hhh]h)}(h first addendh]h first addend}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhK4hjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhK4hj:ubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hj|h]hb}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK5hjvubj2)}(hhh]h)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhK5hj:ubj)}(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ʞhK6hj: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.hhK8hjubh)}(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.hhK7hjubh)}(h_***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjhhhNhNubah}(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.hhK9hjubeh}(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)}(hjLh]h wrapping_add}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKAubah}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjihKAubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhjihKAhjGhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjGhhhjihKAubeh}(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)}(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.hhKEhjubj )}(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.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}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKChj+ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj*hKChjӟubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hjNh]hb}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKDhjHubj2)}(hhh]h)}(h second addendh]h second addend}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKDhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchKDhjӟ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]jah ](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)}(hjh]h!wrapping_assign_add (var, offset)}(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.hhKShjhhubj)}(h6Intentionally perform a wrapping increment assignment h]h)}(h5Intentionally perform a wrapping increment assignmenth]h5Intentionally perform a wrapping increment assignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKQhjubah}(h]h ]h"]h$]h&]uh1jhj,hKQhjhhubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKUhj3ubj )}(hhh](j)}(h#``var`` variable to be incremented h](j)}(h``var``h]j)}(hjXh]hvar}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKRhjRubj2)}(hhh]h)}(hvariable to be incrementedh]hvariable to be incremented}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKRhjnubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKRhjOubj)}(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&]uh1jhjhKShjOubeh}(h]h ]h"]h$]h&]uh1j hj3ubh)}(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.hhKUhj3ubh)}(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.hhKThj3ubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hj'hhhNhNubj)}(h**var**h]hvar}(hj/hhhNhNubah}(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.hhKWhj3ubeh}(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)}(hjbh]hcheck_sub_overflow}(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.hhKaubah}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjhKaubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhjhKahj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]hhhjhKaubeh}(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}(hj hhhNhNubah}(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)}(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.hhKchj%ubj2)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjDhhhNhNubj)}(h**a**h]ha}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1hhj@hKchjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKchjubj)}(h"``d`` pointer to store difference h](j)}(h``d``h]j)}(hjrh]hd}(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.hhKdhjlubj2)}(hhh]h)}(hpointer to store differenceh]hpointer to store difference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKdhjubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(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)}(hj h]h wrapping_sub}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hKoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj&hKohjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj&hKoubeh}(h]h ](jmacroeh"]h$]h&]jjjj?jj?jjjuh1jhhhjhNhNubh)}(h``wrapping_sub (type, a, b)``h]j)}(hjEh]hwrapping_sub (type, a, b)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKohj[ubah}(h]h ]h"]h$]h&]uh1jhjmhKohjhhubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKshjtubj )}(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)}(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.hhKrhjubj2)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hj$hhhNhNubj)}(h**a**h]ha}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1hhj hKrhj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKrhjubeh}(h]h ]h"]h$]h&]uh1j hjtubh)}(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:127: ./include/linux/overflow.hhKthjtubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKshjtubeh}(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)}(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#``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.hhKhjubj2)}(hhh]h)}(hvariable to be decrementedh]hvariable to be decremented}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjubj)}(h``offset`` amount to subtract h](j)}(h ``offset``h]j)}(hj\h]hoffset}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjVubj2)}(hhh]h)}(hamount to subtracth]hamount to subtract}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjubeh}(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}(hj٦hhhNhNubah}(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)}(hj-h]hcheck_mul_overflow}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(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+hhhjJhKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jhjJhKhj(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj(hhhjJhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjcjjcjjjuh1jhhhjhNhNubh)}(h ``check_mul_overflow (a, b, d)``h]j)}(hjih]hcheck_mul_overflow (a, b, d)}(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.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)}(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}(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&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h``d`` pointer to store product h](j)}(h``d``h]j)}(hj/h]hd}(hj1hhhNhNubah}(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)}(hpointer to store producth]hpointer to store product}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhjubeh}(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: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]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``wrapping_mul (type, a, b)``h]j)}(hjh]hwrapping_mul (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.hhKhjhhubj)}(h0Intentionally perform a wrapping multiplication h]h)}(h/Intentionally perform a wrapping multiplicationh]h/Intentionally perform a wrapping multiplication}(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&]uh1jhj*hKhjhhubj)}(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)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj1ubj )}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjVh]htype}(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.hhKhjPubj2)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjMubj)}(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&]uh1jhjhKhjMubj)}(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&]uh1hhjݩhKhjީubah}(h]h ]h"]h$]h&]uh1j1hj©ubeh}(h]h ]h"]h$]h&]uh1jhjݩhKhjMubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj1ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj1ubeh}(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)}(hjBh]hcheck_shl_overflow}(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.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj_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&]jjjjxjjxjjjuh1jhhhjhNhNubh)}(h ``check_shl_overflow (a, s, d)``h]j)}(hj~h]hcheck_shl_overflow (a, s, d)}(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.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)}(hj h]hs}(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)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjɪubj)}(h+``d`` Pointer to where to store the result h](j)}(h``d``h]j)}(hjDh]hd}(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)}(h$Pointer to where to store the resulth]h$Pointer to where to store the result}(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&]uh1jhj}ubah}(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}(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.hhKhjubh)}(hpReturns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions:h](hReturns true if ‘}(hjګhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjګubh&’ cannot hold the result or when ‘}(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-’ doesn’t make sense. Example conditions:}(hjګhhhNhNubeh}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh << }(hj&hhhNhNubj)}(h**s**h]hs}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh*’ causes bits to be lost when stored in }(hj&hhhNhNubj)}(h***d**h]h*d}(hjQhhhNhNubah}(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&]uh1jhjubj)}(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‘}(hjthhhNhNubj)}(h**s**h]hs}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhA’ is garbage (e.g. negative) or so large that the result of ‘}(hjthhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh << }(hjthhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh’ is guaranteed to be 0.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjpubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'**a**' is negative.h]h)}(hjh](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.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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}(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.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjihKhjubh)}(hp'***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h‘}(hj>hhhNhNubj)}(h***d**h]h*d}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubho’ will hold the results of the attempted shift, but is not considered “safe for use” if true is returned.}(hj>hhhNhNubeh}(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)}(hjyh]hoverflows_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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&]jjjuh1jjjhjwhhhjhKubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhKubeh}(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&]uh1jhjݭhKhjhhubj)}(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)}(hj h]hn}(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.hhKhjubj2)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h@``T`` destination variable or data type proposed to store **x** h](j)}(h``T``h]j)}(hjBh]hT}(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.hhKhj<ubj2)}(hhh]h)}(h9destination variable or data type proposed to store **x**h](h4destination variable or data type proposed to store }(hj[hhhNhNubj)}(h**x**h]hx}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhjubeh}(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}(hjhhhNhNubah}(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}(hj߮hhhNhNubah}(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)}(hj h]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.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)}(hjKh]hrange_overflows}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjhhKubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1jhjhhKhjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjhhKubeh}(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)}(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``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.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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhjүubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjMh]hmax}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjGubj2)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjү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}(hjܰhhhNhNubah}(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)}(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 the range is out of bounds.h]h#true if the range is out of bounds.}(hj1hhhNhNubah}(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)}(hjZh]hrange_overflows_t}(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&]jjjuh1jjjhjXhhhjwhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhjwhMhjUhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjUhhhjwhMubeh}(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&]uh1jhjhMhjhhubj)}(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.}(hjhhhNhNubah}(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.hhMhjubj2)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hj\h]hsize}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjVubj2)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(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)}(hj h]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: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.}(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 range_end_overflows (C macro)c.range_end_overflowshNtauh1hhjhhhNhNubj)}(hhh](j)}(hrange_end_overflowsh]j)}(hrange_end_overflowsh]j{)}(hrange_end_overflowsh]j)}(hjHh]hrange_end_overflows}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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*``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}(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``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.}(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.hhMhj ubj2)}(hhh]h)}(hSize of the range.h]hSize of the range.}(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"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjJh]hmax}(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.hhMhjDubj2)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(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: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}(hjٴhhhNhNubah}(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&]uh1jhjubah}(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.}(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 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)}(hjEh]hrange_end_overflows_t}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM$ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjbhM$ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjbhM$hj@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@hhhjbhM$ubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1jhhhjhNhNubh)}(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&]uh1jhj ubah}(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)}(hjGh]hsize}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM'hjAubj2)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj`hhhNhNubah}(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"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjh]hmax}(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.hhM(hjzubj2)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(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&]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&]uh1j1hjxhhhjhMBubj{)}(hsize_mulh]j)}(hjh]hsize_mul}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjhMBubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.size_mulasbuh1hhjubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfactor2h]hfactor2}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjƸubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhMBubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjhMBhjqhhubj)}(hhh]h)}(h;Calculate size_t multiplication with saturation at SIZE_MAXh]h;Calculate size_t multiplication with saturation at SIZE_MAX}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMBhjlhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhMBubeh}(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}(hjhhhNhNubah}(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 }(hj:hhhNhNubj)}(h **factor1**h]hfactor1}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh * }(hj:hhhNhNubj)}(h **factor2**h]hfactor2}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh, 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.}(hj:hhhNhNubeh}(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&]uh1jhjubah}(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&]uh1jhjߺubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.size_addasbuh1hhjۺubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjۺubj)}(haddend1h]haddend1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۺubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj׺ubj)}(hsize_t addend2h](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_addasbuh1hhj#ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(haddend2h]haddend2}(hjVhhhNhNubah}(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.hhMUhj}hhubah}(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)}(hjh]hsize_t addend1}(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.hhMVhjubj2)}(hhh]h)}(h first addendh]h first addend}(hjڻhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjֻhMVhj׻ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(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)}(hj5h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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 }(hjKhhhNhNubj)}(h **addend1**h]haddend1}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh + }(hjKhhhNhNubj)}(h **addend2**h]haddend2}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh, 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.}(hjKhhhNhNubeh}(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)}(hjh]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subtrahendh](h)}(hhh]j)}(hsize_th]hsize_t}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=modnameN classnameNj] j` )}jc ]j c.size_subasbuh1hhj4ubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(h subtrahendh]h subtrahend}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(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)}(hj h]hsize_t subtrahend}(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.hhMjhjubj2)}(hhh]h)}(h"value to subtract from **minuend**h](hvalue to subtract from }(hj$hhhNhNubj)}(h **minuend**h]hminuend}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1hhj hMjhj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMjhjɽubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(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 }(hjjhhhNhNubj)}(h **minuend**h]hminuend}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh - }(hjjhhhNhNubj)}(h**subtrahend**h]h subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhX, 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.}(hjjhhhNhNubeh}(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}(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&]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.}(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&]uh1jhjhM~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)}(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``a`` dimension one h](j)}(h``a``h]j)}(hjGh]ha}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjAubj2)}(hhh]h)}(h dimension oneh]h dimension one}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjh]hb}(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.hhMhjzubj2)}(hhh]h)}(h dimension twoh]h dimension two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(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:127: ./include/linux/overflow.hhMhj"ubh)}(h6Calculates size of 2-dimensional array: **a** * **b**.h](h(Calculates size of 2-dimensional array: }(hjѿhhhNhNubj)}(h**a**h]ha}(hjٿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѿubh * }(hjѿhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(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"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)}(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.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)}(hjEh]h array3_size}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjbhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjbhMhj@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@hhhjbhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1jhhhjhNhNubh)}(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&]uh1jhj ubah}(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)}(hjGh]hc}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjAubj2)}(hhh]h)}(hdimension threeh]hdimension three}(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 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)}(hjh]hflex_array_size}(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.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&``flex_array_size (p, member, count)``h]j)}(hjZh]h"flex_array_size (p, member, count)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjpubah}(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&]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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubeh}(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&]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 }(hjqhhhNhNubj)}(h **count**h]hcount}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh number of }(hjqhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh# elements, at the end of structure }(hjqhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh.}(hjqhhhNhNubeh}(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}(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&]jjjj-jj-jjjuh1jhhhjhNhNubh)}(h"``struct_size (p, member, count)``h]j)}(hj3h]hstruct_size (p, member, count)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjIubah}(h]h ]h"]h$]h&]uh1jhj[hMhjhhubj)}(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)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjbubj )}(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&]uh1jhjhMhj~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 hjbubh)}(h**Description**h]j)}(hj4h]h Description}(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.hhMhjbubh)}(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 }(hjJhhhNhNubj)}(h**p**h]hp}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh followed by an array of }(hjJhhhNhNubj)}(h **count**h]hcount}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh number of }(hjJhhhNhNubj)}(h **member**h]hmember}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh elements.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjbubh)}(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.hhMhjbubh)}(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.hhMhjbubeh}(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)}(hj h]h#struct_size_t (type, member, count)}(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.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&]uh1jhj4hMhjhhubj)}(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)}(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.hhMhj;ubj )}(hhh](j)}(h``type`` structure type name. h](j)}(h``type``h]j)}(hj`h]htype}(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.hhMhjZubj2)}(hhh]h)}(hstructure type name.h]hstructure type name.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubj)}(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&]uh1jhjhMhjWubj)}(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&]uh1jhjhMhjWubeh}(h]h ]h"]h$]h&]uh1j hj;ubh)}(h**Description**h]j)}(hj h]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:127: ./include/linux/overflow.hhMhj;ubh)}(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}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh followed by an array of }(hj#hhhNhNubj)}(h **count**h]hcount}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh number of }(hj#hhhNhNubj)}(h **member**h]hmember}(hjOhhhNhNubah}(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}(hjahhhNhNubah}(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;ubh)}(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.hhMhj;ubh)}(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.hhMhj;ubeh}(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.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(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)}(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``p`` Pointer to the struct 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:127: ./include/linux/overflow.hhMhjEubj2)}(hhh]h)}(hPointer to the structh]hPointer to the struct}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(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.hhMhj~ubj2)}(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&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubeh}(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)}(hj h]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: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}(hj(hhhNhNubah}(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)}(hj[h]h __DEFINE_FLEX}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(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&]jjjuh1jjjhjYhhhjxhMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjxhMhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjxhMubeh}(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.}(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)}(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.hhMhjubj2)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(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.hhMhjWubj2)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(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)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(hG``count`` Number of elements in the array; must be compile-time const. 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.hhMhjXubj2)}(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)}(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:``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)}(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)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hj:h]hcount}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj4ubj2)}(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.hhMhjjubeh}(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)}(hj2h]h DEFINE_FLEX}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjOhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jhjOhMhj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-hhhjOhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjhjjhjjjuh1jhhhjhNhNubh)}(h4``DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)``h]j)}(hjnh]h0DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(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)}(hj4h]hMEMBER}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM hjubj)}(h-``COUNTER`` Name of the __counted_by member. h](j)}(h ``COUNTER``h]j)}(hjmh]hCOUNTER}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjgubj2)}(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&]uh1j1hjgubeh}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjhhhNhNubj)}(h**name**h]hname}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **member**h]hmember}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2) to get compile-time number of elements in array }(hjhhhNhNubj)}(h **member**h]hmember}(hjkhhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj )}(hhh](j)}(hI``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). h](j)}(h``name``h]j)}(hj@h]hname}(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.hhMhj:ubj2)}(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().}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(h#``array`` Name of the array member.h](j)}(h ``array``h]j)}(hjyh]harray}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjsubj2)}(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&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhM hj7ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``typeof_flex_counter (FAM)``h]j)}(hj h]htypeof_flex_counter (FAM)}(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(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&hjubah}(h]h ]h"]h$]h&]uh1jhj1hM&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)}(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.hhM*hj8ubj )}(hhh]j)}(hA``FAM`` Instance of flexible array member within a given struct. h](j)}(h``FAM``h]j)}(hj]h]hFAM}(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(hjWubj2)}(hhh]h)}(h8Instance of flexible array member within a given struct.h]h8Instance of flexible array member within a given struct.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM(hjsubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM(hjTubah}(h]h ]h"]h$]h&]uh1j hj8ubh)}(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*hj8ubh)}(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*hj8ubeh}(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&]jjjj jj jjjuh1jhhhjhNhNubh)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM2hj)ubah}(h]h ]h"]h$]h&]uh1jhj;hM2hjhhubj)}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM6hjBubj )}(hhh](j)}(h7``TYPE`` Type of the struct that contains the **FAM**. h](j)}(h``TYPE``h]j)}(hjgh]hTYPE}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM5hjaubj2)}(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&]uh1hhj|hM5hj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM5hj^ubj)}(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&]uh1jhjhM6hj^ubj)}(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}(hjhhhNhNubah}(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&]uh1jhjhM7hj^ubeh}(h]h ]h"]h$]h&]uh1j hjBubh)}(h **Return**h]j)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM9hjBubh)}(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 }(hj`hhhNhNubj)}(h **COUNT**h]hCOUNT}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh can be represented in the }(hj`hhhNhNubj)}(h**FAM**h]hFAM}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh’s counter. When }(hj`hhhNhNubj)}(h**FAM**h]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh; is not annotated with __counted_by(), always returns true.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM9hjBubeh}(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)}(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.hhMDhj*ubj )}(hhh](j)}(hA``FAM`` Instance of flexible array member within a given struct. h](j)}(h``FAM``h]j)}(hjOh]hFAM}(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.hhMBhjIubj2)}(hhh]h)}(h8Instance of flexible array member within a given struct.h]h8Instance of flexible array member within a given struct.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMBhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMBhjFubj)}(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&]uh1jhjhMChjFubeh}(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.hhMEhj*ubh)}(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.hhMDhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]arithmetic-overflow-checkingah ]h"]arithmetic overflow checkingah$]h&]uh1hhj~hhhhhK}ubh)}(hhh](h)}(h CRC Functionsh]h CRC Functions}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc4 (C function)c.crc4hNtauh1hhj hhhNhNubj)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jf )}jY crc4sbc.crc4asbuh1hhj/hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhjWhKubj{)}(hcrc4h]j)}(hjTh]hcrc4}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhjWhKubj)}(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 ]jRc.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&]noemphjjuh1jhj}ubj)}(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 ]jRc.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&]noemphjjuh1jhj}ubj)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubeh}(h]h ]h"]h$]h&]jjuh1jhj/hhhjWhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhjWhKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jhjWhKhj(hhubj)}(hhh]h)}(h#calculate the 4-bit crc of a value.h]h#calculate the 4-bit crc of a value.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjWhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjWhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhj hNhNubj)}(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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjvubj )}(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)}(hj h]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(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}(hj.hhhNhNubah}(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 hjvubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjvubh)}(h:Returns the crc4 value of **x**, using polynomial 0b10111.h](hReturns the crc4 value of }(hjphhhNhNubj)}(h**x**h]hx}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh, using polynomial 0b10111.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjvubh)}(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.chKhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc7_be (C function) c.crc7_behNtauh1hhj hhhNhNubj)}(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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK5ubj{)}(hcrc7_beh]j)}(hjh]hcrc7_be}(hjhhhNhNubah}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]j c.crc7_beasbuh1hhj2ubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hcrch]hcrc}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc7_beasbuh1hhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(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 ]j c.crc7_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&]noemphjjuh1jhj.ubeh}(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}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5hjDhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhj hNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjcubj )}(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 hjcubh)}(h **Context**h]j)}(hj5h]hContext}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjcubh)}(hanyh]hany}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjcubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK;hjcubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc8_populate_msb (C function)c.crc8_populate_msbhNtauh1hhj hhhNhNubj)}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(htableh]htable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h[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 reftargetj0modnameN classnameNj] j` )}jc ]jc.crc8_populate_msbasbuh1hhjubj)}(h]h]h]}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]j)}(hu8h]hu8}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jc.crc8_populate_msbasbuh1hhjaubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(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&]jjjjjjjjjuh1jhhhj hNhNubj)}(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]}(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.chKhjubj2)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjhhhNhNubah}(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)}(hj8h]h u8 polynomial}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhj2ubj2)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc8_populate_lsb (C function)c.crc8_populate_lsbhNtauh1hhj hhhNhNubj)}(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)}(hjh]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jc.crc8_populate_lsbasbuh1hhjubj)}(hjNh]h]}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]j)}(hu8h]hu8}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jc.crc8_populate_lsbasbuh1hhjPubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(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&]jjjjjjjjjuh1jhhhj hNhNubj)}(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&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(hj'h]h u8 polynomial}(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.chK3hj!ubj2)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK2hj=ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hK3hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc8 (C function)c.crc8hNtauh1hhj hhhNhNubj)}(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.crc8asbuh1hhj}hhhS/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&]uh1j1hj}hhhjhKDubj{)}(hcrc8h]j)}(hjh]hcrc8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhKDubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h[}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=modnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhjubj)}(hjNh]h]}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *pdatah](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hpdatah]hpdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(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 }(hjhhhNhNubah}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.modnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhj%ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hcrch]hcrc}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhKDubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjhKDhjvhhubj)}(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&]uh1jhjvhhhjhKDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj hNhNubj)}(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)}(hj5h]h size_t nbytes}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKHhj/ubj2)}(hhh]h)}(hnumber of bytes in data buffer.h]hnumber of bytes in data buffer.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKHhjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKHhjubj)}(h(``u8 crc`` previous returned crc8 value.h](j)}(h ``u8 crc``h]j)}(hjnh]hu8 crc}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKJhjhubj2)}(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&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc16 (C function)c.crc16hNtauh1hhj hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc16asbuh1hhjubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcrch]hcrc}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const u8 *ph](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc16asbuh1hhj^ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hjh]hp}(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 ]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}(hj*hhhNhNubah}(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&]jjjjBjjBjjjuh1jhhhj hNhNubj)}(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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK4hjFubj )}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjkh]hu16 crc}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK1hjeubj2)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjbubj)}(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&]uh1jhjhK2hjbubj)}(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&]uh1jhjhK3hjbubeh}(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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK5hjFubh)}(hReturns the updated CRC value.h]hReturns the updated CRC value.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK4hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc_ccitt (C function) c.crc_ccitthNtauh1hhj hhhNhNubj)}(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}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY crc_ccittsb c.crc_ccittasbuh1hhjYhhhX/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&]uh1j1hjYhhhjhK3ubj{)}(h crc_ccitth]j)}(hj~h]h crc_ccitt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjhK3ubj)}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufferh]hbuffer}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]j| c.crc_ccittasbuh1hhjcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjhK3ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jhjhK3hjRhhubj)}(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&]uh1jhjRhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj hNhNubj)}(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)}(hjh]hu16 crc}(hjhhhNhNubah}(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}(hjhhhNhNubah}(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)}(hj:h]hu8 const *buffer}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK6hj4ubj2)}(hhh]h)}(h data pointerh]h data pointer}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhK6hjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhK6hjubj)}(h,``size_t len`` number of bytes in the bufferh](j)}(h``size_t len``h]j)}(hjsh]h size_t len}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK8hjmubj2)}(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&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc_itu_t (C function) c.crc_itu_thNtauh1hhj hhhNhNubj)}(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}(hjhhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]j c.crc_itu_tasbuh1hhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcrch]hcrc}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubh)}(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_tasbuh1hhjcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2hj-hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhj hNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hjLubj )}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjqh]hu16 crc}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK4hjkubj2)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjhubj)}(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&]uh1jhjhK5hjhubj)}(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&]uh1jhjhK6hjhubeh}(h]h ]h"]h$]h&]uh1j hjLubh)}(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:148: ./lib/crc/crc-itu-t.chK8hjLubh)}(hReturns the updated CRC valueh]hReturns the updated CRC value}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK7hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc32_le (C function) c.crc32_lehNtauh1hhj hhhNhNubj)}(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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jf )}jY crc32_lesb c.crc32_leasbuh1hhj_hhhZ/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&]uh1j1hj_hhhjhK ubj{)}(hcrc32_leh]j)}(hjh]hcrc32_le}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj_hhhjhK 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 }(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*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjAhhhNhNubah}(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&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]j c.crc32_leasbuh1hhjUubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjhK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjhK ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jhjhK hjXhhubj)}(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&]uh1jhjXhhhjhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj hNhNubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hj ubah}(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)}(hj-h]h const void *p}(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:151: ./include/linux/crc32.hhK hj'ubj2)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhK hjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhK hjubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjfh]h size_t len}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(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)}(hLength of data in bytesh]hLength of data in bytes}(hjhhhNhNubah}(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**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.hhKhj ubah}(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}(hj)hhhNhNubah}(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 }(hjDhhhNhNubjh)}(h*not*h]hnot}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjDubh 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.}(hjDhhhNhNubeh}(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().}(hjehhhNhNubah}(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)}(hjvh]hContext}(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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc32_be (C function) c.crc32_behNtauh1hhj hhhNhNubj)}(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)}(hjh]hcrc32_be}(hjhhhNhNubah}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]j c.crc32_beasbuh1hhj0ubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hcrch]hcrc}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(h const void *ph](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj )}(hvoidh]hvoid}(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)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(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 ]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&]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.Compute most-significant-bit-first IEEE CRC-32h]h.Compute most-significant-bit-first IEEE CRC-32}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(hj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhj hNhNubj)}(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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK,hjMubj )}(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)}(hjrh]hu32 crc}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK*hjlubj2)}(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&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjhK*hjiubj)}(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+hjiubj)}(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,hjiubeh}(h]h ]h"]h$]h&]uh1j hjMubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(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.hjMubh)}(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 }(hj6hhhNhNubjh)}(h*most-significant-bit-first*h]hmost-significant-bit-first}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj6ubh 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:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK-hjMubj)}(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 +}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK2hjaubj2)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK3hjtubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjshK2hj^ubah}(h]h ]h"]h$]h&]uh1j hjZubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(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&]uh1jhjWubj)}(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&]uh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjshK2hjMubh)}(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.hhK7hjMubh)}(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.hhK8hjMubh)}(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:hjMubh)}(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.hhK9hjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc32c (C function)c.crc32chNtauh1hhj hhhNhNubj)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY crc32csbc.crc32casbuh1hhj?hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK>ubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhjghK>ubj{)}(hcrc32ch]j)}(hjdh]hcrc32c}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhjghK>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 ]jbc.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}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj>modnameN classnameNj] j` )}jc ]jbc.crc32casbuh1hhj5ubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hlenh]hlen}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjghK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjghK>ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1jhjghK>hj8hhubj)}(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&]uh1jhj8hhhjghK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj hNhNubj)}(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)}(hj h]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(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)}(hjFh]h size_t len}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKBhj@ubj2)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKBhj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKBhjubeh}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKIhjubah}(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$hhhNhNubjh)}(h*not*h]hnot}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj$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)}(hjGh]hContext}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(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}(hj]hhhNhNubah}(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)}(hjnh]hReturn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc64_be (C function) c.crc64_behNtauh1hhj hhhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]j c.crc64_beasbuh1hhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcrch]hcrc}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](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)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(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}(hjhhhNhNubah}(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&]jjjjjjjjjuh1jhhhj hNhNubj)}(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 hjubj )}(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)}(hjCh]hu64 crc}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hj=ubj2)}(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.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhK hj:ubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hj}h]h const void *p}(hjhhhNhNubah}(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.hhK hjwubj2)}(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&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhK hj:ubj)}(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 hj:ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc64_nvme (C function) c.crc64_nvmehNtauh1hhj hhhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY crc64_nvmesb c.crc64_nvmeasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjBhKubj{)}(h crc64_nvmeh]j)}(hj?h]h crc64_nvme}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjBhKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]j)}(hu64h]hu64}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjumodnameN classnameNj] j` )}jc ]j= c.crc64_nvmeasbuh1hhjlubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(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&]noemphjjuh1jhjhubj)}(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_nvmeasbuh1hhjubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjBhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjBhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjBhKhjhhubj)}(hhh]h)}(hCalculate CRC64-NVMEh]hCalculate CRC64-NVME}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjBhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj hNhNubj)}(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}(hjhhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubj2)}(hhh]h)}(hlength of buffer **p**h](hlength of buffer }(hj:hhhNhNubj)}(h**p**h]hp}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1hhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubeh}(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&]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, }(hjhhhNhNubjh)}(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&]uh1jghjubh.}(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&]uh1jhj hhhNhNubeh}(h] crc-functionsah ]h"] crc functionsah$]h&]uh1hhj~hhhhhKubh)}(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}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjNhhhNhNubah}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%hjthhubah}(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 }(hj hhhNhNubjh)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj ubh considered a power of two.}(hj hhhNhNubeh}(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)}(hj,h]hReturn}(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.hhK*hjubh)}(h/true if **n** is a power of 2, otherwise false.h](htrue if }(hjBhhhNhNubj)}(h**n**h]hn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh" is a power of 2, otherwise false.}(hjBhhhNhNubeh}(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&]jjjuh1jjjhj{hhhjhK3ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjhK3hjxhhubj)}(hhh]h)}(h round up to nearest power of twoh]h round up to nearest power of two}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3hj:hhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhjhNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(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.hhK7hjYubj )}(hhh]j)}(h%``unsigned long n`` value to round uph](j)}(h``unsigned long n``h]j)}(hj~h]hunsigned long n}(hjhhhNhNubah}(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.hhK9hjxubj2)}(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&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhK9hjuubah}(h]h ]h"]h$]h&]uh1j hjYubeh}(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 }(hjhhhNhNubah}(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}(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)}(hjh]hn}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(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)}(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}(hj1hhhNhNubah}(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.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhjDhKGubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhjDhKGhj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhjDhKGubeh}(h]h ](jmacroeh"]h$]h&]jjjj]jj]jjjuh1jhhhjhNhNubh)}(h``const_ilog2 (n)``h]j)}(hjch]hconst_ilog2 (n)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGhjyubah}(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)}(hj1h]hilog2}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjNhKubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jhjNhKhj,hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj,hhhjNhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjgjjgjjjuh1jhhhjhNhNubh)}(h ``ilog2 (n)``h]j)}(hjmh]h ilog2 (n)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(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)}(hjJh]hroundup_pow_of_two}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.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``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}(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 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)}(hjTh]hrounddown_pow_of_two}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjqhKubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjqhKhjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjqhKubeh}(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)}(hjh]h Description}(hj!hhhNhNubah}(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 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}(hj5hhhNhNubah}(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)}(hj^h]h order_base_2}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(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&]jjjuh1jjjhj\hhhj{hKubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jhj{hKhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhj{hKubeh}(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&]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.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:}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjBubj2)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjUubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhjThKhj?ubah}(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)}(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)}(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.hhKhjubj2)}(hhh]h)}(h parameterh]h parameter}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjubah}(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)}(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.}(hjthhhNhNubah}(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}(hj hhhNhNubah}(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 }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjChhhNhNubah}(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 return highest power-of-2 factorh]h return highest power-of-2 factor}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjihhubah}(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&]uh1hhj~hhhhhKubh)}(hhh](h)}(hInteger log and power Functionsh]hInteger log and power Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j intlog2 (C function) c.intlog2hNtauh1hhjhhhNhNubj)}(hhh](j)}(h unsigned int intlog2 (u32 value)h]j)}(hunsigned int intlog2(u32 value)h](j )}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjThKubj )}(hinth]hint}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBhhhjThKubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjThKubj{)}(hintlog2h]j)}(hintlog2h]hintlog2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjThKubj)}(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&]jjuh1jhjBhhhjThKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhjThKhj;hhubj)}(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}(hjhhhNhNubah}(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&]uh1jhj;hhhjThKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:164: ./include/linux/int_log.hhKhjubj )}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj5ubj2)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKhjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhj2ubah}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(hSome usecase examples:h]hSome usecase examples:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubh)}(h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24h]h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubh)}(h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24h]h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(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:164: ./include/linux/int_log.hhKhjubh)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j intlog10 (C function) c.intlog10hNtauh1hhjhhhNhNubj)}(hhh](j)}(h!unsigned int intlog10 (u32 value)h]j)}(h unsigned int intlog10(u32 value)h](j )}(hunsignedh]hunsigned}(hjA hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj= hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$ubj2)}(h h]h }(hjP hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj= hhhjO hK$ubj )}(hinth]hint}(hj^ hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj= hhhjO hK$ubj2)}(h h]h }(hjl hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj= hhhjO hK$ubj{)}(hintlog10h]j)}(hintlog10h]hintlog10}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj= hhhjO 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&]jjuh1jhj= hhhjO hK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9 hhhjO hK$ubah}(h]j4 ah ](jjeh"]h$]h&]jj)jhuh1jhjO hK$hj6 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&]uh1jhj6 hhhjO hK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(hj6 h]h u32 value}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4 ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK&hj0 ubj2)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK hK&hjL ubah}(h]h ]h"]h$]h&]uh1j1hj0 ubeh}(h]h ]h"]h$]h&]uh1jhjK hK&hj- ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjq h]h Description}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo 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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j int_pow (C function) c.int_powhNtauh1hhjhhhNhNubj)}(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}(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjK modnameN classnameNj] j` )}jc ]jf )}jY int_powsb c.int_powasbuh1hhjB hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK ubj2)}(h h]h }(hjk hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjB hhhjj hK ubj{)}(hint_powh]j)}(hjg h]hint_pow}(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjB hhhjj 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 ]je  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&]jjuh1jhjB hhhjj hK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj> hhhjj hK ubah}(h]j9 ah ](jjeh"]h$]h&]jj)jhuh1jhjj hK hj; hhubj)}(hhh]h)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK hj? hhubah}(h]h ]h"]h$]h&]uh1jhj; hhhjj hK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZ jjZ jjjuh1jhhhjhNhNubj)}(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)}(hjd h]h Parameters}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj^ 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 hKhjz 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 hKhjz 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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj^ ubh)}(hCComputes: pow(base, exp), i.e. **base** raised to the **exp** powerh](hComputes: pow(base, exp), i.e. }(hj hhhNhNubj)}(h**base**h]hbase}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh raised to the }(hj hhhNhNubj)}(h**exp**h]hexp}(hj' hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh power}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj^ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j int_sqrt (C function) c.int_sqrthNtauh1hhjhhhNhNubj)}(hhh](j)}(h(unsigned long int_sqrt (unsigned long x)h]j)}(h'unsigned long int_sqrt(unsigned long x)h](j )}(hunsignedh]hunsigned}(hj` hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKubj2)}(h h]h }(hjo hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ hhhjn hKubj )}(hlongh]hlong}(hj} hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ hhhjn hKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ hhhjn hKubj{)}(hint_sqrth]j)}(hint_sqrth]hint_sqrt}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\ hhhjn hKubj)}(h(unsigned long x)h]j)}(hunsigned long xh](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]hx}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj\ hhhjn hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjX hhhjn hKubah}(h]jS ah ](jjeh"]h$]h&]jj)jhuh1jhjn hKhjU hhubj)}(hhh]h)}(h computes the integer square rooth]h computes the integer square root}(hjhhhNhNubah}(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&]uh1jhjU hhhjn hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhjhNhNubj)}(hw**Parameters** ``unsigned long x`` integer of which to calculate the sqrt **Description** Computes: floor(sqrt(x))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:169: ./lib/math/int_sqrt.chKhj6ubj )}(hhh]j)}(h;``unsigned long x`` integer of which to calculate the sqrt h](j)}(h``unsigned long x``h]j)}(hj[h]hunsigned long x}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjUubj2)}(hhh]h)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphKhjqubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjphKhjRubah}(h]h ]h"]h$]h&]uh1j hj6ubh)}(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.chKhj6ubh)}(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.chKhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j int_sqrt64 (C function) c.int_sqrt64hNtauh1hhjhhhNhNubj)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]j c.int_sqrt64asbuh1hhj)ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]hx}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(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&]jjjjjjjjjuh1jhhhjhNhNubj)}(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&]uh1jhjhhhNhNubeh}(h]integer-log-and-power-functionsah ]h"]integer log and power functionsah$]h&]uh1hhj~hhhhhKubh)}(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)}(hj3h]hdo_div}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjPhK ubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jhjPhK hj.hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj.hhhjPhK ubeh}(h]h ](jmacroeh"]h$]h&]jjjjijjijjjuh1jhhhjhNhNubh)}(h``do_div (n, base)``h]j)}(hjoh]hdo_div (n, base)}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(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)}(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:175: ./include/asm-generic/div64.hhK$hjubh)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hjMhhhNhNubj)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh }(hjMhhhNhNubj)}(h``n = n / base;``h]h n = n / base;}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(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)}(hj~h]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: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 reftargetjmodnameN 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)}(hjh]h div_u64_rem}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hKubj)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]j c.div_u64_remasbuh1hhjJubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hdividendh]hdividend}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(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&]noemphjjuh1jhjFubj)}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h remainderh]h remainder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjAhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhjhNhNubj)}(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)}(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:178: ./include/linux/math64.hhKhj`ubj )}(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&]uh1jhjhKhj|ubj)}(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&]uh1jhjhKhj|ubj)}(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&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhj|ubeh}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h **Return**h]j)}(hj2h]hReturn}(hj4hhhNhNubah}(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.hhKhj`ubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjHhhhNhNubj)}(h``*remainder``h]h *remainder}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh!, then returns dividend / divisor}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj`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:178: ./include/linux/math64.hhKhj`ubh)}(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.hhKhj`ubeh}(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}(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 }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]j c.div_s64_remasbuh1hhjFubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hdivisorh]hdivisor}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(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)}(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.hhK%hjubj )}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hj9h]h s64 dividend}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK"hj3ubj2)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhK"hjOubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhK"hj0ubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hjrh]h s32 divisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK#hjlubj2)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjhK#hj0ubj)}(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$hj0ubeh}(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}(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.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&]uh1j1hj9hhhjahK/ubj{)}(h div64_u64_remh]j)}(hj^h]h div64_u64_rem}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjahK/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 ]j\c.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 ]j\c.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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]j\c.div64_u64_remasbuh1hhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h remainderh]h remainder}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjahK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjahK/ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jhjahK/hj2hhubj)}(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&]uh1jhj2hhhjahK/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}(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.hhK1hjubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjhhhNhNubah}(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)}(hj8h]hu64 *remainder}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK2hj2ubj2)}(hhh]h)}(h#pointer to unsigned 64bit remainderh]h#pointer to unsigned 64bit remainder}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhK2hjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhK2hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjsh]hReturn}(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.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_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY div64_u64sb c.div64_u64asbuh1hhjhhh[/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 div64_u64h]j)}(hjh]h div64_u64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK=ubj)}(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 reftargetj!modnameN classnameNj] j` )}jc ]j c.div64_u64asbuh1hhjubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 divisorh](h)}(hhh]j)}(hu64h]hu64}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjimodnameN classnameNj] j` )}jc ]j c.div64_u64asbuh1hhj`ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hdivisorh]hdivisor}(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)}(h(unsigned 64bit divide with 64bit divisorh]h(unsigned 64bit divide with 64bit divisor}(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** ``u64 dividend`` unsigned 64bit dividend ``u64 divisor`` unsigned 64bit divisor **Return** 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.hhKAhjubj )}(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.hhK>hjubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK>hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjubj)}(h'``u64 divisor`` unsigned 64bit divisor h](j)}(h``u64 divisor``h]j)}(hj7h]h u64 divisor}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK?hj1ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhK?hjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhK?hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(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:178: ./include/linux/math64.hhKAhjubh)}(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.hhKAhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY div64_s64sb c.div64_s64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKIubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKIubj{)}(h div64_s64h]j)}(hjh]h div64_s64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKIubj)}(h(s64 dividend, s64 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 reftargetjmodnameN classnameNj] j` )}jc ]j c.div64_s64asbuh1hhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s64 divisorh](h)}(hhh]j)}(hs64h]hs64}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]j c.div64_s64asbuh1hhjMubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKIhjhhubj)}(hhh]h)}(h&signed 64bit divide with 64bit divisorh]h&signed 64bit divide with 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKIhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s64 divisor`` signed 64bit divisor **Return** 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.hhKMhjubj )}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjh]h s64 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.hhKJhjubj2)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubj)}(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.hhKKhjubj2)}(hhh]h)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKKhj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hKKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj_h]hReturn}(hjahhhNhNubah}(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.hhKMhjubh)}(hdividend / divisorh]hdividend / divisor}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY div_u64sb c.div_u64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKtubj{)}(hdiv_u64h]j)}(hjh]hdiv_u64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKtubj)}(h(u64 dividend, u32 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.div_u64asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 divisorh](h)}(hhh]j)}(hu32h]hu32}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]j c.div_u64asbuh1hhj:ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hdivisorh]hdivisor}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKthjhhubj)}(hhh]h)}(h(unsigned 64bit divide with 32bit divisorh]h(unsigned 64bit divide with 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKthjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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.hhKxhjubj )}(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.hhKuhjubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKuhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKuhjubj)}(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.hhKvhj ubj2)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKvhj'ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKvhjubeh}(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:178: ./include/linux/math64.hhKxhjubh)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKwhjubh)}(h **Return**h]j)}(hjsh]hReturn}(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.hhK{hjubh)}(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.hhK|hjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY div_s64sb c.div_s64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hdiv_s64h]j)}(hjh]hdiv_s64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(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 ]j c.div_s64asbuh1hhj ubj2)}(h h]h }(hj+ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hdividendh]hdividend}(hj9 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hjU hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjW modnameN classnameNj] j` )}jc ]j c.div_s64asbuh1hhjN ubj2)}(h h]h }(hjs hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjN ubj)}(hdivisorh]hdivisor}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN 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)}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor **Return** 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.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!hKhj 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:!hKhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h **Return**h]j)}(hj`!h]hReturn}(hjb!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}(hjv!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_u64asbuh1hhj!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&]uh1j1hj!hhhj!hM)ubj{)}(hmul_u64_add_u64_div_u64h]j)}(hj!h]hmul_u64_add_u64_div_u64}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj!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 ]j!c.mul_u64_add_u64_div_u64asbuh1hhj!ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]ha}(hj&"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hu64 bh](h)}(hhh]j)}(hu64h]hu64}(hjA"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>"ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjC"modnameN classnameNj] j` )}jc ]j!c.mul_u64_add_u64_div_u64asbuh1hhj:"ubj2)}(h h]h }(hj_"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:"ubj)}(hj[h]hb}(hjm"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 ]j!c.mul_u64_add_u64_div_u64asbuh1hhj"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hjh]hc}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hu64 dh](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.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&]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(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)}(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:178: ./include/linux/math64.hhM-hjA#ubj )}(hhh](j)}(h,``u64 a`` first unsigned 64bit multiplicand h](j)}(h ``u64 a``h]j)}(hjf#h]hu64 a}(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.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)}(hj#h]hu64 b}(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"second unsigned 64bit multiplicandh]h"second 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 c`` unsigned 64bit addend h](j)}(h ``u64 c``h]j)}(hj#h]hu64 c}(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 addendh]hunsigned 64bit addend}(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 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 hjA#ubh)}(h**Description**h]j)}(hjL$h]h Description}(hjN$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ$ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM/hjA#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 }(hjb$hhhNhNubj)}(h**d**h]hd}(hjj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb$ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hjb$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM.hjA#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.hhM3hjA#ubh)}(h(**a** * **b** + **c**) / **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**c**h]hc}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh) / }(hj$hhhNhNubj)}(h**d**h]hd}(hj$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.hhM4hjA#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.hhM9ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%%hM9ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jhj%%hM9hj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhj%%hM9ubeh}(h]h ](jmacroeh"]h$]h&]jjjj>%jj>%jjjuh1jhhhjhNhNubh)}(h!``mul_u64_u64_div_u64 (a, b, d)``h]j)}(hjD%h]hmul_u64_u64_div_u64 (a, b, d)}(hjF%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB%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 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.hhM9hjZ%ubah}(h]h ]h"]h$]h&]uh1jhjl%hM9hjhhubj)}(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)}(hjy%h]h Parameters}(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:178: ./include/linux/math64.hhM=hjs%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)}(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:178: ./include/linux/math64.hhM;hj%ubj2)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second 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``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 hjs%ubh)}(h**Description**h]j)}(hjE&h]h Description}(hjG&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC&ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM>hjs%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}(hjc&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=hjs%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.hhMBhjs%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}(hj&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.hhMChjs%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.hhMHubah}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj'hMHubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jhj'hMHhj&hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj&hhhj'hMHubeh}(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.hhMJhjhhubj)}(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}(hjA'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMHhj='ubah}(h]h ]h"]h$]h&]uh1jhjO'hMHhjhhubj)}(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&]uh1jhjZ'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMLhjV'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&]uh1jhjy'ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMIhju'ubj2)}(hhh]h)}(h!first unsigned 64bit multiplicandh]h!first unsigned 64bit multiplicand}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMIhj'ubah}(h]h ]h"]h$]h&]uh1j1hju'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMIhjr'ubj)}(h)``b`` second unsigned 64bit multiplicand 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:178: ./include/linux/math64.hhMJhj'ubj2)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second unsigned 64bit multiplicand}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMJhj'ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMJhjr'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.hhMKhj'ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMKhj(ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj(hMKhjr'ubeh}(h]h ]h"]h$]h&]uh1j hjV'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.hhMMhjV'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}(hjF(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.hhMLhjV'ubh)}(h **Return**h]j)}(hja(h]hReturn}(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.hhMQhjV'ubh)}(h#(**a** * **b** + **d** - 1) / **d**h](h(}(hjw(hhhNhNubj)}(h**a**h]ha}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw(ubh * }(hjw(hhhNhNubj)}(h**b**h]hb}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw(ubh + }(hjw(hhhNhNubj)}(h**d**h]hd}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw(ubh - 1) / }(hjw(hhhNhNubj)}(h**d**h]hd}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw(ubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMRhjV'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)}(hj(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.hhMYubah}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj)hMYubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj)hMYhj(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj(hhhj)hMYubeh}(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.hhM[hjhhubj)}(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.hhMYhj6)ubah}(h]h ]h"]h$]h&]uh1jhjH)hMYhjhhubj)}(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)}(hjU)h]h Parameters}(hjW)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS)ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM]hjO)ubj )}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hjt)h]hll}(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:178: ./include/linux/math64.hhMZhjn)ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMZhj)ubah}(h]h ]h"]h$]h&]uh1j1hjn)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMZhjk)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[hjk)ubeh}(h]h ]h"]h$]h&]uh1j hjO)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]hjO)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.hhM\hjO)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_hjO)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.hhM`hjO)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)}(hjN*h]hDIV_U64_ROUND_UP}(hjX*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjP*hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMfubah}(h]h ]h"]h$]h&]jjjuh1jjjhjL*hhhjk*hMfubah}(h]jG*ah ](jjeh"]h$]h&]jj)jhuh1jhjk*hMfhjI*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjI*hhhjk*hMfubeh}(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.hhMhhjhhubj)}(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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMfhj*ubah}(h]h ]h"]h$]h&]uh1jhj*hMfhjhhubj)}(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)}(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.hhMjhj*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.hhMghj*ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMghj*ubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMghj*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.hhMhhj+ubj2)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj0+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,+hMhhj-+ubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhj,+hMhhj*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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMjhj*ubh)}(hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.}(hjh+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMihj*ubh)}(h **Return**h]j)}(hjy+h]hReturn}(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:178: ./include/linux/math64.hhMlhj*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.hhMmhj*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)}(hj+h]hDIV64_U64_ROUND_CLOSEST}(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.hhMsubah}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhj+hMsubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jhj+hMshj+hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj+hhhj+hMsubeh}(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.hhMuhjhhubj)}(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.hhMshj ,ubah}(h]h ]h"]h$]h&]uh1jhj,hMshjhhubj)}(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.hhMwhj#,ubj )}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hjH,h]hdividend}(hjJ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF,ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMthjB,ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hja,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj],hMthj^,ubah}(h]h ]h"]h$]h&]uh1j1hjB,ubeh}(h]h ]h"]h$]h&]uh1jhj],hMthj?,ubj)}(h#``divisor`` unsigned 64bit divisor h](j)}(h ``divisor``h]j)}(hj,h]hdivisor}(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.hhMuhj{,ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMuhj,ubah}(h]h ]h"]h$]h&]uh1j1hj{,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMuhj?,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.hhMwhj#,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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMvhj#,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.hhMyhj#,ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / 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.hhMzhj#,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)}(hj"-h]hDIV_U64_ROUND_CLOSEST}(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.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&]jjjjX-jjX-jjjuh1jhhhjhNhNubh)}(h-``DIV_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj^-h]h)DIV_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 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}(hjx-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjt-ubah}(h]h ]h"]h$]h&]uh1jhj-hMhjhhubj)}(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-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 32bit divisor h](j)}(h ``divisor``h]j)}(hj-h]hdivisor}(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 32bit divisorh]hunsigned 32bit divisor}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj-ubh)}(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.}(hj<.hhhNhNubah}(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)}(hjM.h]hReturn}(hjO.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK.ubah}(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}(hjc.hhhNhNubah}(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_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.h]hDIV_S64_ROUND_CLOSEST}(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.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.jjjuh1jhhhjhNhNubh)}(h-``DIV_S64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj.h]h)DIV_S64_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)}(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}(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)}(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)}(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`` signed 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)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj5/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1/hMhj2/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj1/hMhj/ubj)}(h!``divisor`` signed 32bit divisor h](j)}(h ``divisor``h]j)}(hjU/h]hdivisor}(hjW/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS/ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjO/ubj2)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjn/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj/hMhjk/ubah}(h]h ]h"]h$]h&]uh1j1hjO/ubeh}(h]h ]h"]h$]h&]uh1jhjj/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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj.ubh)}(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/hhhNhNubah}(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)}(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.hhMhj.ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / 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.ubeh}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jf )}jY roundup_u64sb c.roundup_u64asbuh1hhj/hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubj2)}(h h]h }(hj!0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhj 0hMubj{)}(h roundup_u64h]j)}(hj0h]h roundup_u64}(hj30hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhj 0hMubj)}(h(u64 x, u32 y)h](j)}(hu64 xh](h)}(hhh]j)}(hu64h]hu64}(hjQ0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjS0modnameN classnameNj] j` )}jc ]j0 c.roundup_u64asbuh1hhjJ0ubj2)}(h h]h }(hjo0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ0ubj)}(hjh]hx}(hj}0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF0ubj)}(hu32 yh](h)}(hhh]j)}(hu32h]hu32}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]j0 c.roundup_u64asbuh1hhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hyh]hy}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF0ubeh}(h]h ]h"]h$]h&]jjuh1jhj/hhhj 0hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhj 0hMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhj 0hMhj/hhubj)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj 0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhjhNhNubj)}(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)}(hj1h]h Parameters}(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 1ubj )}(hhh](j)}(h``u64 x`` the value to up h](j)}(h ``u64 x``h]j)}(hj/1h]hu64 x}(hj11hhhNhNubah}(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.hhMhj)1ubj2)}(hhh]h)}(hthe value to uph]hthe value to up}(hjH1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD1hMhjE1ubah}(h]h ]h"]h$]h&]uh1j1hj)1ubeh}(h]h ]h"]h$]h&]uh1jhjD1hMhj&1ubj)}(h(``u32 y`` 32bit multiple to round up to h](j)}(h ``u32 y``h]j)}(hjh1h]hu32 y}(hjj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjb1ubj2)}(hhh]h)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}1hMhj~1ubah}(h]h ]h"]h$]h&]uh1j1hjb1ubeh}(h]h ]h"]h$]h&]uh1jhj}1hMhj&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)}(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 }(hj1hhhNhNubj)}(h**x**h]hx}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh to the next multiple of }(hj1hhhNhNubj)}(h**y**h]hy}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh . For 32bit }(hj1hhhNhNubj)}(h**x**h]hx}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh? values, see roundup and the faster round_up() for powers of 2.}(hj1hhhNhNubeh}(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)}(hj2h]hReturn}(hj2hhhNhNubah}(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)}(hrounded up value.h]hrounded up value.}(hj2hhhNhNubah}(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 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}(hjE2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjA2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.ubj2)}(h h]h }(hjT2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA2hhhjS2hK.ubj )}(hlongh]hlong}(hjb2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjA2hhhjS2hK.ubj2)}(h h]h }(hjp2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA2hhhjS2hK.ubj{)}(hgcdh]j)}(hgcdh]hgcd}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjA2hhhjS2hK.ubj)}(h"(unsigned long a, unsigned long b)h](j)}(hunsigned long ah](j )}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj )}(hlongh]hlong}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]ha}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hunsigned long bh](j )}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj )}(hlongh]hlong}(hj 3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hj[h]hb}(hj&3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(h]h ]h"]h$]h&]jjuh1jhjA2hhhjS2hK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=2hhhjS2hK.ubah}(h]j82ah ](jjeh"]h$]h&]jj)jhuh1jhjS2hK.hj:2hhubj)}(hhh]h)}(hDcalculate and return the greatest common divisor of 2 unsigned longsh]hDcalculate and return the greatest common divisor of 2 unsigned longs}(hjO3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.hjL3hhubah}(h]h ]h"]h$]h&]uh1jhj:2hhhjS2hK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjg3jjg3jjjuh1jhhhjhNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](h)}(h**Parameters**h]j)}(hjq3h]h Parameters}(hjs3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo3ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK2hjk3ubj )}(hhh](j)}(h ``unsigned long a`` first value h](j)}(h``unsigned long a``h]j)}(hj3h]hunsigned long a}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK/hj3ubj2)}(hhh]h)}(h first valueh]h first value}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hK/hj3ubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hK/hj3ubj)}(h ``unsigned long b`` second valueh](j)}(h``unsigned long b``h]j)}(hj3h]hunsigned long b}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK1hj3ubj2)}(hhh]h)}(h second valueh]h second value}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK0hj3ubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hK1hj3ubeh}(h]h ]h"]h$]h&]uh1j hjk3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]division-functionsah ]h"]division functionsah$]h&]uh1hhj~hhhhhKubh)}(hhh](h)}(h UUID/GUIDh]h UUID/GUID}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !generate_random_uuid (C function)c.generate_random_uuidhNtauh1hhj4hhhNhNubj)}(hhh](j)}(h2void generate_random_uuid (unsigned char uuid[16])h]j)}(h1void generate_random_uuid(unsigned char uuid[16])h](j )}(hvoidh]hvoid}(hj<4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj84hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKubj2)}(h h]h }(hjK4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj84hhhjJ4hKubj{)}(hgenerate_random_uuidh]j)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hj]4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj84hhhjJ4hKubj)}(h(unsigned char uuid[16])h]j)}(hunsigned char uuid[16]h](j )}(hunsignedh]hunsigned}(hjy4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhju4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hju4ubj )}(hcharh]hchar}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhju4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hju4ubj)}(huuidh]huuid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju4ubj)}(hjh]h[}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju4ubhdesc_sig_literal_number)}(h16h]h16}(hj4hhhNhNubah}(h]h ]mah"]h$]h&]uh1j4hju4ubj)}(hjNh]h]}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjq4ubah}(h]h ]h"]h$]h&]jjuh1jhj84hhhjJ4hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj44hhhjJ4hKubah}(h]j/4ah ](jjeh"]h$]h&]jj)jhuh1jhjJ4hKhj14hhubj)}(hhh]h)}(hgenerate a random UUIDh]hgenerate a random UUID}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj5hhubah}(h]h ]h"]h$]h&]uh1jhj14hhhjJ4hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jhhhj4hNhNubj)}(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)}(hj(5h]h Parameters}(hj*5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&5ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj"5ubj )}(hhh]j)}(h;``unsigned char uuid[16]`` where to put the generated UUID h](j)}(h``unsigned char uuid[16]``h]j)}(hjG5h]hunsigned char uuid[16]}(hjI5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhjA5ubj2)}(hhh]h)}(hwhere to put the generated UUIDh]hwhere to put the generated UUID}(hj`5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\5hKhj]5ubah}(h]h ]h"]h$]h&]uh1j1hjA5ubeh}(h]h ]h"]h$]h&]uh1jhj\5hKhj>5ubah}(h]h ]h"]h$]h&]uh1j hj"5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj"5ubh)}(hRandom UUID interfaceh]hRandom UUID interface}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj"5ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj"5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j uuid_is_valid (C function)c.uuid_is_validhNtauh1hhj4hhhNhNubj)}(hhh](j)}(h%bool uuid_is_valid (const char *uuid)h]j)}(h$bool uuid_is_valid(const char *uuid)h](j )}(hj8h]hbool}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKNubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hKNubj{)}(h uuid_is_validh]j)}(h uuid_is_validh]h uuid_is_valid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hKNubj)}(h(const char *uuid)h]j)}(hconst char *uuidh](j)}(hjh]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj )}(hcharh]hchar}(hj-6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj;6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]h*}(hjI6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(huuidh]huuid}(hjV6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj 6ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hKNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hKNubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhj5hKNhj5hhubj)}(hhh]h)}(h checks if a UUID string is validh]h checks if a UUID string is valid}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKNhj}6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hKNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhj4hNhNubj)}(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)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKRhj6ubj )}(hhh]j)}(h*``const char *uuid`` UUID string to check h](j)}(h``const char *uuid``h]j)}(hj6h]hconst char *uuid}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKOhj6ubj2)}(hhh]h)}(hUUID string to checkh]hUUID string to check}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKOhj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKOhj6ubah}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKQhj6ubj )}(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:}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKRhj7ubj2)}(hhh]h)}(h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxh]h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}(hj+7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'7hKRhj(7ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj'7hKRhj7ubah}(h]h ]h"]h$]h&]uh1j hj6ubh)}(hwhere x is a hex digit.h]hwhere x is a hex digit.}(hjK7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKThj6ubh)}(h **Return**h]j)}(hj\7h]hReturn}(hj^7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ7ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKVhj6ubh)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hjr7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKWhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubeh}(h] uuid-guidah ]h"] uuid/guidah$]h&]uh1hhj~hhhhhKubeh}(h]crc-and-math-functions-in-linuxah ]h"]crc and math functions in linuxah$]h&]uh1hhhhhhhhKzubh)}(hhh](h)}(hKernel IPC facilitiesh]hKernel IPC facilities}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhhhhKubh)}(hhh](h)}(h IPC utilitiesh]h IPC utilities}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_init (C function) c.ipc_inithNtauh1hhj7hhhNhNubj)}(hhh](j)}(hint ipc_init (void)h]j)}(hint ipc_init(void)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7hhhj7hKQubj{)}(hipc_inith]j)}(hipc_inith]hipc_init}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhj7hKQubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 8ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hKQubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jhj7hKQhj7hhubj)}(hhh]h)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hj:8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQhj78hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjR8jjR8jjjuh1jhhhj7hNhNubj)}(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\8h]h Parameters}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ8ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhjV8ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj{8h]hvoid}(hj}8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy8ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhju8ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1j1hju8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjr8ubah}(h]h ]h"]h$]h&]uh1j hjV8ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjV8ubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKRhjV8ubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhjV8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_init_ids (C function)c.ipc_init_idshNtauh1hhj7hhhNhNubj)}(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 9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhj9hKmubj{)}(h ipc_init_idsh]j)}(h ipc_init_idsh]h ipc_init_ids}(hj+9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhj9hKmubj)}(h(struct ipc_ids *ids)h]j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjG9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC9ubj2)}(h h]h }(hjT9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjC9ubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hje9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjg9modnameN classnameNj] j` )}jc ]jf )}jY j-9sbc.ipc_init_idsasbuh1hhjC9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjC9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC9ubj)}(hidsh]hids}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?9ubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hKmubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhj9hKmhj8hhubj)}(hhh]h)}(hinitialise ipc identifiersh]hinitialise ipc identifiers}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmhj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj9hKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhj7hNhNubj)}(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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKqhj9ubj )}(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 hj9ubh)}(h**Description**h]j)}(hjF:h]h Description}(hjH:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD:ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKphj9ubh)}(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.chKohj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $ipc_init_proc_interface (C function)c.ipc_init_proc_interfacehNtauh1hhj7hhhNhNubj)}(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}(hj: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&]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)}(hpathh]hpath}(hj ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hconst char *headerh](j)}(hjh]hconst}(hj%;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!;ubj2)}(h h]h }(hj2;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!;ubj )}(hcharh]hchar}(hj@;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!;ubj2)}(h h]h }(hjN;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!;ubj)}(hjh]h*}(hj\;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!;ubj)}(hheaderh]hheader}(hji;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj: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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h$int (*show)(struct seq_file*, void*)h](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)}(h(h]h(}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hshowh]hshow}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h)h]h)}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hj;h]h(}(hj <hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hjh]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)}(hseq_fileh]hseq_file}(hj5<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7<modnameN classnameNj] j` )}jc ]jf )}jY j:sbc.ipc_init_proc_interfaceasbuh1hhj;ubj)}(hjh]h*}(hjU<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h,h]h,}(hjb<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hjp<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj )}(hvoidh]hvoid}(hj~<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hj;h]h)}(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)}(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.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jhhhj7hNhNubj)}(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)}(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.chKhj<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.chKhj6=ubj2)}(hhh]h)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hjU=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ=hKhjR=ubah}(h]h ]h"]h$]h&]uh1j1hj6=ubeh}(h]h ]h"]h$]h&]uh1jhjQ=hKhj<ubj)}(h%``int ids`` ipc id table to iterate. h](j)}(h ``int ids``h]j)}(hju=h]hint ids}(hjw=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs=ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjo=ubj2)}(hhh]h)}(hipc id table to iterate.h]hipc id table to iterate.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1j1hjo=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhj<ubj)}(h8``int (*show)(struct seq_file *, void *)`` show routine.h](j)}(h*``int (*show)(struct seq_file *, void *)``h]j)}(hj=h]h&int (*show)(struct seq_file *, void *)}(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 show routine.h]h show routine.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj=ubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhj<ubeh}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_findkey (C function) c.ipc_findkeyhNtauh1hhj7hhhNhNubj)}(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)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]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>hKubh)}(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 ipc_findkeysb c.ipc_findkeyasbuh1hhj>hhhj>hKubj2)}(h h]h }(hjH>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhj>hKubj)}(hjh]h*}(hjV>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hKubj{)}(h ipc_findkeyh]j)}(hjE>h]h ipc_findkey}(hjg>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj>hKubj)}(h (struct ipc_ids *ids, key_t key)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]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 ]jC> c.ipc_findkeyasbuh1hhj~>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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz>ubj)}(h key_t keyh](h)}(hhh]j)}(hkey_th]hkey_t}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj>modnameN classnameNj] j` )}jc ]jC> c.ipc_findkeyasbuh1hhj>ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj)}(hkeyh]hkey}(hj!?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz>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#find a key in an ipc identifier seth]h#find a key in an ipc identifier set}(hjK?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjH?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj>hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjc?jjc?jjjuh1jhhhj7hNhNubj)}(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)}(hjm?h]h Parameters}(hjo?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk?ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjg?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.chKhj?ubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(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``key_t key`` key to find h](j)}(h ``key_t key``h]j)}(hj?h]h key_t key}(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 key to findh]h key to find}(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 hjg?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.chKhjg?ubh)}(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}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjg?ubh)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hj%@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjg?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_addid (C function) c.ipc_addidhNtauh1hhj7hhhNhNubj)}(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}(hjT@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjP@hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjc@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjP@hhhjb@hMubj{)}(h ipc_addidh]j)}(h ipc_addidh]h ipc_addid}(hju@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjP@hhhjb@hMubj)}(h;(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]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 jw@sb c.ipc_addidasbuh1hhj@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}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hstruct kern_ipc_perm *newh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj!AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#AmodnameN classnameNj] j` )}jc ]j@ c.ipc_addidasbuh1hhj@ubj2)}(h h]h }(hj?AhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hjMAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hnewh]hnew}(hjZAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h int limith](j )}(hinth]hint}(hjsAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoAubj)}(hlimith]hlimit}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjP@hhhjb@hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjL@hhhjb@hMubah}(h]jG@ah ](jjeh"]h$]h&]jj)jhuh1jhjb@hMhjI@hhubj)}(hhh]h)}(hadd an ipc identifierh]hadd an ipc identifier}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjI@hhhjb@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhj7hNhNubj)}(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)}(hjAh]h Parameters}(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 hjAubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjAh]hstruct ipc_ids *ids}(hjAhhhNhNubah}(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.chM hjAubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjBhM hjAubj)}(h5``struct kern_ipc_perm *new`` new ipc permission set h](j)}(h``struct kern_ipc_perm *new``h]j)}(hj3Bh]hstruct kern_ipc_perm *new}(hj5BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Bubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj-Bubj2)}(hhh]h)}(hnew ipc permission seth]hnew ipc permission set}(hjLBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHBhM hjIBubah}(h]h ]h"]h$]h&]uh1j1hj-Bubeh}(h]h ]h"]h$]h&]uh1jhjHBhM hjAubj)}(h/``int limit`` limit for the number of used ids h](j)}(h ``int limit``h]j)}(hjlBh]h int limit}(hjnBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjBubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjfBubj2)}(hhh]h)}(h limit for the number of used idsh]h limit for the number of used ids}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1j1hjfBubeh}(h]h ]h"]h$]h&]uh1jhjBhM hjAubeh}(h]h ]h"]h$]h&]uh1j hjAubh)}(h**Description**h]j)}(hjBh]h Description}(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.chM hjAubh)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjAubh)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAubh)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcget_new (C function) c.ipcget_newhNtauh1hhj7hhhNhNubj)}(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}(hj ChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjChMJubj{)}(h ipcget_newh]j)}(h ipcget_newh]h ipcget_new}(hj+ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Cubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjChMJubj)}(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)}(hjh]hstruct}(hjGChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubj2)}(h h]h }(hjTChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCCubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjeChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgCmodnameN classnameNj] j` )}jc ]jf )}jY j-Csb c.ipcget_newasbuh1hhjCCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubj)}(hnsh]hns}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?Cubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jC c.ipcget_newasbuh1hhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hidsh]hids}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?Cubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj)DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Dubj2)}(h h]h }(hj6DhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%Dubj)}(hjh]hstruct}(hjDDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Dubj2)}(h h]h }(hjQDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%Dubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjbDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Dubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdDmodnameN classnameNj] j` )}jc ]jC c.ipcget_newasbuh1hhj%Dubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Dubj)}(hopsh]hops}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?Cubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jC c.ipcget_newasbuh1hhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hparamsh]hparams}(hj EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?Cubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjChMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjChMJubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhjChMJhjBhhubj)}(hhh]h)}(hcreate a new ipc objecth]hcreate a new ipc object}(hj5EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJhj2Ehhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjChMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMEjjMEjjjuh1jhhhj7hNhNubj)}(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)}(hjWEh]h Parameters}(hjYEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUEubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhjQEubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjvEh]hstruct ipc_namespace *ns}(hjxEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMKhjpEubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMKhjEubah}(h]h ]h"]h$]h&]uh1j1hjpEubeh}(h]h ]h"]h$]h&]uh1jhjEhMKhjmEubj)}(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.chMLhjEubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMLhjEubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMLhjmEubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjEh]hconst struct ipc_ops *ops}(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.chMMhjEubj2)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMMhjEubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMMhjmEubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj!Fh]hstruct ipc_params *params}(hj#FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhjFubj2)}(hhh]h)}(hits parametersh]hits parameters}(hj:FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6FhMNhj7Fubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhj6FhMNhjmEubeh}(h]h ]h"]h$]h&]uh1j hjQEubh)}(h**Description**h]j)}(hj\Fh]h Description}(hj^FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZFubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMPhjQEubh)}(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.}(hjrFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMOhjQEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_check_perms (C function)c.ipc_check_permshNtauh1hhj7hhhNhNubj)}(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}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjFhM_ubj{)}(hipc_check_permsh]j)}(hipc_check_permsh]hipc_check_perms}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjFhM_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)}(hjh]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 jFsbc.ipc_check_permsasbuh1hhjFubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hj*GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hnsh]hns}(hj7GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjPGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLGubj2)}(h h]h }(hj]GhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLGubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjnGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpGmodnameN classnameNj] j` )}jc ]jGc.ipc_check_permsasbuh1hhjLGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLGubj)}(hipcph]hipcp}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLGubeh}(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)}(hjh]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 ]jGc.ipc_check_permsasbuh1hhjGubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hj%HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hopsh]hops}(hj2HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjKHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGHubj2)}(h h]h }(hjXHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGHubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjiHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkHmodnameN classnameNj] j` )}jc ]jGc.ipc_check_permsasbuh1hhjGHubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGHubj)}(hparamsh]hparams}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhM_ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjFhM_hjFhhubj)}(hhh]h)}(h0check security and permissions for an ipc objecth]h0check security and permissions for an ipc object}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_hjHhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhj7hNhNubj)}(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)}(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.chMchjHubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj Ih]hstruct ipc_namespace *ns}(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.chM`hjIubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj&IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"IhM`hj#Iubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhj"IhM`hjIubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjFIh]hstruct kern_ipc_perm *ipcp}(hjHIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDIubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMahj@Iubj2)}(hhh]h)}(hipc permission seth]hipc permission set}(hj_IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[IhMahj\Iubah}(h]h ]h"]h$]h&]uh1j1hj@Iubeh}(h]h ]h"]h$]h&]uh1jhj[IhMahjIubj)}(hB``const struct ipc_ops *ops`` the actual security routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjIh]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.chMbhjyIubj2)}(hhh]h)}(h#the actual security routine to callh]h#the actual security routine to call}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMbhjIubah}(h]h ]h"]h$]h&]uh1j1hjyIubeh}(h]h ]h"]h$]h&]uh1jhjIhMbhjIubj)}(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.chMchjIubj2)}(hhh]h)}(hits parametersh]hits parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMchjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMchjIubeh}(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.chMehjHubh)}(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.}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMdhjHubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhhjHubh)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hj'JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcget_public (C function)c.ipcget_publichNtauh1hhj7hhhNhNubj)}(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}(hjVJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRJhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjeJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRJhhhjdJhMubj{)}(h ipcget_publich]j)}(h ipcget_publich]h ipcget_public}(hjwJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRJhhhjdJhMubj)}(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)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(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.ipcget_publicasbuh1hhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hnsh]hns}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hj#KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Kubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%KmodnameN classnameNj] j` )}jc ]jJc.ipcget_publicasbuh1hhjKubj2)}(h h]h }(hjAKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hjOKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hidsh]hids}(hj\KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjuKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqKubj)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqKubj2)}(h h]h }(hjKhhhNhNubah}(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.ipcget_publicasbuh1hhjqKubj2)}(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&]noemphjjuh1jhjJubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hj LhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj LmodnameN classnameNj] j` )}jc ]jJc.ipcget_publicasbuh1hhjKubj2)}(h h]h }(hjah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hjJLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hparamsh]hparams}(hjWLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjRJhhhjdJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNJhhhjdJhMubah}(h]jIJah ](jjeh"]h$]h&]jj)jhuh1jhjdJhMhjKJhhubj)}(hhh]h)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj~Lhhubah}(h]h ]h"]h$]h&]uh1jhjKJhhhjdJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1jhhhj7hNhNubj)}(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)}(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.chMhjLubj )}(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.chMhjLubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjLh]hstruct ipc_ids *ids}(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.chMhjLubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hj4Mh]hconst struct ipc_ops *ops}(hj6MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Mubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj.Mubj2)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjMMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIMhMhjJMubah}(h]h ]h"]h$]h&]uh1j1hj.Mubeh}(h]h ]h"]h$]h&]uh1jhjIMhMhjLubj)}(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.chMhjgMubj2)}(hhh]h)}(hits parametersh]hits parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1j1hjgMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubeh}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjLubh)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjLubh)}(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.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhj7hhhNhNubj)}(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}(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 }(hj NhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhj NhMubj{)}(hipc_kht_removeh]j)}(hipc_kht_removeh]hipc_kht_remove}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhj NhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hj9NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Nubj2)}(h h]h }(hjFNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Nubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjWNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYNmodnameN classnameNj] j` )}jc ]jf )}jY jNsbc.ipc_kht_removeasbuh1hhj5Nubj2)}(h h]h }(hjwNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Nubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Nubj)}(hidsh]hids}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Nubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]jsNc.ipc_kht_removeasbuh1hhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hipcph]hipcp}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Nubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhj NhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhj NhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhj NhMhjMhhubj)}(hhh]h)}(h$remove an ipc from the key hashtableh]h$remove an ipc from the key hashtable}(hj,OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj)Ohhubah}(h]h ]h"]h$]h&]uh1jhjMhhhj NhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDOjjDOjjjuh1jhhhj7hNhNubj)}(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)}(hjNOh]h Parameters}(hjPOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLOubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjHOubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjmOh]hstruct ipc_ids *ids}(hjoOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkOubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgOubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1j1hjgOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjdOubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjOh]hstruct kern_ipc_perm *ipcp}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjOubj2)}(hhh]h)}(h/ipc perm structure containing the key to removeh]h/ipc perm structure containing the key to remove}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjdOubeh}(h]h ]h"]h$]h&]uh1j hjHOubh)}(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.chMhjHOubh)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjHOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_search_maxidx (C function)c.ipc_search_maxidxhNtauh1hhj7hhhNhNubj)}(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}(hj&PhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"PhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hj5PhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"Phhhj4PhMubj{)}(hipc_search_maxidxh]j)}(hipc_search_maxidxh]hipc_search_maxidx}(hjGPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"Phhhj4PhMubj)}(h (struct ipc_ids *ids, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjcPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Pubj2)}(h h]h }(hjpPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_Pubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Pubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]jf )}jY jIPsbc.ipc_search_maxidxasbuh1hhj_Pubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_Pubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Pubj)}(hidsh]hids}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Pubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[Pubj)}(h int limith](j )}(hinth]hint}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hlimith]hlimit}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[Pubeh}(h]h ]h"]h$]h&]jjuh1jhj"Phhhj4PhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhj4PhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jhj4PhMhjPhhubj)}(hhh]h)}(h%search for the highest assigned indexh]h%search for the highest assigned index}(hjQhhhNhNubah}(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&]uh1jhjPhhhj4PhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3Qjj3Qjjjuh1jhhhj7hNhNubj)}(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)}(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.chMhj7Qubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj\Qh]hstruct ipc_ids *ids}(hj^QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZQubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjVQubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjuQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqQhMhjrQubah}(h]h ]h"]h$]h&]uh1j1hjVQubeh}(h]h ]h"]h$]h&]uh1jhjqQhMhjSQubj)}(h;``int limit`` known upper limit for highest assigned index h](j)}(h ``int limit``h]j)}(hjQh]h int limit}(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.chMhjQubj2)}(hhh]h)}(h,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjSQubeh}(h]h ]h"]h$]h&]uh1j hj7Qubh)}(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.chMhj7Qubh)}(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 }(hjQhhhNhNubj)}(h**ids**h]hids}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh. 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.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7Qubh)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj7Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_rmid (C function) c.ipc_rmidhNtauh1hhj7hhhNhNubj)}(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}(hj6RhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2RhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjERhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2RhhhjDRhMubj{)}(hipc_rmidh]j)}(hipc_rmidh]hipc_rmid}(hjWRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2RhhhjDRhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjsRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoRubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jf )}jY jYRsb c.ipc_rmidasbuh1hhjoRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoRubj)}(hidsh]hids}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkRubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubh)}(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 ]jR c.ipc_rmidasbuh1hhjRubj2)}(h h]h }(hj!ShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hj/ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hipcph]hipcp}(hjah"]h$]h&]uh1j1hj\ThhhjnThMubj{)}(hipc_set_key_privateh]j)}(hipc_set_key_privateh]hipc_set_key_private}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Tubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\ThhhjnThMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubh)}(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 jTsbc.ipc_set_key_privateasbuh1hhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hidsh]hids}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Uubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj-UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Uubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/UmodnameN classnameNj] j` )}jc ]jTc.ipc_set_key_privateasbuh1hhj Uubj2)}(h h]h }(hjKUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Uubj)}(hjh]h*}(hjYUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubj)}(hipcph]hipcp}(hjfUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhj\ThhhjnThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXThhhjnThMubah}(h]jSTah ](jjeh"]h$]h&]jj)jhuh1jhjnThMhjUThhubj)}(hhh]h)}(h0switch the key of an existing ipc to IPC_PRIVATEh]h0switch the key of an existing ipc to IPC_PRIVATE}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjUThhhjnThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhj7hNhNubj)}(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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjUubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjUh]hstruct ipc_ids *ids}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjUubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjUubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj Vh]hstruct kern_ipc_perm *ipcp}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjVubj2)}(hhh]h)}(h/ipc perm structure containing the key to modifyh]h/ipc perm structure containing the key to modify}(hj#VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhj Vubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjUubeh}(h]h ]h"]h$]h&]uh1j hjUubh)}(h**Description**h]j)}(hjEVh]h Description}(hjGVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCVubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjUubh)}(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.}(hj[VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcperms (C function) c.ipcpermshNtauh1hhj7hhhNhNubj)}(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}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVhhhjVhMubj{)}(hipcpermsh]j)}(hipcpermsh]hipcperms}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjVhMubj)}(hB(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct ipc_namespace *nsh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jf )}jY jVsb c.ipcpermsasbuh1hhjVubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hnsh]hns}(hj WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hj9WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Wubj2)}(h h]h }(hjFWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Wubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjWWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYWmodnameN classnameNj] j` )}jc ]jW c.ipcpermsasbuh1hhj5Wubj2)}(h h]h }(hjuWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Wubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Wubj)}(hipcph]hipcp}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h short flagh](j )}(hshorth]hshort}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hflagh]hflag}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjVhMubah}(h]j}Vah ](jjeh"]h$]h&]jj)jhuh1jhjVhMhjVhhubj)}(hhh]h)}(hcheck ipc permissionsh]hcheck ipc permissions}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhj7hNhNubj)}(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)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hj Xubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj0Xh]hstruct ipc_namespace *ns}(hj2XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Xubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj*Xubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjIXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEXhM hjFXubah}(h]h ]h"]h$]h&]uh1j1hj*Xubeh}(h]h ]h"]h$]h&]uh1jhjEXhM hj'Xubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjiXh]hstruct kern_ipc_perm *ipcp}(hjkXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgXubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM!hjcXubj2)}(hhh]h)}(hipc permission seth]hipc permission set}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~XhM!hjXubah}(h]h ]h"]h$]h&]uh1j1hjcXubeh}(h]h ]h"]h$]h&]uh1jhj~XhM!hj'Xubj)}(h&``short flag`` desired permission set h](j)}(h``short flag``h]j)}(hjXh]h short flag}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM"hjXubj2)}(hhh]h)}(hdesired permission seth]hdesired permission set}(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)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM$hj Xubh)}(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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hj Xubh)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh will most probably be 0 or }(hjYhhhNhNubj)}(h ``S_...UGO``h]hS_...UGO}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh from }(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM&hj Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !kernel_to_ipc64_perm (C function)c.kernel_to_ipc64_permhNtauh1hhj7hhhNhNubj)}(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}(hjQYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMYhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDubj2)}(h h]h }(hj`YhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMYhhhj_YhMDubj{)}(hkernel_to_ipc64_permh]j)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hjrYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMYhhhj_YhMDubj)}(h2(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j)}(hstruct kern_ipc_perm *inh](j)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(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 jtYsbc.kernel_to_ipc64_permasbuh1hhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hinh]hin}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hstruct ipc64_perm *outh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hj ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj ZmodnameN classnameNj] j` )}jc ]jYc.kernel_to_ipc64_permasbuh1hhjYubj2)}(h h]h }(hjah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjJZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(houth]hout}(hjWZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjMYhhhj_YhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIYhhhj_YhMDubah}(h]jDYah ](jjeh"]h$]h&]jj)jhuh1jhj_YhMDhjFYhhubj)}(hhh]h)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDhj~Zhhubah}(h]h ]h"]h$]h&]uh1jhjFYhhhj_YhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhj7hNhNubj)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjZubj )}(hhh](j)}(h0``struct kern_ipc_perm *in`` kernel permissions h](j)}(h``struct kern_ipc_perm *in``h]j)}(hjZh]hstruct kern_ipc_perm *in}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMEhjZubj2)}(hhh]h)}(hkernel permissionsh]hkernel permissions}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMEhjZubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMEhjZubj)}(h5``struct ipc64_perm *out`` new style ipc permissions h](j)}(h``struct ipc64_perm *out``h]j)}(hjZh]hstruct ipc64_perm *out}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMFhjZubj2)}(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&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhj[hMFhjZubeh}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hj6[h]h Description}(hj8[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4[ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjZubh)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hjL[hhhNhNubj)}(h**in**h]hin}(hjT[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL[ubhD into a set of permissions descriptions for returning to userspace (}(hjL[hhhNhNubj)}(h**out**h]hout}(hjf[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL[ubh).}(hjL[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMGhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #ipc64_perm_to_ipc_perm (C function)c.ipc64_perm_to_ipc_permhNtauh1hhj7hhhNhNubj)}(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}(hj[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[hhhj[hMWubj{)}(hipc64_perm_to_ipc_permh]j)}(hipc64_perm_to_ipc_permh]hipc64_perm_to_ipc_perm}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhj[hMWubj)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hjh]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 ]jf )}jY j[sbc.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)}(hinh]hin}(hj5\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct ipc_perm *outh](j)}(hjh]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)}(hipc_permh]hipc_perm}(hjl\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjn\modnameN classnameNj] j` )}jc ]j\c.ipc64_perm_to_ipc_permasbuh1hhjJ\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)}(houth]hout}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhj[hMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhj[hMWubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhj[hMWhj[hhubj)}(hhh]h)}(h"convert new ipc permissions to oldh]h"convert new ipc permissions to old}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWhj\hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhj7hNhNubj)}(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)}(hjI]h]hstruct ipc_perm *out}(hjK]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG]ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMYhjC]ubj2)}(hhh]h)}(hold style ipc permissionsh]hold style ipc permissions}(hjb]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^]hMYhj_]ubah}(h]h ]h"]h$]h&]uh1j1hjC]ubeh}(h]h ]h"]h$]h&]uh1jhj^]hMYhj]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: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]hhhNhNubj)}(h**in**h]hin}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh3 into a compatibility object and store it into the }(hj]hhhNhNubj)}(h**out**h]hout}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh pointer.}(hj]hhhNhNubeh}(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&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "ipc_obtain_object_idr (C function)c.ipc_obtain_object_idrhNtauh1hhj7hhhNhNubj)}(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)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhj]hMjubh)}(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 ipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhj]hhhj]hMjubj2)}(h h]h }(hj-^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhj]hMjubj)}(hjh]h*}(hj;^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hMjubj{)}(hipc_obtain_object_idrh]j)}(hj*^h]hipc_obtain_object_idr}(hjL^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhj]hMjubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjg^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc^ubj2)}(h h]h }(hjt^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjc^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 ]j(^c.ipc_obtain_object_idrasbuh1hhjc^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)}(hidsh]hids}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_^ubj)}(hint idh](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)}(hidh]hid}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_^ubeh}(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)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhj_hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5_jj5_jjjuh1jhhhj7hNhNubj)}(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)}(hj?_h]h Parameters}(hjA_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.chMnhj9_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.chMlhjX_ubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjw_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs_hMlhjt_ubah}(h]h ]h"]h$]h&]uh1j1hjX_ubeh}(h]h ]h"]h$]h&]uh1jhjs_hMlhjU_ubj)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hj_h]hint id}(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.chMmhj_ubj2)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMmhj_ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMmhjU_ubeh}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMohj9_ubh)}(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_hhhNhNubjh)}(h*not*h]hnot}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj_ubh locked on exit.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhj9_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $ipc_obtain_object_check (C function)c.ipc_obtain_object_checkhNtauh1hhj7hhhNhNubj)}(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)}(hjh]hstruct}(hj)`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%`hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hj7`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%`hhhj6`hMubh)}(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 ipc_obtain_object_checksbc.ipc_obtain_object_checkasbuh1hhj%`hhhj6`hMubj2)}(h h]h }(hji`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%`hhhj6`hMubj)}(hjh]h*}(hjw`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%`hhhj6`hMubj{)}(hipc_obtain_object_checkh]j)}(hjf`h]hipc_obtain_object_check}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%`hhhj6`hMubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]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 ]jd`c.ipc_obtain_object_checkasbuh1hhj`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}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hint idh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hj!ahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hidh]hid}(hj/ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj%`hhhj6`hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!`hhhj6`hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1jhj6`hMhj`hhubj)}(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.}(hjYahhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjVahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj6`hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqajjqajjjuh1jhhhj7hNhNubj)}(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)}(hj{ah]h Parameters}(hj}ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyaubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjuaubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjah]hstruct ipc_ids *ids}(hjahhhNhNubah}(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.chMhjaubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubj)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hjah]hint id}(hjahhhNhNubah}(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.chMhjaubj2)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubeh}(h]h ]h"]h$]h&]uh1j hjuaubh)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj bubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjuaubh)}(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$bhhhNhNubjh)}(h*not*h]hnot}(hj,bhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj$bubh locked on exit.}(hj$bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjuaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcget (C function)c.ipcgethNtauh1hhj7hhhNhNubj)}(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}(hjebhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjabhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjtbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjabhhhjsbhMubj{)}(hipcgeth]j)}(hipcgeth]hipcget}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjabhhhjsbhMubj)}(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)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY jbsbc.ipcgetasbuh1hhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hnsh]hns}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hj!chhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hj2chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/cubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4cmodnameN classnameNj] j` )}jc ]jbc.ipcgetasbuh1hhjcubj2)}(h h]h }(hjPchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]h*}(hj^chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hidsh]hids}(hjkchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jbc.ipcgetasbuh1hhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hopsh]hops}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj dubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj dubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hj-dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*dubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/dmodnameN classnameNj] j` )}jc ]jbc.ipcgetasbuh1hhj dubj2)}(h h]h }(hjKdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj dubj)}(hjh]h*}(hjYdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj dubj)}(hparamsh]hparams}(hjfdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjabhhhjsbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]bhhhjsbhMubah}(h]jXbah ](jjeh"]h$]h&]jj)jhuh1jhjsbhMhjZbhhubj)}(hhh]h)}(hCommon sys_*get() codeh]hCommon sys_*get() code}(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&]uh1jhjZbhhhjsbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhj7hNhNubj)}(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)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjdubj )}(hhh](j)}(h'``struct ipc_namespace *ns`` namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjdh]hstruct ipc_namespace *ns}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjdubj2)}(hhh]h)}(h namespaceh]h namespace}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjdubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj eh]hstruct ipc_ids *ids}(hj ehhhNhNubah}(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.chMhjeubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj#ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhj eubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjdubj)}(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)}(hjCeh]hconst struct ipc_ops *ops}(hjEehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAeubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj=eubj2)}(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}(hj\ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYeubah}(h]h ]h"]h$]h&]uh1j1hj=eubeh}(h]h ]h"]h$]h&]uh1jhjXehMhjdubj)}(hP``struct ipc_params *params`` the parameters needed by the previous operations. h](j)}(h``struct ipc_params *params``h]j)}(hj}eh]hstruct ipc_params *params}(hjehhhNhNubah}(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.chMhjweubj2)}(hhh]h)}(h1the parameters needed by the previous operations.h]h1the parameters needed by the previous operations.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1j1hjweubeh}(h]h ]h"]h$]h&]uh1jhjehMhjdubeh}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjdubh)}(hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().h]hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_update_perm (C function)c.ipc_update_permhNtauh1hhj7hhhNhNubj)}(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}(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&]uh1j1hjehhhj fhMubj{)}(hipc_update_permh]j)}(hipc_update_permh]hipc_update_perm}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhj fhMubj)}(h2(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hjh]hstruct}(hj:fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6fubj2)}(h h]h }(hjGfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6fubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjXfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZfmodnameN classnameNj] j` )}jc ]jf )}jY j fsbc.ipc_update_permasbuh1hhj6fubj2)}(h h]h }(hjxfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6fubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6fubj)}(hinh]hin}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2fubj)}(hstruct kern_ipc_perm *outh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jtfc.ipc_update_permasbuh1hhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(houth]hout}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2fubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhj fhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj fhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhj fhMhjehhubj)}(hhh]h)}(h'update the permissions of an ipc objecth]h'update the permissions of an ipc object}(hj-ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj*ghhubah}(h]h ]h"]h$]h&]uh1jhjehhhj fhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEgjjEgjjjuh1jhhhj7hNhNubj)}(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)}(hjOgh]h Parameters}(hjQghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMgubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjIgubj )}(hhh](j)}(h9``struct ipc64_perm *in`` the permission given as input. h](j)}(h``struct ipc64_perm *in``h]j)}(hjngh]hstruct ipc64_perm *in}(hjpghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlgubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhgubj2)}(hhh]h)}(hthe permission given as input.h]hthe permission given as input.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j1hjhgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjegubj)}(h?``struct kern_ipc_perm *out`` the permission of the ipc to set.h](j)}(h``struct kern_ipc_perm *out``h]j)}(hjgh]hstruct kern_ipc_perm *out}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgubj2)}(hhh]h)}(h!the permission of the ipc to set.h]h!the permission of the ipc to set.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjegubeh}(h]h ]h"]h$]h&]uh1j hjIgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  ipcctl_obtain_check (C function)c.ipcctl_obtain_checkhNtauh1hhj7hhhNhNubj)}(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)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjghhhjhhMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj"hmodnameN classnameNj] j` )}jc ]jf )}jY ipcctl_obtain_checksbc.ipcctl_obtain_checkasbuh1hhjghhhjhhMubj2)}(h h]h }(hjAhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjghhhjhhMubj)}(hjh]h*}(hjOhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjhhMubj{)}(hipcctl_obtain_checkh]j)}(hj>hh]hipcctl_obtain_check}(hj`hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjghhhjhhMubj)}(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)}(hjh]hstruct}(hj{hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jah"]h$]h&]uh1j1hjwhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhubj)}(hnsh]hns}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjshubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hj ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj imodnameN classnameNj] j` )}jc ]jah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hj5ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hidsh]hids}(hjBihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjshubj)}(hint idh](j )}(hinth]hint}(hj[ihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWiubj2)}(h h]h }(hjiihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWiubj)}(hidh]hid}(hjwihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjshubj)}(hint cmdh](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjiubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hcmdh]hcmd}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjshubj)}(hstruct ipc64_perm *permh](j)}(hjh]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 ]jah"]h$]h&]uh1j1hjiubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hpermh]hperm}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjshubj)}(hint extra_permh](j )}(hinth]hint}(hj5jhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1jubj2)}(h h]h }(hjCjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1jubj)}(h extra_permh]h extra_perm}(hjQjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjshubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjhhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jhjhhMhjghhubj)}(hhh]h)}(h,retrieve an ipc object and check permissionsh]h,retrieve an ipc object and check permissions}(hj{jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjxjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhj7hNhNubj)}(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)}(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)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjjh]hstruct ipc_namespace *ns}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubj)}(hC``struct ipc_ids *ids`` the table of ids where to look for the ipc h](j)}(h``struct ipc_ids *ids``h]j)}(hjjh]hstruct ipc_ids *ids}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjubj2)}(hhh]h)}(h*the table of ids where to look for the ipch]h*the table of ids where to look for the ipc}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj khMhj kubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhj khMhjjubj)}(h)``int id`` the id of the ipc to retrieve h](j)}(h ``int id``h]j)}(hj.kh]hint id}(hj0khhhNhNubah}(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.chMhj(kubj2)}(hhh]h)}(hthe id of the ipc to retrieveh]hthe id of the ipc to retrieve}(hjGkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCkhMhjDkubah}(h]h ]h"]h$]h&]uh1j1hj(kubeh}(h]h ]h"]h$]h&]uh1jhjCkhMhjjubj)}(h``int cmd`` the cmd to check h](j)}(h ``int cmd``h]j)}(hjgkh]hint cmd}(hjikhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjekubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjakubj2)}(hhh]h)}(hthe cmd to checkh]hthe cmd to check}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|khMhj}kubah}(h]h ]h"]h$]h&]uh1j1hjakubeh}(h]h ]h"]h$]h&]uh1jhj|khMhjjubj)}(h2``struct ipc64_perm *perm`` the permission to set h](j)}(h``struct ipc64_perm *perm``h]j)}(hjkh]hstruct ipc64_perm *perm}(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.chMhjkubj2)}(hhh]h)}(hthe permission to seth]hthe permission to set}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjubj)}(h>``int extra_perm`` one extra permission parameter used by msq h](j)}(h``int extra_perm``h]j)}(hjkh]hint extra_perm}(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.chMhjkubj2)}(hhh]h)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjubeh}(h]h ]h"]h$]h&]uh1j hjjubh)}(h**Description**h]j)}(hjlh]h Description}(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.chMhjjubh)}(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.}(hj*lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjubj )}(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:}(hj@lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjretrieves the ipc object with the given id in the given table.h]h)}(hjWlh]h>retrieves the ipc object with the given id in the given table.}(hjYlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjUlubah}(h]h ]h"]h$]h&]uh1jhjRlubj)}(hDperforms some audit and permission check, depending on the given cmdh]h)}(hjolh]hDperforms some audit and permission check, depending on the given cmd}(hjqlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjmlubah}(h]h ]h"]h$]h&]uh1jhjRlubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjlubah}(h]h ]h"]h$]h&]uh1jhjRlubeh}(h]h ]h"]h$]h&]jjuh1jhjflhMhjOlubah}(h]h ]h"]h$]h&]uh1j1hjah"]h$]h&]uh1j1hjlhhhjlhMubj{)}(hipc_parse_versionh]j)}(hipc_parse_versionh]hipc_parse_version}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhjlhMubj)}(h (int *cmd)h]j)}(hint *cmdh](j )}(hinth]hint}(hj"mhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj0mhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hj>mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hcmdh]hcmd}(hjKmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jhjlhMhjlhhubj)}(hhh]h)}(hipc call versionh]hipc call version}(hjumhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjrmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhj7hNhNubj)}(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)}(hjmh]h Parameters}(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.chMhjmubj )}(hhh]j)}(h ``int *cmd`` pointer to command h](j)}(h ``int *cmd``h]j)}(hjmh]hint *cmd}(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.chMhjmubj2)}(hhh]h)}(hpointer to commandh]hpointer to command}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjmubh)}(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 }(hjnhhhNhNubj)}(h**cmd**h]hcmd}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubhQ value is turned from an encoding command and version into just the command code.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhj7hhhNhNubj)}(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)}(hjh]hstruct}(hjHnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDnhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjVnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDnhhhjUnhMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjgnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjinmodnameN classnameNj] j` )}jc ]jf )}jY sysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhjDnhhhjUnhMubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDnhhhjUnhMubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDnhhhjUnhMubj{)}(hsysvipc_find_ipch]j)}(hjnh]hsysvipc_find_ipc}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDnhhhjUnhMubj)}(h"(struct ipc_ids *ids, loff_t *pos)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]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 ]jnc.sysvipc_find_ipcasbuh1hhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hidsh]hids}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h loff_t *posh](h)}(hhh]j)}(hloff_th]hloff_t}(hj5ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2oubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7omodnameN classnameNj] j` )}jc ]jnc.sysvipc_find_ipcasbuh1hhj.oubj2)}(h h]h }(hjSohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.oubj)}(hjh]h*}(hjaohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.oubj)}(hposh]hpos}(hjnohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjDnhhhjUnhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@nhhhjUnhMubah}(h]j;nah ](jjeh"]h$]h&]jj)jhuh1jhjUnhMhj=nhhubj)}(hhh]h)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhj=nhhhjUnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhj7hNhNubj)}(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)}(hjoh]h Parameters}(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.chMhjoubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjoh]hstruct ipc_ids *ids}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjoubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubj)}(h"``loff_t *pos`` expected position h](j)}(h``loff_t *pos``h]j)}(hjph]h loff_t *pos}(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.chMhj pubj2)}(hhh]h)}(hexpected positionh]hexpected position}(hj+phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'phMhj(pubah}(h]h ]h"]h$]h&]uh1j1hj pubeh}(h]h ]h"]h$]h&]uh1jhj'phMhjoubeh}(h]h ]h"]h$]h&]uh1j hjoubh)}(h**Description**h]j)}(hjMph]h Description}(hjOphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKpubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjoubh)}(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 }(hjcphhhNhNubj)}(h**pos**h]hpos}(hjkphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcpubh+. If there is no ipc structure at position }(hjcphhhNhNubj)}(h**pos**h]hpos}(hj}phhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcpubh, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and }(hjcphhhNhNubj)}(h**pos**h]hpos}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcpubhb is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), }(hjcphhhNhNubj)}(h**pos**h]hpos}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcpubh is not modified.}(hjcphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjoubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubeh}(h] ipc-utilitiesah ]h"] ipc utilitiesah$]h&]uh1hhj7hhhhhKubeh}(h]kernel-ipc-facilitiesah ]h"]kernel ipc facilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h FIFO Bufferh]h FIFO Buffer}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhjphhhNhNubj)}(hhh](j)}(hDECLARE_KFIFO_PTRh2]j)}(hDECLARE_KFIFO_PTRh]j{)}(hDECLARE_KFIFO_PTRh]j)}(hjqh]hDECLARE_KFIFO_PTR}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhj2qhKoubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhj2qhKohjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhj2qhKoubeh}(h]h ](jmacroeh"]h$]h&]jjjjKqjjKqjjjuh1jhhhjphNhNubh)}(h"``DECLARE_KFIFO_PTR (fifo, type)``h]j)}(hjQqh]hDECLARE_KFIFO_PTR (fifo, type)}(hjSqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhjphhubj)}(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}(hjkqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKohjgqubah}(h]h ]h"]h$]h&]uh1jhjyqhKohjphhubj)}(hZ**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elementsh](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:205: ./include/linux/kfifo.hhKshjqubj )}(hhh](j)}(h#``fifo`` name of the declared fifo h](j)}(h``fifo``h]j)}(hjqh]hfifo}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKphjqubj2)}(hhh]h)}(hname of the declared fifoh]hname of the declared fifo}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKphjqubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhKphjqubj)}(h"``type`` type of the fifo elementsh](j)}(h``type``h]j)}(hjqh]htype}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKrhjqubj2)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhjqubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhKrhjqubeh}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DECLARE_KFIFO (C macro)c.DECLARE_KFIFOhNtauh1hhjphhhNhNubj)}(hhh](j)}(h DECLARE_KFIFOh]j)}(h DECLARE_KFIFOh]j{)}(h DECLARE_KFIFOh]j)}(hj2rh]h DECLARE_KFIFO}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj:vubah}(h]h ]h"]h$]h&]uh1jhjLvhKhjphhubj)}(h**Parameters** ``fifo`` address of the fifo to check **Description** Return ``true`` if fifo is initialized, otherwise ``false``. Assumes the fifo was 0 before.h](h)}(h**Parameters**h]j)}(hjYvh]h Parameters}(hj[vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWvubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjSvubj )}(hhh]j)}(h&``fifo`` address of the fifo to check h](j)}(h``fifo``h]j)}(hjxvh]hfifo}(hjzvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjrvubj2)}(hhh]h)}(haddress of the fifo to checkh]haddress of the fifo to check}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjvubah}(h]h ]h"]h$]h&]uh1j1hjrvubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjovubah}(h]h ]h"]h$]h&]uh1j hjSvubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjSvubh)}(h[Return ``true`` if fifo is initialized, otherwise ``false``. Assumes the fifo was 0 before.h](hReturn }(hjvhhhNhNubj)}(h``true``h]htrue}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh# if fifo is initialized, otherwise }(hjvhhhNhNubj)}(h ``false``h]hfalse}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh . Assumes the fifo was 0 before.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjSvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_esize (C macro) c.kfifo_esizehNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_esizeh]j)}(h kfifo_esizeh]j{)}(h kfifo_esizeh]j)}(hjwh]h kfifo_esize}(hj whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhj3whKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhj3whKhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhj3whKubeh}(h]h ](jmacroeh"]h$]h&]jjjjLwjjLwjjjuh1jhhhjphNhNubh)}(h``kfifo_esize (fifo)``h]j)}(hjRwh]hkfifo_esize (fifo)}(hjTwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjphhubj)}(h4returns the size of the element managed by the fifo h]h)}(h3returns the size of the element managed by the fifoh]h3returns the size of the element managed by the fifo}(hjlwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjhwubah}(h]h ]h"]h$]h&]uh1jhjzwhKhjphhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjwubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjwh]hfifo}(hjwhhhNhNubah}(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.hhKhjwubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjwubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKhjwubah}(h]h ]h"]h$]h&]uh1j hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_recsize (C macro)c.kfifo_recsizehNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_recsizeh]j)}(h kfifo_recsizeh]j{)}(h kfifo_recsizeh]j)}(hjwh]h kfifo_recsize}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjxhKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjxhKhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhjxhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj0xjj0xjjjuh1jhhhjphNhNubh)}(h``kfifo_recsize (fifo)``h]j)}(hj6xh]hkfifo_recsize (fifo)}(hj8xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4xubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjphhubj)}(h,returns the size of the record length field h]h)}(h+returns the size of the record length fieldh]h+returns the size of the record length field}(hjPxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjLxubah}(h]h ]h"]h$]h&]uh1jhj^xhKhjphhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjkxh]h Parameters}(hjmxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjixubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjexubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjxh]hfifo}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjxubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjxubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjxubah}(h]h ]h"]h$]h&]uh1j hjexubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_size (C macro) c.kfifo_sizehNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_sizeh]j)}(h kfifo_sizeh]j{)}(h kfifo_sizeh]j)}(hjxh]h kfifo_size}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhKubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjxhKhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjxhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1jhhhjphNhNubh)}(h``kfifo_size (fifo)``h]j)}(hjyh]hkfifo_size (fifo)}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjphhubj)}(h)returns the size of the fifo in elements h]h)}(h(returns the size of the fifo in elementsh]h(returns the size of the fifo in elements}(hj4yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj0yubah}(h]h ]h"]h$]h&]uh1jhjByhKhjphhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjOyh]h Parameters}(hjQyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjIyubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjnyh]hfifo}(hjpyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlyubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjhyubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjyubah}(h]h ]h"]h$]h&]uh1j1hjhyubeh}(h]h ]h"]h$]h&]uh1jhjyhKhjeyubah}(h]h ]h"]h$]h&]uh1j hjIyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_reset (C macro) c.kfifo_resethNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_reseth]j)}(h kfifo_reseth]j{)}(h kfifo_reseth]j)}(hjyh]h kfifo_reset}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhKubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhjyhKhjyhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhjyhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1jhhhjphNhNubh)}(h``kfifo_reset (fifo)``h]j)}(hjyh]hkfifo_reset (fifo)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjphhubj)}(h removes the entire fifo content h]h)}(hremoves the entire fifo contenth]hremoves the entire fifo content}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjzubah}(h]h ]h"]h$]h&]uh1jhj&zhKhjphhubj)}(h**Parameters** ``fifo`` address of the fifo to be used **Note** usage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.h](h)}(h**Parameters**h]j)}(hj3zh]h Parameters}(hj5zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1zubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj-zubj )}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjRzh]hfifo}(hjTzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjLzubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjkzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgzhKhjhzubah}(h]h ]h"]h$]h&]uh1j1hjLzubeh}(h]h ]h"]h$]h&]uh1jhjgzhKhjIzubah}(h]h ]h"]h$]h&]uh1j hj-zubh)}(h**Note**h]j)}(hjzh]hNote}(hjzhhhNhNubah}(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.hhKhj-zubh)}(husage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.h]husage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj-zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_reset_out (C macro)c.kfifo_reset_outhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_reset_outh]j)}(hkfifo_reset_outh]j{)}(hkfifo_reset_outh]j)}(hjzh]hkfifo_reset_out}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjzhKubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jhjzhKhjzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzhhhjzhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1jhhhjphNhNubh)}(h``kfifo_reset_out (fifo)``h]j)}(hj{h]hkfifo_reset_out (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.hhKhjphhubj)}(hskip fifo content h]h)}(hskip fifo contenth]hskip fifo content}(hj"{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj{ubah}(h]h ]h"]h$]h&]uh1jhj0{hKhjphhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used **Note** The usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().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.hhKhj7{ubj )}(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&]uh1jhjZ{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjV{ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hju{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq{hKhjr{ubah}(h]h ]h"]h$]h&]uh1j1hjV{ubeh}(h]h ]h"]h$]h&]uh1jhjq{hKhjS{ubah}(h]h ]h"]h$]h&]uh1j hj7{ubh)}(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:205: ./include/linux/kfifo.hhKhj7{ubh)}(hThe usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().h]hThe usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj7{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_len (C macro) c.kfifo_lenhNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_lenh]j)}(h kfifo_lenh]j{)}(h kfifo_lenh]j)}(hj{h]h kfifo_len}(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.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhj{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&]jjjj |jj |jjjuh1jhhhjphNhNubh)}(h``kfifo_len (fifo)``h]j)}(hj|h]hkfifo_len (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.hhKhjphhubj)}(h0returns the number of used elements in the fifo h]h)}(h/returns the number of used elements in the fifoh]h/returns the number of used elements in the fifo}(hj,|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj(|ubah}(h]h ]h"]h$]h&]uh1jhj:|hKhjphhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjG|h]h Parameters}(hjI|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjA|ubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjf|h]hfifo}(hjh|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd|ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj`|ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj||ubah}(h]h ]h"]h$]h&]uh1j1hj`|ubeh}(h]h ]h"]h$]h&]uh1jhj{|hKhj]|ubah}(h]h ]h"]h$]h&]uh1j hjA|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_is_empty (C macro)c.kfifo_is_emptyhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_is_emptyh]j)}(hkfifo_is_emptyh]j{)}(hkfifo_is_emptyh]j)}(hj|h]hkfifo_is_empty}(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.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|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&]jjjj|jj|jjjuh1jhhhjphNhNubh)}(h``kfifo_is_empty (fifo)``h]j)}(hj|h]hkfifo_is_empty (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.hhKhjphhubj)}(h"returns true if the fifo is empty h]h)}(h!returns true if the fifo is emptyh]h!returns true if the fifo is empty}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj }ubah}(h]h ]h"]h$]h&]uh1jhj}hKhjphhubj)}(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&]uh1jhj)}ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj%}ubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjJ}h]hfifo}(hjL}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjD}ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjc}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj`}ubah}(h]h ]h"]h$]h&]uh1j1hjD}ubeh}(h]h ]h"]h$]h&]uh1jhj_}hKhjA}ubah}(h]h ]h"]h$]h&]uh1j hj%}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #kfifo_is_empty_spinlocked (C macro)c.kfifo_is_empty_spinlockedhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_is_empty_spinlockedh]j)}(hkfifo_is_empty_spinlockedh]j{)}(hkfifo_is_empty_spinlockedh]j)}(hj}h]hkfifo_is_empty_spinlocked}(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.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}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&]jjjj}jj}jjjuh1jhhhjphNhNubh)}(h*``kfifo_is_empty_spinlocked (fifo, lock)``h]j)}(hj}h]h&kfifo_is_empty_spinlocked (fifo, lock)}(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.hhMhjphhubj)}(h?returns true if the fifo is empty using a spinlock for locking h]h)}(h>returns true if the fifo is empty using a spinlock for lockingh]h>returns true if the fifo is empty 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.hhKhj}ubah}(h]h ]h"]h$]h&]uh1jhj~hKhjphhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](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)}(hj.~h]hfifo}(hj0~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)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjG~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC~hMhjD~ubah}(h]h ]h"]h$]h&]uh1j1hj(~ubeh}(h]h ]h"]h$]h&]uh1jhjC~hMhj%~ubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjg~h]hlock}(hji~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje~ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhja~ubj2)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(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&]uh1j1hja~ubeh}(h]h ]h"]h$]h&]uh1jhj|~hMhj%~ubeh}(h]h ]h"]h$]h&]uh1j hj ~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j -kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhjphhhNhNubj)}(hhh](j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j{)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(hj~h]h#kfifo_is_empty_spinlocked_noirqsave}(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~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~jjjuh1jhhhjphNhNubh)}(h4``kfifo_is_empty_spinlocked_noirqsave (fifo, lock)``h]j)}(hj~h]h0kfifo_is_empty_spinlocked_noirqsave (fifo, lock)}(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.hhMhjphhubj)}(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.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhjphhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](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)}(hjKh]hfifo}(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 of the fifo to be usedh]haddress of the fifo to be used}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(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.hhMhj~ubj2)}(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&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubeh}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_is_full (C macro)c.kfifo_is_fullhNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_is_fullh]j)}(h kfifo_is_fullh]j{)}(h kfifo_is_fullh]j)}(hjh]h kfifo_is_full}(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&]jjjjjjjjjuh1jhhhjphNhNubh)}(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 hjphhubj)}(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.hhMhj*ubah}(h]h ]h"]h$]h&]uh1jhj<hMhjphhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hjCubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjhh]hfifo}(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.hhM$hjbubj2)}(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.hhMhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM$hj_ubah}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_avail (C macro) c.kfifo_availhNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_availh]j)}(h kfifo_availh]j{)}(h kfifo_availh]j)}(hjh]h kfifo_avail}(hjƀhhhNhNubah}(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.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&]jjjjjjjjjuh1jhhhjphNhNubh)}(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*hjphhubj)}(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&]uh1jhj hM(hjphhubj)}(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&]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)}(hjLh]hfifo}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM.hjFubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM)hjbubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjahM.hjCubah}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_skip_count (C macro)c.kfifo_skip_counthNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_skip_counth]j)}(hkfifo_skip_counth]j{)}(hkfifo_skip_counth]j)}(hjh]hkfifo_skip_count}(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.hhM8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM8hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjցjjցjjjuh1jhhhjphNhNubh)}(h"``kfifo_skip_count (fifo, count)``h]j)}(hj܁h]hkfifo_skip_count (fifo, count)}(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:hjphhubj)}(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&]uh1jhjhM8hjphhubj)}(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<hj ubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj0h]hfifo}(hj2hhhNhNubah}(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.hhM9hj*ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM9hjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM9hj'ubj)}(h``count`` count of data to skiph](j)}(h ``count``h]j)}(hjih]hcount}(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.hhM;hjcubj2)}(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&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM;hj'ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_skip (C macro) c.kfifo_skiphNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_skiph]j)}(h kfifo_skiph]j{)}(h kfifo_skiph]j)}(hjh]h kfifo_skip}(hjǂhhhNhNubah}(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.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjڂhMGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjڂhMGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjڂhMGubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(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.hhMIhjphhubj)}(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&]uh1jhj!hMGhjphhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(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.hhMKhj(ubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjMh]hfifo}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjGubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMHhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMMhjDubah}(h]h ]h"]h$]h&]uh1j hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_peek_lenh]j)}(hkfifo_peek_lenh]j{)}(hkfifo_peek_lenh]j)}(hjh]hkfifo_peek_len}(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.hhMMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMMubeh}(h]h ](jmacroeh"]h$]h&]jjjj׃jj׃jjjuh1jhhhjphNhNubh)}(h``kfifo_peek_len (fifo)``h]j)}(hj݃h]hkfifo_peek_len (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.hhMOhjphhubj)}(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&]uh1jhjhMMhjphhubj)}(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.hhMQhj ubj )}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj1h]hfifo}(hj3hhhNhNubah}(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.hhMNhj+ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMNhjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMNhj(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhj ubh)}(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.hhMOhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_alloc (C macro) c.kfifo_allochNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_alloch]j)}(h kfifo_alloch]j{)}(h kfifo_alloch]j)}(hjh]h kfifo_alloc}(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.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&]jjjjjjjjjuh1jhhhjphNhNubh)}(h&``kfifo_alloc (fifo, size, gfp_mask)``h]j)}(hjh]h"kfifo_alloc (fifo, size, gfp_mask)}(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`hjphhubj)}(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^hjphhubj)}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM_hj5ubj2)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM_hjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM_hj2ubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hjth]hsize}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hjnubj2)}(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&]uh1hhjhM`hjubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhM`hj2ubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hjh]hgfp_mask}(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.hhMahjubj2)}(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&]uh1hhj…hMahjÅubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj…hMahj2ubeh}(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.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.}(hj hhhNhNubah}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_alloc_node (C macro)c.kfifo_alloc_nodehNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_alloc_nodeh]j)}(hkfifo_alloc_nodeh]j{)}(hkfifo_alloc_nodeh]j)}(hj6h]hkfifo_alloc_node}(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.hhMuubah}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjShMuubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhjShMuhj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhjShMuubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1jhhhjphNhNubh)}(h1``kfifo_alloc_node (fifo, size, gfp_mask, node)``h]j)}(hjrh]h-kfifo_alloc_node (fifo, size, gfp_mask, node)}(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.hhMwhjphhubj)}(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}(hjhhhNhNubah}(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&]uh1jhjhMuhjphhubj)}(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)}(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.hhMyhjubj )}(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.hhMvhjubj2)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hj߆hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۆhMvhj܆ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjۆhMvhjubj)}(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&]uh1jhjhMwhjubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hj8h]hgfp_mask}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMxhj2ubj2)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMxhjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMxhjubj)}(h)``node`` NUMA node to allocate memory on h](j)}(h``node``h]j)}(hjqh]hnode}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhjkubj2)}(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&]uh1j1hjkubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM{hjubh)}(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.}(hj‡hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMzhjubh)}(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.}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_free (C macro) c.kfifo_freehNtauh1hhjphhhNhNubj)}(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&]jjjj0jj0jjjuh1jhhhjphNhNubh)}(h``kfifo_free (fifo)``h]j)}(hj6h]hkfifo_free (fifo)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjphhubj)}(hfrees the fifo h]h)}(hfrees the fifoh]hfrees the fifo}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjLubah}(h]h ]h"]h$]h&]uh1jhj^hMhjphhubj)}(h/**Parameters** ``fifo`` the fifo to be freedh](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:205: ./include/linux/kfifo.hhMhjeubj )}(hhh]j)}(h``fifo`` the fifo to be freedh](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 be freedh]hthe fifo to be freed}(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&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_init (C macro) c.kfifo_inithNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_inith]j)}(h kfifo_inith]j{)}(h kfifo_inith]j)}(hjވh]h kfifo_init}(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&]jjjjjjjjjuh1jhhhjphNhNubh)}(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.hhMhjphhubj)}(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}(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&]uh1jhjBhMhjphhubj)}(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)}(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`` the fifo to assign the buffer 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)}(hthe fifo to assign the bufferh]hthe fifo to assign the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h.``buffer`` the preallocated buffer to be used h](j)}(h ``buffer``h]j)}(hjh]hbuffer}(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"the preallocated buffer to be usedh]h"the preallocated buffer to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hG``size`` the size of the internal buffer, this have to be a power of 2 h](j)}(h``size``h]j)}(hjh]hsize}(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 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&]uh1j1hjډubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubeh}(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)}(h:This macro initializes a fifo using a preallocated buffer.h]h:This macro initializes a fifo using a preallocated buffer.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjIubh)}(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.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_put (C macro) c.kfifo_puthNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_puth]j)}(h kfifo_puth]j{)}(h kfifo_puth]j)}(hjih]h kfifo_put}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjdhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(h``kfifo_put (fifo, val)``h]j)}(hjh]hkfifo_put (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.hhMhjphhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into 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&]uh1jhj͊hMhjphhubj)}(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)}(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)}(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)}(hj2h]hval}(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)}(hthe data to be addedh]hthe data to be added}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjԊubh)}(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.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.}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_get (C macro) c.kfifo_gethNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_geth]j)}(h kfifo_geth]j{)}(h kfifo_geth]j)}(hjh]h kfifo_get}(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&]jjjjjjjjjuh1jhhhjphNhNubh)}(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.hhMhjphhubj)}(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.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhjphhubj)}(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)}(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)}(hjKh]hfifo}(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 of the fifo to be usedh]haddress of the fifo to be used}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(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.hhMhj~ubj2)}(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&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubeh}(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 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.}(hjՌhhhNhNubah}(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.}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_peek (C macro) c.kfifo_peekhNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_peekh]j)}(h kfifo_peekh]j{)}(h kfifo_peekh]j)}(hj h]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&]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&]jjjjCjjCjjjuh1jhhhjphNhNubh)}(h``kfifo_peek (fifo, val)``h]j)}(hjIh]hkfifo_peek (fifo, val)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjphhubj)}(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}(hjchhhNhNubah}(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&]uh1jhjqhMhjphhubj)}(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)}(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.hhMhjxubj )}(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`` address where to store the data 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.hhMhjЍubj2)}(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&]uh1j1hjЍubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjxubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjxubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_in (C macro) c.kfifo_inhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_inh]j)}(hkfifo_inh]j{)}(hkfifo_inh]j)}(hj_h]hkfifo_in}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj|hMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhj|hMhjZhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjZhhhj|hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(h``kfifo_in (fifo, buf, n)``h]j)}(hjh]hkfifo_in (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.hhM!hjphhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into 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&]uh1jhjÎhMhjphhubj)}(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)}(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.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 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`` the data to be added 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.hhM!hj"ubj2)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(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%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjah]hn}(hjchhhNhNubah}(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)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM"hjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM"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&]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.}(hjhhhNhNubah}(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.}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_in_spinlocked (C macro)c.kfifo_in_spinlockedhNtauh1hhjphhhNhNubj)}(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&]jjjuh1jjjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM7hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1jhhhjphNhNubh)}(h,``kfifo_in_spinlocked (fifo, buf, n, lock)``h]j)}(hj&h]h(kfifo_in_spinlocked (fifo, buf, n, lock)}(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.hhM9hjphhubj)}(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&]uh1jhjNhM7hjphhubj)}(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)}(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:205: ./include/linux/kfifo.hhM;hjUubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjzh]hfifo}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hjtubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjqubj)}(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.hhM9hjubj2)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hj̐hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȐhM9hjɐubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjȐhM9hjqubj)}(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&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjqubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hj%h]hlock}(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;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;hjqubeh}(h]h ]h"]h$]h&]uh1j hjUubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(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=hjUubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'kfifo_in_spinlocked_noirqsave (C macro)c.kfifo_in_spinlocked_noirqsavehNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hkfifo_in_spinlocked_noirqsaveh]j{)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hjh]hkfifo_in_spinlocked_noirqsave}(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.hhMKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMKubeh}(h]h ](jmacroeh"]h$]h&]jjjjՑjjՑjjjuh1jhhhjphNhNubh)}(h6``kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hjۑh]h2kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)}(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.hhMMhjphhubj)}(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&]uh1jhjhMKhjphhubj)}(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.hhMOhj ubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj/h]hfifo}(hj1hhhNhNubah}(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.hhMMhj)ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMMhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMMhj&ubj)}(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.hhMNhjbubj2)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMNhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMNhj&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.hhMOhjubj2)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhj&ubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjڒh]hlock}(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.hhMPhjԒubj2)}(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&]uh1j1hjԒubeh}(h]h ]h"]h$]h&]uh1jhjhMPhj&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.hhMRhj ubh)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out (C macro) c.kfifo_outhNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_outh]j)}(h kfifo_outh]j{)}(h kfifo_outh]j)}(hjTh]h kfifo_out}(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.hhMcubah}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjqhMcubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjqhMchjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjqhMcubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(h``kfifo_out (fifo, buf, n)``h]j)}(hjh]hkfifo_out (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.hhMehjphhubj)}(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.hhMchjubah}(h]h ]h"]h$]h&]uh1jhjhMchjphhubj)}(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)}(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.hhMghjubj )}(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.hhMdhjޓubj2)}(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&]uh1j1hjޓubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjۓubj)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMehj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hMehjۓubj)}(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.hhMfhjPubj2)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMfhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMfhjۓ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.hhMhhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghjubh)}(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.hhMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]j{)}(hkfifo_out_spinlockedh]j)}(hjߔh]hkfifo_out_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.hhM}ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjݔhhhjhM}ubah}(h]jؔah ](jjeh"]h$]h&]jj)jhuh1jhjhM}hjڔhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjڔhhhjhM}ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(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.hhMhjphhubj)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM}hj1ubah}(h]h ]h"]h$]h&]uh1jhjChM}hjphhubj)}(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)}(hjPh]h Parameters}(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.hhMhjJubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjoh]hfifo}(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.hhM~hjiubj2)}(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&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjfubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjh]hn}(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)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjەubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjfubeh}(h]h ]h"]h$]h&]uh1j hjJubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjJubh)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (kfifo_out_spinlocked_noirqsave (C macro) c.kfifo_out_spinlocked_noirqsavehNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hkfifo_out_spinlocked_noirqsaveh]j{)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hjh]hkfifo_out_spinlocked_noirqsave}(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ʖjjjuh1jhhhjphNhNubh)}(h7``kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hjЖh]h3kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)}(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.hhMhjphhubj)}(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.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjphhubj)}(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)}(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.hhMhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(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.hhMhjWubj2)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(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.hhMhjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjϗh]hlock}(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 spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(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)}(hj h]h Description}(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.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.}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_from_userh]j)}(hkfifo_from_userh]j{)}(hkfifo_from_userh]j)}(hjIh]hkfifo_from_user}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjfhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhjfhMhjDhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjDhhhjfhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(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.hhMhjphhubj)}(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}(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&]uh1jhjhMhjphhubj)}(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)}(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&]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)``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.hhMhj ubj2)}(hhh]h)}(hpointer to the data to be addedh]hpointer to the data to be added}(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+``len`` the length of the data to be added h](j)}(h``len``h]j)}(hjKh]hlen}(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)}(h"the length of the data to be addedh]h"the length of the data to be added}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjИubj)}(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.hhMhj~ubj2)}(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&]uh1j1hj~ubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(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 }(hjՙhhhNhNubj)}(h**len**h]hlen}(hjݙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՙubh bytes from the }(hjՙhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՙubhG into the fifo, depending of the available space and returns -EFAULT/0.}(hjՙhhhNhNubeh}(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.}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhjphhhNhNubj)}(hhh](j)}(h kfifo_to_userh]j)}(h kfifo_to_userh]j{)}(h kfifo_to_userh]j)}(hj1h]h kfifo_to_user}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjNhMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jhjNhMhj,hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj,hhhjNhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjgjjgjjjuh1jhhhjphNhNubh)}(h)``kfifo_to_user (fifo, to, len, copied)``h]j)}(hjmh]h%kfifo_to_user (fifo, to, len, copied)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjphhubj)}(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&]uh1jhjhMhjphhubj)}(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)}(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}(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%``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&]uh1jhjhMhjubj)}(h+``len`` the size of the destination buffer h](j)}(h``len``h]j)}(hj3h]hlen}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubj)}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j)}(h ``copied``h]j)}(hjlh]hcopied}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjfubj2)}(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&]uh1j1hjfubeh}(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:205: ./include/linux/kfifo.hhMhjubh)}(hcThis macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0.h](hThis macro copies at most }(hjhhhNhNubj)}(h**len**h]hlen}(hjśhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from the fifo into the }(hjhhhNhNubj)}(h**to**h]hto}(hjכhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh buffer and returns -EFAULT/0.}(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.}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhjphhhNhNubj)}(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}(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&]jjjuh1jjjhjhhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj6hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj6hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjOjjOjjjuh1jhhhjphNhNubh)}(h<``kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjUh]h8kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjphhubj)}(h"setup a scatterlist for DMA input h]h)}(h!setup a scatterlist for DMA inputh]h!setup a scatterlist for DMA input}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubah}(h]h ]h"]h$]h&]uh1jhj}hMhjphhubj)}(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}(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&]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)}(hjh]hsgl}(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)}(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)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjTh]hlen}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjNubj2)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hjh]hdma}(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'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&]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&]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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]j{)}(hkfifo_dma_in_finishh]j)}(hj$h]hkfifo_dma_in_finish}(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"hhhjAhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjAhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjAhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjZjjZjjjuh1jhhhjphNhNubh)}(h#``kfifo_dma_in_finish (fifo, len)``h]j)}(hj`h]hkfifo_dma_in_finish (fifo, len)}(hjbhhhNhNubah}(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.hhMhjphhubj)}(hfinish a DMA IN operation h]h)}(hfinish a DMA IN operationh]hfinish a DMA IN operation}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjvubah}(h]h ]h"]h$]h&]uh1jhjhMhjphhubj)}(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)}(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$``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.hhMhjubj2)}(hhh]h)}(hnumber of bytes to receivedh]hnumber of bytes to received}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(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.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.}(hjMhhhNhNubah}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_dma_out_prepare_mappedh]j)}(hkfifo_dma_out_prepare_mappedh]j{)}(hkfifo_dma_out_prepare_mappedh]j)}(hjvh]hkfifo_dma_out_prepare_mapped}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(h=``kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjh]h9kfifo_dma_out_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.hhMhjphhubj)}(h#setup a scatterlist for DMA output h]h)}(h"setup a scatterlist for DMA outputh]h"setup a scatterlist for DMA output}(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ڟhMhjphhubj)}(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)}(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}(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}(hjAhhhNhNubah}(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.hhMhj9ubj2)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubj)}(h5``nents`` number of entries in the scatterlist array h](j)}(h ``nents``h]j)}(hjxh]hnents}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjrubj2)}(hhh]h)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hjʠhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƠhMhjǠubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(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&]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'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hjhhhNhNubj)}(h**sgl**h]hsgl}(hj hhhNhNubah}(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 hjubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hjubh)}(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](hhjphhubj)}(hfinish a DMA OUT operation h]h)}(hfinish a DMA OUT operationh]hfinish a DMA OUT operation}(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<hjphhubj)}(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)}(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=hjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM=hj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hM=hjubj)}(h$``len`` number of bytes transferred h](j)}(h``len``h]j)}(hj\h]hlen}(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.hhM>hjVubj2)}(hhh]h)}(hnumber of bytes transferredh]hnumber of bytes transferred}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM>hjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM>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)}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_peek (C macro)c.kfifo_out_peekhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_out_peekh]j)}(hkfifo_out_peekh]j{)}(hkfifo_out_peekh]j)}(hjh]hkfifo_out_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.hhMLubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMLubah}(h]jޢah ](jjeh"]h$]h&]jj)jhuh1jhjhMLhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMLubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(h!``kfifo_out_peek (fifo, buf, n)``h]j)}(hj!h]hkfifo_out_peek (fifo, buf, n)}(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.hhMNhjphhubj)}(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.hhMLhj7ubah}(h]h ]h"]h$]h&]uh1jhjIhMLhjphhubj)}(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)}(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.hhMPhjPubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjuh]hfifo}(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.hhMMhjoubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjlubj)}(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.hhMNhjubj2)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjǣhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjãhMNhjģubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjãhMNhjlubj)}(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.hhMOhjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjlubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjPubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjPubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMShjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_linear (C macro)c.kfifo_out_linearhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_out_linearh]j)}(hkfifo_out_linearh]j{)}(hkfifo_out_linearh]j)}(hjph]hkfifo_out_linear}(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.hhMfubah}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMfubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhMfhjkhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjkhhhjhMfubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjphNhNubh)}(h$``kfifo_out_linear (fifo, tail, n)``h]j)}(hjh]h kfifo_out_linear (fifo, tail, 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.hhMhhjphhubj)}(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.hhMfhj¤ubah}(h]h ]h"]h$]h&]uh1jhjԤhMfhjphhubj)}(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)}(hjh]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.hhMjhjۤ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.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)}(hj9h]htail}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhhj3ubj2)}(hhh]h)}(h5pointer to an unsigned int to store the value of tailh]h5pointer to an unsigned int to store the value of tail}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhhjOubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hjrh]hn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMihjlubj2)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubeh}(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.hhMkhjۤubh)}(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 (}(hjåhhhNhNubj)}(h**fifo->data**h]h fifo->data}(hj˥hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjåubh + }(hjåhhhNhNubj)}(h**tail**h]htail}(hjݥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjåubh) with count returned).}(hjåhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjۤ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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMqhjۤubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhjphhhNhNubj)}(hhh](j)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]j{)}(hkfifo_out_linear_ptrh]j)}(hjh]hkfifo_out_linear_ptr}(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&]jjjuh1jjjhjhhhj<hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj<hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj<hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjUjjUjjjuh1jhhhjphNhNubh)}(h'``kfifo_out_linear_ptr (fifo, ptr, n)``h]j)}(hj[h]h#kfifo_out_linear_ptr (fifo, ptr, n)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjphhubj)}(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}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjqubah}(h]h ]h"]h$]h&]uh1jhjhMhjphhubj)}(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)}(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)}(h5``ptr`` pointer to data to store the pointer to tail h](j)}(h``ptr``h]j)}(hjh]hptr}(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 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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hj!h]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.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&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubeh}(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&]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 }(hjrhhhNhNubj)}(h**ptr**h]hptr}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh with count returned).}(hjrhhhNhNubeh}(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.}(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&]uh1jhjphhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhjphhhhhKubeh}(h] fifo-bufferah ]h"] fifo bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hrelay interface supporth]hrelay interface support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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&]uh1hhhhKhjhhubh)}(hhh](h)}(hrelay interfaceh]hrelay interface}(hjۧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjاhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_buf_full (C function)c.relay_buf_fullhNtauh1hhjاhhhNhNubj)}(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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]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 rchan_bufh]h rchan_buf}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jf )}jY j%sbc.relay_buf_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)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(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?}(hj¨hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjڨjjڨjjjuh1jhhhjاhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Returns 1 if the buffer is full, 0 otherwise.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.chKhjި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.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 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:218: ./kernel/relay.chKhjިubj)}(h-Returns 1 if the buffer is full, 0 otherwise.h]h)}(hjVh]h-Returns 1 if the buffer is full, 0 otherwise.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjTubah}(h]h ]h"]h$]h&]uh1jhjehKhjިubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_reset (C function) c.relay_resethNtauh1hhjاhhhNhNubj)}(hhh](j)}(h%void relay_reset (struct rchan *chan)h]j)}(h$void relay_reset(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.chM:ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM:ubj{)}(h relay_reseth]j)}(h relay_reseth]h relay_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM:ubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]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)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.relay_resetasbuh1hhjũubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjũubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjũubj)}(hchanh]hchan}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjũubeh}(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)}(hreset the channelh]hreset the channel}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM:hjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhjاhNhNubj)}(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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM>hjhubj )}(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.chM;hjubj2)}(hhh]h)}(h the channelh]h the channel}(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 hjhubh)}(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=hjhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM<hjުubh)}(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@hjުubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_open (C function) c.relay_openhNtauh1hhjاhhhNhNubj)}(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)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj3hMubh)}(hhh]j)}(hrchanh]hrchan}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jf )}jY relay_opensb c.relay_openasbuh1hhj"hhhj3hMubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj3hMubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj3hMubj{)}(h relay_openh]j)}(hjch]h relay_open}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj3hMubj)}(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}(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)}(h base_filenameh]h base_filename}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(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 ]ja c.relay_openasbuh1hhjubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subbuf_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]ja c.relay_openasbuh1hhjiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(h subbuf_sizeh]h subbuf_size}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t n_subbufsh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]ja c.relay_openasbuh1hhjubj2)}(h h]h }(hj֬hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h n_subbufsh]h n_subbufs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct rchan_callbacks *cbh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrchan_callbacksh]hrchan_callbacks}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]ja c.relay_openasbuh1hhjubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcbh]hcb}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid *private_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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h private_datah]h private_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj3hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj3hMhjhhubj)}(hhh]h)}(hcreate a new relay channelh]hcreate a new relay channel}(hjۭhhhNhNubah}(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&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(h\``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer h](j)}(h``struct dentry *parent``h]j)}(hjUh]hstruct dentry *parent}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjOubj2)}(hhh]h)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hjnhhhNhNubj)}(h``NULL``h]hNULL}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh for root directory or buffer}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubj)}(h+``size_t subbuf_size`` size of sub-buffers h](j)}(h``size_t subbuf_size``h]j)}(hjh]hsize_t subbuf_size}(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)}(hsize of sub-buffersh]hsize of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``size_t n_subbufs`` number of sub-buffers h](j)}(h``size_t n_subbufs``h]j)}(hjٮh]hsize_t n_subbufs}(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.chMhjӮubj2)}(hhh]h)}(hnumber of sub-buffersh]hnumber of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjӮubeh}(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.chMhj ubj2)}(hhh]h)}(hclient callback functionsh]hclient callback functions}(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)``void *private_data`` user-defined data h](j)}(h``void *private_data``h]j)}(hjKh]hvoid *private_data}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjEubj2)}(hhh]h)}(huser-defined datah]huser-defined data}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(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&]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, }(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:218: ./kernel/relay.chMhjubh)}(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 }(hjhhhNhNubj)}(h ``S_IRUSR``h]hS_IRUSR}(hjɯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  relay_switch_subbuf (C function)c.relay_switch_subbufhNtauh1hhjاhhhNhNubj)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN 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&]uh1j1hjhhhj,hM!ubj{)}(hrelay_switch_subbufh]j)}(hj)h]hrelay_switch_subbuf}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj,hM!ubj)}(h&(struct rchan_buf *buf, size_t length)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzmodnameN classnameNj] j` )}jc ]j'c.relay_switch_subbufasbuh1hhjVubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(h size_t lengthh](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.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&]noemphjjuh1jhjRubeh}(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)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hj#hhhNhNubah}(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&]jjjj;jj;jjjuh1jhhhjاhNhNubj)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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)}(hjdh]hstruct rchan_buf *buf}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM"hj^ubj2)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhM"hjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM"hj[ubj)}(h(``size_t length`` size of current event h](j)}(h``size_t length``h]j)}(hjh]h size_t length}(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)}(hsize of current eventh]hsize of current event}(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&]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&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #relay_subbufs_consumed (C function)c.relay_subbufs_consumedhNtauh1hhjاhhhNhNubj)}(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}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMcubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2hhhjDhMcubj{)}(hrelay_subbufs_consumedh]j)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhjDhMcubj)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubh)}(hhh]j)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.relay_subbufs_consumedasbuh1hhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hchanh]hchan}(hj̲hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hunsigned int cpuh](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)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hsize_t subbufs_consumedh](h)}(hhh]j)}(hsize_th]hsize_t}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jc.relay_subbufs_consumedasbuh1hhj2ubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hsubbufs_consumedh]hsubbufs_consumed}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhMcubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jhjDhMchj+hhubj)}(hhh]h)}(h.update the buffer's sub-buffers-consumed counth]h0update the buffer’s sub-buffers-consumed count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMchjhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(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.chMghjubj )}(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.chMdhjʳubj2)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1j1hjʳubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjdzubj)}(hJ``unsigned int cpu`` the cpu associated with the channel buffer to update h](j)}(h``unsigned int cpu``h]j)}(hj h]hunsigned int cpu}(hj hhhNhNubah}(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}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjdzubj)}(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)}(hjBh]hsize_t subbufs_consumed}(hjDhhhNhNubah}(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}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMfhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMfhjdzubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMghjubh)}(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’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMkhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_close (C function) c.relay_closehNtauh1hhjاhhhNhNubj)}(hhh](j)}(h%void relay_close (struct rchan *chan)h]j)}(h$void relay_close(struct rchan *chan)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.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj״hhhjhMubj{)}(h relay_closeh]j)}(h relay_closeh]h relay_close}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj״hhhjhMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrchanh]hrchan}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jf )}jY jsb c.relay_closeasbuh1hhjubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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)}(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&]uh1jhjдhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(h}**Parameters** ``struct rchan *chan`` the channel **Description** Closes all channel buffers and frees the channel.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#``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.chMhjֵubj2)}(hhh]h)}(h the channelh]h the channel}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(h1Closes all channel buffers and frees the channel.h]h)}(hj/h]h1Closes all channel buffers and frees the channel.}(hj1hhhNhNubah}(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>hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_flush (C function) c.relay_flushhNtauh1hhjاhhhNhNubj)}(hhh](j)}(h%void relay_flush (struct rchan *chan)h]j)}(h$void relay_flush(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjahhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjshMubj{)}(h relay_flushh]j)}(h relay_flushh]h relay_flush}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjshMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj¶modnameN classnameNj] j` )}jc ]jf )}jY jsb c.relay_flushasbuh1hhjubj2)}(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&]jjuh1jhjahhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjshMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjshMhjZhhubj)}(hhh]h)}(hclose the channelh]hclose the channel}(hj%hhhNhNubah}(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&]uh1jhjZhhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1jhhhjاhNhNubj)}(h**Parameters** ``struct rchan *chan`` the channel **Description** Flushes all channel buffers, i.e. forces buffer switch.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjAubj )}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjfh]hstruct rchan *chan}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj`ubj2)}(hhh]h)}(h the channelh]h the channel}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjAubj)}(h7Flushes all channel buffers, i.e. forces buffer switch.h]h)}(hjh]h7Flushes all channel buffers, i.e. forces buffer switch.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjȷhMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #relay_mmap_prepare_buf (C function)c.relay_mmap_prepare_bufhNtauh1hhjاhhhNhNubj)}(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&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKJubj)}(h2(struct rchan_buf *buf, struct vm_area_desc *desc)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]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 rchan_bufh]h rchan_buf}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_mmap_prepare_bufasbuh1hhj(ubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct vm_area_desc *desch](j)}(hjh]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 ]jfc.relay_mmap_prepare_bufasbuh1hhjubj2)}(h h]h }(hjڸhhhNhNubah}(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$ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKJhjhhubj)}(hhh]j)}(hhh]j)}(h,mmap channel buffer to process address spaceh]h)}(hj$h]h,mmap channel buffer to process address space}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKJhj"ubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hNubah}(h]h ]h"]h$]h&]jjuh1jhj3hKJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhjاhNhNubj)}(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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKNhjMubj )}(hhh](j)}(h3``struct rchan_buf *buf`` the relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjrh]hstruct rchan_buf *buf}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKKhjlubj2)}(hhh]h)}(hthe relay channel bufferh]hthe relay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjhKKhjiubj)}(h5``struct vm_area_desc *desc`` describing what to map h](j)}(h``struct vm_area_desc *desc``h]j)}(hjh]hstruct vm_area_desc *desc}(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.chKLhjubj2)}(hhh]h)}(hdescribing what to maph]hdescribing what to map}(hjĹhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjiubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKNhjMubj)}(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&]uh1jhjhKMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_alloc_buf (C function)c.relay_alloc_bufhNtauh1hhjاhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hj@hhhjRhKeubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhKeubj{)}(hrelay_alloc_bufh]j)}(hrelay_alloc_bufh]hrelay_alloc_buf}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@hhhjRhKeubj)}(h%(struct rchan_buf *buf, size_t *size)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]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 jtsbc.relay_alloc_bufasbuh1hhjubj2)}(h h]h }(hj̺hhhNhNubah}(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}(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 }(hj!hhhNhNubah}(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@hhhjRhKeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhKeubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jhjRhKehj9hhubj)}(hhh]h)}(hallocate a channel bufferh]hallocate a channel buffer}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKehjchhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhKeubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhjاhNhNubj)}(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)}(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.chKfhjubj2)}(hhh]h)}(hthe buffer structh]hthe buffer struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKfhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhjubj)}(h*``size_t *size`` total size of the buffer h](j)}(h``size_t *size``h]j)}(hjh]h size_t *size}(hjhhhNhNubah}(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.chKghjڻubj2)}(hhh]h)}(htotal size of the bufferh]htotal size of the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKghjubah}(h]h ]h"]h$]h&]uh1j1hjڻubeh}(h]h ]h"]h$]h&]uh1jhjhKghjubeh}(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, }(hj5hhhNhNubj)}(h``NULL``h]hNULL}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhR if unsuccessful. The passed in size will get page aligned, if it isn’t already.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhhj1ubah}(h]h ]h"]h$]h&]uh1jhjUhKhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_create_buf (C function)c.relay_create_bufhNtauh1hhjاhhhNhNubj)}(hhh](j)}(h8struct rchan_buf * relay_create_buf (struct rchan *chan)h]j)}(h6struct rchan_buf *relay_create_buf(struct rchan *chan)h](j)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjhKubh)}(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 relay_create_bufsbc.relay_create_bufasbuh1hhjxhhhjhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjhKubj)}(hjh]h*}(hjʼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhKubj{)}(hrelay_create_bufh]j)}(hjh]hrelay_create_buf}(hjۼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׼ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjhKubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(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 ]jc.relay_create_bufasbuh1hhjubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhKubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjqhhubj)}(hhh]h)}(h(allocate and initialize a channel bufferh]h(allocate and initialize a channel buffer}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjthhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(h**Parameters** ``struct rchan *chan`` the relay channel **Description** Returns channel buffer if successful, ``NULL`` otherwise.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)}(h)``struct rchan *chan`` the relay 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:221: ./kernel/relay.chKhjubj2)}(hhh]h)}(hthe relay channelh]hthe relay channel}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj)}(h9Returns channel buffer if successful, ``NULL`` otherwise.h]h)}(hj h](h&Returns channel buffer if successful, }(hj hhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh otherwise.}(hj hhhNhNubeh}(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&]uh1jhj,hKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "relay_destroy_channel (C function)c.relay_destroy_channelhNtauh1hhjاhhhNhNubj)}(hhh](j)}(h.void relay_destroy_channel (struct kref *kref)h]j)}(h-void relay_destroy_channel(struct kref *kref)h](j )}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhjahKubj{)}(hrelay_destroy_channelh]j)}(hrelay_destroy_channelh]hrelay_destroy_channel}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjahKubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jvsbc.relay_destroy_channelasbuh1hhjubj2)}(h h]h }(hjξhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjܾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjahKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjahKhjHhhubj)}(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&]uh1jhjHhhhjahKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1jhhhjاhNhNubj)}(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)}(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.chKhj/ubj )}(hhh]j)}(hN``struct kref *kref`` target kernel reference that contains the relay channel h](j)}(h``struct kref *kref``h]j)}(hjTh]hstruct kref *kref}(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.chKhjNubj2)}(hhh]h)}(h7target kernel reference that contains the relay channelh]h7target kernel reference that contains the relay channel}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhjKubah}(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)}(h&Should only be called from kref_put().h]h)}(hjh]h&Should only be called from kref_put().}(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&]uh1jhjhKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_destroy_buf (C function)c.relay_destroy_bufhNtauh1hhjاhhhNhNubj)}(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}(hjݿhhhNhNubah}(h]h ]j,ah"]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ٿhhhjhKubj{)}(hrelay_destroy_bufh]j)}(hrelay_destroy_bufh]hrelay_destroy_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjٿhhhjhKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:modnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_destroy_bufasbuh1hhjubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjshhhNhNubah}(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]jпah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjҿhhubj)}(hhh]h)}(h1destroy an rchan_buf struct and associated bufferh]h1destroy an rchan_buf struct and associated 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&]uh1jhjҿhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(h=**Parameters** ``struct rchan_buf *buf`` the buffer structh](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)}(h+``struct rchan_buf *buf`` the buffer structh](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.chKhjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_remove_buf (C function)c.relay_remove_bufhNtauh1hhjاhhhNhNubj)}(hhh](j)}(h)void relay_remove_buf (struct kref *kref)h]j)}(h(void relay_remove_buf(struct kref *kref)h](j )}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4hhhjFhKubj{)}(hrelay_remove_bufh]j)}(hrelay_remove_bufh]hrelay_remove_buf}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhjFhKubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(hhh]j)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j[sbc.relay_remove_bufasbuh1hhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhjFhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjFhKubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jhjFhKhj-hhubj)}(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&]uh1jhj-hhhjFhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(hj9h]hstruct kref *kref}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj3ubj2)}(hhh]h)}(h6target kernel reference that contains the relay bufferh]h6target kernel reference that contains the relay buffer}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjOubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhj0ubah}(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&]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().}(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&]uh1jhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_buf_empty (C function)c.relay_buf_emptyhNtauh1hhjاhhhNhNubj)}(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}(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_buf_emptyh]j)}(hrelay_buf_emptyh]hrelay_buf_empty}(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)}(hjh]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_buf_emptyasbuh1hhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjYhhhNhNubah}(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%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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Returns 1 if the buffer is empty, 0 otherwise.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)}(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.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 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.chKhjubj)}(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&]uh1jhj&hKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wakeup_readers (C function)c.wakeup_readershNtauh1hhjاhhhNhNubj)}(hhh](j)}(h+void wakeup_readers (struct irq_work *work)h]j)}(h*void wakeup_readers(struct irq_work *work)h](j )}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIhhhj[hM ubj{)}(hwakeup_readersh]j)}(hwakeup_readersh]hwakeup_readers}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhj[hM ubj)}(h(struct irq_work *work)h]j)}(hstruct irq_work *workh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hirq_workh]hirq_work}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jpsbc.wakeup_readersasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hworkh]hwork}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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$wake up readers waiting on a channelh]h$wake up readers waiting on a channel}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhjاhNhNubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(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)}(h6``struct irq_work *work`` contains the channel buffer h](j)}(h``struct irq_work *work``h]j)}(hjNh]hstruct irq_work *work}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjHubj2)}(hhh]h)}(hcontains the channel bufferh]hcontains the channel buffer}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchM hjEubah}(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.chM hj)ubj)}(h0This is the function used to defer reader wakingh]h)}(hjh]h0This is the function used to defer reader waking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __relay_reset (C function)c.__relay_resethNtauh1hhjاhhhNhNubj)}(hhh](j)}(h=void __relay_reset (struct rchan_buf *buf, unsigned int init)h]j)}(hah"]h$]h&]uh1j1hjhhhjhMubj{)}(h __relay_reseth]j)}(h __relay_reseth]h __relay_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h*(struct rchan_buf *buf, unsigned int init)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY jsbc.__relay_resetasbuh1hhjubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int inith](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)}(hinith]hinit}(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)}(hreset a channel bufferh]hreset a channel buffer}(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&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(hj h]h Parameters}(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.chMhjubj )}(hhh](j)}(h-``struct rchan_buf *buf`` the channel buffer 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.chMhj#ubj2)}(hhh]h)}(hthe channel bufferh]hthe channel buffer}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubj)}(h?``unsigned int init`` 1 if this is a first-time initialization h](j)}(h``unsigned int init``h]j)}(hjbh]hunsigned int init}(hjdhhhNhNubah}(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.chMhj\ubj2)}(hhh]h)}(h(1 if this is a first-time initializationh]h(1 if this is a first-time initialization}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhj 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&]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)}(hjh]h,See relay_reset() for description of effect.}(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&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_close_buf (C function)c.relay_close_bufhNtauh1hhjاhhhNhNubj)}(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&]uh1jhjhhhS/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_close_bufh]j)}(hrelay_close_bufh]hrelay_close_buf}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_close_bufasbuh1hhj$ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbufh]hbuf}(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)}(hclose a channel bufferh]hclose a channel buffer}(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&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(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`` 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)}(hchannel bufferh]hchannel buffer}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj=ubah}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_stats (C function) c.relay_statshNtauh1hhjاhhhNhNubj)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj{modnameN classnameNj] j` )}jc ]jf )}jY relay_statssb c.relay_statsasbuh1hhjrhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrhhhjhMubj{)}(h relay_statsh]j)}(hjh]h relay_stats}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhMubj)}(h(struct rchan *chan, int flags)h](j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(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 ]j c.relay_statsasbuh1hhjubj2)}(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&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hflagsh]hflags}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjkhhubj)}(hhh]h)}(hget channel buffer statisticsh]hget channel buffer statistics}(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&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(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 *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:221: ./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&]uh1jhjhMhjubj)}(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&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(h9Returns the count of certain field that caller specifies.h]h)}(hjKh]h9Returns the count of certain field that caller specifies.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjIubah}(h]h ]h"]h$]h&]uh1jhjZhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_file_open (C function)c.relay_file_openhNtauh1hhjاhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hj}hhhjhMubj{)}(hrelay_file_openh]j)}(hrelay_file_openh]hrelay_file_open}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hjh]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.relay_file_openasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct file *filph](j)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubh)}(hhh]j)}(hfileh]hfile}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]jc.relay_file_openasbuh1hhj,ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hfilph]hfilp}(hjhhhNhNubah}(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&]jjjuh1jjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjvhhubj)}(hhh]h)}(hopen file op for relay filesh]hopen 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&]uh1jhjvhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(h**Parameters** ``struct inode *inode`` the inode ``struct file *filp`` the file **Description** Increments the channel buffer refcount.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 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj%ubj2)}(hhh]h)}(hthe fileh]hthe file}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(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)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(h'Increments the channel buffer refcount.h]h)}(hj~h]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.chMhj|ubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $relay_file_mmap_prepare (C function)c.relay_file_mmap_preparehNtauh1hhjاhhhNhNubj)}(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}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hrelay_file_mmap_prepareh]j)}(hrelay_file_mmap_prepareh]hrelay_file_mmap_prepare}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct vm_area_desc *desc)h]j)}(hstruct vm_area_desc *desch](j)}(hjh]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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_file_mmap_prepareasbuh1hhjubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdesch]hdesc}(hjJhhhNhNubah}(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)}(hmmap file op for relay filesh]hmmap file op for relay files}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(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)}(h5``struct vm_area_desc *desc`` describing what to map h](j)}(h``struct vm_area_desc *desc``h]j)}(hjh]hstruct vm_area_desc *desc}(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)}(hdescribing what to maph]hdescribing what 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 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)}(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.}(hj hhhNhNubah}(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&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_file_poll (C function)c.relay_file_pollhNtauh1hhjاhhhNhNubj)}(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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jf )}jY relay_file_pollsbc.relay_file_pollasbuh1hhj:hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:hhhjbhMubj{)}(hrelay_file_pollh]j)}(hj_h]hrelay_file_poll}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhjbhMubj)}(h%(struct file *filp, poll_table *wait)h](j)}(hstruct file *filph](j)}(hjh]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 ]j]c.relay_file_pollasbuh1hhjubj2)}(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&]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 ]j]c.relay_file_pollasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hwaith]hwait}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjbhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhjbhMhj3hhubj)}(hhh]h)}(hpoll file op for relay filesh]hpoll 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&]uh1jhj3hhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhjاhNhNubj)}(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)}(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&]uh1jhjhMhjubj)}(h ``poll_table *wait`` poll table h](j)}(h``poll_table *wait``h]j)}(hjh]hpoll_table *wait}(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 poll tableh]h poll table}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hPoll implemention.h]h)}(hj3h]hPoll implemention.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj1ubah}(h]h ]h"]h$]h&]uh1jhjBhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_file_release (C function)c.relay_file_releasehNtauh1hhjاhhhNhNubj)}(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}(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_releaseh]j)}(hrelay_file_releaseh]hrelay_file_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hjh]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.relay_file_releaseasbuh1hhjubj2)}(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)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jc.relay_file_releaseasbuh1hhjubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hjohhhNhNubah}(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)}(hrelease file op for relay filesh]hrelease 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&]uh1jhj^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(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 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&]uh1jhjhMhjubj)}(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.chMhj ubj2)}(hhh]h)}(hthe fileh]hthe file}(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)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjdubah}(h]h ]h"]h$]h&]uh1jhjvhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )relay_file_read_subbuf_avail (C function)c.relay_file_read_subbuf_availhNtauh1hhjاhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY relay_file_read_subbuf_availsbc.relay_file_read_subbuf_availasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMpubj{)}(hrelay_file_read_subbuf_availh]j)}(hjh]hrelay_file_read_subbuf_avail}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMpubj)}(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 ]jc.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&]noemphjjuh1jhjubj)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jc.relay_file_read_subbuf_availasbuh1hhj3ubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMphjhhubj)}(hhh]h)}(h$return bytes available in sub-bufferh]h$return bytes available in sub-buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMphjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(hj**Parameters** ``size_t read_pos`` file read position ``struct rchan_buf *buf`` relay channel bufferh](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.chMthjubj )}(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)}(hj2h]hstruct rchan_buf *buf}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMshj,ubj2)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMrhjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMshjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &relay_file_read_start_pos (C function)c.relay_file_read_start_poshNtauh1hhjاhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN 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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hrelay_file_read_start_posh]j)}(hjh]hrelay_file_read_start_pos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]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 ]jc.relay_file_read_start_posasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hj5hhhNhNubah}(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%find the first available byte to readh]h%find the first available byte to read}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhjاhNhNubj)}(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.chMhj{ubj )}(hhh]j)}(h/``struct rchan_buf *buf`` relay 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)}(hrelay channel bufferh]hrelay channel buffer}(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)}(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)}(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&]uh1jhjhMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $relay_file_read_end_pos (C function)c.relay_file_read_end_poshNtauh1hhjاhhhNhNubj)}(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}(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_end_possbc.relay_file_read_end_posasbuh1hhj&hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&hhhjNhMubj{)}(hrelay_file_read_end_posh]j)}(hjKh]hrelay_file_read_end_pos}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhjNhMubj)}(h6(struct rchan_buf *buf, size_t read_pos, size_t count)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubh)}(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 ]jIc.relay_file_read_end_posasbuh1hhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(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 ]jIc.relay_file_read_end_posasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hread_posh]hread_pos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jIc.relay_file_read_end_posasbuh1hhj0ubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hcounth]hcount}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhjNhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjNhMhjhhubj)}(hhh]h)}(hreturn the new read positionh]hreturn the new read position}(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&]uh1jhjhhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjاhNhNubj)}(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)}(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)}(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)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``size_t read_pos`` file read position h](j)}(h``size_t read_pos``h]j)}(hjh]hsize_t read_pos}(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.chMhjubj2)}(hhh]h)}(hfile read positionh]hfile read position}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``size_t count`` number of bytes to be readh](j)}(h``size_t count``h]j)}(hj@h]h size_t count}(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.chMhj:ubj2)}(hhh]h)}(hnumber of bytes to be readh]hnumber of bytes to be read}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjاhhhNhNubeh}(h]relay-interfaceah ]h"]relay interfaceah$]h&]uh1hhjhhhhhKubeh}(h]relay-interface-supportah ]h"]relay interface supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hModule Supporth]hModule Support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hKernel module auto-loadingh]hKernel module auto-loading}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __request_module (C function)c.__request_modulehNtauh1hhjhhhNhNubj)}(hhh](j)}(h6int __request_module (bool wait, const char *fmt, ...)h]j)}(h5int __request_module(bool wait, const char *fmt, ...)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKuubj{)}(h__request_moduleh]j)}(h__request_moduleh]h__request_module}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKuubj)}(h!(bool wait, const char *fmt, ...)h](j)}(h bool waith](j )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hwaith]hwait}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](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)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(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&]jjuh1jhjhhhjhKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKuhjhhubj)}(hhh]h)}(htry to load a kernel moduleh]htry to load a kernel module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKuhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:230: ./kernel/module/kmod.chKyhjubj )}(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)}(hj=h]hconst char *fmt}(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.chKwhj7ubj2)}(hhh]h)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKwhjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKwhjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjvh]h...}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKxhjpubj2)}(hhh]h)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubeh}(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:230: ./kernel/module/kmod.chKzhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKyhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]kernel-module-auto-loadingah ]h"]kernel module auto-loadingah$]h&]uh1hhjhhhhhKubh)}(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]jG)}(hhh](j)}(h0memory allocated with kernel_read_file_from_fd()h]h)}(hj,h]h0memory allocated with kernel_read_file_from_fd()}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK#hj*ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK$hjBubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK)hj[ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]j}H loweralphajHhjHj;uh1jGhj#ubah}(h]h ]h"]h$]h&]uh1jhj;hK#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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chK@hjhhubj)}(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]jG)}(hhh](j)}(h.kernel_read_file_from_fd() call uses vmalloc()h]h)}(hjh]h.kernel_read_file_from_fd() call uses vmalloc()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKFhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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&]uh1jhjubj)}(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}(hj hhhNhNubah}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]j}Hj~HjHhjHj;uh1jGhjubah}(h]h ]h"]h$]h&]uh1jhjhKFhjhhubh)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKKhjhhubh)}(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:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKPhjhhubj)}(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]jG)}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKVhjOubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(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}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKZhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]j}HjzjHhjHj;uh1jGhjHubah}(h]h ]h"]h$]h&]uh1jhjahKVhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chK^hjhhubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKghjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**invalid_decompress_bytes**h]hinvalid_decompress_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }hjsbj)}(h**invalid_becoming_bytes**h]hinvalid_becoming_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }hjsbj)}(h**invalid_mod_bytes**h]hinvalid_mod_bytes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKjhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjhKjhjhhubh)}(hPThe following debugfs counters are available to inspect module loading failures:h]hPThe following debugfs counters are available to inspect module loading failures:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKohjhhubj)}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKrhjJubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKthjcubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(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.chKvhj|ubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKzhjubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(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 }(hjhhhNhNubj)}(h **modules**h]hmodules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX 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 }(hjhhhNhNubh)}(h:c:type:`modules`h]j)}(hjh]hmodules}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjmodulesuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chK~hjubhX 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:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK~hjubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhj\hKrhjCubj)}(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)}(hj h]h,module_sig_check() - module signature checks}(hj hhhNhNubah}(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)}(h5elf_validity_cache_copy() - some ELF validation issueh]h)}(hj#h]h5elf_validity_cache_copy() - some ELF validation issue}(hj%hhhNhNubah}(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)}(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():}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj9ubj)}(hhh](j)}(h blacklistingh]h)}(hjQh]h blacklisting}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjOubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(h!failed to rewrite section headersh]h)}(hjih]h!failed to rewrite section headers}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjgubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(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&]uh1jhjLubj)}(h(live patch requirements didn't check outh]h)}(hjh]h*live patch requirements didn’t check out}(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&]uh1jhjLubj)}(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}(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&]uh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhj`hKhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjCubj)}(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.}(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&]uh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhKhjCubeh}(h]h ]h"]h$]h&]uh1jhj\hKrhj?ubj)}(hhh](j)}(h?modcount: how many modules we've loaded in our kernel life timeh]h)}(hj h]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.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()h]h)}(hj%h]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(hj'hhhNhNubah}(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)}(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.}(hj?hhhNhNubah}(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)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjTubah}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjmubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhj?ubeh}(h]h ]h"]h$]h&]uh1jhj\hKrhjhhubeh}(h]"module-statistics-debugfs-countersah ]h"]"module statistics debugfs countersah$]h&]uh1hhjhhhhhKubeh}(h]module-debuggingah ]h"]module debuggingah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hInter Module supporth]hInter Module support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h:Refer to the files in kernel/module/ for more information.h]h:Refer to the files in kernel/module/ for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]inter-module-supportah ]h"]inter module supportah$]h&]uh1hhjhhhhhKubeh}(h]module-supportah ]h"]module supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hHardware Interfacesh]hHardware Interfaces}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h DMA Channelsh]h DMA Channels}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j request_dma (C function) c.request_dmahNtauh1hhjhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjhKBubj{)}(h request_dmah]j)}(h request_dmah]h request_dma}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKBubj)}(h+(unsigned int dmanr, const char *device_id)h](j)}(hunsigned int dmanrh](j )}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hdmanrh]hdmanr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hconst char *device_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)}(h device_idh]h device_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(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&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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:262: ./kernel/dma.chKFhj$ubj )}(hhh](j)}(h*``unsigned int dmanr`` DMA channel number h](j)}(h``unsigned int dmanr``h]j)}(hjIh]hunsigned int dmanr}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKChjCubj2)}(hhh]h)}(hDMA channel numberh]hDMA channel number}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKChj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hKChj@ubj)}(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.chKEhj|ubj2)}(hhh]h)}(h-reserving device ID string, used in /proc/dmah]h-reserving device ID string, used in /proc/dma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKDhjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKEhj@ubeh}(h]h ]h"]h$]h&]uh1j hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j free_dma (C function) c.free_dmahNtauh1hhjhhhNhNubj)}(hhh](j)}(h"void free_dma (unsigned int dmanr)h]j)}(h!void free_dma(unsigned int dmanr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKUubj{)}(hfree_dmah]j)}(hfree_dmah]hfree_dma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKUubj)}(h(unsigned int dmanr)h]j)}(hunsigned int dmanrh](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}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdmanrh]hdmanr}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(h"free a reserved system DMA channelh]h"free a reserved system DMA channel}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKUhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h;**Parameters** ``unsigned int dmanr`` DMA channel numberh](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.chKYhjubj )}(hhh]j)}(h)``unsigned int dmanr`` DMA channel numberh](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.chK[hjubj2)}(hhh]h)}(hDMA channel numberh]hDMA channel number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKVhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] dma-channelsah ]h"] dma channelsah$]h&]uh1hhjhhhhhMubh)}(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)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhV/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&]uh1j1hj+hhhj<hMubh)}(hhh]j)}(hresourceh]hresource}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]jf )}jY request_resource_conflictsbc.request_resource_conflictasbuh1hhj+hhhj<hMubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+hhhj<hMubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hMubj{)}(hrequest_resource_conflicth]j)}(hjlh]hrequest_resource_conflict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj<hMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hjh]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 ]jjc.request_resource_conflictasbuh1hhjubj2)}(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)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jjc.request_resource_conflictasbuh1hhjubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjphhhNhNubah}(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&]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 resourceX}(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&]uh1jhj$hhhj<hMubeh}(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, conflict resource 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:268: ./kernel/resource.chMhjubj )}(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)}(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}(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)}(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)}(h2Returns 0 for success, conflict resource on error.h]h2Returns 0 for success, conflict resource on error.}(hjehhhNhNubah}(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 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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMLubj{)}(h find_next_resh]j)}(h find_next_resh]h find_next_res}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMLubj)}(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)}(hjh]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_next_resasbuh1hhjubj2)}(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)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]j c.find_next_resasbuh1hhj?ubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hstarth]hstart}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t endh](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.find_next_resasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hendh]hend}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hdesch]hdesc}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *resh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.find_next_resasbuh1hhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hresh]hres}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMLhjhhubj)}(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&]uh1jhjhhhjhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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:268: ./kernel/resource.chMPhj$ubj )}(hhh](j)}(h9``struct resource *parent`` resource tree root to search h](j)}(h``struct resource *parent``h]j)}(hjIh]hstruct resource *parent}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMShjCubj2)}(hhh]h)}(hresource tree root to searchh]hresource tree root to search}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMShj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMShj@ubj)}(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.chMThj|ubj2)}(hhh]h)}(h*start address of the resource searched forh]h*start address of the resource searched for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMThj@ubj)}(h5``resource_size_t end`` end address of same resource h](j)}(h``resource_size_t end``h]j)}(hjh]hresource_size_t end}(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.chMUhjubj2)}(hhh]h)}(hend address of same resourceh]hend address of same resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMUhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhj@ubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMVhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMVhj@ubj)}(h9``unsigned long desc`` descriptor the resource must have h](j)}(h``unsigned long desc``h]j)}(hj-h]hunsigned long desc}(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:268: ./kernel/resource.chMWhj'ubj2)}(hhh]h)}(h!descriptor the resource must haveh]h!descriptor the resource must have}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMWhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMWhj@ubj)}(h7``struct resource *res`` return ptr, if resource found h](j)}(h``struct resource *res``h]j)}(hjfh]hstruct resource *res}(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.chMXhj`ubj2)}(hhh]h)}(hreturn ptr, if resource foundh]hreturn ptr, if resource found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMXhj|ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMXhj@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:268: ./kernel/resource.chMZhj$ubh)}(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 }(hjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhW..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMMhj$ubh)}(hcThe caller must specify **start**, **end**, **flags**, and **desc** (which may be IORES_DESC_NONE).h](hThe caller must specify }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and }(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (which may be IORES_DESC_NONE).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMRhj$ubeh}(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}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM)ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhj]hM)ubj{)}(hreallocate_resourceh]j)}(hreallocate_resourceh]hreallocate_resource}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhj]hM)ubj)}(hn(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](j)}(hstruct resource *rooth](j)}(hjh]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 jrsbc.reallocate_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)}(hstruct resource *oldh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(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.reallocate_resourceasbuh1hhjubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjUhhhNhNubah}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jc.reallocate_resourceasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hnewsizeh]hnewsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h&struct resource_constraint *constrainth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresource_constrainth]hresource_constraint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.reallocate_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h constrainth]h constraint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj]hM)ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhj]hM)hjDhhubj)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM)hj4hhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhjhNhNubj)}(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)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM-hjSubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjxh]hstruct resource *root}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM-hjrubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjoubj)}(h?``struct resource *old`` resource descriptor desired by caller 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:268: ./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.hjoubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM/hjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjoubj)}(h```struct resource_constraint *constraint`` the memory range and alignment constraints to be met.h](j)}(h*``struct resource_constraint *constraint``h]j)}(hj#h]h&struct resource_constraint *constraint}(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: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.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM0hj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hM1hjoubeh}(h]h ]h"]h$]h&]uh1j hjSubeh}(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)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjhMubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY lookup_resourcesbc.lookup_resourceasbuh1hhjyhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubj{)}(hlookup_resourceh]j)}(hjh]hlookup_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjhMubj)}(h.(struct resource *root, resource_size_t start)h](j)}(hstruct resource *rooth](j)}(hjh]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.lookup_resourceasbuh1hhjubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjNhhhNhNubah}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jc.lookup_resourceasbuh1hhjcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(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)}(h5find an existing resource by a resource start addressh]h5find an existing resource by a resource start address}(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&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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)}(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)}(hj:h]hresource_size_t start}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj4ubj2)}(hhh]h)}(hresource start addressh]hresource start address}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(h:Returns a pointer to the resource if found, NULL otherwiseh]h:Returns a pointer to the resource if found, NULL otherwise}(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 %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)}(hjh]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 insert_resource_conflictsbc.insert_resource_conflictasbuh1hhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hinsert_resource_conflicth]j)}(hjh]hinsert_resource_conflict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubh)}(hhh]j)}(hresourceh]hresource}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]jc.insert_resource_conflictasbuh1hhj0ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hstruct resource *newh](j)}(hjh]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)}(hnewh]hnew}(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%Inserts resource in the resource treeh]h%Inserts resource in the resource tree}(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&]jjjj=jj=jjjuh1jhhhjhNhNubj)}(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)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjAubj )}(hhh](j)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjfh]hstruct resource *parent}(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.chMhj`ubj2)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubj)}(h0``struct resource *new`` new resource to insert 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)}(hnew resource to inserth]hnew resource to insert}(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 hjAubh)}(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.chMhjAubh)}(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.chMhjAubh)}(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.chMhjAubh)}(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.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j resource_alignment (C function)c.resource_alignmenthNtauh1hhjhhhNhNubj)}(hhh](j)}(h9resource_size_t resource_alignment (struct resource *res)h]j)}(h8resource_size_t resource_alignment(struct resource *res)h](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjBmodnameN classnameNj] j` )}jc ]jf )}jY resource_alignmentsbc.resource_alignmentasbuh1hhj9hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhjahMubj{)}(hresource_alignmenth]j)}(hj^h]hresource_alignment}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjahMubj)}(h(struct resource *res)h]j)}(hstruct resource *resh](j)}(hjh]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.resource_alignmentasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hresh]hres}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjahMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jhjahMhj2hhubj)}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct resource *res`` resource pointer **Description** Returns alignment on success, 0 (invalid alignment) on failure.h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj,ubj )}(hhh]j)}(h*``struct resource *res`` resource pointer h](j)}(h``struct resource *res``h]j)}(hjQh]hstruct resource *res}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjKubj2)}(hhh]h)}(hresource pointerh]hresource pointer}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubah}(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)}(h?Returns alignment on success, 0 (invalid alignment) on failure.h]h?Returns alignment on success, 0 (invalid alignment) on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj,ubeh}(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&]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&]uh1j1hjhhhjhMubj{)}(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&]jjuh1jzhjhhhjhMubj)}(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_adjustableasbuh1hhj ubj2)}(h h]h }(hj1hhhNhNubah}(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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]j-c.release_mem_region_adjustableasbuh1hhjTubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(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+release a previously reserved memory regionh]h+release a previously reserved memory region}(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)}(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.chMhjubj )}(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}(hj hhhNhNubah}(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)}(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:268: ./kernel/resource.chMhj%ubj2)}(hhh]h)}(hresource region sizeh]hresource region size}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(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)}(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:268: ./kernel/resource.chMhjubh)}(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.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:268: ./kernel/resource.chMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhMhjubeh}(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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMJubj{)}(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&]jjuh1jzhjhhhj hMJubj)}(h(struct resource *res)h]j)}(hstruct resource *resh](j)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(hresourceh]hresource}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf )}jY j!sbc.merge_system_ram_resourceasbuh1hhj7ubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hresh]hres}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMJhjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMJubeh}(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)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMMhjubh)}(h**Note**h]j)}(hjah]hNote}(hjchhhNhNubah}(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.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.chMUhjzubah}(h]h ]h"]h$]h&]uh1jhjwubj)}(hHrelease_mem_region_adjustable() will split on demand on memory hotunplugh]h)}(hjh]hHrelease_mem_region_adjustable() will split on demand on memory hotunplug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMXhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhjhMUhjubeh}(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&]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{)}(hrequest_resourceh]j)}(hrequest_resourceh]hrequest_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM&ubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(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 jsbc.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)}(hrooth]hroot}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jHc.request_resourceasbuh1hhj|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&]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-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&]uh1jhjhhhjhM&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)}(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.chM*hjubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjBh]hstruct resource *root}(hjDhhhNhNubah}(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)}(hroot resource descriptorh]hroot resource descriptor}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM'hjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM'hj9ubj)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hjuubj2)}(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&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhM(hj9ubeh}(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)}(h4Returns 0 for success, negative error code on error.h]h4Returns 0 for success, negative error code on error.}(hjhhhNhNubah}(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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hM7ubj{)}(hrelease_resourceh]j)}(hrelease_resourceh]hrelease_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hM7ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubh)}(hhh]j)}(hresourceh]hresource}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.release_resourceasbuh1hhj4ubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hM7hjhhubj)}(hhh]h)}(h&release a previously reserved resourceh]h&release a previously reserved resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM7ubeh}(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}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRhhhjdhMubj{)}(hwalk_iomem_res_desch]j)}(hwalk_iomem_res_desch]hwalk_iomem_res_desc}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhjdhMubj)}(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}(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&]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)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:modnameN classnameNj] j` )}jc ]jf )}jY jysbc.walk_iomem_res_descasbuh1hhj1ubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hstarth]hstart}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jTc.walk_iomem_res_descasbuh1hhj{ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubj)}(hendh]hend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *argh](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)}(hargh]harg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h$int (*func)(struct resource*, void*)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj;h]h(}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfunch]hfunc}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj;h]h)}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj;h]h(}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjthhhNhNubah}(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 ]jTc.walk_iomem_res_descasbuh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjd<h]h,}(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&]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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjdhMhjKhhubj)}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhjhNhNubj)}(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)}(hj1h]h Parameters}(hj3hhhNhNubah}(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\``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. h](j)}(h``unsigned long desc``h]j)}(hjPh]hunsigned long desc}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjJubj2)}(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 }(hjihhhNhNubj)}(h**desc**h]hdesc}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh check.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubj)}(h+``unsigned long flags`` I/O resource 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(hI/O resource flagsh]hI/O resource flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(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.chMhjubj2)}(hhh]h)}(h start addrh]h start addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(h``u64 end`` end addr h](j)}(h ``u64 end``h]j)}(hj h]hu64 end}(hjhhhNhNubah}(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.chMhjubj2)}(hhh]h)}(hend addrh]hend addr}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjGubj)}(h:``void *arg`` function argument for the callback **func** h](j)}(h ``void *arg``h]j)}(hjFh]h void *arg}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj@ubj2)}(hhh]h)}(h+function argument for the callback **func**h](h#function argument for the callback }(hj_hhhNhNubj)}(h**func**h]hfunc}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1hhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjGubj)}(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)}(hjh]h&int (*func)(struct resource *, void *)}(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)}(hBcallback function that is called for each qualifying resource areah]hBcallback function that is called for each qualifying resource area}(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 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)}(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.chMhj+ubh)}(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.chMhj+ubh)}(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.chMhj+ubeh}(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}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0hhhjBhMubj{)}(hregion_intersectsh]j)}(hregion_intersectsh]hregion_intersects}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhjBhMubj)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jf )}jY jWsbc.region_intersectsasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(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 ]jc.region_intersectsasbuh1hhjubj2)}(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&]noemphjjuh1jhjiubj)}(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&]noemphjjuh1jhjiubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj )}(hlongh]hlong}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhjBhMhj)hhubj)}(hhh]h)}(h5determine intersection of region with known resourcesh]h5determine intersection of region with known resources}(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&]uh1jhj)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h``size_t size`` size of region h](j)}(h``size_t size``h]j)}(hj0h]h size_t size}(hj2hhhNhNubah}(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)}(hsize of regionh]hsize of region}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubj)}(h>``unsigned long flags`` flags of resource (in iomem_resource) h](j)}(h``unsigned long flags``h]j)}(hjih]hunsigned long flags}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjcubj2)}(hhh]h)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(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)}(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)}(h=descriptor of resource (in iomem_resource) or IORES_DESC_NONEh]h=descriptor of resource (in iomem_resource) or IORES_DESC_NONE}(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&]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}(hj hhhNhNubah}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-, return REGION_MIXED if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hjyhhhNhNubah}(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.}(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  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}(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{)}(hfind_resource_spaceh]j)}(hfind_resource_spaceh]hfind_resource_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hk(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(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 }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j8c.find_resource_spaceasbuh1hhjlubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](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 ]j8c.find_resource_spaceasbuh1hhjubj2)}(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&struct resource_constraint *constrainth](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(hresource_constrainth]hresource_constraint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]j8c.find_resource_spaceasbuh1hhj$ubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h constrainth]h constraint}(hjhhhNhNubah}(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]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h%Find empty space in the resource treeh]h%Find empty space 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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)}(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.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)}(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.chMhjubj2)}(hhh]h)}(h4Resource descriptor awaiting an empty resource spaceh]h4Resource descriptor awaiting an empty resource space}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjVubj2)}(hhh]h)}(h#The minimum size of the empty spaceh]h#The minimum size of the empty space}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(hY``struct resource_constraint *constraint`` The 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:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(h-The range and alignment constraints to be meth]h-The range and alignment constraints to be met}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hhFinds an empty space under **root** in the resource tree satisfying range and alignment **constraints**.h](hFinds an empty space under }(hjhhhNhNubj)}(h**root**h]hroot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 in the resource tree satisfying range and alignment }(hjhhhNhNubj)}(h**constraints**h]h constraints}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(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)}(hQ``0`` - if successful, **new** members start, end, and flags are altered.h]h)}(hj6h](j)}(h``0``h]h0}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh - if successful, }(hj8hhhNhNubj)}(h**new**h]hnew}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh+ members start, end, and flags are altered.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj4ubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(h,``-EBUSY`` - if no empty space was found.h]h)}(hjnh](j)}(h ``-EBUSY``h]h-EBUSY}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh" - if no empty space was found.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjlubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjehMhjubeh}(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}(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{)}(hallocate_resourceh]j)}(hallocate_resourceh]hallocate_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMZubj)}(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)}(hjh]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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.allocate_resourceasbuh1hhjubj2)}(h h]h }(hj3 hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjg hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc ubj2)}(h h]h }(hjt hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjc 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.allocate_resourceasbuh1hhjc 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)}(hnewh]hnew}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc 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 ]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&]noemphjjuh1jhjubj)}(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}(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t maxh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjl modnameN classnameNj] j` )}jc ]j/ c.allocate_resourceasbuh1hhjc ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjc ubj)}(hmaxh]hmax}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t alignh](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)}(halignh]halign}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_alignf alignfh](h)}(hhh]j)}(hresource_alignfh]hresource_alignf}(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)}(halignfh]halignf}(hj& hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid *alignf_datah](j )}(hvoidh]hvoid}(hj? hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj; 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)}(h alignf_datah]h alignf_data}(hjh hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj; ubeh}(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)}(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}(hj hhhNhNubah}(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&]uh1jhjhhhjhMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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.chM^hj 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.chM\hj ubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(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 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}(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)}(h8``resource_size_t size`` requested resource region size h](j)}(h``resource_size_t size``h]j)}(hjE h]hresource_size_t size}(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.chM^hj? ubj2)}(hhh]h)}(hrequested resource region sizeh]hrequested resource region size}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ hM^hj[ ubah}(h]h ]h"]h$]h&]uh1j1hj? ubeh}(h]h ]h"]h$]h&]uh1jhjZ hM^hj ubj)}(h5``resource_size_t min`` minimum boundary to allocate h](j)}(h``resource_size_t min``h]j)}(hj~ h]hresource_size_t min}(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_hjx ubj2)}(hhh]h)}(hminimum boundary to allocateh]hminimum boundary to allocate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM_hj ubah}(h]h ]h"]h$]h&]uh1j1hjx ubeh}(h]h ]h"]h$]h&]uh1jhj hM_hj ubj)}(h5``resource_size_t max`` maximum boundary to allocate h](j)}(h``resource_size_t max``h]j)}(hj h]hresource_size_t max}(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)}(hmaximum boundary to allocateh]hmaximum boundary to allocate}(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)}(h8``resource_size_t align`` alignment requested, in bytes h](j)}(h``resource_size_t align``h]j)}(hj h]hresource_size_t 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.chMahj ubj2)}(hhh]h)}(halignment requested, in bytesh]halignment requested, in bytes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMahj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMahj ubj)}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j)}(h``resource_alignf alignf``h]j)}(hj) h]hresource_alignf alignf}(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.chMbhj# ubj2)}(hhh]h)}(h0alignment function, optional, called if not NULLh]h0alignment function, optional, called if not NULL}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj> hMbhj? ubah}(h]h ]h"]h$]h&]uh1j1hj# ubeh}(h]h ]h"]h$]h&]uh1jhj> hMbhj ubj)}(hG``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](j)}(h``void *alignf_data``h]j)}(hjb h]hvoid *alignf_data}(hjd 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.chMdhj\ ubj2)}(hhh]h)}(h1arbitrary data to pass to the **alignf** functionh](harbitrary data to pass to the }(hj{ hhhNhNubj)}(h **alignf**h]halignf}(hj hhhNhNubah}(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.chMchjx ubah}(h]h ]h"]h$]h&]uh1j1hj\ ubeh}(h]h ]h"]h$]h&]uh1jhjw hMdhj ubeh}(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&]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{)}(hinsert_resourceh]j)}(hinsert_resourceh]hinsert_resource}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hjh]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 ]jf )}jY j sbc.insert_resourceasbuh1hhjubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]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 ]jEc.insert_resourceasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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'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&]uh1jhj hhhj hMubeh}(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)}(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)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hj?h]hstruct resource *parent}(hjAhhhNhNubah}(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.chMhj9ubj2)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hjxh]hstruct resource *new}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjrubj2)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(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**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)}(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.}(hjhhhNhNubah}(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}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubh)}(hhh]j)}(hresourceh]hresource}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdmodnameN classnameNj] j` )}jc ]jf )}jY j*sbc.insert_resource_expand_to_fitasbuh1hhj@ubj2)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhj<ubj)}(hstruct resource *newh](j)}(hjh]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.insert_resource_expand_to_fitasbuh1hhjubj2)}(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&]noemphjjuh1jhj<ubeh}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhjhNhNubj)}(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)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjSubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjxh]hstruct resource *root}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjrubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(h0``struct resource *new`` new resource to insert 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.chMhjubj2)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjSubh)}(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.chMhjSubeh}(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}(hj1hhhNhNubah}(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 }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj?hM%ubj{)}(hremove_resourceh]j)}(hremove_resourceh]hremove_resource}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj?hM%ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jTsbc.remove_resourceasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubah}(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&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&]uh1jhj&hhhj?hM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)hj ubj )}(hhh]j)}(h,``struct resource *old`` resource to remove h](j)}(h``struct resource *old``h]j)}(hj2h]hstruct resource *old}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM&hj,ubj2)}(hhh]h)}(hresource to removeh]hresource to remove}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM&hjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM&hj)ubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hj ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM'hj ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM)hj ubh)}(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.}(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 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&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMdubj{)}(hadjust_resourceh]j)}(hadjust_resourceh]hadjust_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMdubj)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j)}(hstruct resource *resh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(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 jsbc.adjust_resourceasbuh1hhj ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hresh]hres}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(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 ]jGc.adjust_resourceasbuh1hhj{ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubj)}(hstarth]hstart}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jGc.adjust_resourceasbuh1hhjubj2)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMdhjhhubj)}(hhh]h)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hj hhhNhNubah}(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&]uh1jhjhhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jhhhjhNhNubj)}(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)}(hjBh]h Parameters}(hjDhhhNhNubah}(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.chMhhj<ubj )}(hhh](j)}(h,``struct resource *res`` resource to modify h](j)}(h``struct resource *res``h]j)}(hjah]hstruct resource *res}(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.chMehj[ubj2)}(hhh]h)}(hresource to modifyh]hresource to modify}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMehjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMehjXubj)}(h*``resource_size_t start`` new start value 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.chMfhjubj2)}(hhh]h)}(hnew start valueh]hnew start value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjXubj)}(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.chMghjubj2)}(hhh]h)}(hnew sizeh]hnew size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjXubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMihj<ubh)}(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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhhj<ubeh}(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)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMXubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhj`hMXubh)}(hhh]j)}(hresourceh]hresource}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]jf )}jY __request_regionsbc.__request_regionasbuh1hhjOhhhj`hMXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhj`hMXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhj`hMXubj{)}(h__request_regionh]j)}(hjh]h__request_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhj`hMXubj)}(h`(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hstruct resource *parenth](j)}(hjh]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_regionasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(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)}(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 reftargetjBmodnameN classnameNj] j` )}jc ]jc.__request_regionasbuh1hhj9ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hstarth]hstart}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(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.__request_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&]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 int flagsh](j )}(hinth]hint}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hflagsh]hflags}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhj`hMXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhj`hMXubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhj`hMXhjHhhubj)}(hhh]h)}(h!create a new busy resource regionh]h!create a new busy resource region}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMXhjlhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhj`hMXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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)}(h7``struct resource *parent`` parent resource descriptor 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.chMYhjubj2)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubj)}(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&]uh1jhjhMZhjubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hj"h]hresource_size_t n}(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)}(hresource region sizeh]hresource region size}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM[hj8ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj7hM[hjubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM\hjUubj2)}(hhh]h)}(hreserving caller's ID stringh]hreserving caller’s ID string}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM\hjqubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjphM\hjubj)}(h``int flags`` IO resource flagsh](j)}(h ``int flags``h]j)}(hjh]h int 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.chM^hjubj2)}(hhh]h)}(hIO resource flagsh]hIO resource flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.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 __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&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMzubj)}(hC(struct resource *parent, resource_size_t start, resource_size_t n)h](j)}(hstruct resource *parenth](j)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubh)}(hhh]j)}(hresourceh]hresource}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.__release_regionasbuh1hhj'ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(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 ]jec.__release_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&]noemphjjuh1jhj#ubj)}(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 ]jec.__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&]noemphjjuh1jhj#ubeh}(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}(hj=hhhNhNubah}(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&]uh1jhjhhhjhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhjhNhNubj)}(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)}(hj_h]h Parameters}(hjahhhNhNubah}(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~hjYubj )}(hhh](j)}(h7``struct resource *parent`` parent resource descriptor h](j)}(h``struct resource *parent``h]j)}(hj~h]hstruct resource *parent}(hjhhhNhNubah}(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{hjxubj2)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjuubj)}(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.chM|hjubj2)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjuubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjuubeh}(h]h ]h"]h$]h&]uh1j hjYubh)}(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.chMhjYubh)}(hAThe described resource region must match a currently busy region.h]hAThe described resource region must match a currently busy region.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM~hjYubeh}(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}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hMubj{)}(hdevm_request_resourceh]j)}(hdevm_request_resourceh]hdevm_request_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hMubj)}(hA(struct device *dev, struct resource *root, struct resource *new)h](j)}(hstruct device *devh](j)}(hjh]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 jsbc.devm_request_resourceasbuh1hhjubj2)}(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 resource *rooth](j)}(hjh]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&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jc.devm_request_resourceasbuh1hhjubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]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.devm_request_resourceasbuh1hhjubj2)}(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&]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-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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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)}(hjQh]hstruct device *dev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjKubj2)}(hhh]h)}(h(device for which to request the resourceh]h(device for which to request the resource}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(hW``struct resource *root`` root of the resource tree from which to request the resource 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.chMhjubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hj]hhhjohMubj{)}(hdevm_release_resourceh]j)}(hdevm_release_resourceh]hdevm_release_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhjohMubj)}(h*(struct device *dev, struct resource *new)h](j)}(hstruct device *devh](j)}(hjh]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 jsbc.devm_release_resourceasbuh1hhjubj2)}(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 resource *newh](j)}(hjh]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 reftargetj0 modnameN classnameNj] j` )}jc ]jc.devm_release_resourceasbuh1hhj 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)}(hnewh]hnew}(hjg hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjohMhjVhhubj)}(hhh]h)}(h'release a previously requested resourceh]h'release a previously requested 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&]uh1jhjVhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj 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)}(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 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 hMhj 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 !hMhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjF!h]h Description}(hjH!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD!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)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM1ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!hhhj!hM1ubh)}(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 devm_request_free_mem_regionsbc.devm_request_free_mem_regionasbuh1hhj!hhhj!hM1ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!hhhj!hM1ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hM1ubj{)}(hdevm_request_free_mem_regionh]j)}(hj!h]hdevm_request_free_mem_region}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj!hhhj!hM1ubj)}(h?(struct device *dev, struct resource *base, unsigned long size)h](j)}(hstruct device *devh](j)}(hjh]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 ]j!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)}(hdevh]hdev}(hj\"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hstruct resource *baseh](j)}(hjh]hstruct}(hju"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq"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_free_mem_regionasbuh1hhjq"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq"ubj)}(hbaseh]hbase}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq"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&]jjuh1jhj!hhhj!hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj!hM1ubah}(h]j~!ah ](jjeh"]h$]h&]jj)jhuh1jhj!hM1hj!hhubj)}(hhh]h)}(h*find free region for device private memoryh]h*find free region for device private memory}(hjG#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM1hjD#hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!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)}(hji#h]h Parameters}(hjk#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg#ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hjc#ubj )}(hhh](j)}(h=``struct device *dev`` device struct to bind the resource to 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.chM3hj#ubj2)}(hhh]h)}(h%device struct to bind the resource toh]h%device struct to bind the resource to}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM3hj#ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM3hj#ubj)}(h3``struct resource *base`` resource tree to look in h](j)}(h``struct resource *base``h]j)}(hj#h]hstruct resource *base}(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.chM5hj#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&]uh1j1hj#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 hjc#ubh)}(h**Description**h]j)}(hj5$h]h Description}(hj7$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3$ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM6hjc#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.}(hjK$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM6hjc#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)}(hjh]hstruct}(hjz$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv$hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMQubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjv$hhhj$hMQubh)}(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 alloc_free_mem_regionsbc.alloc_free_mem_regionasbuh1hhjv$hhhj$hMQubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjv$hhhj$hMQubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv$hhhj$hMQubj{)}(halloc_free_mem_regionh]j)}(hj$h]halloc_free_mem_region}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjv$hhhj$hMQubj)}(hR(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j)}(hstruct resource *baseh](j)}(hjh]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.alloc_free_mem_regionasbuh1hhj$ubj2)}(h h]h }(hj0%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hj>%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbaseh]hbase}(hjK%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hunsigned long sizeh](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 )}(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$ubj)}(hunsigned long alignh](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)}(halignh]halign}(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}(hjJ&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjv$hhhj$hMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjr$hhhj$hMQubah}(h]jm$ah ](jjeh"]h$]h&]jj)jhuh1jhj$hMQhjo$hhubj)}(hhh]h)}(h'find a free region relative to **base**h](hfind a free region relative to }(hjt&hhhNhNubj)}(h**base**h]hbase}(hj|&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt&ubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMQhjq&hhubah}(h]h ]h"]h$]h&]uh1jhjo$hhhj$hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&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)}(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.chMUhj&ubj )}(hhh](j)}(hE``struct resource *base`` resource that will parent the new resource h](j)}(h``struct resource *base``h]j)}(hj&h]hstruct resource *base}(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.chMRhj&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&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMRhj&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'hMShj&ubj)}(hB``unsigned long align`` alignment requirements for the allocation h](j)}(h``unsigned long align``h]j)}(hjC'h]hunsigned long align}(hjE'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA'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&]uh1hhjX'hMThjY'ubah}(h]h ]h"]h$]h&]uh1j1hj='ubeh}(h]h ]h"]h$]h&]uh1jhjX'hMThj&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&]uh1jhjz'ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMUhjv'ubj2)}(hhh]h)}(h resource nameh]h resource name}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMUhj'ubah}(h]h ]h"]h$]h&]uh1j1hjv'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMUhj&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.chMWhj&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.chMVhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]resources-managementah ]h"]resources managementah$]h&]uh1hhjhhhhhM 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&]uh1j1hj5(hhhjG(hMubj{)}(harch_phys_wc_addh]j)}(harch_phys_wc_addh]harch_phys_wc_add}(hjZ(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5(hhhjG(hMubj)}(h((unsigned long base, unsigned long size)h](j)}(hunsigned long baseh](j )}(hunsignedh]hunsigned}(hjv(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)}(hbaseh]hbase}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjn(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&]noemphjjuh1jhjn(ubeh}(h]h ]h"]h$]h&]jjuh1jhj5(hhhjG(hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1(hhhjG(hMubah}(h]j,(ah ](jjeh"]h$]h&]jj)jhuh1jhjG(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.(hhhjG(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjA)jjA)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)}(hjK)h]h Parameters}(hjM)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI)ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhjE)ubj )}(hhh](j)}(h-``unsigned long base`` Physical base address h](j)}(h``unsigned long base``h]j)}(hjj)h]hunsigned long base}(hjl)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh)ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhjd)ubj2)}(hhh]h)}(hPhysical base addressh]hPhysical base address}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1j1hjd)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhja)ubj)}(h&``unsigned long size`` Size of region 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&]uh1jhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj)ubj2)}(hhh]h)}(hSize of regionh]hSize of region}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhja)ubeh}(h]h ]h"]h$]h&]uh1j hjE)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.chMhjE)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.chMhjE)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.chMhjE)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.chMhjE)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj(hhhNhNubeh}(h] mtrr-handlingah ]h"] mtrr handlingah$]h&]uh1hhjhhhhhMubeh}(h]hardware-interfacesah ]h"]hardware interfacesah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hSecurity Frameworkh]hSecurity Framework}(hj;*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8*hhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_file_alloc (C function)c.lsm_file_allochNtauh1hhj8*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}(hjb*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 }(hjq*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^*hhhjp*hKubj{)}(hlsm_file_alloch]j)}(hlsm_file_alloch]hlsm_file_alloc}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^*hhhjp*hKubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]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_file_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)}(hfileh]hfile}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhj^*hhhjp*hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZ*hhhjp*hKubah}(h]jU*ah ](jjeh"]h$]h&]jj)jhuh1jhjp*hKhjW*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&]uh1jhjW*hhhjp*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:+jj:+jjjuh1jhhhj8*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)}(hjD+h]h Parameters}(hjF+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB+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)}(hjc+h]hstruct file *file}(hje+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja+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&]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&]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}(hj+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.}(hj+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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #lsm_backing_file_alloc (C function)c.lsm_backing_file_allochNtauh1hhj8*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)}(hjh]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}(hjM,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjO,modnameN classnameNj] j` )}jc ]jf )}jY j,sbc.lsm_backing_file_allocasbuh1hhj+,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)}(h backing_fileh]h backing_file}(hj,hhhNhNubah}(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}(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,jjjuh1jhhhj8*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)}(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)}(h/``struct file *backing_file`` the backing file h](j)}(h``struct file *backing_file``h]j)}(hj,h]hstruct file *backing_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 backing fileh]hthe backing 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,ubah}(h]h ]h"]h$]h&]uh1j hj,ubh)}(h**Description**h]j)}(hj.-h]h Description}(hj0-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)}(h3Allocate the backing file blob for all the modules.h]h3Allocate the backing 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_blob_alloc (C function)c.lsm_blob_allochNtauh1hhj8*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}(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_blob_alloch]j)}(hlsm_blob_alloch]hlsm_blob_alloc}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~-hhhj-hKubj)}(h%(void **dest, size_t size, gfp_t gfp)h](j)}(h void **desth](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)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hdesth]hdest}(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&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.modnameN classnameNj] j` )}jc ]jf )}jY j-sbc.lsm_blob_allocasbuh1hhj .ubj2)}(h h]h }(hj1.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 gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj[.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj].modnameN classnameNj] j` )}jc ]j-.c.lsm_blob_allocasbuh1hhjT.ubj2)}(h h]h }(hjy.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjT.ubj)}(hgfph]hgfp}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhj~-hhhj-hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjz-hhhj-hKubah}(h]ju-ah ](jjeh"]h$]h&]jj)jhuh1jhj-hKhjw-hhubj)}(hhh]h)}(hallocate a composite blobh]hallocate a composite 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&]uh1jhjw-hhhj-hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhj8*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)}(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)}(h-``void **dest`` the destination for the blob h](j)}(h``void **dest``h]j)}(hj.h]h void **dest}(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 destination for the blobh]hthe destination for the 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.ubj)}(h%``size_t size`` the size of the blob 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.chKhj%/ubj2)}(hhh]h)}(hthe size of the blobh]hthe size of the blob}(hjD/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@/hKhjA/ubah}(h]h ]h"]h$]h&]uh1j1hj%/ubeh}(h]h ]h"]h$]h&]uh1jhj@/hKhj.ubj)}(h``gfp_t gfp`` allocation type h](j)}(h ``gfp_t gfp``h]j)}(hjd/h]h gfp_t gfp}(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:283: ./security/security.chKhj^/ubj2)}(hhh]h)}(hallocation typeh]hallocation type}(hj}/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy/hKhjz/ubah}(h]h ]h"]h$]h&]uh1j1hj^/ubeh}(h]h ]h"]h$]h&]uh1jhjy/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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj.ubh)}(h#Allocate a blob for all the modulesh]h#Allocate a 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.chKhj.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.chKhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_cred_alloc (C function)c.lsm_cred_allochNtauh1hhj8*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}(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 }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhj0hKubj{)}(hlsm_cred_alloch]j)}(hlsm_cred_alloch]hlsm_cred_alloc}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhj0hKubj)}(h(struct cred *cred, gfp_t gfp)h](j)}(hstruct cred *credh](j)}(hjh]hstruct}(hj00hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,0ubj2)}(h h]h }(hj=0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,0ubh)}(hhh]j)}(hcredh]hcred}(hjN0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjP0modnameN classnameNj] j` )}jc ]jf )}jY j0sbc.lsm_cred_allocasbuh1hhj,0ubj2)}(h h]h }(hjn0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,0ubj)}(hjh]h*}(hj|0hhhNhNubah}(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 ]jj0c.lsm_cred_allocasbuh1hhj0ubj2)}(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/hhhj0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhj0hKubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhj0hKhj/hhubj)}(hhh]h)}(hallocate a composite cred blobh]hallocate a composite cred blob}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhj8*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)}(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:283: ./security/security.chKhj1ubj )}(hhh](j)}(h1``struct cred *cred`` the cred that needs a blob h](j)}(h``struct cred *cred``h]j)}(hj<1h]hstruct cred *cred}(hj>1hhhNhNubah}(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.chKhj61ubj2)}(hhh]h)}(hthe cred that needs a blobh]hthe cred that needs a blob}(hjU1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ1hKhjR1ubah}(h]h ]h"]h$]h&]uh1j1hj61ubeh}(h]h ]h"]h$]h&]uh1jhjQ1hKhj31ubj)}(h``gfp_t gfp`` allocation type h](j)}(h ``gfp_t gfp``h]j)}(hju1h]h gfp_t gfp}(hjw1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjo1ubj2)}(hhh]h)}(hallocation typeh]hallocation type}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKhj1ubah}(h]h ]h"]h$]h&]uh1j1hjo1ubeh}(h]h ]h"]h$]h&]uh1jhj1hKhj31ubeh}(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.chKhj1ubh)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj1ubh)}(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.chKhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhj8*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}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2hhhj2hKubj{)}(hlsm_inode_alloch]j)}(hlsm_inode_alloch]hlsm_inode_alloc}(hj%2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhj2hKubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjA2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=2ubj2)}(h h]h }(hjN2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=2ubh)}(hhh]j)}(hinodeh]hinode}(hj_2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetja2modnameN classnameNj] j` )}jc ]jf )}jY j'2sbc.lsm_inode_allocasbuh1hhj=2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=2ubj)}(hinodeh]hinode}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj92ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]j{2c.lsm_inode_allocasbuh1hhj2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hgfph]hgfp}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj92ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj2hKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhj2hKhj1hhubj)}(hhh]h)}(hallocate a composite inode blobh]hallocate a composite inode blob}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj 3hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj2hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$3jj$3jjjuh1jhhhj8*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)}(hj.3h]h Parameters}(hj03hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj(3ubj )}(hhh](j)}(h4``struct inode *inode`` the inode that needs a blob h](j)}(h``struct inode *inode``h]j)}(hjM3h]hstruct inode *inode}(hjO3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjG3ubj2)}(hhh]h)}(hthe inode that needs a blobh]hthe inode that needs a blob}(hjf3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb3hKhjc3ubah}(h]h ]h"]h$]h&]uh1j1hjG3ubeh}(h]h ]h"]h$]h&]uh1jhjb3hKhjD3ubj)}(h``gfp_t gfp`` allocation flags 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 flagsh]hallocation flags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjD3ubeh}(h]h ]h"]h$]h&]uh1j hj(3ubh)}(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:283: ./security/security.chKhj(3ubh)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode blob for all the modules}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj(3ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj(3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_task_alloc (C function)c.lsm_task_allochNtauh1hhj8*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}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj$4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4hhhj#4hMubj{)}(hlsm_task_alloch]j)}(hlsm_task_alloch]hlsm_task_alloc}(hj64hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj24ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhj#4hMubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hjh]hstruct}(hjR4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN4ubj2)}(h h]h }(hj_4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjN4ubh)}(hhh]j)}(h task_structh]h task_struct}(hjp4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjr4modnameN classnameNj] j` )}jc ]jf )}jY j84sbc.lsm_task_allocasbuh1hhjN4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjN4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN4ubj)}(htaskh]htask}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJ4ubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhj#4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj 4hhhj#4hMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jhj#4hMhj 4hhubj)}(hhh]h)}(hallocate a composite task blobh]hallocate a composite task blob}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj 4hhhj#4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhj8*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)}(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.chM hj4ubj )}(hhh]j)}(h8``struct task_struct *task`` the task that needs a blob h](j)}(h``struct task_struct *task``h]j)}(hj5h]hstruct task_struct *task}(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.chMhj5ubj2)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hj/5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+5hMhj,5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj+5hMhj 5ubah}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjQ5h]h Description}(hjS5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubh)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hjg5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjv5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhj8*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}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hMubj{)}(h lsm_ipc_alloch]j)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hMubj)}(h(struct kern_ipc_perm *kip)h]j)}(hstruct kern_ipc_perm *kiph](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY j5sbc.lsm_ipc_allocasbuh1hhj5ubj2)}(h h]h }(hj 6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]h*}(hj.6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hkiph]hkip}(hj;6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhj5hMhj5hhubj)}(hhh]h)}(hallocate a composite ipc blobh]hallocate a composite ipc blob}(hje6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjb6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}6jj}6jjjuh1jhhhj8*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)}(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.chMhj6ubj )}(hhh]j)}(h8``struct kern_ipc_perm *kip`` the ipc that needs a blob h](j)}(h``struct kern_ipc_perm *kip``h]j)}(hj6h]hstruct kern_ipc_perm *kip}(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.chMhj6ubj2)}(hhh]h)}(hthe ipc that needs a blobh]hthe ipc that needs a blob}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h**Description**h]j)}(hj6h]h Description}(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.chMhj6ubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubh)}(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.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_key_alloc (C function)c.lsm_key_allochNtauh1hhj8*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}(hj57hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj17hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjD7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj17hhhjC7hM ubj{)}(h lsm_key_alloch]j)}(h lsm_key_alloch]h lsm_key_alloc}(hjV7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj17hhhjC7hM ubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hjr7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjn7ubh)}(hhh]j)}(hkeyh]hkey}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY jX7sbc.lsm_key_allocasbuh1hhjn7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjn7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn7ubj)}(hkeyh]hkey}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjj7ubah}(h]h ]h"]h$]h&]jjuh1jhj17hhhjC7hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-7hhhjC7hM ubah}(h]j(7ah ](jjeh"]h$]h&]jj)jhuh1jhjC7hM hj*7hhubj)}(hhh]h)}(hallocate a composite key blobh]hallocate a composite key blob}(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&]uh1jhj*7hhhjC7hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 8jj 8jjjuh1jhhhj8*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)}(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)}(h.``struct key *key`` the key that needs a blob h](j)}(h``struct key *key``h]j)}(hj68h]hstruct key *key}(hj88hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj48ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hj08ubj2)}(hhh]h)}(hthe key that needs a blobh]hthe key that needs a blob}(hjO8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK8hM!hjL8ubah}(h]h ]h"]h$]h&]uh1j1hj08ubeh}(h]h ]h"]h$]h&]uh1jhjK8hM!hj-8ubah}(h]h ]h"]h$]h&]uh1j hj8ubh)}(h**Description**h]j)}(hjq8h]h Description}(hjs8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hj8ubh)}(h)Allocate the key blob for all the modulesh]h)Allocate the key blob for all the modules}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj8ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj8hhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhj8*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}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8hhhj8hM.ubj{)}(hlsm_msg_msg_alloch]j)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhj8hM.ubj)}(h(struct msg_msg *mp)h]j)}(hstruct msg_msg *mph](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj"9modnameN classnameNj] j` )}jc ]jf )}jY j8sbc.lsm_msg_msg_allocasbuh1hhj8ubj2)}(h h]h }(hj@9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hjh]h*}(hjN9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hmph]hmp}(hj[9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hM.ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhj8hM.hj8hhubj)}(hhh]h)}(h!allocate a composite msg_msg blobh]h!allocate a composite msg_msg blob}(hj9hhhNhNubah}(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&]uh1jhj8hhhj8hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhj8*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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hj9ubj )}(hhh]j)}(h5``struct msg_msg *mp`` the msg_msg that needs a blob h](j)}(h``struct msg_msg *mp``h]j)}(hj9h]hstruct msg_msg *mp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hj9ubj2)}(hhh]h)}(hthe msg_msg that needs a blobh]hthe msg_msg that needs a blob}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM/hj9ubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hM/hj9ubah}(h]h ]h"]h$]h&]uh1j hj9ubh)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hj9ubh)}(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.chM0hj9ubh)}(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.chM2hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhj8*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}(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 }(hjd:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQ:hhhjc:hM<ubj{)}(hlsm_bdev_alloch]j)}(hlsm_bdev_alloch]hlsm_bdev_alloc}(hjv:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQ:hhhjc:hM<ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hjh]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 jx: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&]jjuh1jhjQ:hhhjc:hM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM:hhhjc:hM<ubah}(h]jH:ah ](jjeh"]h$]h&]jj)jhuh1jhjc:hM<hjJ: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&]uh1jhjJ:hhhjc:hM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-;jj-;jjjuh1jhhhj8*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)}(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.chM@hj1;ubj )}(hhh]j)}(hA``struct block_device *bdev`` the block_device that needs a blob h](j)}(h``struct block_device *bdev``h]j)}(hjV;h]hstruct block_device *bdev}(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)}(h"the block_device that needs a blobh]h"the block_device that needs a blob}(hjo;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk;hM=hjl;ubah}(h]h ]h"]h$]h&]uh1j1hjP;ubeh}(h]h ]h"]h$]h&]uh1jhjk;hM=hjM;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.chM?hj1;ubh)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device 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.chM>hj1;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.chM@hj1;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_bpf_map_alloc (C function)c.lsm_bpf_map_allochNtauh1hhj8*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)}(hjh]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 reftargetjB<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*}(hjn<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}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhj<hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jhhhj8*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)}(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.chMOhj<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 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.chMNhj<ubh)}(h-Allocate the bpf_map blob for all the modulesh]h-Allocate the bpf_map 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.chMMhj<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.chMOhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_bpf_prog_alloc (C function)c.lsm_bpf_prog_allochNtauh1hhj8*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}(hju=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjq=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq=hhhj=hMXubj{)}(hlsm_bpf_prog_alloch]j)}(hlsm_bpf_prog_alloch]hlsm_bpf_prog_alloc}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjq=hhhj=hMXubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]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}(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_prog_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)}(hprogh]hprog}(hj >hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhjq=hhhj=hMXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjm=hhhj=hMXubah}(h]jh=ah ](jjeh"]h$]h&]jj)jhuh1jhj=hMXhjj=hhubj)}(hhh]h)}(h"allocate a composite bpf_prog blobh]h"allocate a composite bpf_prog blob}(hj5>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhj2>hhubah}(h]h ]h"]h$]h&]uh1jhjj=hhhj=hMXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM>jjM>jjjuh1jhhhj8*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)}(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)}(h9``struct bpf_prog *prog`` the bpf_prog that needs a blob h](j)}(h``struct bpf_prog *prog``h]j)}(hjv>h]hstruct bpf_prog *prog}(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.chMYhjp>ubj2)}(hhh]h)}(hthe bpf_prog that needs a blobh]hthe bpf_prog that needs a blob}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMYhj>ubah}(h]h ]h"]h$]h&]uh1j1hjp>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMYhjm>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.Allocate the bpf_prog blob for all the modulesh]h.Allocate the bpf_prog 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.chMZhjQ>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.chM\hjQ>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  lsm_bpf_token_alloc (C function)c.lsm_bpf_token_allochNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h1int lsm_bpf_token_alloc (struct bpf_token *token)h]j)}(h0int lsm_bpf_token_alloc(struct bpf_token *token)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.chMeubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhj?hMeubj{)}(hlsm_bpf_token_alloch]j)}(hlsm_bpf_token_alloch]hlsm_bpf_token_alloc}(hj&?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhj?hMeubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hjh]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 bpf_tokenh]h bpf_token}(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_bpf_token_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)}(htokenh]htoken}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:?ubah}(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#allocate a composite bpf_token blobh]h#allocate a composite bpf_token blob}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehj?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj?hMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jhhhj8*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)}(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.chMihj?ubj )}(hhh]j)}(h<``struct bpf_token *token`` the bpf_token that needs a blob 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.chMfhj@ubj2)}(hhh]h)}(hthe bpf_token that needs a blobh]hthe bpf_token that needs a blob}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMfhj@ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMfhj?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.chMhhj?ubh)}(h/Allocate the bpf_token blob for all the modulesh]h/Allocate the bpf_token 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.chMghj?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.chMihj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhj8*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}(hj@hhhNhNubah}(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 }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@hhhj@hMsubj{)}(hlsm_superblock_alloch]j)}(hlsm_superblock_alloch]hlsm_superblock_alloc}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@hhhj@hMsubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]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 reftargetj@modnameN classnameNj] j` )}jc ]jf )}jY j@sbc.lsm_superblock_allocasbuh1hhj@ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hsbh]hsb}(hj+AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhj@hhhj@hMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj@hMsubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jhj@hMshj@hhubj)}(hhh]h)}(h$allocate a composite superblock blobh]h$allocate a composite superblock blob}(hjUAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjRAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmAjjmAjjjuh1jhhhj8*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)}(hjwAh]h Parameters}(hjyAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjqAubj )}(hhh]j)}(h<``struct super_block *sb`` the superblock that needs a blob h](j)}(h``struct super_block *sb``h]j)}(hjAh]hstruct super_block *sb}(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.chMthjAubj2)}(hhh]h)}(h the superblock that needs a blobh]h the superblock that needs a blob}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMthjAubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMthjAubah}(h]h ]h"]h$]h&]uh1j hjqAubh)}(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:283: ./security/security.chMvhjqAubh)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock blob for all the modules}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjqAubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjqAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhj8*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}(hj%BhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!BhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj4BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!Bhhhj3BhMubj{)}(hlsm_fill_user_ctxh]j)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hjFBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBBubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj!Bhhhj3BhMubj)}(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)}(hjh]hstruct}(hjbBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Bubj2)}(h h]h }(hjoBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^Bubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Bubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjBmodnameN classnameNj] j` )}jc ]jf )}jY jHBsbc.lsm_fill_user_ctxasbuh1hhj^Bubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^Bubh__user}(hj^BhhhNhNubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^Bubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Bubj)}(huctxh]huctx}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZBubj)}(h u32 *uctx_lenh](h)}(hhh]j)}(hu32h]hu32}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjBmodnameN classnameNj] j` )}jc ]jBc.lsm_fill_user_ctxasbuh1hhjBubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(huctx_lenh]huctx_len}(hj"ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZBubj)}(h void *valh](j )}(hvoidh]hvoid}(hj;ChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7Cubj2)}(h h]h }(hjIChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7Cubj)}(hjh]h*}(hjWChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Cubj)}(hvalh]hval}(hjdChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZBubj)}(hsize_t val_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Cubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jBc.lsm_fill_user_ctxasbuh1hhjyCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyCubj)}(hval_lenh]hval_len}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZBubj)}(hu64 idh](h)}(hhh]j)}(hu64h]hu64}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jBc.lsm_fill_user_ctxasbuh1hhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hidh]hid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZBubj)}(h u64 flagsh](h)}(hhh]j)}(hu64h]hu64}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Dubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jBc.lsm_fill_user_ctxasbuh1hhj Dubj2)}(h h]h }(hj.DhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Dubj)}(hflagsh]hflags}(hjah"]h$]h&]uh1j1hjsFhhhjFhMubj{)}(hsecurity_binder_set_context_mgrh]j)}(hsecurity_binder_set_context_mgrh]hsecurity_binder_set_context_mgr}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjsFhhhjFhMubj)}(h(const struct cred *mgr)h]j)}(hconst struct cred *mgrh](j)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(hcredh]hcred}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jf )}jY jFsb!c.security_binder_set_context_mgrasbuh1hhjFubj2)}(h h]h }(hj GhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hmgrh]hmgr}(hj(GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubah}(h]h ]h"]h$]h&]jjuh1jhjsFhhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjoFhhhjFhMubah}(h]jjFah ](jjeh"]h$]h&]jj)jhuh1jhjFhMhjlFhhubj)}(hhh]h)}(h&Check if becoming binder ctx mgr is okh]h&Check if becoming binder ctx mgr is ok}(hjRGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOGhhubah}(h]h ]h"]h$]h&]uh1jhjlFhhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjGjjjGjjjuh1jhhhj8*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)}(hjtGh]h Parameters}(hjvGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnGubj )}(hhh]j)}(hF``const struct cred *mgr`` task credentials of current binder process h](j)}(h``const struct cred *mgr``h]j)}(hjGh]hconst struct cred *mgr}(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.chMhjGubj2)}(hhh]h)}(h*task credentials of current binder processh]h*task credentials of current binder process}(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 hjnGubh)}(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.chMhjnGubh)}(hBCheck whether **mgr** is allowed to be the binder context manager.h](hCheck whether }(hjGhhhNhNubj)}(h**mgr**h]hmgr}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh- is allowed to be the binder context manager.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnGubh)}(h **Return**h]j)}(hjHh]hReturn}(hj HhhhNhNubah}(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.chMhjnGubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_binder_transaction (C function)c.security_binder_transactionhNtauh1hhj8*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}(hjLHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHHhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj[HhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHHhhhjZHhMubj{)}(hsecurity_binder_transactionh]j)}(hsecurity_binder_transactionh]hsecurity_binder_transaction}(hjmHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHHhhhjZHhMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]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 joHsbc.security_binder_transactionasbuh1hhjHubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hfromh]hfrom}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2)}(h h]h }(hj#IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hjh]hstruct}(hj1IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2)}(h h]h }(hj>IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubh)}(hhh]j)}(hcredh]hcred}(hjOIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLIubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQImodnameN classnameNj] j` )}jc ]jHc.security_binder_transactionasbuh1hhjIubj2)}(h h]h }(hjmIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hjh]h*}(hj{IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(htoh]hto}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjHHhhhjZHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDHhhhjZHhMubah}(h]j?Hah ](jjeh"]h$]h&]jj)jhuh1jhjZHhMhjAHhhubj)}(hhh]h)}(h(Check if a binder transaction is allowedh]h(Check if a binder transaction is allowed}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjAHhhhjZHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhj8*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)}(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.chM hjIubj )}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjIh]hconst struct cred *from}(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.chMhjIubj2)}(hhh]h)}(hsending processh]hsending process}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhj Jubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjIubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hj,Jh]hconst struct cred *to}(hj.JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Jubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&Jubj2)}(hhh]h)}(hreceiving processh]hreceiving process}(hjEJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAJhM hjBJubah}(h]h ]h"]h$]h&]uh1j1hj&Jubeh}(h]h ]h"]h$]h&]uh1jhjAJhM hjIubeh}(h]h ]h"]h$]h&]uh1j hjIubh)}(h**Description**h]j)}(hjgJh]h Description}(hjiJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjIubh)}(hPCheck whether **from** is allowed to invoke a binder transaction call to **to**.h](hCheck whether }(hj}JhhhNhNubj)}(h**from**h]hfrom}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Jubh3 is allowed to invoke a binder transaction call to }(hj}JhhhNhNubj)}(h**to**h]hto}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Jubh.}(hj}JhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjIubh)}(h **Return**h]j)}(hjJh]hReturn}(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 hjIubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_binder_transfer_binder (C function)!c.security_binder_transfer_binderhNtauh1hhj8*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}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhjKhMubj{)}(hsecurity_binder_transfer_binderh]j)}(hsecurity_binder_transfer_binderh]hsecurity_binder_transfer_binder}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhjKhMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hj4KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Kubj2)}(h h]h }(hjAKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0Kubj)}(hjh]hstruct}(hjOKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Kubj2)}(h h]h }(hj\KhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0Kubh)}(hhh]j)}(hcredh]hcred}(hjmKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjoKmodnameN classnameNj] j` )}jc ]jf )}jY jKsb!c.security_binder_transfer_binderasbuh1hhj0Kubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0Kubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Kubj)}(hfromh]hfrom}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,Kubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(hcredh]hcred}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jK!c.security_binder_transfer_binderasbuh1hhjKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hj&LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(htoh]hto}(hj3LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,Kubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjKhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhjKhMhjJhhubj)}(hhh]h)}(h%Check if a binder transfer is allowedh]h%Check if a binder transfer is allowed}(hj]LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZLhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjuLjjuLjjjuh1jhhhj8*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)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Lubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyLubj )}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjLh]hconst struct cred *from}(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.chMhjLubj2)}(hhh]h)}(hsending processh]hsending process}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hjLh]hconst struct cred *to}(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.chMhjLubj2)}(hhh]h)}(hreceiving processh]hreceiving process}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubeh}(h]h ]h"]h$]h&]uh1j hjyLubh)}(h**Description**h]j)}(hjMh]h Description}(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.chMhjyLubh)}(hKCheck whether **from** is allowed to transfer a binder reference to **to**.h](hCheck whether }(hj(MhhhNhNubj)}(h**from**h]hfrom}(hj0MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Mubh. is allowed to transfer a binder reference to }(hj(MhhhNhNubj)}(h**to**h]hto}(hjBMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Mubh.}(hj(MhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyLubh)}(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.chMhjyLubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjsMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_binder_transfer_file (C function)c.security_binder_transfer_filehNtauh1hhj8*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}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhjMhM%ubj{)}(hsecurity_binder_transfer_fileh]j)}(hsecurity_binder_transfer_fileh]hsecurity_binder_transfer_file}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhjMhM%ubj)}(hI(const struct cred *from, const struct cred *to, const struct file *file)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(hhh]j)}(hcredh]hcred}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]jf )}jY jMsbc.security_binder_transfer_fileasbuh1hhjMubj2)}(h h]h }(hj8NhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjFNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hfromh]hfrom}(hjSNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjlNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhNubj2)}(h h]h }(hjyNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhNubj)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhNubh)}(hhh]j)}(hcredh]hcred}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]j4Nc.security_binder_transfer_fileasbuh1hhjhNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhNubj)}(htoh]hto}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(hfileh]hfile}(hj0OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Oubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2OmodnameN classnameNj] j` )}jc ]j4Nc.security_binder_transfer_fileasbuh1hhjNubj2)}(h h]h }(hjNOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hj\OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hfileh]hfile}(hjiOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhM%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjMhM%ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjMhM%hjMhhubj)}(hhh]h)}(h&Check if a binder file xfer is allowedh]h&Check if a binder file xfer is allowed}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hjOhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhj8*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)}(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:283: ./security/security.chM)hjOubj )}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjOh]hconst struct cred *from}(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.chM&hjOubj2)}(hhh]h)}(hsending processh]hsending process}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM&hjOubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjOhM&hjOubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hj Ph]hconst struct cred *to}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Pubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjPubj2)}(hhh]h)}(hreceiving processh]hreceiving process}(hj&PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"PhM'hj#Pubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhj"PhM'hjOubj)}(h3``const struct file *file`` file being transferred h](j)}(h``const struct file *file``h]j)}(hjFPh]hconst struct file *file}(hjHPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hj@Pubj2)}(hhh]h)}(hfile being transferredh]hfile being transferred}(hj_PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[PhM(hj\Pubah}(h]h ]h"]h$]h&]uh1j1hj@Pubeh}(h]h ]h"]h$]h&]uh1jhj[PhM(hjOubeh}(h]h ]h"]h$]h&]uh1j hjOubh)}(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.chM*hjOubh)}(hACheck whether **from** is allowed to transfer **file** to **to**.h](hCheck whether }(hjPhhhNhNubj)}(h**from**h]hfrom}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh is allowed to transfer }(hjPhhhNhNubj)}(h**file**h]hfile}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh 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.chM)hjOubh)}(h **Return**h]j)}(hjPh]hReturn}(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.chM+hjOubh)}(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.chM,hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_ptrace_access_check (C function)c.security_ptrace_access_checkhNtauh1hhj8*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}(hj#QhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5ubj2)}(h h]h }(hj2QhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhj1QhM5ubj{)}(hsecurity_ptrace_access_checkh]j)}(hsecurity_ptrace_access_checkh]hsecurity_ptrace_access_check}(hjDQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Qubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhj1QhM5ubj)}(h.(struct task_struct *child, unsigned int mode)h](j)}(hstruct task_struct *childh](j)}(hjh]hstruct}(hj`QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Qubj2)}(h h]h }(hjmQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\Qubh)}(hhh]j)}(h task_structh]h task_struct}(hj~QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Qubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY jFQsbc.security_ptrace_access_checkasbuh1hhj\Qubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\Qubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Qubj)}(hchildh]hchild}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXQubj)}(hunsigned int modeh](j )}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj )}(hinth]hint}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hmodeh]hmode}(hj RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXQubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhj1QhM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhj1QhM5ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhj1QhM5hjQhhubj)}(hhh]h)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hj4RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hj1Rhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhj1QhM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLRjjLRjjjuh1jhhhj8*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)}(hjVRh]h Parameters}(hjXRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjPRubj )}(hhh](j)}(h-``struct task_struct *child`` target process h](j)}(h``struct task_struct *child``h]j)}(hjuRh]hstruct task_struct *child}(hjwRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjoRubj2)}(hhh]h)}(htarget processh]htarget process}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM6hjRubah}(h]h ]h"]h$]h&]uh1j1hjoRubeh}(h]h ]h"]h$]h&]uh1jhjRhM6hjlRubj)}(h(``unsigned int mode`` PTRACE_MODE flags h](j)}(h``unsigned int mode``h]j)}(hjRh]hunsigned int mode}(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.chM7hjRubj2)}(hhh]h)}(hPTRACE_MODE flagsh]hPTRACE_MODE flags}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM7hjRubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM7hjlRubeh}(h]h ]h"]h$]h&]uh1j hjPRubh)}(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.chM9hjPRubh)}(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 }(hjRhhhNhNubj)}(h **child**h]hchild}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubhX5 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.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjPRubh)}(h **Return**h]j)}(hj"Sh]hReturn}(hj$ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Subah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjPRubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj8ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjPRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_ptrace_traceme (C function)c.security_ptrace_tracemehNtauh1hhj8*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}(hjgShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcShhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHubj2)}(h h]h }(hjvShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcShhhjuShMHubj{)}(hsecurity_ptrace_tracemeh]j)}(hsecurity_ptrace_tracemeh]hsecurity_ptrace_traceme}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjcShhhjuShMHubj)}(h(struct task_struct *parent)h]j)}(hstruct task_struct *parenth](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubh)}(hhh]j)}(h task_structh]h task_struct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jf )}jY jSsbc.security_ptrace_tracemeasbuh1hhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hparenth]hparent}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubah}(h]h ]h"]h$]h&]jjuh1jhjcShhhjuShMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_ShhhjuShMHubah}(h]jZSah ](jjeh"]h$]h&]jj)jhuh1jhjuShMHhj\Shhubj)}(hhh]h)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hj'ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhj$Thhubah}(h]h ]h"]h$]h&]uh1jhj\ShhhjuShMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?Tjj?Tjjjuh1jhhhj8*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)}(hjITh]h Parameters}(hjKThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGTubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjCTubj )}(hhh]j)}(h/``struct task_struct *parent`` tracing process h](j)}(h``struct task_struct *parent``h]j)}(hjhTh]hstruct task_struct *parent}(hjjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjbTubj2)}(hhh]h)}(htracing processh]htracing process}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ThMIhj~Tubah}(h]h ]h"]h$]h&]uh1j1hjbTubeh}(h]h ]h"]h$]h&]uh1jhj}ThMIhj_Tubah}(h]h ]h"]h$]h&]uh1j hjCTubh)}(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.chMKhjCTubh)}(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 }(hjThhhNhNubj)}(h **parent**h]hparent}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh} process has sufficient permission to trace the current process before allowing the current process to present itself to the }(hjThhhNhNubj)}(h **parent**h]hparent}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh process for tracing.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjCTubh)}(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.chMNhjCTubh)}(h#Returns 0 if permission is granted.h]h#Returns 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.chMOhjCTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_capget (C function)c.security_capgethNtauh1hhj8*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}(hj3UhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/UhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWubj2)}(h h]h }(hjBUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/UhhhjAUhMWubj{)}(hsecurity_capgeth]j)}(hsecurity_capgeth]hsecurity_capget}(hjTUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/UhhhjAUhMWubj)}(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}(hjpUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubj2)}(h h]h }(hj}UhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlUubj)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlUubh)}(hhh]j)}(h task_structh]h task_struct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY jVUsbc.security_capgetasbuh1hhjlUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubj)}(htargeth]htarget}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhUubj)}(hkernel_cap_t *effectiveh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jUc.security_capgetasbuh1hhjUubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hj,VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h effectiveh]h effective}(hj9VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhUubj)}(hkernel_cap_t *inheritableh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjUVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWVmodnameN classnameNj] j` )}jc ]jUc.security_capgetasbuh1hhjNVubj2)}(h h]h }(hjsVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNVubj)}(h inheritableh]h inheritable}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhUubj)}(hkernel_cap_t *permittedh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jUc.security_capgetasbuh1hhjVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h permittedh]h permitted}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhUubeh}(h]h ]h"]h$]h&]jjuh1jhj/UhhhjAUhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+UhhhjAUhMWubah}(h]j&Uah ](jjeh"]h$]h&]jj)jhuh1jhjAUhMWhj(Uhhubj)}(hhh]h)}(h%Get the capability sets for a processh]h%Get the capability sets for a process}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhj Whhubah}(h]h ]h"]h$]h&]uh1jhj(UhhhjAUhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%Wjj%Wjjjuh1jhhhj8*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)}(hj/Wh]h Parameters}(hj1WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Wubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj)Wubj )}(hhh](j)}(h4``const struct task_struct *target`` target process h](j)}(h$``const struct task_struct *target``h]j)}(hjNWh]h const struct task_struct *target}(hjPWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjHWubj2)}(hhh]h)}(htarget processh]htarget process}(hjgWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcWhMXhjdWubah}(h]h ]h"]h$]h&]uh1j1hjHWubeh}(h]h ]h"]h$]h&]uh1jhjcWhMXhjEWubj)}(h5``kernel_cap_t *effective`` effective capability set h](j)}(h``kernel_cap_t *effective``h]j)}(hjWh]hkernel_cap_t *effective}(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.chMYhjWubj2)}(hhh]h)}(heffective capability seth]heffective capability set}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMYhjWubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMYhjEWubj)}(h9``kernel_cap_t *inheritable`` inheritable capability set h](j)}(h``kernel_cap_t *inheritable``h]j)}(hjWh]hkernel_cap_t *inheritable}(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.chMZhjWubj2)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMZhjWubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMZhjEWubj)}(h5``kernel_cap_t *permitted`` permitted capability set h](j)}(h``kernel_cap_t *permitted``h]j)}(hjWh]hkernel_cap_t *permitted}(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.chM[hjWubj2)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM[hjXubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjXhM[hjEWubeh}(h]h ]h"]h$]h&]uh1j hj)Wubh)}(h**Description**h]j)}(hj4Xh]h Description}(hj6XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Xubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj)Wubh)}(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 }(hjJXhhhNhNubj)}(h **effective**h]h effective}(hjRXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJXubh, }(hjJXhhhNhNubj)}(h**inheritable**h]h inheritable}(hjdXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJXubh, and }(hjJXhhhNhNubj)}(h **permitted**h]h permitted}(hjvXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJXubh capability sets for the }(hjJXhhhNhNubj)}(h **target**h]htarget}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJXubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hjJXhhhNhNubj)}(h **target**h]htarget}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJXubh process.}(hjJXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj)Wubh)}(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.chMahj)Wubh)}(hah"]h$]h&]uh1j1hjXhhhjYhMmubj{)}(hsecurity_capseth]j)}(hsecurity_capseth]hsecurity_capset}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjYhMmubj)}(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)}(hjh]hstruct}(hj7YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Yubj2)}(h h]h }(hjDYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3Yubh)}(hhh]j)}(hcredh]hcred}(hjUYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWYmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.security_capsetasbuh1hhj3Yubj2)}(h h]h }(hjuYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3Yubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Yubj)}(hnewh]hnew}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Yubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/Yubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(hcredh]hcred}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jqYc.security_capsetasbuh1hhjYubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(holdh]hold}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/Yubj)}(hconst kernel_cap_t *effectiveh](j)}(hjh]hconst}(hj4ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Zubj2)}(h h]h }(hjAZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0Zubh)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjRZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTZmodnameN classnameNj] j` )}jc ]jqYc.security_capsetasbuh1hhj0Zubj2)}(h h]h }(hjpZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0Zubj)}(hjh]h*}(hj~ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Zubj)}(h effectiveh]h effective}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/Yubj)}(hconst kernel_cap_t *inheritableh](j)}(hjh]hconst}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(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 ]jqYc.security_capsetasbuh1hhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h inheritableh]h inheritable}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/Yubj)}(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}(hj2[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4[modnameN classnameNj] j` )}jc ]jqYc.security_capsetasbuh1hhj[ubj2)}(h h]h }(hjP[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hj^[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h permittedh]h permitted}(hjk[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/Yubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjYhMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjYhMmubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjYhMmhjXhhubj)}(hhh]h)}(h%Set the capability sets for a processh]h%Set the capability sets for a process}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhj[hhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjYhMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jhhhj8*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)}(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.chMqhj[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)}(hjH\h]hconst kernel_cap_t *effective}(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:283: ./security/security.chMphjB\ubj2)}(hhh]h)}(heffective capability seth]heffective capability set}(hja\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]\hMphj^\ubah}(h]h ]h"]h$]h&]uh1j1hjB\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)}(hj\h]hconst kernel_cap_t *inheritable}(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.chMqhj{\ubj2)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(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)}(h;``const kernel_cap_t *permitted`` permitted capability set h](j)}(h!``const kernel_cap_t *permitted``h]j)}(hj\h]hconst kernel_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.chMrhj\ubj2)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMrhj\ubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMrhj[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.chMthj[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}(hj7]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.chMshj[ubh)}(h **Return**h]j)}(hjR]h]hReturn}(hjT]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhj[ubh)}(h6Returns 0 and update **new** if permission is granted.h](hReturns 0 and update }(hjh]hhhNhNubj)}(h**new**h]hnew}(hjp]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh]ubh if permission is granted.}(hjh]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_capable (C function)c.security_capablehNtauh1hhj8*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}(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_capableh]j)}(hsecurity_capableh]hsecurity_capable}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhj]hMubj)}(hP(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](j)}(hconst struct cred *credh](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)}(hjh]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_capableasbuh1hhj]ubj2)}(h h]h }(hj?^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hjM^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hcredh]hcred}(hjZ^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hstruct user_namespace *nsh](j)}(hjh]hstruct}(hjs^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjo^ubh)}(hhh]j)}(huser_namespaceh]huser_namespace}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]j;^c.security_capableasbuh1hhjo^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjo^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo^ubj)}(hnsh]hns}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hint caph](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)}(hcaph]hcap}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hunsigned int optsh](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}(hj4_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjB_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hoptsh]hopts}(hjP_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 a process has the necessary capabilityh]h/Check if a process has the necessary capability}(hjz_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjw_hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhj8*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)}(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)}(h3``const struct cred *cred`` credentials to examine h](j)}(h``const struct cred *cred``h]j)}(hj_h]hconst struct cred *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)}(hcredentials to examineh]hcredentials to examine}(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 user_namespace *ns`` user namespace h](j)}(h``struct user_namespace *ns``h]j)}(hj_h]hstruct user_namespace *ns}(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)}(huser namespaceh]huser namespace}(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 cap`` capability requested h](j)}(h ``int cap``h]j)}(hj-`h]hint cap}(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)}(hcapability requestedh]hcapability requested}(hjF`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB`hMhjC`ubah}(h]h ]h"]h$]h&]uh1j1hj'`ubeh}(h]h ]h"]h$]h&]uh1jhjB`hMhj_ubj)}(h/``unsigned int opts`` capability check options h](j)}(h``unsigned int opts``h]j)}(hjf`h]hunsigned int opts}(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.chMhj``ubj2)}(hhh]h)}(hcapability check optionsh]hcapability check options}(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)}(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 }(hj`hhhNhNubj)}(h**tsk**h]htsk}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh process has the }(hj`hhhNhNubj)}(h**cap**h]hcap}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh+ capability in the indicated credentials. }(hj`hhhNhNubj)}(h**cap**h]hcap}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh7 contains the capability . }(hj`hhhNhNubj)}(h**opts**h]hopts}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubhC contains options for the capable check .}(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)}(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.chMhj_ubh)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hj&ahhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_quotactl (C function)c.security_quotactlhNtauh1hhj8*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}(hjUahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjdahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQahhhjcahMubj{)}(hsecurity_quotactlh]j)}(hsecurity_quotactlh]hsecurity_quotactl}(hjvahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjraubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQahhhjcahMubj)}(h:(int cmds, int type, int id, const struct super_block *sb)h](j)}(hint cmdsh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hcmdsh]hcmds}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hint typeh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(htypeh]htype}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hint idh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hj bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hidh]hid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hj1bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bubj2)}(h h]h }(hj>bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-bubj)}(hjh]hstruct}(hjLbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bubj2)}(h h]h }(hjYbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-bubh)}(hhh]j)}(h super_blockh]h super_block}(hjjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlbmodnameN classnameNj] j` )}jc ]jf )}jY jxasbc.security_quotactlasbuh1hhj-bubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-bubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bubj)}(hsbh]hsb}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjQahhhjcahMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMahhhjcahMubah}(h]jHaah ](jjeh"]h$]h&]jj)jhuh1jhjcahMhjJahhubj)}(hhh]h)}(h4Check if a quotactl() syscall is allowed for this fsh]h4Check if a quotactl() syscall is allowed for this fs}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhjJahhhjcahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jhhhj8*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)}(hjbh]h Parameters}(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.chMhjbubj )}(hhh](j)}(h``int cmds`` commands h](j)}(h ``int cmds``h]j)}(hjch]hint cmds}(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.chMhj cubj2)}(hhh]h)}(hcommandsh]hcommands}(hj)chhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%chMhj&cubah}(h]h ]h"]h$]h&]uh1j1hj cubeh}(h]h ]h"]h$]h&]uh1jhj%chMhjcubj)}(h``int type`` type h](j)}(h ``int type``h]j)}(hjIch]hint type}(hjKchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCcubj2)}(hhh]h)}(htypeh]htype}(hjbchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^chMhj_cubah}(h]h ]h"]h$]h&]uh1j1hjCcubeh}(h]h ]h"]h$]h&]uh1jhj^chMhjcubj)}(h``int id`` id h](j)}(h ``int id``h]j)}(hjch]hint id}(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.chMhj|cubj2)}(hhh]h)}(hidh]hid}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1j1hj|cubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubj)}(h,``const struct super_block *sb`` filesystem h](j)}(h ``const struct super_block *sb``h]j)}(hjch]hconst struct super_block *sb}(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)}(h filesystemh]h filesystem}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbubh)}(h>Check whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hj dhhhNhNubj)}(h**sb**h]hsb}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj dubh.}(hj dhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbubh)}(h **Return**h]j)}(hj/dh]hReturn}(hj1dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-dubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjEdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_quota_on (C function)c.security_quota_onhNtauh1hhj8*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}(hjtdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpdhhhjdhMubj{)}(hsecurity_quota_onh]j)}(hsecurity_quota_onh]hsecurity_quota_on}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjpdhhhjdhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(hdentryh]hdentry}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdmodnameN classnameNj] j` )}jc ]jf )}jY jdsbc.security_quota_onasbuh1hhjdubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hdentryh]hdentry}(hj ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubah}(h]h ]h"]h$]h&]jjuh1jhjpdhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjldhhhjdhMubah}(h]jgdah ](jjeh"]h$]h&]jj)jhuh1jhjdhMhjidhhubj)}(hhh]h)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(hj4ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ehhubah}(h]h ]h"]h$]h&]uh1jhjidhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLejjLejjjuh1jhhhj8*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)}(hjVeh]h Parameters}(hjXehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPeubj )}(hhh]j)}(h!``struct dentry *dentry`` dentry h](j)}(h``struct dentry *dentry``h]j)}(hjueh]hstruct dentry *dentry}(hjwehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjseubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoeubj2)}(hhh]h)}(hdentryh]hdentry}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1j1hjoeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjleubah}(h]h ]h"]h$]h&]uh1j hjPeubh)}(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.chMhjPeubh)}(h0Check whether QUOTAON is allowed for **dentry**.h](h%Check whether QUOTAON is allowed for }(hjehhhNhNubj)}(h **dentry**h]hdentry}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPeubh)}(h **Return**h]j)}(hjeh]hReturn}(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.chMhjPeubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_syslog (C function)c.security_sysloghNtauh1hhj8*hhhNhNubj)}(hhh](j)}(hint security_syslog (int type)h]j)}(hint security_syslog(int type)h](j )}(hinth]hint}(hj.fhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*fhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj=fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*fhhhjah"]h$]h&]uh1j1hjgfubj)}(htypeh]htype}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcfubah}(h]h ]h"]h$]h&]jjuh1jhj*fhhhjah"]h$]h&]uh1j1hjghhhjghMubj{)}(hsecurity_settime64h]j)}(hsecurity_settime64h]hsecurity_settime64}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjghhhjghMubj)}(h8(const struct timespec64 *ts, const struct timezone *tz)h](j)}(hconst struct timespec64 *tsh](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubh)}(hhh]j)}(h timespec64h]h timespec64}(hj!hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#hmodnameN classnameNj] j` )}jc ]jf )}jY jgsbc.security_settime64asbuh1hhjgubj2)}(h h]h }(hjAhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hjOhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(htsh]hts}(hj\hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hconst struct timezone *tzh](j)}(hjh]hconst}(hjuhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhubj)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhubh)}(hhh]j)}(htimezoneh]htimezone}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]j=hc.security_settime64asbuh1hhjqhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhubj)}(htzh]htz}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jhjghMhjghhubj)}(hhh]h)}(h,Check if changing the system time is allowedh]h,Check if changing the system time is allowed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)ijj)ijjjuh1jhhhj8*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)}(hj3ih]h Parameters}(hj5ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1iubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-iubj )}(hhh](j)}(h)``const struct timespec64 *ts`` new time h](j)}(h``const struct timespec64 *ts``h]j)}(hjRih]hconst struct timespec64 *ts}(hjTihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjLiubj2)}(hhh]h)}(hnew timeh]hnew time}(hjkihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgihMhjhiubah}(h]h ]h"]h$]h&]uh1j1hjLiubeh}(h]h ]h"]h$]h&]uh1jhjgihMhjIiubj)}(h'``const struct timezone *tz`` timezone h](j)}(h``const struct timezone *tz``h]j)}(hjih]hconst struct timezone *tz}(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.chMhjiubj2)}(hhh]h)}(htimezoneh]htimezone}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjIiubeh}(h]h ]h"]h$]h&]uh1j hj-iubh)}(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.chMhj-iubh)}(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 .}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-iubh)}(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.chMhj-iubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhj8*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}(hj2jhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.jhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjAjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.jhhhj@jhMubj{)}(hsecurity_vm_enough_memory_mmh]j)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hjSjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.jhhhj@jhMubj)}(h"(struct mm_struct *mm, long pages)h](j)}(hstruct mm_struct *mmh](j)}(hjh]hstruct}(hjojhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubj2)}(h h]h }(hj|jhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkjubh)}(hhh]j)}(h mm_structh]h mm_struct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY jUjsbc.security_vm_enough_memory_mmasbuh1hhjkjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubj)}(hmmh]hmm}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgjubj)}(h long pagesh](j )}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hpagesh]hpages}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgjubeh}(h]h ]h"]h$]h&]jjuh1jhj.jhhhj@jhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*jhhhj@jhMubah}(h]j%jah ](jjeh"]h$]h&]jj)jhuh1jhj@jhMhj'jhhubj)}(hhh]h)}(h,Check if allocating a new mem map is allowedh]h,Check if allocating a new mem map is allowed}(hj'khhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$khhubah}(h]h ]h"]h$]h&]uh1jhj'jhhhj@jhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?kjj?kjjjuh1jhhhj8*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)}(hjIkh]h Parameters}(hjKkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCkubj )}(hhh](j)}(h#``struct mm_struct *mm`` mm struct h](j)}(h``struct mm_struct *mm``h]j)}(hjhkh]hstruct mm_struct *mm}(hjjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbkubj2)}(hhh]h)}(h mm structh]h mm struct}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}khMhj~kubah}(h]h ]h"]h$]h&]uh1j1hjbkubeh}(h]h ]h"]h$]h&]uh1jhj}khMhj_kubj)}(h``long pages`` number of pages h](j)}(h``long pages``h]j)}(hjkh]h long pages}(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.chMhjkubj2)}(hhh]h)}(hnumber of pagesh]hnumber of pages}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhj_kubeh}(h]h ]h"]h$]h&]uh1j hjCkubh)}(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.chMhjCkubh)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCkubh)}(h **Return**h]j)}(hjlh]hReturn}(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.chMhjCkubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhj8*hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjDlhhhjVlhMubj{)}(hsecurity_bprm_creds_for_exech]j)}(hsecurity_bprm_creds_for_exech]hsecurity_bprm_creds_for_exec}(hjilhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjelubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDlhhhjVlhMubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jf )}jY jklsbc.security_bprm_creds_for_execasbuh1hhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hbprmh]hbprm}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}lubah}(h]h ]h"]h$]h&]jjuh1jhjDlhhhjVlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@lhhhjVlhMubah}(h]j;lah ](jjeh"]h$]h&]jj)jhuh1jhjVlhMhj=lhhubj)}(hhh]h)}(h"Prepare the credentials for exec()h]h"Prepare the credentials for exec()}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhj=lhhhjVlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj mjj mjjjuh1jhhhj8*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)}(hj*mh]h Parameters}(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.chMhj$mubj )}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjImh]hstruct linux_binprm *bprm}(hjKmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCmubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjbmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^mhMhj_mubah}(h]h ]h"]h$]h&]uh1j1hjCmubeh}(h]h ]h"]h$]h&]uh1jhj^mhMhj@mubah}(h]h ]h"]h$]h&]uh1j hj$mubh)}(h**Description**h]j)}(hjmh]h Description}(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.chMhj$mubh)}(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 }(hjmhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh properly for executing }(hjmhhhNhNubj)}(h**bprm->file**h]h bprm->file}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh , update the LSM’s portion of }(hjmhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh 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 }(hjmhhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hjmhhhNhNubj)}(h**bprm**h]hbprm}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh% contains the linux_binprm structure.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$mubh)}(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 }(hjnhhhNhNubj)}(h**bprm**h]hbprm}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh will always be dropped.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$mubh)}(h=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hj$nhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hj,nhhhNhNubah}(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.chMhj$mubh)}(h **Return**h]j)}(hjGnh]hReturn}(hjInhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$mubh)}(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]nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$mubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhj8*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}(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_bprm_creds_from_fileh]j)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnhhhjnhMubj)}(h4(struct linux_binprm *bprm, const struct file *file)h](j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY jnsbc.security_bprm_creds_from_fileasbuh1hhjnubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hbprmh]hbprm}(hj"ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hj;ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7oubj2)}(h h]h }(hjHohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7oubj)}(hjh]hstruct}(hjVohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7oubj2)}(h h]h }(hjcohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7oubh)}(hhh]j)}(hfileh]hfile}(hjtohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvomodnameN classnameNj] j` )}jc ]joc.security_bprm_creds_from_fileasbuh1hhj7oubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7oubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7oubj)}(hfileh]hfile}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7oubeh}(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'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hjohhhNhNubah}(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&]uh1jhjnhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhj8*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)}(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:283: ./security/security.chMhjoubj )}(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}(hj1phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-phMhj.pubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhj-phMhjpubj)}(h,``const struct file *file`` associated file h](j)}(h``const struct file *file``h]j)}(hjQph]hconst struct file *file}(hjSphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKpubj2)}(hhh]h)}(hassociated fileh]hassociated file}(hjjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfphMhjgpubah}(h]h ]h"]h$]h&]uh1j1hjKpubeh}(h]h ]h"]h$]h&]uh1jhjfphMhjpubeh}(h]h ]h"]h$]h&]uh1j hjoubh)}(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.chMhjoubh)}(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 }(hjphhhNhNubj)}(h**file**h]hfile}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubhR is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update }(hjphhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubhX 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 }(hjphhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh[ to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to }(hjphhhNhNubj)}(h**bprm->per_clear**h]hbprm->per_clear}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubhJ any personality flags that should be cleared from current->personality. }(hjphhhNhNubj)}(h**bprm**h]hbprm}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh% contains the linux_binprm structure.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoubh)}(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.chMhjoubh)}(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#qhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_bprm_check (C function)c.security_bprm_checkhNtauh1hhj8*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}(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_bprm_checkh]j)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hjsqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNqhhhj`qhM'ubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jf )}jY juqsbc.security_bprm_checkasbuh1hhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hbprmh]hbprm}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(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)}(hMediate binary handler searchh]hMediate binary handler search}(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&]uh1jhjGqhhhj`qhM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*rjj*rjjjuh1jhhhj8*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)}(hj4rh]h Parameters}(hj6rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2rubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hj.rubj )}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjSrh]hstruct linux_binprm *bprm}(hjUrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjMrubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjlrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhrhM(hjirubah}(h]h ]h"]h$]h&]uh1j1hjMrubeh}(h]h ]h"]h$]h&]uh1jhjhrhM(hjJrubah}(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.chM*hj.rubh)}(hXlThis 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.h](hjThis hook mediates the point when a search for a binary handler will begin. It allows a check against the }(hjrhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubhr value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in }(hjrhhhNhNubj)}(h**bprm**h]hbprm}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubhC. This hook may be called multiple times during a single execve. }(hjrhhhNhNubj)}(h**bprm**h]hbprm}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh% contains the linux_binprm structure.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj.rubh)}(h **Return**h]j)}(hjrh]hReturn}(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/hj.rubh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hj.rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhj8*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}(hj0shhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,shhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj2)}(h h]h }(hj?shhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,shhhj>shM8ubj{)}(hsecurity_bprm_committing_credsh]j)}(hsecurity_bprm_committing_credsh]hsecurity_bprm_committing_creds}(hjQshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,shhhj>shM8ubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjmshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjisubj2)}(h h]h }(hjzshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjisubj)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjisubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjisubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jf )}jY jSssb c.security_bprm_committing_credsasbuh1hhjisubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjisubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjisubj)}(hbprmh]hbprm}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjisubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjesubah}(h]h ]h"]h$]h&]jjuh1jhj,shhhj>shM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(shhhj>shM8ubah}(h]j#sah ](jjeh"]h$]h&]jj)jhuh1jhj>shM8hj%shhubj)}(hhh]h)}(h)Install creds for a process during exec()h]h)Install creds for a process during exec()}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjthhubah}(h]h ]h"]h$]h&]uh1jhj%shhhj>shM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#tjj#tjjjuh1jhhhj8*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)}(hj-th]h Parameters}(hj/thhhNhNubah}(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'tubj )}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjLth]hconst struct linux_binprm *bprm}(hjNthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjFtubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjethhhNhNubah}(h]h ]h"]h$]h&]uh1hhjathM9hjbtubah}(h]h ]h"]h$]h&]uh1j1hjFtubeh}(h]h ]h"]h$]h&]uh1jhjathM9hjCtubah}(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:283: ./security/security.chM;hj'tubh)}(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 }(hjthhhNhNubj)}(h**current->cred**h]h current->cred}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh and the information set in }(hjthhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh# by the bprm_creds_for_exec hook. }(hjthhhNhNubj)}(h**bprm**h]hbprm}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhX  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().}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hj'tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhj8*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}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhjuhMIubj{)}(hsecurity_bprm_committed_credsh]j)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hj#uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjuhMIubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hj?uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubj2)}(h h]h }(hjLuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;uubj)}(hjh]hstruct}(hjZuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubj2)}(h h]h }(hjguhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;uubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjxuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzumodnameN classnameNj] j` )}jc ]jf )}jY j%usbc.security_bprm_committed_credsasbuh1hhj;uubj2)}(h h]h }(hjuhhhNhNubah}(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&]jjuh1jhjthhhjuhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjuhMIubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjuhMIhjthhubj)}(hhh]h)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjuhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhj8*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)}(hjuh]h Parameters}(hjvhhhNhNubah}(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.chMMhjuubj )}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjvh]hconst struct linux_binprm *bprm}(hj vhhhNhNubah}(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.chMJhjvubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hj7vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3vhMJhj4vubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhj3vhMJhjvubah}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hjYvh]h Description}(hj[vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjuubh)}(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 }(hjovhhhNhNubj)}(h**current->cred**h]h current->cred}(hjwvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjovubh. }(hjovhhhNhNubj)}(h**bprm**h]hbprm}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjovubh 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().}(hjovhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhj8*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}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjvhMYubj{)}(hsecurity_fs_context_submounth]j)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjvhMYubj)}(h6(struct fs_context *fc, struct super_block *reference)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hj whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwmodnameN classnameNj] j` )}jc ]jf )}jY jvsbc.security_fs_context_submountasbuh1hhjvubj2)}(h h]h }(hj=whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjKwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hfch]hfc}(hjXwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hstruct super_block *referenceh](j)}(hjh]hstruct}(hjqwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmwubj2)}(h h]h }(hj~whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmwubh)}(hhh]j)}(h super_blockh]h super_block}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwmodnameN classnameNj] j` )}jc ]j9wc.security_fs_context_submountasbuh1hhjmwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmwubj)}(h referenceh]h reference}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjvhMYubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjvhMYhjvhhubj)}(hhh]h)}(hInitialise fc->securityh]hInitialise fc->security}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhjwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjvhMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj xjj xjjjuh1jhhhj8*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)}(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)}(h1``struct fs_context *fc`` new filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hj3xh]hstruct fs_context *fc}(hj5xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1xubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhj-xubj2)}(hhh]h)}(hnew filesystem contexth]hnew filesystem context}(hjLxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHxhMZhjIxubah}(h]h ]h"]h$]h&]uh1j1hj-xubeh}(h]h ]h"]h$]h&]uh1jhjHxhMZhj*xubj)}(hH``struct super_block *reference`` dentry reference for submount/remount h](j)}(h!``struct super_block *reference``h]j)}(hjlxh]hstruct super_block *reference}(hjnxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hjfxubj2)}(hhh]h)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM[hjxubah}(h]h ]h"]h$]h&]uh1j1hjfxubeh}(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)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(hjxhhhNhNubah}(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)}(h7Returns 0 on success or negative error code on failure.h]h7Returns 0 on success or negative error code on failure.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhj8*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}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMgubj2)}(h h]h }(hj"yhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhj!yhMgubj{)}(hsecurity_fs_context_duph]j)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hj4yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0yubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhj!yhMgubj)}(h2(struct fs_context *fc, struct fs_context *src_fc)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjPyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLyubj2)}(h h]h }(hj]yhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLyubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjnyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpymodnameN classnameNj] j` )}jc ]jf )}jY j6ysbc.security_fs_context_dupasbuh1hhjLyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLyubj)}(hfch]hfc}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHyubj)}(hstruct fs_context *src_fch](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]jyc.security_fs_context_dupasbuh1hhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hj zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hsrc_fch]hsrc_fc}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHyubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhj!yhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj yhhhj!yhMgubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhj!yhMghjyhhubj)}(hhh]h)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hjCzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghj@zhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhj!yhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[zjj[zjjjuh1jhhhj8*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)}(hjezh]h Parameters}(hjgzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjczubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj_zubj )}(hhh](j)}(h9``struct fs_context *fc`` destination filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjzh]hstruct fs_context *fc}(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.chMhhj~zubj2)}(hhh]h)}(hdestination filesystem contexth]hdestination filesystem context}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhhjzubah}(h]h ]h"]h$]h&]uh1j1hj~zubeh}(h]h ]h"]h$]h&]uh1jhjzhMhhj{zubj)}(h8``struct fs_context *src_fc`` source filesystem context h](j)}(h``struct fs_context *src_fc``h]j)}(hjzh]hstruct fs_context *src_fc}(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.chMihjzubj2)}(hhh]h)}(hsource filesystem contexth]hsource filesystem context}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMihjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMihj{zubeh}(h]h ]h"]h$]h&]uh1j hj_zubh)}(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.chMkhj_zubh)}(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_zubh)}(h **Return**h]j)}(hjC{h]hReturn}(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.chMnhj_zubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjY{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohj_zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhj8*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}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{hhhj{hMwubj{)}(hsecurity_fs_context_parse_paramh]j)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhhj{hMwubj)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j)}(hstruct fs_context *fch](j)}(hjh]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{sb!c.security_fs_context_parse_paramasbuh1hhj{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)}(hfch]hfc}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hstruct fs_parameter *paramh](j)}(hjh]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)}(h fs_parameterh]h fs_parameter}(hjU|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjW|modnameN classnameNj] j` )}jc ]j{!c.security_fs_context_parse_paramasbuh1hhj3|ubj2)}(h h]h }(hjs|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|ubj)}(hparamh]hparam}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhj{hMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhj{hMwubah}(h]j{{ah ](jjeh"]h$]h&]jj)jhuh1jhj{hMwhj}{hhubj)}(hhh]h)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhj|hhubah}(h]h ]h"]h$]h&]uh1jhj}{hhhj{hMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1jhhhj8*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)}(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 fs_context *fc`` 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.chMxhj|ubj2)}(hhh]h)}(hfilesystem contexth]hfilesystem context}(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)}(h4``struct fs_parameter *param`` filesystem parameter h](j)}(h``struct fs_parameter *param``h]j)}(hj2}h]hstruct fs_parameter *param}(hj4}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0}ubah}(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}(hjK}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG}hMyhjH}ubah}(h]h ]h"]h$]h&]uh1j1hj,}ubeh}(h]h ]h"]h$]h&]uh1jhjG}hMyhj|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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hj|ubh)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhj|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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_alloc (C function)c.security_sb_allochNtauh1hhj8*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}(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_sb_alloch]j)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhj}hMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]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}(hj4~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6~modnameN classnameNj] j` )}jc ]jf )}jY j}sbc.security_sb_allocasbuh1hhj~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)}(hsbh]hsb}(hjo~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)}(hAllocate a super_block LSM blobh]hAllocate a super_block 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}hhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhj8*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)}(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)}(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}(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)}(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)}(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}(hj3hhhNhNubah}(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.chMhj~ubh)}(h **Return**h]j)}(hjNh]hReturn}(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.chMhj~ubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjdhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_delete (C function)c.security_sb_deletehNtauh1hhj8*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}(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_deleteh]j)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(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)}(hjh]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sb_deleteasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(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)}(h*Release super_block LSM associated objectsh]h*Release super_block LSM associated objects}(hjShhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhj8*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)}(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)}(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 hjoubh)}(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.chMhjoubh)}(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.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_free (C function)c.security_sb_freehNtauh1hhj8*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 }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj4hMubj{)}(hsecurity_sb_freeh]j)}(hsecurity_sb_freeh]hsecurity_sb_free}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj4hMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jIsbc.security_sb_freeasbuh1hhj_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&]noemphjjuh1jhj[ubah}(h]h ]h"]h$]h&]jjuh1jhj"hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj4hMhjhhubj)}(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&]uh1jhjhhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(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)}(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}(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)}(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.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. }(hjxhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh3 contains the super_block structure to be modified.}(hjxhhhNhNubeh}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhj8*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}(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_sb_kern_mounth]j)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hjڂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjւubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjǂhMubj)}(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)}(hjh]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&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]jf )}jY j܂sbc.security_sb_kern_mountasbuh1hhjubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hjjhhhNhNubah}(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"Check if a kernel mount is allowedh]h"Check if a kernel mount 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&]jjjjjjjjjuh1jhhhj8*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)}(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)}(h7``const struct super_block *sb`` filesystem superblock h](j)}(h ``const struct super_block *sb``h]j)}(hjՃh]hconst struct 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)}(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.chMhjubh)}(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: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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_sb_show_options (C function)c.security_sb_show_optionshNtauh1hhj8*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}(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_show_optionsh]j)}(hsecurity_sb_show_optionsh]hsecurity_sb_show_options}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h,(struct seq_file *m, struct super_block *sb)h](j)}(hstruct seq_file *mh](j)}(hjh]hstruct}(hj˄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDŽubj2)}(h h]h }(hj؄hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDŽubh)}(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 jsbc.security_sb_show_optionsasbuh1hhjDŽubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDŽubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDŽubj)}(hj4h]hm}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDŽubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjÄubj)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubh)}(hhh]j)}(h super_blockh]h super_block}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\modnameN classnameNj] j` )}jc ]jc.security_sb_show_optionsasbuh1hhj8ubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(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)Output the mount options for a superblockh]h)Output the mount options for a superblock}(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Յjjjuh1jhhhj8*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)}(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.chMhjمubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hj7h]hstruct super_block *sb}(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)}(hfilesystem superblockh]hfilesystem superblock}(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 hjمubh)}(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.chMhjمubh)}(h4Show (print on **m**) mount options for this **sb**.h](hShow (print on }(hjhhhNhNubj)}(h**m**h]hm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) mount options for this }(hjhhhNhNubj)}(h**sb**h]hsb}(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.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)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_statfs (C function)c.security_sb_statfshNtauh1hhj8*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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubh)}(hhh]j)}(hdentryh]hdentry}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jf )}jY j%sbc.security_sb_statfsasbuh1hhj;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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(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}(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ڇjjjuh1jhhhj8*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#hjއubj )}(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}(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**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 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 }(hjThhhNhNubj)}(h**mnt**h]hmnt}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh mountpoint. }(hjThhhNhNubj)}(h **dentry**h]hdentry}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh2 is a handle on the superblock for the filesystem.}(hjThhhNhNubeh}(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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_mount (C function)c.security_sb_mounthNtauh1hhj8*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&]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_sb_mounth]j)}(hsecurity_sb_mounth]hsecurity_sb_mount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjʈhhhj܈hM-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}(hj hhhNhNubah}(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 }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdev_nameh]hdev_name}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(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_sb_mountasbuh1hhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjωhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hpathh]hpath}(hj܉hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htypeh]htype}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj )}(hlongh]hlong}(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&]noemphjjuh1jhjubj)}(h void *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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdatah]hdata}(hj̊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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-hjÈhhubj)}(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&]uh1jhjÈhhhj܈hM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chM1hjubj )}(hhh](j)}(h3``const char *dev_name`` filesystem backing device h](j)}(h``const char *dev_name``h]j)}(hj7h]hconst char *dev_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.chM.hj1ubj2)}(hhh]h)}(hfilesystem backing deviceh]hfilesystem backing device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM.hjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM.hj.ubj)}(h(``const struct path *path`` mount point h](j)}(h``const struct path *path``h]j)}(hjph]hconst struct path *path}(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 mount pointh]h mount point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hj.ubj)}(h%``const char *type`` filesystem type h](j)}(h``const char *type``h]j)}(hjh]hconst char *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.chM0hjubj2)}(hhh]h)}(hfilesystem typeh]hfilesystem type}(hj‹hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hj.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.chM1hj܋ubj2)}(hhh]h)}(h mount flagsh]h mount flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j1hj܋ubeh}(h]h ]h"]h$]h&]uh1jhjhM1hj.ubj)}(h(``void *data`` filesystem specific data h](j)}(h``void *data``h]j)}(hjh]h void *data}(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.chM2hjubj2)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM2hj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hM2hj.ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjubh)}(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 }(hjlhhhNhNubj)}(h **dev_name**h]hdev_name}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh( is mounted on the mount point named by }(hjlhhhNhNubj)}(h**nd**h]hnd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh. For an ordinary mount, }(hjlhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhP identifies a device if the file system type requires a device. For a remount (}(hjlhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh & MS_REMOUNT), }(hjlhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh, is irrelevant. For a loopback/bind mount (}(hjlhhhNhNubj)}(h **flags**h]hflags}(hjΌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh & MS_BIND), }(hjlhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh5 identifies the pathname of the object being mounted.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hjubh)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_umount (C function)c.security_sb_umounthNtauh1hhj8*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}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<hhhjNhMDubj{)}(hsecurity_sb_umounth]j)}(hsecurity_sb_umounth]hsecurity_sb_umount}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhjNhMDubj)}(h!(struct vfsmount *mnt, int flags)h](j)}(hstruct vfsmount *mnth](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jcsbc.security_sb_umountasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjɍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hmnth]hmnt}(hj֍hhhNhNubah}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMDubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhjNhMDhj5hhubj)}(hhh]h)}(h,Check permission for unmounting a filesystemh]h,Check permission for unmounting a filesystem}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhj2hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhj8*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)}(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.chMHhjQubj )}(hhh](j)}(h,``struct vfsmount *mnt`` mounted filesystem h](j)}(h``struct vfsmount *mnt``h]j)}(hjvh]hstruct vfsmount *mnt}(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.chMEhjpubj2)}(hhh]h)}(hmounted filesystemh]hmounted filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjmubj)}(h``int flags`` unmount 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.chMFhjubj2)}(hhh]h)}(h unmount flagsh]h unmount flags}(hjȎhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjĎhMFhjŎubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjĎhMFhjmubeh}(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.chMHhjQubh)}(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.chMGhjQubh)}(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.chMIhjQubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_sb_pivotroot (C function)c.security_sb_pivotroothNtauh1hhj8*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}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjvhMRubj{)}(hsecurity_sb_pivotrooth]j)}(hsecurity_sb_pivotrooth]hsecurity_sb_pivotroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjvhMRubj)}(h:(const struct path *old_path, const struct path *new_path)h](j)}(hconst struct path *old_pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj͏hhhNhNubah}(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 reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sb_pivotrootasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_pathh]hold_path}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *new_pathh](j)}(hjh]hconst}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubh)}(hhh]j)}(hpathh]hpath}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmmodnameN classnameNj] j` )}jc ]jc.security_sb_pivotrootasbuh1hhj.ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hnew_pathh]hnew_path}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjvhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhMRubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhjvhMRhj]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]hhhjvhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShj ubj2)}(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&]uh1j1hj ubeh}(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)}(hjHh]hconst struct path *new_path}(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.chMThjBubj2)}(hhh]h)}(hlocation of the new rootfsh]hlocation of the new rootfs}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMThj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(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)}(h5Check permission before pivoting the root filesystem.h]h5Check permission before pivoting the root filesystem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjubh)}(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.chMWhjubh)}(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.chMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_move_mount (C function)c.security_move_mounthNtauh1hhj8*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&]uh1jhj ubah}(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 }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubh)}(hhh]j)}(hpathh]hpath}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_move_mountasbuh1hhj(ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h from_pathh]h from_path}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hconst struct path *to_pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjƒhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjԒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(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 ]jc.security_move_mountasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hto_pathh]hto_path}(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 permissions for moving a mounth]h$Check permissions for moving a mount}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhj8*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)}(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)}(h4``const struct path *from_path`` source mount point h](j)}(h ``const struct path *from_path``h]j)}(hjh]hconst struct path *from_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.chMhjubj2)}(hhh]h)}(hsource mount pointh]hsource mount point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h7``const struct path *to_path`` destination mount point h](j)}(h``const struct path *to_path``h]j)}(hjϓh]hconst struct path *to_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)}(hdestination mount pointh]hdestination mount point}(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 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.chMhjqubh)}(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.chMhjqubh)}(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.chMhjqubh)}(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.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_path_notify (C function)c.security_path_notifyhNtauh1hhj8*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}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrhhhjhMubj{)}(hsecurity_path_notifyh]j)}(hsecurity_path_notifyh]hsecurity_path_notify}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhMubj)}(h:(const struct path *path, u64 mask, unsigned int obj_type)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)}(hjh]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_notifyasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(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&]noemphjjuh1jhjubj)}(hu64 maskh](h)}(hhh]j)}(hu64h]hu64}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jc.security_path_notifyasbuh1hhj<ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hmaskh]hmask}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int obj_typeh](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)}(hobj_typeh]hobj_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjkhhubj)}(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&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj"ubj)}(h``u64 mask`` event mask h](j)}(h ``u64 mask``h]j)}(hjdh]hu64 mask}(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)}(h event maskh]h event mask}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj"ubj)}(h)``unsigned int obj_type`` file path type h](j)}(h``unsigned int obj_type``h]j)}(hjh]hunsigned int obj_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.chMhjubj2)}(hhh]h)}(hfile path typeh]hfile path type}(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 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)}(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}(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)}(hj5h]hReturn}(hj7hhhNhNubah}(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.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_inode_alloc (C function)c.security_inode_allochNtauh1hhj8*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}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjhMubj{)}(hsecurity_inode_alloch]j)}(hsecurity_inode_alloch]hsecurity_inode_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjhMubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjėhhhNhNubah}(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_allocasbuh1hhjubj2)}(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)}(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 }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hgfph]hgfp}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjohhubj)}(hhh]h)}(hAllocate an inode LSM blobh]hAllocate an inode 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&]uh1jhjohhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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`` the inode h](j)}(h``struct inode *inode``h]j)}(hjØh]hstruct inode *inode}(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)}(h the inodeh]h the inode}(hjܘhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjؘhMhj٘ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjؘhMhjubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]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}(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)}(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.chMhjubh)}(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 }(hjMhhhNhNubj)}(h**inode->i_security**h]hinode->i_security}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubhU. The i_security field is initialized to NULL when the inode structure is allocated.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubh)}(h%Return 0 if operation was successful.h]h%Return 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_inode_free (C function)c.security_inode_freehNtauh1hhj8*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}(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_freeh]j)}(hsecurity_inode_freeh]hsecurity_inode_free}(hj֙hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҙubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjÙhMubj)}(h(struct inode *inode)h]j)}(hstruct inode *inodeh](j)}(hjh]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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jؙsbc.security_inode_freeasbuh1hhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjKhhhNhNubah}(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)}(hFree an inode's LSM blobh]hFree an inode’s LSM blob}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjÙhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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`` 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h the inodeh]h the inode}(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:283: ./security/security.chMhjubh)}(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.chMhjubh)}(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}(hj0hhhNhNubah}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhj8*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}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjwhMdubj{)}(h!security_inode_init_security_anonh]j)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhMdubj)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjƛmodnameN classnameNj] j` )}jc ]jf )}jY jsb#c.security_inode_init_security_anonasbuh1hhjubj2)}(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)}(hconst struct qstr *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hqstrh]hqstr}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]j#c.security_inode_init_security_anonasbuh1hhjubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!const struct inode *context_inodeh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj˜hhhNhNubah}(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 ]j#c.security_inode_init_security_anonasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h context_inodeh]h context_inode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMdubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhjwhMdhj^hhubj)}(hhh]h)}(hInitialize an anonymous inodeh]hInitialize an anonymous inode}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhj<hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhj8*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)}(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.chMhhj[ubj )}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjzubj2)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjhMehjwubj)}(h6``const struct qstr *name`` the anonymous inode class h](j)}(h``const struct qstr *name``h]j)}(hjh]hconst struct qstr *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.chMfhjubj2)}(hhh]h)}(hthe anonymous inode classh]hthe anonymous inode class}(hjҝhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjΝhMfhjϝubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjΝhMfhjwubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjwubeh}(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.}(hjChhhNhNubah}(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)}(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.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.}(hjjhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhj8*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}(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_post_mknodh]j)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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 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_path_post_mknodasbuh1hhjҞubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjҞubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҞubj)}(hidmaph]hidmap}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҞubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjΞubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh)}(hhh]j)}(hdentryh]hdentry}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jc.security_path_post_mknodasbuh1hhjDubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(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 reg file creationh]h-Update inode security after reg file creation}(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&]jjjjjjjjjuh1jhhhj8*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)}(hj h]hstruct mnt_idmap *idmap}(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)}(hidmap of the mounth]hidmap of the mount}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjCh]hstruct dentry *dentry}(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)}(hnew fileh]hnew file}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubeh}(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)}(hBUpdate inode security field after a regular file has been created.h]hBUpdate inode security field after a regular file has been created.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhj8*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}(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 }(hjҠhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjѠhMubj{)}(hsecurity_path_rmdirh]j)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjѠhMubj)}(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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpathh]hpath}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_path_rmdirasbuh1hhjubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]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 ]jUc.security_path_rmdirasbuh1hhjubj2)}(h h]h }(hjɡhhhNhNubah}(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&]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 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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjѠhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhj8*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)}(hj0h]h Parameters}(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.chMhj*ubj )}(hhh](j)}(h,``const struct path *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjOh]hconst struct path *dir}(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)}(hparent directoryh]hparent directory}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubj)}(h.``struct dentry *dentry`` directory to remove 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 removeh]hdirectory to remove}(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)}(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.chMhj*ubh)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_path_symlink (C function)c.security_path_symlinkhNtauh1hhj8*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 }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+hhhj=hMubj{)}(hsecurity_path_symlinkh]j)}(hsecurity_path_symlinkh]hsecurity_path_symlink}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj=hMubj)}(hE(const struct path *dir, struct dentry *dentry, const char *old_name)h](j)}(hconst struct path *dirh](j)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jRsbc.security_path_symlinkasbuh1hhjhubj2)}(h h]h }(hjţhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjӣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hstruct dentry *dentryh](j)}(hjh]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_symlinkasbuh1hhjubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hconst char *old_nameh](j)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj )}(hcharh]hchar}(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)}(hold_nameh]hold_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(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 creating a symbolic link is allowedh]h,Check if creating a symbolic link 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&]jjjjjjjjjuh1jhhhj8*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)}(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}(hj1hhhNhNubah}(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`` symbolic link h](j)}(h``struct dentry *dentry``h]j)}(hjQh]hstruct dentry *dentry}(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.chMhjKubj2)}(hhh]h)}(h symbolic linkh]h symbolic link}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(h'``const char *old_name`` file pathname h](j)}(h``const char *old_name``h]j)}(hjh]hconst char *old_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 file pathnameh]h file pathname}(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)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic 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)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_path_link (C function)c.security_path_linkhNtauh1hhj8*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}(hj1hhhNhNubah}(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_path_linkh]j)}(hsecurity_path_linkh]hsecurity_path_link}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj?hMubj)}(hR(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j)}(hstruct dentry *old_dentryh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jTsbc.security_path_linkasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h old_dentryh]h old_dentry}(hjǦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hconst struct path *new_dirh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܦubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjܦubj)}(hjh]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 ]jc.security_path_linkasbuh1hhjܦubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjܦubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܦubj)}(hnew_dirh]hnew_dir}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܦubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct dentry *new_dentryh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_path_linkasbuh1hhjgubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h new_dentryh]h new_dentry}(hj§hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(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 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&hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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&]uh1jhj ubah}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhj$ubj)}(h4``const struct path *new_dir`` new parent directory h](j)}(h``const struct path *new_dir``h]j)}(hjfh]hconst struct path *new_dir}(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)}(hnew parent directoryh]hnew parent directory}(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'``struct dentry *new_dentry`` new link 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)}(hnew linkh]hnew link}(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 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;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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_path_truncate (C function)c.security_path_truncatehNtauh1hhj8*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}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjThMubj{)}(hsecurity_path_truncateh]j)}(hsecurity_path_truncateh]hsecurity_path_truncate}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjThMubj)}(h(const struct path *path)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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(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 jisbc.security_path_truncateasbuh1hhjubj2)}(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&]noemphjjuh1jhj{ubah}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhjThMhj;hhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhj8*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)}(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!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjbh]hconst struct path *path}(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.chMhj\ubj2)}(hhh]h)}(hfileh]hfile}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubah}(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 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.}(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)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_path_chmod (C function)c.security_path_chmodhNtauh1hhj8*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}(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_path_chmodh]j)}(hsecurity_path_chmodh]hsecurity_path_chmod}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h'(const struct path *path, umode_t mode)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j,sbc.security_path_chmodasbuh1hhjBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(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 ]jc.security_path_chmodasbuh1hhjϫubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjϫubj)}(hmodeh]hmode}(hjhhhNhNubah}(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 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1jhhhj8*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)}(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.chM#hjHubj )}(hhh](j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjmh]hconst struct path *path}(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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhM hjdubj)}(h``umode_t mode`` new 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.chM!hjubj2)}(hhh]h)}(hnew modeh]hnew mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjdubeh}(h]h ]h"]h$]h&]uh1j hjHubh)}(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.chM#hjHubh)}(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"hjHubh)}(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&hjHubh)}(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'hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_path_chown (C function)c.security_path_chownhNtauh1hhj8*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}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmhhhjhM1ubj{)}(hsecurity_path_chownh]j)}(hsecurity_path_chownh]hsecurity_path_chown}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhjhM1ubj)}(h1(const struct path *path, kuid_t uid, kgid_t gid)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)}(hjh]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_chownasbuh1hhjubj2)}(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&]noemphjjuh1jhjubj)}(h kuid_t uidh](h)}(hhh]j)}(hkuid_th]hkuid_t}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@modnameN classnameNj] j` )}jc ]jc.security_path_chownasbuh1hhj7ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(huidh]huid}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h kgid_t gidh](h)}(hhh]j)}(hkgid_th]hkgid_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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgidh]hgid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhM1ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjhM1hjfhhubj)}(hhh]h)}(h3Check if changing the file's owner/group is allowedh]h5Check if changing the file’s owner/group is allowed}(hjܮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjٮhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chM2hjubj2)}(hhh]h)}(hfileh]hfile}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM2hj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hM2hjubj)}(h``kuid_t uid`` file owner h](j)}(h``kuid_t uid``h]j)}(hjVh]h kuid_t uid}(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.chM3hjPubj2)}(hhh]h)}(h file ownerh]h file owner}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM3hjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM3hjubj)}(h``kgid_t gid`` file group h](j)}(h``kgid_t gid``h]j)}(hjh]h kgid_t gid}(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.chM4hjubj2)}(hhh]h)}(h file grouph]h file group}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubeh}(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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_path_chroot (C function)c.security_path_chroothNtauh1hhj8*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}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2hhhjDhMBubj{)}(hsecurity_path_chrooth]j)}(hsecurity_path_chrooth]hsecurity_path_chroot}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhjDhMBubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.security_path_chrootasbuh1hhjoubj2)}(h h]h }(hj̰hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hjڰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhMBubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jhjDhMBhj+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+hhhjDhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jhhhj8*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)}(hj3h]h Parameters}(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.chMFhj-ubj )}(hhh]j)}(h&``const struct path *path`` directory h](j)}(h``const struct path *path``h]j)}(hjRh]hconst struct path *path}(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.chMChjLubj2)}(hhh]h)}(h directoryh]h directory}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMChjhubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMChjIubah}(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.chMEhj-ubh)}(h.Check for permission to change root directory.h]h.Check for permission to change root directory.}(hjhhhNhNubah}(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)}(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.chMFhj-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.chMGhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhj8*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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMcubj)}(h.(struct mnt_idmap *idmap, struct inode *inode)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jf )}jY jsb$c.security_inode_post_create_tmpfileasbuh1hhj2ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(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 ]jp$c.security_inode_post_create_tmpfileasbuh1hhjubj2)}(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&]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&]jjjjAjjAjjjuh1jhhhj8*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)}(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.chMghjEubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjjh]hstruct mnt_idmap *idmap}(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.chMdhjdubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjaubj)}(h1``struct inode *inode`` inode of the new tmpfile 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.chMehjubj2)}(hhh]h)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjaubeh}(h]h ]h"]h$]h&]uh1j hjEubh)}(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.chMghjEubh)}(hah"]h$]h&]uh1j1hjhhhj1hMrubj{)}(hsecurity_inode_linkh]j)}(hsecurity_inode_linkh]hsecurity_inode_link}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hMrubj)}(hI(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry)h](j)}(hstruct dentry *old_dentryh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.security_inode_linkasbuh1hhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hstruct inode *dirh](j)}(hjh]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_linkasbuh1hhjδ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}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjδubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hstruct dentry *new_dentryh](j)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hjOhhhNhNubah}(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 reftargetjbmodnameN classnameNj] j` )}jc ]jc.security_inode_linkasbuh1hhj>ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h new_dentryh]h new_dentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMrubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hMrhjhhubj)}(hhh]h)}(h(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hjõhhhNhNubah}(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&]uh1jhjhhhj1hMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjj۵jj۵jjjuh1jhhhj8*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.chMvhjߵubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(h+``struct inode *dir`` new 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.chMthj7ubj2)}(hhh]h)}(hnew parent directoryh]hnew parent directory}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMthjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMthjubj)}(h'``struct dentry *new_dentry`` new link h](j)}(h``struct dentry *new_dentry``h]j)}(hjvh]hstruct dentry *new_dentry}(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.chMuhjpubj2)}(hhh]h)}(hnew linkh]hnew link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubeh}(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.chMwhjߵubh)}(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.}(hjǶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjߵ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.chMxhjߵ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.chMyhjߵubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_inode_unlink (C function)c.security_inode_unlinkhNtauh1hhj8*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}(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_unlinkh]j)}(hsecurity_inode_unlinkh]hsecurity_inode_unlink}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj+hMubj)}(h*(struct inode *dir, struct dentry *dentry)h](j)}(hstruct inode *dirh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh)}(hhh]j)}(hinodeh]hinode}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzmodnameN classnameNj] j` )}jc ]jf )}jY j@sbc.security_inode_unlinkasbuh1hhjVubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hstruct dentry *dentryh](j)}(hjh]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_unlinkasbuh1hhjȷ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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȷubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(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 removing a hard link is allowedh]h(Check if removing a hard link is allowed}(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&]uh1jhjhhhj+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1jhhhj8*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)}(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:283: ./security/security.chMhjiubj )}(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`` 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.chMhjubj2)}(hhh]h)}(hfileh]hfile}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubh)}(h5Check the permission to remove a hard link to a file.h]h5Check the permission to remove a 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.chMhjiubh)}(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.chMhjiubh)}(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.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_symlink (C function)c.security_inode_symlinkhNtauh1hhj8*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}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhX/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&]uh1j1hjjhhhj|hMubj{)}(hsecurity_inode_symlinkh]j)}(hsecurity_inode_symlinkh]hsecurity_inode_symlink}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhj|hMubj)}(h@(struct inode *dir, struct dentry *dentry, const char *old_name)h](j)}(hstruct inode *dirh](j)}(hjh]hstruct}(hjhhhNhNubah}(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_symlinkasbuh1hhjubj2)}(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)}(hjh]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&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=modnameN classnameNj] j` )}jc ]jc.security_inode_symlinkasbuh1hhjubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjthhhNhNubah}(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 }(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)}(hold_nameh]hold_name}(hjѺhhhNhNubah}(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,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&]uh1jhjchhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 *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.chMhj6ubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h(``struct dentry *dentry`` symbolic link 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.chMhjoubj2)}(hhh]h)}(h symbolic linkh]h symbolic link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubj)}(h+``const char *old_name`` existing filename h](j)}(h``const char *old_name``h]j)}(hjh]hconst char *old_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)}(hexisting filenameh]hexisting filename}(hjǻhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjûhMhjĻubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjûhMhj3ubeh}(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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_inode_rmdir (C function)c.security_inode_rmdirhNtauh1hhj8*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}(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 }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhjchMubj{)}(hsecurity_inode_rmdirh]j)}(hsecurity_inode_rmdirh]hsecurity_inode_rmdir}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjchMubj)}(h*(struct inode *dir, struct dentry *dentry)h](j)}(hstruct inode *dirh](j)}(hjh]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 jxsbc.security_inode_rmdirasbuh1hhjubj2)}(h h]h }(hjмhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj޼hhhNhNubah}(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)}(hjh]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 ]j̼c.security_inode_rmdirasbuh1hhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjchMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jhjchMhjJhhubj)}(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&]uh1jhjJhhhjchMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 *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.chMhjubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hj߽hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj۽hMhjܽubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj۽hMhjubj)}(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&]uh1jhjhMhjubeh}(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+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(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 if permission is granted.h]h#Returns 0 if permission is granted.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_inode_mknod (C function)c.security_inode_mknodhNtauh1hhj8*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}(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_mknodh]j)}(hsecurity_inode_mknodh]hsecurity_inode_mknod}(hjǾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjþubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hC(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j)}(hstruct inode *dirh](j)}(hjh]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 ]jf )}jY jɾsbc.security_inode_mknodasbuh1hhj߾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)}(hdirh]hdir}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߾ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj۾ubj)}(hstruct dentry *dentryh](j)}(hjh]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 ]jc.security_inode_mknodasbuh1hhjQubj2)}(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&]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 ]jc.security_inode_mknodasbuh1hhjubj2)}(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&]noemphjjuh1jhj۾ubj)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_mknodasbuh1hhj ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hdevh]hdev}(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+Check if creating a special file is allowedh]h+Check if creating a special file is allowed}(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~jjjuh1jhhhj8*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)}(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 *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`` 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&]uh1jhjhMhjubj)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h``dev_t dev`` device number h](j)}(h ``dev_t dev``h]j)}(hjRh]h dev_t dev}(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 device numberh]h device number}(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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_inode_rename (C function)c.security_inode_renamehNtauh1hhj8*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)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubh)}(hhh]j)}(hinodeh]hinode}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_renameasbuh1hhj2ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hold_dirh]hold_dir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct dentry *old_dentryh](j)}(hjh]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 ]jpc.security_inode_renameasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct inode *new_dirh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jpc.security_inode_renameasbuh1hhjubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_dirh]hnew_dir}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct dentry *new_dentryh](j)}(hjh]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 ]jpc.security_inode_renameasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_dentryh]h new_dentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(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 }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hj0hhhNhNubah}(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 renaming a file is allowedh]h#Check if renaming a file is allowed}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhj8*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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvubj )}(hhh](j)}(h;``struct inode *old_dir`` parent directory of the old file h](j)}(h``struct inode *old_dir``h]j)}(hjh]hstruct inode *old_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 old fileh]h parent directory of the old file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj2)}(hhh]h)}(h the old fileh]h the old file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``struct inode *new_dir`` parent directory of the new file h](j)}(h``struct inode *new_dir``h]j)}(hj h]hstruct inode *new_dir}(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)}(h parent directory of the new fileh]h parent directory of the new file}(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 *new_dentry`` the new file h](j)}(h``struct dentry *new_dentry``h]j)}(hjFh]hstruct dentry *new_dentry}(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 new fileh]h the new file}(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``unsigned int flags`` flags h](j)}(h``unsigned int flags``h]j)}(hjh]hunsigned 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.chMhjyubj2)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjvubh)}(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.chMhjvubh)}(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.chMhjvubh)}(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.chMhjvubh)}(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.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_readlink (C function)c.security_inode_readlinkhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h3int security_inode_readlink (struct dentry *dentry)h]j)}(h2int security_inode_readlink(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 }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj4hMubj{)}(hsecurity_inode_readlinkh]j)}(hsecurity_inode_readlinkh]hsecurity_inode_readlink}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj4hMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jIsbc.security_inode_readlinkasbuh1hhj_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&]noemphjjuh1jhj[ubah}(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 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&]uh1jhjhhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(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`` 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.chMhj!ubj2)}(hhh]h)}(hlinkh]hlink}(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)}(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.chMhjubh)}(h/Check the permission to read the symbolic link.h]h/Check the permission to read the symbolic link.}(hjxhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_follow_link (C function)c.security_inode_follow_linkhNtauh1hhj8*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}(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_follow_linkh]j)}(hsecurity_inode_follow_linkh]hsecurity_inode_follow_link}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h6(struct dentry *dentry, struct inode *inode, bool rcu)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj hhhNhNubah}(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 ]jf )}jY jsbc.security_inode_follow_linkasbuh1hhjubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jEc.security_inode_follow_linkasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h-Check if following a symbolic link is allowedh]h-Check if following a symbolic link is allowed}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhj8*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)}(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 dentry *dentry`` link dentry h](j)}(h``struct dentry *dentry``h]j)}(hjsh]hstruct dentry *dentry}(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 link dentryh]h link dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(h#``struct inode *inode`` link 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)}(h link inodeh]h link inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(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&]uh1jhjhMhjjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubh)}(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 }(hj6hhhNhNubj)}(h**rcu**h]hrcu}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is true, }(hj6hhhNhNubj)}(h **inode**h]hinode}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is not stable.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubh)}(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.chMhjNubh)}(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.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_inode_permission (C function)c.security_inode_permissionhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h=int security_inode_permission (struct inode *inode, int mask)h]j)}(hah"]h$]h&]uh1j1hjhhhjhM!ubj{)}(hsecurity_inode_permissionh]j)}(hsecurity_inode_permissionh]hsecurity_inode_permission}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM!ubj)}(h(struct inode *inode, int mask)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_permissionasbuh1hhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint maskh](j )}(hinth]hint}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjmhhhNhNubah}(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&]jjuh1jhjhhhjhM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM!hjhhubj)}(hhh]h)}(h&Check if accessing an inode is allowedh]h&Check if accessing an inode 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&]jjjjjjjjjuh1jhhhj8*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)}(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 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}(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 access maskh]h access mask}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM#hj5ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj4hM#hjubeh}(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.chM%hjubh)}(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.}(hjphhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_post_setattr (C function)c.security_inode_post_setattrhNtauh1hhj8*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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMLubj{)}(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&]jjuh1jzhjhhhjhMLubj)}(h>(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_post_setattrasbuh1hhjubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjOhhhNhNubah}(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)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(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_post_setattrasbuh1hhjqubj2)}(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&]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&]jjuh1jhjhhhjhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMLhjhhubj)}(hhh]h)}(h*Update the inode after a setattr operationh]h*Update the inode after a setattr operation}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jhhhj8*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)}(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.chMPhjGubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjlh]hstruct mnt_idmap *idmap}(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.chMMhjfubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjcubj)}(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.chMNhjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjcubj)}(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&]uh1jhjhMOhjcubeh}(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.chMQhjGubh)}(hEUpdate inode security field after successful setting file attributes.h]hEUpdate inode security field after successful setting file attributes.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhj8*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}(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 }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZhhhjlhM\ubj{)}(hsecurity_inode_getattrh]j)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZhhhjlhM\ubj)}(h(const struct path *path)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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(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_inode_getattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(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&]jjuh1jhjZhhhjlhM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhM\ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhjlhM\hjShhubj)}(hhh]h)}(h+Check if getting file attributes is allowedh]h+Check if getting file attributes is allowed}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj6hhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhj8*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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjUubj )}(hhh]j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjzh]hconst struct path *path}(hj|hhhNhNubah}(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]hjtubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjqubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjUubh)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hjhhhNhNubah}(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)}(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`hjUubh)}(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.chMahjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhj8*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}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj/hMkubj{)}(hsecurity_inode_setxattrh]j)}(hsecurity_inode_setxattrh]hsecurity_inode_setxattr}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hMkubj)}(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)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(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 jDsbc.security_inode_setxattrasbuh1hhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hstruct dentry *dentryh](j)}(hjh]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_setxattrasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(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&]noemphjjuh1jhjVubj)}(hconst char *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 }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(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&]noemphjjuh1jhjVubj)}(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 ]jc.security_inode_setxattrasbuh1hhjubj2)}(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&]noemphjjuh1jhjVubj)}(h int flagsh](j )}(hinth]hint}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj)}(hflagsh]hflags}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj/hMkhjhhubj)}(hhh]h)}(h'Check if setting file xattrs is allowedh]h'Check if setting file xattrs is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chMohjubj )}(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.chMlhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMlhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjubj)}(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.chMmhjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj5ubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMnhjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMnhjubj)}(h"``const void *value`` xattr value 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.chMohjnubj2)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubj)}(h$``size_t size`` size of xattr value 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.chMphjubj2)}(hhh]h)}(hsize of xattr valueh]hsize of xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMphjubj)}(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&]uh1jhjhMqhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjubh)}(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 }(hj7hhhNhNubj)}(h **dentry**h]hdentry}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh. 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.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubh)}(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: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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhj8*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}(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_set_aclh]j)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h^(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_set_aclasbuh1hhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(hdentryh]hdentry}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]j%c.security_inode_set_aclasbuh1hhjYubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubj)}(hstruct posix_acl *kaclh](j)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubh)}(hhh]j)}(h posix_aclh]h posix_acl}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]j%c.security_inode_set_aclasbuh1hhj&ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hkaclh]hkacl}(hjhhhNhNubah}(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]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h&Check if setting posix acls is allowedh]h&Check if setting 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&]jjjjjjjjjuh1jhhhj8*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)}(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)}(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)}(hfileh]hfile}(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 *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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubj2)}(hhh]h)}(hacl nameh]hacl name}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hjh]hstruct posix_acl *kacl}(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 acl structh]h acl 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)}(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)}(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.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.}(hj3hhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhj8*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}(hjbhhhNhNubah}(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 }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhjphMubj{)}(hsecurity_inode_post_set_aclh]j)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhjphMubj)}(hE(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct dentry *dentryh](j)}(hjh]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_post_set_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&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](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 }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hacl_nameh]hacl_name}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct posix_acl *kaclh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(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_post_set_aclasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hkaclh]hkacl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjphMhjWhhubj)}(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&]uh1jhjWhhhjphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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.chMhj ubj )}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hj0h]hstruct dentry *dentry}(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.chMhj*ubj2)}(hhh]h)}(hfileh]hfile}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjih]hconst char *acl_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.chMhjcubj2)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj'ubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hjh]hstruct posix_acl *kacl}(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 acl structh]h acl struct}(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)}(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)}(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}(hj hhhNhNubah}(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.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhj8*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}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhjfhMubj{)}(hsecurity_inode_get_aclh]j)}(hsecurity_inode_get_aclh]hsecurity_inode_get_acl}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjfhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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{sbc.security_inode_get_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)}(hjh]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_get_aclasbuh1hhjubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](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)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjfhMhjMhhubj)}(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&]uh1jhjMhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(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 mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hj&h]hstruct mnt_idmap *idmap}(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)}(hidmap of the mounth]hidmap of the mount}(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 dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hj_h]hstruct dentry *dentry}(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.chMhjYubj2)}(hhh]h)}(hfileh]hfile}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubj)}(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}(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)}(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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhj8*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}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMhhhX/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&]uh1j1hjMhhhj_hMubj{)}(hsecurity_inode_remove_aclh]j)}(hsecurity_inode_remove_aclh]hsecurity_inode_remove_acl}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhj_hMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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 jtsbc.security_inode_remove_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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jc.security_inode_remove_aclasbuh1hhjubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhj_hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj_hMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1jhj_hMhjFhhubj)}(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&]uh1jhjFhhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(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)}(hidmap of the mounth]hidmap of the mount}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjXh]hstruct dentry *dentry}(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.chMhjRubj2)}(hhh]h)}(hfileh]hfile}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubj)}(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}(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)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhj8*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}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjXhMubj{)}(hsecurity_inode_post_remove_aclh]j)}(hsecurity_inode_post_remove_aclh]hsecurity_inode_post_remove_acl}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjXhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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 jmsb 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)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]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_post_remove_aclasbuh1hhjubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj )}(hcharh]hchar}(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)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(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)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&]uh1jhj?hhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(hj1hhhNhNubah}(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`` file h](j)}(h``struct dentry *dentry``h]j)}(hjQh]hstruct dentry *dentry}(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.chMhjKubj2)}(hhh]h)}(hfileh]hfile}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(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}(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)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhj8*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}(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 }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<hhhjNhMubj{)}(hsecurity_inode_post_setxattrh]j)}(hsecurity_inode_post_setxattrh]hsecurity_inode_post_setxattr}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhjNhMubj)}(hT(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jcsbc.security_inode_post_setxattrasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hconst void *valueh](j)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj )}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(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 ]jc.security_inode_post_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&]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}(hj hhhNhNubah}(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+Update the inode after a setxattr operationh]h+Update the inode after a setxattr operation}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhj8*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)}(hjYh]h Parameters}(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.chMhjSubj )}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjxh]hstruct dentry *dentry}(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.chMhjrubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(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&]uh1jhjhMhjoubj)}(h!``size_t size`` xattr value size 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.chMhjubj2)}(hhh]h)}(hxattr value sizeh]hxattr value size}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjoubj)}(h``int flags`` 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)}(hflagsh]hflags}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjoubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjSubh)}(h@Update inode security field after successful setxattr operation.h]h@Update inode security field after successful setxattr operation.}(hjhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhj8*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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_getxattrasbuh1hhjubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjrhhhNhNubah}(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&]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&]jjjjjjjjjuh1jhhhj8*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)}(hj:h]hstruct dentry *dentry}(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.chM hj4ubj2)}(hhh]h)}(hfileh]hfile}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj1ubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjsh]hconst char *name}(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.chM hjmubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(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)}(h`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for }(hjhhhNhNubj)}(h **dentry**h]hdentry}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h4int security_inode_listxattr (struct dentry *dentry)h]j)}(h3int security_inode_listxattr(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 }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:hhhjLhMubj{)}(hsecurity_inode_listxattrh]j)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhjLhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jasbc.security_inode_listxattrasbuh1hhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhjLhMhj3hhubj)}(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&]uh1jhj3hhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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}(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.chMhj9ubj2)}(hhh]h)}(hfileh]hfile}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubah}(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.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 }(hjhhhNhNubj)}(h **dentry**h]hdentry}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhj8*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)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_removexattrasbuh1hhj1ubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hstruct dentry *dentryh](j)}(hjh]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 ]joc.security_inode_removexattrasbuh1hhjubj2)}(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 *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}(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)}(hnameh]hname}(hj[hhhNhNubah}(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%Check if removing an xattr is allowedh]h%Check if removing an xattr 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&]jjjjjjjjjuh1jhhhj8*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)}(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 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.chM*hjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(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)}(hj8h]hconst char *name}(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.chM,hj2ubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM,hjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM,hjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubh)}(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.chM-hjubh)}(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.chM2hjubh)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhj8*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}(hj!hhhNhNubah}(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)}(hjh]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 ]jf )}jY j#sb!c.security_inode_post_removexattrasbuh1hhj9ubj2)}(h h]h }(hj{hhhNhNubah}(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&]noemphjjuh1jhj5ubj)}(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&]noemphjjuh1jhj5ubeh}(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&]jjjj5jj5jjjuh1jhhhj8*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)}(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.chMVhj9ubj )}(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.chMShjXubj2)}(hhh]h)}(hfileh]hfile}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMShjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMShjUubj)}(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.chMThjubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjUubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhj9ubh)}(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.chMUhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_file_setattr (C function)c.security_inode_file_setattrhNtauh1hhj8*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 }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj%hM`ubj{)}(hsecurity_inode_file_setattrh]j)}(hsecurity_inode_file_setattrh]hsecurity_inode_file_setattr}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj%hM`ubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(hdentryh]hdentry}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]jf )}jY j:sbc.security_inode_file_setattrasbuh1hhjPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hstruct file_kattr *fah](j)}(hjh]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_setattrasbuh1hhjubj2)}(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&]noemphjjuh1jhjLubeh}(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)}(h#check if setting fsxattr is allowedh]h#check if setting fsxattr is allowed}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjDhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhj8*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)}(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.chMdhjcubj )}(hhh](j)}(hH``struct dentry *dentry`` file to set filesystem extended attributes on 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.chMahjubj2)}(hhh]h)}(h-file to set filesystem extended attributes onh]h-file to set filesystem extended attributes on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(hB``struct file_kattr *fa`` extended attributes to set on the inode 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.chMbhjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjcubh)}(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.chMchjcubh)}(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.chMfhjcubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_file_getattr (C function)c.security_inode_file_getattrhNtauh1hhj8*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}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMoubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjvhMoubj{)}(hsecurity_inode_file_getattrh]j)}(hsecurity_inode_file_getattrh]hsecurity_inode_file_getattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjvhMoubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hjh]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_file_getattrasbuh1hhjubj2)}(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 file_kattr *fah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h file_kattrh]h file_kattr}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jc.security_inode_file_getattrasbuh1hhjubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfah]hfa}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjvhMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhMoubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhjvhMohj]hhubj)}(hhh]h)}(h&check if retrieving fsxattr is allowedh]h&check if retrieving fsxattr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chMshjubj )}(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.chMqhj ubj2)}(hhh]h)}(hextended attributes to geth]hextended attributes to get}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMqhj(ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMqhjubeh}(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.chMshjubh)}(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}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjubh)}(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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhj8*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}(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_need_killprivh]j)}(hsecurity_inode_need_killprivh]hsecurity_inode_need_killpriv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM~ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]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 }(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&]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+Check if security_inode_killpriv() requiredh]h+Check if security_inode_killpriv() required}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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`` 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&]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)}(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.}(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)}(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)}(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.}(hj2hhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhj8*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}(hjahhhNhNubah}(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 }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhjohMubj{)}(hsecurity_inode_killprivh]j)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhjohMubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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_killprivasbuh1hhjubj2)}(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)}(hjh]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 ]jc.security_inode_killprivasbuh1hhj ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdentryh]hdentry}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjohMhjVhhubj)}(hhh]h)}(h+The setuid bit is removed, update LSM stateh]h+The setuid bit is removed, update LSM state}(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&]uh1jhjVhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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`` associated 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)}(hassociated dentryh]hassociated dentry}(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)}(hjFh]h Description}(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}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}(hjdhhhNhNubah}(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.chMhjubh)}(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.chMhjubh)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhj8*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}(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_getsecurityh]j)}(hsecurity_inode_getsecurityh]hsecurity_inode_getsecurity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h[(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]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 reftargetj!modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_getsecurityasbuh1hhjubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(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_getsecurityasbuh1hhjoubj2)}(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&]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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void **bufferh](j )}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hbufferh]hbuffer}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool alloch](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(halloch]halloc}(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(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(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 inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjNh]hstruct inode *inode}(hjPhhhNhNubah}(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.chMhjHubj2)}(hhh]h)}(hinodeh]hinode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhj ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h(``void **buffer`` security label buffer h](j)}(h``void **buffer``h]j)}(hjh]h void **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.chMhjubj2)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(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&]uh1jhjhMhj ubeh}(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.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 }(hjJhhhNhNubj)}(h**name**h]hname}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh for }(hjJhhhNhNubj)}(h **inode**h]hinode}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh via }(hjJhhhNhNubj)}(h **buffer**h]hbuffer}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh . Note that }(hjJhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhT is the remainder of the attribute name after the security prefix has been removed. }(hjJhhhNhNubj)}(h **alloc**h]halloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh^ is used to specify if the call should return a value via the buffer or just the value length.}(hjJhhhNhNubeh}(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 size of buffer on success.h]h"Returns size of buffer 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhj8*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 }(hj hhhNhNubah}(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)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(hinodeh]hinode}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_setsecurityasbuh1hhj3ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(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 }(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)}(hvalueh]hvalue}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jqc.security_inode_setsecurityasbuh1hhj_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&]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(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&]jjjj jj jjjuh1jhhhj8*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.chMhj ubj )}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hj2h]hstruct inode *inode}(hj4hhhNhNubah}(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.chMhj,ubj2)}(hhh]h)}(hinodeh]hinode}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjkh]hconst char *name}(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 xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubj)}(h%``const void *value`` security label 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)}(hsecurity labelh]hsecurity label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubj)}(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&]uh1jhjhMhj)ubj)}(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}(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 hj ubh)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(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.chMhj ubh)}(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 }(hjghhhNhNubj)}(h**name**h]hname}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh for }(hjghhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh# from the extended attribute value }(hjghhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh. }(hjghhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh indicates the size of the }(hjghhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh in bytes. }(hjghhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh5 may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that }(hjghhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubhT is the remainder of the attribute name after the security. prefix has been removed.}(hjghhhNhNubeh}(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)}(hReturns 0 on success.h]hReturns 0 on success.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_inode_getlsmprop (C function)c.security_inode_getlsmprophNtauh1hhj8*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}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7hhhjIhMubj{)}(hsecurity_inode_getlsmproph]j)}(hsecurity_inode_getlsmproph]hsecurity_inode_getlsmprop}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhjIhMubj)}(h,(struct inode *inode, struct lsm_prop *prop)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j^sbc.security_inode_getlsmpropasbuh1hhjtubj2)}(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&]noemphjjuh1jhjpubj)}(hstruct lsm_prop *proph](j)}(hjh]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 reftargetj modnameN classnameNj] j` )}jc ]jc.security_inode_getlsmpropasbuh1hhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hproph]hprop}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhjIhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjIhMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhjIhMhj0hhubj)}(hhh]h)}(hGet an inode's LSM datah]hGet an inode’s LSM data}(hjkhhhNhNubah}(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&]uh1jhj0hhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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=``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&]uh1jhjhMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h:Get the lsm specific information associated with the node.h]h:Get the lsm specific information associated with the node.}(hj6hhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhj8*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}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjshM4 ubj{)}(hsecurity_kernfs_init_securityh]j)}(hsecurity_kernfs_init_securityh]hsecurity_kernfs_init_security}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjshM4 ubj)}(h4(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j)}(hstruct kernfs_node *kn_dirh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kernfs_nodeh]h kernfs_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_kernfs_init_securityasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkn_dirh]hkn_dir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct kernfs_node *knh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kernfs_nodeh]h kernfs_node}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jc.security_kernfs_init_securityasbuh1hhjubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hknh]hkn}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjshM4 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjshM4 ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjshM4 hjZhhubj)}(hhh]h)}(h"Init LSM context for a kernfs nodeh]h"Init LSM context for a kernfs node}(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&]uh1jhjZhhhjshM4 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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)}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j)}(h``struct kernfs_node *kn_dir``h]j)}(hjh]hstruct kernfs_node *kn_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.chM5 hjubj2)}(hhh]h)}(hparent kernfs nodeh]hparent kernfs node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5 hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM5 hjubj)}(h9``struct kernfs_node *kn`` the kernfs node to initialize h](j)}(h``struct kernfs_node *kn``h]j)}(hjh]hstruct kernfs_node *kn}(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.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 hjubeh}(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:283: ./security/security.chM8 hjubh)}(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 hjubh)}(h **Return**h]j)}(hjqh]hReturn}(hjshhhNhNubah}(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: 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_file_permission (C function)c.security_file_permissionhNtauh1hhj8*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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMD ubj{)}(hsecurity_file_permissionh]j)}(hsecurity_file_permissionh]hsecurity_file_permission}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMD ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](j)}(hjh]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_permissionasbuh1hhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint maskh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMD ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMD hjhhubj)}(hhh]h)}(hCheck file permissionsh]hCheck file permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chMH 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.chME hjubj2)}(hhh]h)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hME hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hME hjubj)}(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 hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj` h]h Description}(hjb 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 hjubh)}(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.}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMG 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.chMS 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.chMT hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_file_alloc (C function)c.security_file_allochNtauh1hhj8*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&]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_alloch]j)}(hsecurity_file_alloch]hsecurity_file_alloc}(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)}(hjh]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 }(hjG hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjU hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hfileh]hfile}(hjb 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 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\ hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM\ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj8*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` 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.chM] hj ubj2)}(hhh]h)}(hthe fileh]hthe file}(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)}(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.}(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}(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.chMa hj ubh)}(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.}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_file_release (C function)c.security_file_releasehNtauh1hhj8*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}(hjt hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjp hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjp hhhj hMq ubj{)}(hsecurity_file_releaseh]j)}(hsecurity_file_releaseh]hsecurity_file_release}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjp hhhj hMq ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]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_releaseasbuh1hhj 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&]jjuh1jhjp hhhj hMq ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjl hhhj hMq ubah}(h]jg ah ](jjeh"]h$]h&]jj)jhuh1jhj hMq hji hhubj)}(hhh]h)}(h-Perform actions before releasing the file refh]h-Perform actions before releasing the file ref}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hj1 hhubah}(h]h ]h"]h$]h&]uh1jhji hhhj hMq ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjL jjL jjjuh1jhhhj8*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)}(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.chMu hjP ubj )}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hju h]hstruct file *file}(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:283: ./security/security.chMr hjo ubj2)}(hhh]h)}(hthe fileh]hthe file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMr hj ubah}(h]h ]h"]h$]h&]uh1j1hjo ubeh}(h]h ]h"]h$]h&]uh1jhj hMr hjl 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:283: ./security/security.chMt hjP ubh)}(h>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs hjP ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_file_free (C function)c.security_file_freehNtauh1hhj8*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}(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_freeh]j)}(hsecurity_file_freeh]hsecurity_file_free}(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)}(hjh]hstruct}(hj2 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}(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjR modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_file_freeasbuh1hhj. ubj2)}(h h]h }(hjp 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)}(hFree a file's LSM blobh]hFree 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| hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM| ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj8*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)}(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 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.chM} hj ubj2)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(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)}(hj1h]h Description}(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 hj ubh)}(hGDeallocate and free any security structures stored in file->f_security.h]hGDeallocate and free any security structures stored in file->f_security.}(hjGhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_backing_file_alloc (C function)c.security_backing_file_allochNtauh1hhj8*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}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhX/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&]uh1j1hjrhhhjhM ubj{)}(hsecurity_backing_file_alloch]j)}(hsecurity_backing_file_alloch]hsecurity_backing_file_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhM ubj)}(h9(struct file *backing_file, const struct file *user_file)h](j)}(hstruct file *backing_fileh](j)}(hjh]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_backing_file_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h backing_fileh]h backing_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct file *user_fileh](j)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hjMhhhNhNubah}(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 ]jc.security_backing_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)}(h user_fileh]h user_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhM ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjkhhubj)}(hhh]h)}(h&Allocate and setup a backing file blobh]h&Allocate and setup 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&]uh1jhjkhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(hj;h]hconst struct file *user_file}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj5ubj2)}(hhh]h)}(h the associated user visible fileh]h the associated user visible file}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM hjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM hjubeh}(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&]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 }(hjhhhNhNubj)}(h **user_file**h]h user_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: after this point, so any important state associated with }(hjhhhNhNubj)}(h **user_file**h]h user_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhR that is important to the LSM should be captured in the backing file’s LSM blob.}(hjhhhNhNubeh}(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 }(hjhhhNhNubj)}(h **user_file**h]h user_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(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>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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_backing_file_free (C function)c.security_backing_file_freehNtauh1hhj8*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}(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 }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#hhhj5hM ubj{)}(hsecurity_backing_file_freeh]j)}(hsecurity_backing_file_freeh]hsecurity_backing_file_free}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj5hM ubj)}(h(struct file *backing_file)h]j)}(hstruct file *backing_fileh](j)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jJsbc.security_backing_file_freeasbuh1hhj`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\ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj5hM 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&]uh1jhjhhhj5hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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/``struct file *backing_file`` the backing file h](j)}(h``struct file *backing_file``h]j)}(hj(h]hstruct file *backing_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)}(hthe backing fileh]hthe backing file}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM hj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM 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)}(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.}(hjyhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_mmap_file (C function)c.security_mmap_filehNtauh1hhj8*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}(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_mmap_fileh]j)}(hsecurity_mmap_fileh]hsecurity_mmap_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h<(struct file *file, unsigned long prot, unsigned long flags)h](j)}(hstruct file *fileh](j)}(hjh]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_mmap_fileasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long proth](j )}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj )}(hlongh]hlong}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hproth]hprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(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&]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 mmap'ing a file is allowedh]h%Check if mmap’ing 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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jhhhj8*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)}(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 file *file`` file h](j)}(h``struct file *file``h]j)}(hjKh]hstruct file *file}(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.chM hjEubj2)}(hhh]h)}(hfileh]hfile}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM hjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM hjBubj)}(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.chM hj~ubj2)}(hhh]h)}(h protection applied by the kernelh]h protection applied by the kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjBubj)}(h``unsigned long flags`` 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.chM hjubj2)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&ubh)}(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 hj&ubh)}(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 hj&ubh)}(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 hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_mmap_addr (C function)c.security_mmap_addrhNtauh1hhj8*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}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrhhhjhM4 ubj{)}(hsecurity_mmap_addrh]j)}(hsecurity_mmap_addrh]hsecurity_mmap_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhM4 ubj)}(h(unsigned long addr)h]j)}(hunsigned long addrh](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)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhM4 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhM4 ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhM4 hjkhhubj)}(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&]uh1jhjkhhhjhM4 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhj8*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)}(hj7h]h Parameters}(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.chM8 hj1ubj )}(hhh]j)}(h``unsigned long addr`` address h](j)}(h``unsigned long addr``h]j)}(hjVh]hunsigned long addr}(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.chM5 hjPubj2)}(hhh]h)}(haddressh]haddress}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM5 hjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM5 hjMubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7 hj1ubh)}(h3Check permissions for a mmap operation at **addr**.h](h*Check permissions for a mmap operation at }(hjhhhNhNubj)}(h**addr**h]haddr}(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.chM6 hj1ubh)}(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.chM8 hj1ubh)}(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 hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_file_mprotect (C function)c.security_file_mprotecthNtauh1hhj8*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&]uh1jhj hhhX/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&]uh1j1hj hhhjhMA ubj{)}(hsecurity_file_mprotecth]j)}(hsecurity_file_mprotecth]hsecurity_file_mprotect}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMA ubj)}(hG(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j)}(hstruct vm_area_struct *vmah](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jf )}jY j2sbc.security_file_mprotectasbuh1hhjHubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long reqproth](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)}(hreqproth]hreqprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long proth](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)}(hproth]hprot}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMA 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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMA ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chME hjubj )}(hhh](j)}(h-``struct vm_area_struct *vma`` memory region h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(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.chMB hjubj2)}(hhh]h)}(h memory regionh]h memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMB hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMB hjubj)}(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 hjubj)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hj$h]hunsigned long prot}(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.chMD hjubj2)}(hhh]h)}(h protection applied by the kernelh]h protection applied by the kernel}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMD hj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMD 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMF hjubh)}(hah"]h$]h&]uh1j1hjhhhjhMQ ubj{)}(hsecurity_file_lockh]j)}(hsecurity_file_lockh]hsecurity_file_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMQ ubj)}(h%(struct file *file, unsigned int cmd)h](j)}(hstruct file *fileh](j)}(hjh]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_lockasbuh1hhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cmdh](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)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMQ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMQ ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMQ hjhhubj)}(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&]uh1jhjhhhjhMQ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMR hj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hMR hjubj)}(h<``unsigned int cmd`` lock operation (e.g. F_RDLCK, F_WRLCK) h](j)}(h``unsigned int cmd``h]j)}(hjVh]hunsigned int cmd}(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.chMS hjPubj2)}(hhh]h)}(h&lock operation (e.g. F_RDLCK, F_WRLCK)h]h&lock operation (e.g. F_RDLCK, F_WRLCK)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMS hjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMS 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.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.}(hjhhhNhNubah}(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)}(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.chMW 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.chMX hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_file_fcntl (C function)c.security_file_fcntlhNtauh1hhj8*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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hM` ubj{)}(hsecurity_file_fcntlh]j)}(hsecurity_file_fcntlh]hsecurity_file_fcntl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hM` ubj)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j)}(hstruct file *fileh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubh)}(hhh]j)}(hfileh]hfile}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_file_fcntlasbuh1hhj6ubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hunsigned int cmdh](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)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hunsigned long argh](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)}(hargh]harg}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(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)}(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&]uh1jhjhhhj hM` ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhj8*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)}(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.chMd hj{ubj )}(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.chMa hjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMa hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMa hjubj)}(h#``unsigned int cmd`` fcntl command 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.chMb hjubj2)}(hhh]h)}(h fcntl commandh]h fcntl command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMb hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMb hjubj)}(h'``unsigned long arg`` command argument h](j)}(h``unsigned long arg``h]j)}(hjh]hunsigned long arg}(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 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 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&]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 }(hjchhhNhNubj)}(h**cmd**h]hcmd}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh" from being performed on the file }(hjchhhNhNubj)}(h**file**h]hfile}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh . Note that }(hjchhhNhNubj)}(h**arg**h]harg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hjchhhNhNubj)}(h**arg**h]harg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubhQ represents a user space pointer, it should never be used by the security module.}(hjchhhNhNubeh}(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)}(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.chMj 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.chMk hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_file_set_fowner (C function)c.security_file_set_fownerhNtauh1hhj8*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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMs ubj{)}(hsecurity_file_set_fownerh]j)}(hsecurity_file_set_fownerh]hsecurity_file_set_fowner}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMs ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubh)}(hhh]j)}(hfileh]hfile}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMs ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMs ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMs hjhhubj)}(hhh]h)}(h'Set the file owner info in the LSM blobh]h'Set the file owner info in the LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMs ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chMw 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.chMt hjubj2)}(hhh]h)}(hthe fileh]hthe file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMt hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMt 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.chMv hjubh)}(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.}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu hjubh)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hjubh)}(h **Return**h]j)}(hjs h]hReturn}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMz hjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhj8*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}(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_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&]jjuh1jzhj hhhj hM ubj)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j)}(hstruct task_struct *tskh](j)}(hjh]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 }(hj3!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjA!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(htskh]htsk}(hjN!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct fown_struct *fownh](j)}(hjh]hstruct}(hjg!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc!ubj2)}(h h]h }(hjt!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjc!ubh)}(hhh]j)}(h fown_structh]h fown_struct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj!modnameN classnameNj] j` )}jc ]j/!c.security_file_send_sigiotaskasbuh1hhjc!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)}(hfownh]hfown}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc!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&]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 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 hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5"jj5"jjjuh1jhhhj8*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}(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 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 hjX"ubj2)}(hhh]h)}(h target taskh]h target task}(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"ubj)}(h+``struct fown_struct *fown`` signal sender h](j)}(h``struct fown_struct *fown``h]j)}(hj"h]hstruct fown_struct *fown}(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 signal senderh]h signal sender}(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 hjU"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 hj"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&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM hjU"ubeh}(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)}(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}(hjM#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 hj9"ubh)}(h **Return**h]j)}(hjh#h]hReturn}(hjj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf#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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_file_receive (C function)c.security_file_receivehNtauh1hhj8*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&]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_receiveh]j)}(hsecurity_file_receiveh]hsecurity_file_receive}(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)}(hjh]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*}(hj6$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hfileh]hfile}(hjC$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 receiving a file via IPC is allowedh]h,Check if receiving a file via IPC is allowed}(hjm$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhj8*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}(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 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 hj$ubj2)}(hhh]h)}(hfile being receivedh]hfile being received}(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)}(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 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_file_open (C function)c.security_file_openhNtauh1hhj8*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}(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 }(hjd%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQ%hhhjc%hM ubj{)}(hsecurity_file_openh]j)}(hsecurity_file_openh]hsecurity_file_open}(hjv%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQ%hhhjc%hM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]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 jx%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&]jjuh1jhjQ%hhhjc%hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM%hhhjc%hM ubah}(h]jH%ah ](jjeh"]h$]h&]jj)jhuh1jhjc%hM hjJ%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&]uh1jhjJ%hhhjc%hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-&jj-&jjjuh1jhhhj8*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)}(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.chM hj1&ubh)}(h``struct file *file``h]j)}(hjO&h]hstruct file *file}(hjQ&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj1&ubh)}(h**Description**h]j)}(hjg&h]h Description}(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.chM hj1&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 hj1&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 hj1&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 hj1&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 hj1&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_file_truncate (C function)c.security_file_truncatehNtauh1hhj8*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)}(hjh]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*}(hjk'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hfileh]hfile}(hjx'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}(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'jjjuh1jhhhj8*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)}(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 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 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 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 }(hj4(hhhNhNubj)}(h**path_truncate**h]h path_truncate}(hj<(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4(ubh hook.}(hj4(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)}(hjW(h]hReturn}(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)}(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.chM hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_task_alloc (C function)c.security_task_allochNtauh1hhj8*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}(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_alloch]j)}(hsecurity_task_alloch]hsecurity_task_alloc}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj(hM ubj)}(h+(struct task_struct *task, u64 clone_flags)h](j)}(hstruct task_struct *taskh](j)}(hjh]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_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}(hj2)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hu64 clone_flagsh](h)}(hhh]j)}(hu64h]hu64}(hjN)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK)ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjP)modnameN classnameNj] j` )}jc ]j)c.security_task_allocasbuh1hhjG)ubj2)}(h h]h }(hjl)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjG)ubj)}(h clone_flagsh]h clone_flags}(hjz)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG)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)}(hAllocate a task's LSM blobh]hAllocate a task’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 hj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jhhhj8*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)}(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 *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}(hj7*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3*hM hj4*ubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhj3*hM hj)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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubh)}(h,Handle allocation of task-related resources.h]h,Handle allocation of task-related resources.}(hjo*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)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_task_free (C function)c.security_task_freehNtauh1hhj8*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}(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_freeh]j)}(hsecurity_task_freeh]hsecurity_task_free}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhhj*hM ubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hjh]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*}(hjN+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&]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,Free a task's LSM blob and related resourcesh]h.Free a task’s LSM blob and related resources}(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+jjjuh1jhhhj8*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)}(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 *task`` 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)}(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)}(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_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 hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjB,hhhjT,hM ubj{)}(hsecurity_cred_alloc_blankh]j)}(hsecurity_cred_alloc_blankh]hsecurity_cred_alloc_blank}(hjg,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjB,hhhjT,hM ubj)}(h(struct cred *cred, gfp_t gfp)h](j)}(hstruct cred *credh](j)}(hjh]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 ji,sbc.security_cred_alloc_blankasbuh1hhj,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{,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 ]j,c.security_cred_alloc_blankasbuh1hhj,ubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hgfph]hgfp}(hj$-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{,ubeh}(h]h ]h"]h$]h&]jjuh1jhjB,hhhjT,hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>,hhhjT,hM ubah}(h]j9,ah ](jjeh"]h$]h&]jj)jhuh1jhjT,hM hj;,hhubj)}(hhh]h)}(h.Allocate the min memory to allow cred_transferh]h.Allocate the min memory to allow cred_transfer}(hjN-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjK-hhubah}(h]h ]h"]h$]h&]uh1jhj;,hhhjT,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjf-jjf-jjjuh1jhhhj8*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)}(hjp-h]h Parameters}(hjr-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjj-ubj )}(hhh](j)}(h"``struct cred *cred`` credentials h](j)}(h``struct cred *cred``h]j)}(hj-h]hstruct cred *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.chM hj-ubj2)}(hhh]h)}(h credentialsh]h 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)}(h``gfp_t gfp`` gfp flags h](j)}(h ``gfp_t gfp``h]j)}(hj-h]h gfp_t gfp}(hj-hhhNhNubah}(h]h ]h"]h$]h&]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 gfp flagsh]h gfp 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 hj-ubeh}(h]h ]h"]h$]h&]uh1j hjj-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 hjj-ubh)}(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 }(hj.hhhNhNubj)}(h**cred**h]hcred}(hj!.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh/ such that cred_transfer() will not get ENOMEM.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjj-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 hjj-ubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjR.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_cred_free (C function)c.security_cred_freehNtauh1hhj8*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}(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_cred_freeh]j)}(hsecurity_cred_freeh]hsecurity_cred_free}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}.hhhj.hM ubj)}(h(struct cred *cred)h]j)}(hstruct cred *credh](j)}(hjh]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_cred_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)}(hcredh]hcred}(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&]jjjuh1jjjhjy.hhhj.hM ubah}(h]jt.ah ](jjeh"]h$]h&]jj)jhuh1jhj.hM hjv.hhubj)}(hhh]h)}(h1Free the cred's LSM blob and associated resourcesh]h3Free the cred’s LSM blob and associated resources}(hjA/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&]uh1jhjv.hhhj.hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjY/jjY/jjjuh1jhhhj8*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)}(hjc/h]h Parameters}(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.chM hj]/ubj )}(hhh]j)}(h"``struct cred *cred`` credentials h](j)}(h``struct cred *cred``h]j)}(hj/h]hstruct cred *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.chM hj|/ubj2)}(hhh]h)}(h credentialsh]h 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 hjy/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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_prepare_creds (C function)c.security_prepare_credshNtauh1hhj8*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}(hj0hhhNhNubah}(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 }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhj0hM' ubj{)}(hsecurity_prepare_credsh]j)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hj#0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhj0hM' ubj)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj?0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;0ubj2)}(h h]h }(hjL0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;0ubh)}(hhh]j)}(hcredh]hcred}(hj]0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_0modnameN classnameNj] j` )}jc ]jf )}jY j%0sbc.security_prepare_credsasbuh1hhj;0ubj2)}(h h]h }(hj}0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;0ubj)}(hnewh]hnew}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj70ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubh)}(hhh]j)}(hcredh]hcred}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jy0c.security_prepare_credsasbuh1hhj0ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(holdh]hold}(hj#1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj70ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj?1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjA1modnameN classnameNj] j` )}jc ]jy0c.security_prepare_credsasbuh1hhj81ubj2)}(h h]h }(hj]1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj81ubj)}(hgfph]hgfp}(hjk1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj81ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj70ubeh}(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 Prepare a new set of credentialsh]h Prepare a new set of credentials}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hj1hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj0hM' ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhj8*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)}(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:283: ./security/security.chM+ hj1ubj )}(hhh](j)}(h%``struct cred *new`` new credentials h](j)}(h``struct cred *new``h]j)}(hj1h]hstruct cred *new}(hj1hhhNhNubah}(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( hj1ubj2)}(hhh]h)}(hnew credentialsh]hnew credentials}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM( hj1ubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM( hj1ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hj2h]hconst struct cred *old}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM) hj 2ubj2)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hj(2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$2hM) hj%2ubah}(h]h ]h"]h$]h&]uh1j1hj 2ubeh}(h]h ]h"]h$]h&]uh1jhj$2hM) hj1ubj)}(h``gfp_t gfp`` gfp flags h](j)}(h ``gfp_t gfp``h]j)}(hjH2h]h gfp_t gfp}(hjJ2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* hjB2ubj2)}(hhh]h)}(h gfp flagsh]h gfp flags}(hja2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]2hM* hj^2ubah}(h]h ]h"]h$]h&]uh1j1hjB2ubeh}(h]h ]h"]h$]h&]uh1jhj]2hM* hj1ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM, hj1ubh)}(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.}(hj2hhhNhNubah}(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)}(hj2h]hReturn}(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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_transfer_creds (C function)c.security_transfer_credshNtauh1hhj8*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}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2hhhj2hM> ubj{)}(hsecurity_transfer_credsh]j)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhj2hM> ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj,3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(3ubj2)}(h h]h }(hj93hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(3ubh)}(hhh]j)}(hcredh]hcred}(hjJ3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjL3modnameN classnameNj] j` )}jc ]jf )}jY j3sbc.security_transfer_credsasbuh1hhj(3ubj2)}(h h]h }(hjj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(3ubj)}(hjh]h*}(hjx3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(3ubj)}(hnewh]hnew}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$3ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]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 reftargetj3modnameN classnameNj] j` )}jc ]jf3c.security_transfer_credsasbuh1hhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(holdh]hold}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$3ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hM> ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hM> ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jhj2hM> hj2hhubj)}(hhh]h)}(hTransfer credsh]hTransfer creds}(hj:4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hj74hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hM> ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjR4jjR4jjjuh1jhhhj8*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\4h]h Parameters}(hj^4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hjV4ubj )}(hhh](j)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hj{4h]hstruct cred *new}(hj}4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hju4ubj2)}(hhh]h)}(htarget credentialsh]htarget credentials}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM? hj4ubah}(h]h ]h"]h$]h&]uh1j1hju4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM? hjr4ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hj4h]hconst struct cred *old}(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.chM@ hj4ubj2)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM@ hj4ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM@ hjr4ubeh}(h]h ]h"]h$]h&]uh1j hjV4ubh)}(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:283: ./security/security.chMB hjV4ubh)}(h/Transfer data from original creds to new creds.h]h/Transfer data from original creds to new creds.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjV4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_kernel_act_as (C function)c.security_kernel_act_ashNtauh1hhj8*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}(hj45hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj05hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMh ubj2)}(h h]h }(hjC5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj05hhhjB5hMh ubj{)}(hsecurity_kernel_act_ash]j)}(hsecurity_kernel_act_ash]hsecurity_kernel_act_as}(hjU5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj05hhhjB5hMh ubj)}(h(struct cred *new, u32 secid)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hjq5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm5ubj2)}(h h]h }(hj~5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm5ubh)}(hhh]j)}(hcredh]hcred}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj5modnameN classnameNj] j` )}jc ]jf )}jY jW5sbc.security_kernel_act_asasbuh1hhjm5ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm5ubj)}(hnewh]hnew}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji5ubj)}(h u32 secidh](h)}(hhh]j)}(hu32h]hu32}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj5modnameN classnameNj] j` )}jc ]j5c.security_kernel_act_asasbuh1hhj5ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hsecidh]hsecid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji5ubeh}(h]h ]h"]h$]h&]jjuh1jhj05hhhjB5hMh ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,5hhhjB5hMh ubah}(h]j'5ah ](jjeh"]h$]h&]jj)jhuh1jhjB5hMh hj)5hhubj)}(hhh]h)}(h*Set the kernel credentials to act as secidh]h*Set the kernel credentials to act as secid}(hj<6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMh hj96hhubah}(h]h ]h"]h$]h&]uh1jhj)5hhhjB5hMh ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjT6jjT6jjjuh1jhhhj8*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^6h]h Parameters}(hj`6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl hjX6ubj )}(hhh](j)}(h!``struct cred *new`` credentials h](j)}(h``struct cred *new``h]j)}(hj}6h]hstruct cred *new}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMi hjw6ubj2)}(hhh]h)}(h credentialsh]h credentials}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMi hj6ubah}(h]h ]h"]h$]h&]uh1j1hjw6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMi hjt6ubj)}(h``u32 secid`` secid h](j)}(h ``u32 secid``h]j)}(hj6h]h u32 secid}(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.chMj hj6ubj2)}(hhh]h)}(hsecidh]hsecid}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMj hj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMj hjt6ubeh}(h]h ]h"]h$]h&]uh1j hjX6ubh)}(h**Description**h]j)}(hj6h]h Description}(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.chMl hjX6ubh)}(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 }(hj7hhhNhNubj)}(h **secid**h]hsecid}(hj7hhhNhNubah}(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.chMk hjX6ubh)}(h **Return**h]j)}(hj*7h]hReturn}(hj,7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMn hjX6ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj@7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMo hjX6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhj8*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}(hjo7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjk7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw ubj2)}(h h]h }(hj~7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk7hhhj}7hMw ubj{)}(hsecurity_kernel_create_files_ash]j)}(hsecurity_kernel_create_files_ash]hsecurity_kernel_create_files_as}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjk7hhhj}7hMw ubj)}(h'(struct cred *new, struct inode *inode)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(hcredh]hcred}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY j7sb!c.security_kernel_create_files_asasbuh1hhj7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hnewh]hnew}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hj+8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubh)}(hhh]j)}(hinodeh]hinode}(hj<8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj98ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj>8modnameN classnameNj] j` )}jc ]j7!c.security_kernel_create_files_asasbuh1hhj8ubj2)}(h h]h }(hjZ8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hjh]h*}(hjh8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hinodeh]hinode}(hju8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjk7hhhj}7hMw ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjg7hhhj}7hMw ubah}(h]jb7ah ](jjeh"]h$]h&]jj)jhuh1jhj}7hMw hjd7hhubj)}(hhh]h)}(h(Set file creation context using an inodeh]h(Set file creation context using an inode}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hj8hhubah}(h]h ]h"]h$]h&]uh1jhjd7hhhj}7hMw ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jhhhj8*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)}(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)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hj8h]hstruct cred *new}(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.chMx hj8ubj2)}(hhh]h)}(htarget credentialsh]htarget credentials}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMx hj8ubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMx hj8ubj)}(h(``struct inode *inode`` reference inode h](j)}(h``struct inode *inode``h]j)}(hj9h]hstruct inode *inode}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMy hj9ubj2)}(hhh]h)}(hreference inodeh]hreference inode}(hj29hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.9hMy hj/9ubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhj.9hMy hj8ubeh}(h]h ]h"]h$]h&]uh1j hj8ubh)}(h**Description**h]j)}(hjT9h]h Description}(hjV9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ hj8ubh)}(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 }(hjj9hhhNhNubj)}(h **inode**h]hinode}(hjr9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj9ubh.}(hjj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMz hj8ubh)}(h **Return**h]j)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ hj8ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj9hhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhj8*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}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhj9hM ubj{)}(hsecurity_kernel_module_requesth]j)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhj9hM 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}(hj8:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hM ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhj9hM hj9hhubj)}(hhh]h)}(h$Check if loading a module is allowedh]h$Check if loading a module is allowed}(hjb: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&]uh1jhj9hhhj9hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjz:jjz:jjjuh1jhhhj8*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)}(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 ``char *kmod_name`` module name h](j)}(h``char *kmod_name``h]j)}(hj:h]hchar *kmod_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 hj:ubj2)}(hhh]h)}(h module nameh]h module name}(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}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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhj8*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}(hjJ;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjF;hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjY;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjF;hhhjX;hM ubj{)}(hsecurity_task_fix_setuidh]j)}(hsecurity_task_fix_setuidh]hsecurity_task_fix_setuid}(hjk;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjF;hhhjX;hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hjh]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 jm;sbc.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)}(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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]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}(hj2<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4<modnameN classnameNj] j` )}jc ]j;c.security_task_fix_setuidasbuh1hhj;ubj2)}(h h]h }(hjP<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hj^<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(holdh]hold}(hjk<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h int flagsh](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)}(hflagsh]hflags}(hj<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&Update LSM with new user id attributesh]h&Update LSM with new user id attributes}(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?;hhhjX;hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jhhhj8*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)}(hjD=h]hconst struct cred *old}(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:283: ./security/security.chM hj>=ubj2)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj]=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY=hM hjZ=ubah}(h]h ]h"]h$]h&]uh1j1hj>=ubeh}(h]h ]h"]h$]h&]uh1jhjY=hM hj=ubj)}(h&``int flags`` LSM_SETID_* flag values h](j)}(h ``int flags``h]j)}(hj}=h]h int 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 hjw=ubj2)}(hhh]h)}(hLSM_SETID_* flag valuesh]hLSM_SETID_* flag values}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM hj=ubah}(h]h ]h"]h$]h&]uh1j1hjw=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)}(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=hhhNhNubj)}(h **flags**h]hflags}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhN parameter indicates which of the set*uid system calls invoked this hook. If }(hj=hhhNhNubj)}(h**new**h]hnew}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj=hhhNhNubj)}(h**current->cred**h]h current->cred}(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 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 on success.h]hReturns 0 on success.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhj8*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}(hjZ>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjV>hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hji>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjV>hhhjh>hM ubj{)}(hsecurity_task_fix_setgidh]j)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hj{>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjV>hhhjh>hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hjh]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_task_fix_setgidasbuh1hhj>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>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)}(hjh]hstruct}(hj$?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hj1?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubh)}(hhh]j)}(hcredh]hcred}(hjB?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj??ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjD?modnameN classnameNj] j` )}jc ]j>c.security_task_fix_setgidasbuh1hhj?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)}(holdh]hold}(hj{?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(h int flagsh](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)}(hflagsh]hflags}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhjV>hhhjh>hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjR>hhhjh>hM ubah}(h]jM>ah ](jjeh"]h$]h&]jj)jhuh1jhjh>hM hjO>hhubj)}(hhh]h)}(h'Update LSM with new group id attributesh]h'Update LSM with new group id attributes}(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&]uh1jhjO>hhhjh>hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jhhhj8*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)}(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}(hj4@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0@hM hj1@ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj0@hM hj@ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hjT@h]hconst struct cred *old}(hjV@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjN@ubj2)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hjm@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji@hM hjj@ubah}(h]h ]h"]h$]h&]uh1j1hjN@ubeh}(h]h ]h"]h$]h&]uh1jhji@hM hj@ubj)}(h%``int flags`` LSM_SETID_* flag value h](j)}(h ``int flags``h]j)}(hj@h]h int 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)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj?ubh)}(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 }(hj@hhhNhNubj)}(h **flags**h]hflags}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubhK parameter indicates which of the set*gid system calls invoked this hook. }(hj@hhhNhNubj)}(h**new**h]hnew}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj@hhhNhNubj)}(h**current->cred**h]h current->cred}(hj AhhhNhNubah}(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%Ah]hReturn}(hj'AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Aubah}(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.}(hj;AhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhj8*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}(hjjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfAhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjyAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfAhhhjxAhM ubj{)}(hsecurity_task_fix_setgroupsh]j)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfAhhhjxAhM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hjh]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 jAsbc.security_task_fix_setgroupsasbuh1hhjAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hnewh]hnew}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hj&BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]hstruct}(hj4BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjABhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(hcredh]hcred}(hjRBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTBmodnameN classnameNj] j` )}jc ]jAc.security_task_fix_setgroupsasbuh1hhjBubj2)}(h h]h }(hjpBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hj~BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(holdh]hold}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjfAhhhjxAhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbAhhhjxAhM ubah}(h]j]Aah ](jjeh"]h$]h&]jj)jhuh1jhjxAhM hj_Ahhubj)}(hhh]h)}(h(Update LSM with new supplementary groupsh]h(Update LSM with new supplementary groups}(hjBhhhNhNubah}(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&]uh1jhj_AhhhjxAhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jhhhj8*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)}(hjBh]h Parameters}(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 hjBubj )}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjBh]hstruct cred *new}(hjBhhhNhNubah}(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.chM hjBubj2)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ChM hj Cubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj ChM hjBubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj/Ch]hconst struct cred *old}(hj1ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Cubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)Cubj2)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hjHChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDChM hjECubah}(h]h ]h"]h$]h&]uh1j1hj)Cubeh}(h]h ]h"]h$]h&]uh1jhjDChM hjBubeh}(h]h ]h"]h$]h&]uh1j hjBubh)}(h**Description**h]j)}(hjjCh]h Description}(hjlChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjBubh)}(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. }(hjChhhNhNubj)}(h**new**h]hnew}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hjChhhNhNubj)}(h**current->cred**h]h current->cred}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjBubh)}(h **Return**h]j)}(hjCh]hReturn}(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 hjBubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)h]j)}(hah"]h$]h&]uh1j1hjChhhjDhM ubj{)}(hsecurity_task_setpgidh]j)}(hsecurity_task_setpgidh]hsecurity_task_setpgid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjDhM ubj)}(h#(struct task_struct *p, pid_t pgid)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj7DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Dubj2)}(h h]h }(hjDDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3Dubh)}(hhh]j)}(h task_structh]h task_struct}(hjUDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWDmodnameN classnameNj] j` )}jc ]jf )}jY jDsbc.security_task_setpgidasbuh1hhj3Dubj2)}(h h]h }(hjuDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Dubj)}(hjh]hp}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/Dubj)}(h pid_t pgidh](h)}(hhh]j)}(hpid_th]hpid_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jqDc.security_task_setpgidasbuh1hhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hpgidh]hpgid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/Dubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjDhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjDhM ubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhjDhM hjChhubj)}(hhh]h)}(h$Check if setting the pgid is allowedh]h$Check if setting the pgid is allowed}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjDhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhj8*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)}(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.chM hjEubj )}(hhh](j)}(h.``struct task_struct *p`` task being modified h](j)}(h``struct task_struct *p``h]j)}(hjBEh]hstruct task_struct *p}(hjDEhhhNhNubah}(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 hjah"]h$]h&]uh1j1hjBFhhhjTFhM' ubj{)}(hsecurity_task_getpgidh]j)}(hsecurity_task_getpgidh]hsecurity_task_getpgid}(hjgFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBFhhhjTFhM' ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]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 jiFsbc.security_task_getpgidasbuh1hhjFubj2)}(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&]noemphjjuh1jhj{Fubah}(h]h ]h"]h$]h&]jjuh1jhjBFhhhjTFhM' ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>FhhhjTFhM' ubah}(h]j9Fah ](jjeh"]h$]h&]jj)jhuh1jhjTFhM' hj;Fhhubj)}(hhh]h)}(h$Check if getting the pgid is allowedh]h$Check if getting the pgid is allowed}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hjGhhubah}(h]h ]h"]h$]h&]uh1jhj;FhhhjTFhM' ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1jhhhj8*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)}(hj'Gh]h Parameters}(hj)GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Gubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ hj!Gubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjFGh]hstruct task_struct *p}(hjHGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM( hj@Gubj2)}(hhh]h)}(htaskh]htask}(hj_GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[GhM( hj\Gubah}(h]h ]h"]h$]h&]uh1j1hj@Gubeh}(h]h ]h"]h$]h&]uh1jhj[GhM( hj=Gubah}(h]h ]h"]h$]h&]uh1j hj!Gubh)}(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* hj!Gubh)}(hRCheck permission before getting the process group identifier of the process **p**.h](hLCheck permission before getting the process group identifier of the process }(hjGhhhNhNubj)}(h**p**h]hp}(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.chM) hj!Gubh)}(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.chM, hj!Gubh)}(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- hj!Gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_task_getsid (C function)c.security_task_getsidhNtauh1hhj8*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}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.cbhM5 ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGhhhj HhM5 ubj{)}(hsecurity_task_getsidh]j)}(hsecurity_task_getsidh]hsecurity_task_getsid}(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhj HhM5 ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjah"]h$]h&]uh1j1hj8Hubh)}(hhh]j)}(h task_structh]h task_struct}(hjZHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\HmodnameN classnameNj] j` )}jc ]jf )}jY j"Hsbc.security_task_getsidasbuh1hhj8Hubj2)}(h h]h }(hjzHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8Hubj)}(hjh]hp}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4Hubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhj HhM5 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj HhM5 ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhj HhM5 hjGhhubj)}(hhh]h)}(h*Check if getting the session id is allowedh]h*Check if getting the session id is allowed}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 hjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhj HhM5 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhj8*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)}(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.chM9 hjHubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjHh]hstruct task_struct *p}(hjIhhhNhNubah}(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.chM6 hjHubj2)}(hhh]h)}(htaskh]htask}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM6 hjIubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjIhM6 hjHubah}(h]h ]h"]h$]h&]uh1j hjHubh)}(h**Description**h]j)}(hj:Ih]h Description}(hjah"]h$]h&]uh1j1hjIhhhjIhM_ ubj{)}(hsecurity_task_setniceh]j)}(hsecurity_task_setniceh]hsecurity_task_setnice}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhjIhM_ ubj)}(h!(struct task_struct *p, int nice)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubh)}(hhh]j)}(h task_structh]h task_struct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]jf )}jY jIsbc.security_task_setniceasbuh1hhjIubj2)}(h h]h }(hj3JhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hjh]h*}(hjAJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hjh]hp}(hjNJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hint niceh](j )}(hinth]hint}(hjfJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbJubj2)}(h h]h }(hjtJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbJubj)}(hniceh]hnice}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhjIhM_ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhM_ ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjIhM_ hjIhhubj)}(hhh]h)}(h/Check if setting a task's nice value is allowedh]h1Check if setting a task’s nice value 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&]uh1jhjIhhhjIhM_ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhj8*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)}(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.chMc hjJubj )}(hhh](j)}(h&``struct task_struct *p`` target 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)}(h target taskh]h target task}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM` hjKubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjKhM` hjJubj)}(h``int nice`` nice value h](j)}(h ``int nice``h]j)}(hj&Kh]hint nice}(hj(KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Kubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hj Kubj2)}(hhh]h)}(h nice valueh]h nice value}(hj?KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;KhMa hjint security_task_setioprio(struct task_struct *p, int ioprio)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.chMm ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhjKhMm ubj{)}(hsecurity_task_setioprioh]j)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhjKhMm ubj)}(h#(struct task_struct *p, int ioprio)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj.LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Lubj2)}(h h]h }(hj;LhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*Lubh)}(hhh]j)}(h task_structh]h task_struct}(hjLLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjILubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNLmodnameN classnameNj] j` )}jc ]jf )}jY jLsbc.security_task_setioprioasbuh1hhj*Lubj2)}(h h]h }(hjlLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*Lubj)}(hjh]h*}(hjzLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Lubj)}(hjh]hp}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&Lubj)}(h int ioprioh](j )}(hinth]hint}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hioprioh]hioprio}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&Lubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhMm ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhMm ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjKhMm hjKhhubj)}(hhh]h)}(h+Check if setting a task's ioprio is allowedh]h-Check if setting a task’s ioprio is allowed}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMm hjLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhMm ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1jhhhj8*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)}(hjMh]h Parameters}(hj MhhhNhNubah}(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.chMq hjMubj )}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj&Mh]hstruct task_struct *p}(hj(MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Mubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMn hj Mubj2)}(hhh]h)}(h target taskh]h target task}(hj?MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;MhMn hjah"]h$]h&]uh1j1hj&Nhhhj8NhM{ ubj{)}(hsecurity_task_getioprioh]j)}(hsecurity_task_getioprioh]hsecurity_task_getioprio}(hjKNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&Nhhhj8NhM{ ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjgNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcNubj2)}(h h]h }(hjtNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcNubh)}(hhh]j)}(h task_structh]h task_struct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]jf )}jY jMNsbc.security_task_getioprioasbuh1hhjcNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcNubj)}(hjh]hp}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Nubah}(h]h ]h"]h$]h&]jjuh1jhj&Nhhhj8NhM{ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"Nhhhj8NhM{ ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jhj8NhM{ hjNhhubj)}(hhh]h)}(h+Check if getting a task's ioprio is allowedh]h-Check if getting a task’s ioprio is allowed}(hjNhhhNhNubah}(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&]uh1jhjNhhhj8NhM{ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhj8*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)}(hj Oh]h Parameters}(hj OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjOubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj*Oh]hstruct task_struct *p}(hj,OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Oubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hj$Oubj2)}(hhh]h)}(htaskh]htask}(hjCOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?OhM| hj@Oubah}(h]h ]h"]h$]h&]uh1j1hj$Oubeh}(h]h ]h"]h$]h&]uh1jhj?OhM| hj!Oubah}(h]h ]h"]h$]h&]uh1j hjOubh)}(h**Description**h]j)}(hjeOh]h Description}(hjgOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ hjOubh)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(hj{OhhhNhNubj)}(h**p**h]hp}(hjOhhhNhNubah}(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.chM} hjOubh)}(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.chM hjOubh)}(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 hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_task_prlimit (C function)c.security_task_prlimithNtauh1hhj8*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}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhjOhM ubj{)}(hsecurity_task_prlimith]j)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjOhM ubj)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hj PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hj-PhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]hstruct}(hj;PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjHPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(hcredh]hcred}(hjYPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[PmodnameN classnameNj] j` )}jc ]jf )}jY jPsbc.security_task_prlimitasbuh1hhjPubj2)}(h h]h }(hjyPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hcredh]hcred}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hconst struct cred *tcredh](j)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(hcredh]hcred}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]juPc.security_task_prlimitasbuh1hhjPubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(htcredh]htcred}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hj8QhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4Qubj2)}(h h]h }(hjFQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4Qubj )}(hinth]hint}(hjTQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4Qubj2)}(h h]h }(hjbQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4Qubj)}(hflagsh]hflags}(hjpQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Qubeh}(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)}(h0Check if get/setting resources limits is allowedh]h0Check if get/setting resources limits is allowed}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjOhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhj8*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)}(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:283: ./security/security.chM hjQubj )}(hhh](j)}(h5``const struct cred *cred`` current task credentials h](j)}(h``const struct cred *cred``h]j)}(hjQh]hconst struct cred *cred}(hjQhhhNhNubah}(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.chM hjQubj2)}(hhh]h)}(hcurrent task credentialsh]hcurrent task credentials}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjQubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjQubj)}(h5``const struct cred *tcred`` target task credentials h](j)}(h``const struct cred *tcred``h]j)}(hjRh]hconst struct cred *tcred}(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)}(htarget task credentialsh]htarget task credentials}(hj-RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)RhM hj*Rubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhj)RhM hjQubj)}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both h](j)}(h``unsigned int flags``h]j)}(hjMRh]hunsigned int flags}(hjORhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjGRubj2)}(hhh]h)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(hjfRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbRhM hjcRubah}(h]h ]h"]h$]h&]uh1j1hjGRubeh}(h]h ]h"]h$]h&]uh1jhjbRhM hjQubeh}(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:283: ./security/security.chM hjQubh)}(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.}(hjRhhhNhNubah}(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)}(hjRh]hReturn}(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 hjQubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjRhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhj8*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}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRhhhX/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&]uh1j1hjRhhhjShM ubj{)}(hsecurity_task_setrlimith]j)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhjShM ubj)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj1ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Subj2)}(h h]h }(hj>ShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Subh)}(hhh]j)}(h task_structh]h task_struct}(hjOShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQSmodnameN classnameNj] j` )}jc ]jf )}jY jSsbc.security_task_setrlimitasbuh1hhj-Subj2)}(h h]h }(hjoShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Subj)}(hjh]h*}(hj}ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Subj)}(hjh]hp}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)Subj)}(hunsigned int resourceh](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj )}(hinth]hint}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hresourceh]hresource}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)Subj)}(hstruct rlimit *new_rlimh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubh)}(hhh]j)}(hrlimith]hrlimit}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]jkSc.security_task_setrlimitasbuh1hhjSubj2)}(h h]h }(hj/ThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hj=ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hnew_rlimh]hnew_rlim}(hjJThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)Subeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjShM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjShM ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1jhjShM hjRhhubj)}(hhh]h)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hjtThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjqThhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjShM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1jhhhj8*hNhNubj)}(hX**Parameters** ``struct task_struct *p`` target task's group leader ``unsigned int resource`` resource whose limit is being set ``struct rlimit *new_rlim`` new resource limit **Description** Check 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). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(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 hjTubj )}(hhh](j)}(h5``struct task_struct *p`` target task's group leader h](j)}(h``struct task_struct *p``h]j)}(hjTh]hstruct task_struct *p}(hjThhhNhNubah}(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 hjTubj2)}(hhh]h)}(htarget task's group leaderh]htarget task’s group leader}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjTubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjThM hjTubj)}(h<``unsigned int resource`` resource whose limit is being set h](j)}(h``unsigned int resource``h]j)}(hjTh]hunsigned int resource}(hjThhhNhNubah}(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 hjTubj2)}(hhh]h)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hjUubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjTubj)}(h/``struct rlimit *new_rlim`` new resource limit h](j)}(h``struct rlimit *new_rlim``h]j)}(hj'Uh]hstruct rlimit *new_rlim}(hj)UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Uubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!Uubj2)}(hhh]h)}(hnew resource limith]hnew resource limit}(hj@UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsignal->rlim + resource).h](h?Check permission before setting the resource limits of process }(hjxUhhhNhNubj)}(h**p**h]hp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxUubh for }(hjxUhhhNhNubj)}(h **resource**h]hresource}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxUubh to }(hjxUhhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxUubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hjxUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjTubh)}(h **Return**h]j)}(hjUh]hReturn}(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 hjTubh)}(h#Returns 0 if permission is granted.h]h#Returns 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.chM hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhj8*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}(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_setschedulerh]j)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hj%VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Vubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjVhM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjAVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Vubj2)}(h h]h }(hjNVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=Vubh)}(hhh]j)}(h task_structh]h task_struct}(hj_VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Vubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjaVmodnameN classnameNj] j` )}jc ]jf )}jY j'Vsbc.security_task_setschedulerasbuh1hhj=Vubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=Vubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Vubj)}(hjh]hp}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Vubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjVhM ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjVhM hjUhhubj)}(hhh]h)}(h.Check if setting sched policy/param is allowedh]h.Check if setting sched policy/param is allowed}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjVhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhj8*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)}(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 hjVubj )}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjWh]hstruct task_struct *p}(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.chM hjVubj2)}(hhh]h)}(h target taskh]h target task}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM hjWubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjVubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjVubh)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of process }(hjUWhhhNhNubj)}(h**p**h]hp}(hj]WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUWubh.}(hjUWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjVubh)}(h **Return**h]j)}(hjxWh]hReturn}(hjzWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvWubah}(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.}(hjWhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhj8*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}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWhhhX/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&]uh1j1hjWhhhjWhM ubj{)}(hsecurity_task_getschedulerh]j)}(hsecurity_task_getschedulerh]hsecurity_task_getscheduler}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjWhM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubh)}(hhh]j)}(h task_structh]h task_struct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jf )}jY jWsbc.security_task_getschedulerasbuh1hhjWubj2)}(h h]h }(hj8XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hjFXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hjh]hp}(hjSXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(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+Check if getting scheduling info is allowedh]h+Check if getting scheduling info is allowed}(hj|XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjyXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhj8*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)}(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 task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjXh]hstruct task_struct *p}(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 target taskh]h target task}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hjXubah}(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)}(hKCheck permission before obtaining scheduling information for process **p**.h](hECheck permission before obtaining scheduling information for process }(hjYhhhNhNubj)}(h**p**h]hp}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh.}(hjYhhhNhNubeh}(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)}(hj1Yh]hReturn}(hj3YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Yubah}(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.}(hjGYhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_task_movememory (C function)c.security_task_movememoryhNtauh1hhj8*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}(hjvYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrYhhhX/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&]uh1j1hjrYhhhjYhM ubj{)}(hsecurity_task_movememoryh]j)}(hsecurity_task_movememoryh]hsecurity_task_movememory}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrYhhhjYhM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.security_task_movememoryasbuh1hhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hjh]hp}(hj ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhjrYhhhjYhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnYhhhjYhM ubah}(h]jiYah ](jjeh"]h$]h&]jj)jhuh1jhjYhM hjkYhhubj)}(hhh]h)}(h!Check if moving memory is allowedh]h!Check if moving memory is allowed}(hj5ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2Zhhubah}(h]h ]h"]h$]h&]uh1jhjkYhhhjYhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMZjjMZjjjuh1jhhhj8*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)}(hjWZh]h Parameters}(hjYZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQZubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjvZh]hstruct task_struct *p}(hjxZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjpZubj2)}(hhh]h)}(htaskh]htask}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM hjZubah}(h]h ]h"]h$]h&]uh1j1hjpZubeh}(h]h ]h"]h$]h&]uh1jhjZhM hjmZubah}(h]h ]h"]h$]h&]uh1j hjQZubh)}(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 hjQZubh)}(h=Check permission before moving memory owned by process **p**.h](h7Check permission before moving memory owned by process }(hjZhhhNhNubj)}(h**p**h]hp}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQZubh)}(h **Return**h]j)}(hjZh]hReturn}(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 hjQZubh)}(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 hjQZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_task_kill (C function)c.security_task_killhNtauh1hhj8*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}(hjP[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL[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)}(hjh]hstruct}(hjl[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh[ubj2)}(h h]h }(hjy[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjh[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 jR[sbc.security_task_killasbuh1hhjh[ubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjh[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh[ubj)}(hjh]hp}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd[ubj)}(hstruct kernel_siginfo *infoh](j)}(hjh]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 ]j[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}(hj4\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd[ubj)}(hint sigh](j )}(hinth]hint}(hjM\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjI\ubj2)}(h h]h }(hj[\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjI\ubj)}(hsigh]hsig}(hji\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd[ubj)}(hconst struct cred *credh](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)}(hjh]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 ]j[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&]noemphjjuh1jhjd[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&]jjjj6]jj6]jjjuh1jhhhj8*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}(hjB]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)}(hj_]h]hstruct task_struct *p}(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:283: ./security/security.chM hjY]ubj2)}(hhh]h)}(htarget processh]htarget process}(hjx]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt]hM hju]ubah}(h]h ]h"]h$]h&]uh1j1hjY]ubeh}(h]h ]h"]h$]h&]uh1jhjt]hM hjV]ubj)}(h3``struct kernel_siginfo *info`` signal information h](j)}(h``struct kernel_siginfo *info``h]j)}(hj]h]hstruct kernel_siginfo *info}(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)}(hsignal informationh]hsignal information}(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 hjV]ubj)}(h``int sig`` signal value 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 hj]ubj2)}(hhh]h)}(h signal valueh]h signal value}(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 hjV]ubj)}(hR``const struct cred *cred`` credentials of the signal sender, NULL if **current** h](j)}(h``const struct cred *cred``h]j)}(hj ^h]hconst struct cred *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.chM hj^ubj2)}(hhh]h)}(h5credentials of the signal sender, NULL if **current**h](h*credentials of the signal sender, NULL if }(hj#^hhhNhNubj)}(h **current**h]hcurrent}(hj+^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#^ubeh}(h]h ]h"]h$]h&]uh1hhj^hM hj ^ubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hjV]ubeh}(h]h ]h"]h$]h&]uh1j hj:]ubh)}(h**Description**h]j)}(hjS^h]h Description}(hjU^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ^ubah}(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 }(hji^hhhNhNubj)}(h**sig**h]hsig}(hjq^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji^ubh to }(hji^hhhNhNubj)}(h**p**h]hp}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji^ubh. }(hji^hhhNhNubj)}(h**info**h]hinfo}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji^ubhN can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If }(hji^hhhNhNubj)}(h**info**h]hinfo}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji^ubh 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.}(hji^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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_task_prctl (C function)c.security_task_prctlhNtauh1hhj8*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}(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_prctlh]j)}(hsecurity_task_prctlh]hsecurity_task_prctl}(hj(_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj_hhhj_hM ubj)}(h\(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j)}(h int optionh](j )}(hinth]hint}(hjD_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@_ubj2)}(h h]h }(hjR_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@_ubj)}(hoptionh]hoption}(hj`_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<_ubj)}(hunsigned long arg2h](j )}(hunsignedh]hunsigned}(hjy_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhju_ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hju_ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhju_ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hju_ubj)}(harg2h]harg2}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<_ubj)}(hunsigned long arg3h](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)}(harg3h]harg3}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<_ubj)}(hunsigned long arg4h](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}(hj7`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hjE`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(harg4h]harg4}(hjS`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<_ubj)}(hunsigned long arg5h](j )}(hunsignedh]hunsigned}(hjl`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjh`ubj2)}(h h]h }(hjz`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjh`ubj )}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjh`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjh`ubj)}(harg5h]harg5}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh`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)}(hCheck if a prctl op is allowedh]hCheck if a prctl 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&]uh1jhj^hhhj_hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1jhhhj8*hNhNubj)}(hX**Parameters** ``int option`` operation ``unsigned long arg2`` argument ``unsigned long arg3`` argument ``unsigned long arg4`` argument ``unsigned long arg5`` argument **Description** Check permission before performing a process control operation on the current process. **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)}(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``int option`` operation h](j)}(h``int option``h]j)}(hjah]h int option}(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)}(h operationh]h operation}(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)}(h ``unsigned long arg2`` argument h](j)}(h``unsigned long arg2``h]j)}(hjHah]hunsigned long arg2}(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)}(hargumenth]hargument}(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 ``unsigned long arg3`` argument h](j)}(h``unsigned long arg3``h]j)}(hjah]hunsigned long arg3}(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)}(hargumenth]hargument}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j1hj{aubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubj)}(h ``unsigned long arg4`` argument h](j)}(h``unsigned long arg4``h]j)}(hjah]hunsigned long arg4}(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)}(hargumenth]hargument}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubj)}(h ``unsigned long arg5`` argument h](j)}(h``unsigned long arg5``h]j)}(hjah]hunsigned long arg5}(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)}(hargumenth]hargument}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM hj bubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjbhM hjaubeh}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h**Description**h]j)}(hj.bh]h Description}(hj0bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,bubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubh)}(hVCheck permission before performing a process control operation on the current process.h]hVCheck permission before performing a process control operation on the current process.}(hjDbhhhNhNubah}(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)}(hjUbh]hReturn}(hjWbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubh)}(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.}(hjkbhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_task_to_inode (C function)c.security_task_to_inodehNtauh1hhj8*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}(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_to_inodeh]j)}(hsecurity_task_to_inodeh]hsecurity_task_to_inode}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbhhhjbhM ubj)}(h,(struct task_struct *p, struct inode *inode)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(hhh]j)}(h task_structh]h task_struct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY jbsbc.security_task_to_inodeasbuh1hhjbubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hj#chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]hp}(hj0chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjHchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDcubj2)}(h h]h }(hjUchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDcubh)}(hhh]j)}(hinodeh]hinode}(hjfchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjccubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhcmodnameN classnameNj] j` )}jc ]jcc.security_task_to_inodeasbuh1hhjDcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDcubj)}(hinodeh]hinode}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDcubeh}(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-Set the security attributes of a task's inodeh]h/Set the security attributes of a task’s inode}(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&]uh1jhjbhhhjbhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhj8*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)}(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 task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj dh]hstruct task_struct *p}(hj dhhhNhNubah}(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)}(htaskh]htask}(hj#dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hj dubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjdubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjCdh]hstruct inode *inode}(hjEdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj=dubj2)}(hhh]h)}(hinodeh]hinode}(hj\dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXdhM hjYdubah}(h]h ]h"]h$]h&]uh1j1hj=dubeh}(h]h ]h"]h$]h&]uh1jhjXdhM hjdubeh}(h]h ]h"]h$]h&]uh1j hjcubh)}(h**Description**h]j)}(hj~dh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|dubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjcubh)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_create_user_ns (C function)c.security_create_user_nshNtauh1hhj8*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}(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjdhM ubj{)}(hsecurity_create_user_nsh]j)}(hsecurity_create_user_nsh]hsecurity_create_user_ns}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjdhM ubj)}(h(const struct cred *cred)h]j)}(hconst struct cred *credh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hj ehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hj(ehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(hcredh]hcred}(hj9ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6eubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;emodnameN classnameNj] j` )}jc ]jf )}jY jdsbc.security_create_user_nsasbuh1hhjdubj2)}(h h]h }(hjYehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjgehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hcredh]hcred}(hjtehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubah}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhM ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjdhM hjdhhubj)}(hhh]h)}(h)Check if creating a new userns is allowedh]h)Check if creating a new userns is allowed}(hjehhhNhNubah}(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&]uh1jhjdhhhjdhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1jhhhj8*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)}(hjeh]h Parameters}(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 hjeubj )}(hhh]j)}(h+``const struct cred *cred`` prepared creds h](j)}(h``const struct cred *cred``h]j)}(hjeh]hconst struct cred *cred}(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)}(hprepared credsh]hprepared creds}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjeubah}(h]h ]h"]h$]h&]uh1j hjeubh)}(h**Description**h]j)}(hjfh]h Description}(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 hjeubh)}(h8Check permission prior to creating a new user namespace.h]h8Check permission prior to creating a new user namespace.}(hj0fhhhNhNubah}(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)}(hjAfh]hReturn}(hjCfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?fubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubh)}(h2Returns 0 if successful, otherwise < 0 error code.h]h2Returns 0 if successful, otherwise < 0 error code.}(hjWfhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_ipc_permission (C function)c.security_ipc_permissionhNtauh1hhj8*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}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfhhhjfhM" ubj{)}(hsecurity_ipc_permissionh]j)}(hsecurity_ipc_permissionh]hsecurity_ipc_permission}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfhhhjfhM" ubj)}(h((struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf )}jY jfsbc.security_ipc_permissionasbuh1hhjfubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hipcph]hipcp}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(h short flagh](j )}(hshorth]hshort}(hj5ghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1gubj2)}(h h]h }(hjCghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1gubj)}(hflagh]hflag}(hjQghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjfhM" ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~fhhhjfhM" ubah}(h]jyfah ](jjeh"]h$]h&]jj)jhuh1jhjfhM" hj{fhhubj)}(hhh]h)}(h#Check if sysv ipc access is allowedh]h#Check if sysv ipc access is allowed}(hj{ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hjxghhubah}(h]h ]h"]h$]h&]uh1jhj{fhhhjfhM" ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhj8*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)}(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)}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjgh]hstruct kern_ipc_perm *ipcp}(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)}(hipc permission structureh]hipc permission structure}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM# hjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghM# hjgubj)}(h%``short flag`` requested permissions h](j)}(h``short flag``h]j)}(hjgh]h short flag}(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)}(hrequested permissionsh]hrequested permissions}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhM$ hj hubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhj hhM$ hjgubeh}(h]h ]h"]h$]h&]uh1j hjgubh)}(h**Description**h]j)}(hj0hh]h Description}(hj2hhhhNhNubah}(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)}(h$Check permissions for access to IPC.h]h$Check permissions for access to IPC.}(hjFhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hjgubh)}(h **Return**h]j)}(hjWhh]hReturn}(hjYhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hjgubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjmhhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_ipc_getlsmprop (C function)c.security_ipc_getlsmprophNtauh1hhj8*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}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 ubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhhjhhM0 ubj{)}(hsecurity_ipc_getlsmproph]j)}(hsecurity_ipc_getlsmproph]hsecurity_ipc_getlsmprop}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhhjhhM0 ubj)}(h3(struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h](j)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jf )}jY jhsbc.security_ipc_getlsmpropasbuh1hhjhubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hj%ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hipcph]hipcp}(hj2ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hstruct lsm_prop *proph](j)}(hjh]hstruct}(hjKihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGiubj2)}(h h]h }(hjXihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGiubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hjiihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkimodnameN classnameNj] j` )}jc ]jic.security_ipc_getlsmpropasbuh1hhjGiubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGiubj)}(hproph]hprop}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjhhM0 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhhM0 ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jhjhhM0 hjhhhubj)}(hhh]h)}(h Get the sysv ipc object LSM datah]h Get the sysv ipc object LSM data}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhM0 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jhhhj8*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)}(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.chM4 hjiubj )}(hhh](j)}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj jh]hstruct kern_ipc_perm *ipcp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj jubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1 hjjubj2)}(hhh]h)}(hipc permission structureh]hipc permission structure}(hj&jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"jhM1 hj#jubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhj"jhM1 hjjubj)}(h5``struct lsm_prop *prop`` pointer to lsm information h](j)}(h``struct lsm_prop *prop``h]j)}(hjFjh]hstruct lsm_prop *prop}(hjHjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 hj@jubj2)}(hhh]h)}(hpointer to lsm informationh]hpointer to lsm information}(hj_jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[jhM2 hj\jubah}(h]h ]h"]h$]h&]uh1j1hj@jubeh}(h]h ]h"]h$]h&]uh1jhj[jhM2 hjjubeh}(h]h ]h"]h$]h&]uh1j hjiubh)}(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.chM4 hjiubh)}(h7Get the lsm information associated with the ipc object.h]h7Get the lsm information associated with the ipc object.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3 hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_msg_msg_alloc (C function)c.security_msg_msg_allochNtauh1hhj8*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}(hjjhhhNhNubah}(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 }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhjjhM> ubj{)}(hsecurity_msg_msg_alloch]j)}(hsecurity_msg_msg_alloch]hsecurity_msg_msg_alloc}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhjjhM> ubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hj!khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#kmodnameN classnameNj] j` )}jc ]jf )}jY jjsbc.security_msg_msg_allocasbuh1hhjjubj2)}(h h]h }(hjAkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjOkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hmsgh]hmsg}(hj\khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(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$Allocate a sysv ipc message LSM blobh]h$Allocate a sysv ipc message LSM blob}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhM> ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhj8*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)}(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:283: ./security/security.chMB hjkubj )}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjkh]hstruct msg_msg *msg}(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)}(hmessage structureh]hmessage structure}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM? hjkubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhM? hjkubah}(h]h ]h"]h$]h&]uh1j hjkubh)}(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.chMA hjkubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ hjkubh)}(h **Return**h]j)}(hj)lh]hReturn}(hj+lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'lubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC hjkubh)}(h?Return 0 if operation was successful and permission is granted.h]h?Return 0 if operation was successful and permission is granted.}(hj?lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhj8*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}(hjnlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS ubj2)}(h h]h }(hj}lhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjlhhhj|lhMS ubj{)}(hsecurity_msg_msg_freeh]j)}(hsecurity_msg_msg_freeh]hsecurity_msg_msg_free}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjlhhhj|lhMS ubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jf )}jY jlsbc.security_msg_msg_freeasbuh1hhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hmsgh]hmsg}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubah}(h]h ]h"]h$]h&]jjuh1jhjjlhhhj|lhMS ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjflhhhj|lhMS ubah}(h]jalah ](jjeh"]h$]h&]jj)jhuh1jhj|lhMS hjclhhubj)}(hhh]h)}(h Free a sysv ipc message LSM blobh]h Free a sysv ipc message LSM blob}(hj.mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS hj+mhhubah}(h]h ]h"]h$]h&]uh1jhjclhhhj|lhMS ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFmjjFmjjjuh1jhhhj8*hNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.h](h)}(h**Parameters**h]j)}(hjPmh]h Parameters}(hjRmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNmubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW hjJmubj )}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjomh]hstruct msg_msg *msg}(hjqmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjimubj2)}(hhh]h)}(hmessage structureh]hmessage structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMT hjmubah}(h]h ]h"]h$]h&]uh1j1hjimubeh}(h]h ]h"]h$]h&]uh1jhjmhMT hjfmubah}(h]h ]h"]h$]h&]uh1j hjJmubh)}(h**Description**h]j)}(hjmh]h Description}(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.chMV hjJmubh)}(h3Deallocate the security structure for this message.h]h3Deallocate the security structure for this message.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjJmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhj8*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}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmhhhjmhM` ubj{)}(hsecurity_msg_queue_alloch]j)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhjmhM` ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hj,nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(nubj2)}(h h]h }(hj9nhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(nubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjJnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLnmodnameN classnameNj] j` )}jc ]jf )}jY jnsbc.security_msg_queue_allocasbuh1hhj(nubj2)}(h h]h }(hjjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(nubj)}(hjh]h*}(hjxnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(nubj)}(hmsqh]hmsq}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$nubah}(h]h ]h"]h$]h&]jjuh1jhjmhhhjmhM` ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjmhM` ubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjmhM` hjmhhubj)}(hhh]h)}(h&Allocate a sysv ipc msg queue LSM blobh]h&Allocate a sysv ipc msg queue LSM blob}(hjnhhhNhNubah}(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&]uh1jhjmhhhjmhM` ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jhhhj8*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)}(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.chMd hjnubj )}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjnh]hstruct kern_ipc_perm *msq}(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)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMa hjoubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjohMa hjnubah}(h]h ]h"]h$]h&]uh1j hjnubh)}(h**Description**h]j)}(hj+oh]h Description}(hj-ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)oubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hjnubh)}(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 }(hjAohhhNhNubj)}(h**msg**h]hmsg}(hjIohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAoubhP. The security field is initialized to NULL when the structure is first created.}(hjAohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hjnubh)}(h **Return**h]j)}(hjdoh]hReturn}(hjfohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hjnubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjzohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMf hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_msg_queue_free (C function)c.security_msg_queue_freehNtauh1hhj8*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}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjohMu ubj{)}(hsecurity_msg_queue_freeh]j)}(hsecurity_msg_queue_freeh]hsecurity_msg_queue_free}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjohMu ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jf )}jY josbc.security_msg_queue_freeasbuh1hhjoubj2)}(h h]h }(hj$phhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hj2phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hmsqh]hmsq}(hj?phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjohMu ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohMu ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjohMu hjohhubj)}(hhh]h)}(h"Free a sysv ipc msg queue LSM blobh]h"Free a sysv ipc msg queue LSM blob}(hjiphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu hjfphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMu ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhj8*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)}(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.chMy hjpubj )}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjph]hstruct kern_ipc_perm *msq}(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.chMv hjpubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMv hjpubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjphMv hjpubah}(h]h ]h"]h$]h&]uh1j hjpubh)}(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.chMx hjpubh)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjphhhNhNubj)}(h**perm->security**h]hperm->security}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh for the message queue.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhj8*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}(hjah"]h$]h&]uh1j1hj8qhhhjJqhM ubj{)}(hsecurity_msg_queue_associateh]j)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hj]qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8qhhhjJqhM ubj)}(h'(struct kern_ipc_perm *msq, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjyqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuqubh)}(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 j_qsbc.security_msg_queue_associateasbuh1hhjuqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuqubj)}(hmsqh]hmsq}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqqubj)}(h int msqflgh](j )}(hinth]hint}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hmsqflgh]hmsqflg}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqqubeh}(h]h ]h"]h$]h&]jjuh1jhj8qhhhjJqhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4qhhhjJqhM ubah}(h]j/qah ](jjeh"]h$]h&]jj)jhuh1jhjJqhM hj1qhhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hj1rhhhNhNubah}(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&]uh1jhj1qhhhjJqhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIrjjIrjjjuh1jhhhj8*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)}(hjSrh]h Parameters}(hjUrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjMrubj )}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjrrh]hstruct kern_ipc_perm *msq}(hjtrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjprubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjlrubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM hjrubah}(h]h ]h"]h$]h&]uh1j1hjlrubeh}(h]h ]h"]h$]h&]uh1jhjrhM hjirubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjrh]h int msqflg}(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)}(hoperation flagsh]hoperation flags}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM hjrubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhM hjirubeh}(h]h ]h"]h$]h&]uh1j hjMrubh)}(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.chM hjMrubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjMrubh)}(h **Return**h]j)}(hj sh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj subah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjMrubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj#shhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjMrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhj8*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}(hjRshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjashhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNshhhj`shM ubj{)}(hsecurity_msg_queue_msgctlh]j)}(hsecurity_msg_queue_msgctlh]hsecurity_msg_queue_msgctl}(hjsshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjosubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNshhhj`shM ubj)}(h$(struct kern_ipc_perm *msq, int cmd)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]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 jussbc.security_msg_queue_msgctlasbuh1hhjsubj2)}(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&]noemphjjuh1jhjsubj)}(hint cmdh](j )}(hinth]hint}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hcmdh]hcmd}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhjNshhhj`shM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJshhhj`shM ubah}(h]jEsah ](jjeh"]h$]h&]jj)jhuh1jhj`shM hjGshhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjGthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjDthhubah}(h]h ]h"]h$]h&]uh1jhjGshhhj`shM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_tjj_tjjjuh1jhhhj8*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)}(hjith]h Parameters}(hjkthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjctubj )}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjth]hstruct kern_ipc_perm *msq}(hjthhhNhNubah}(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 hjtubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjtubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjthM hjtubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hjth]hint cmd}(hjthhhNhNubah}(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 hjtubj2)}(hhh]h)}(h operationh]h operation}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjtubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjthM hjtubeh}(h]h ]h"]h$]h&]uh1j hjctubh)}(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.chM hjctubh)}(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 }(hjuhhhNhNubj)}(h**cmd**h]hcmd}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh: is to be performed on the message queue with permissions.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjctubh)}(h **Return**h]j)}(hj5uh]hReturn}(hj7uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3uubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjctubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjKuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjctubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_msg_queue_msgsnd (C function)c.security_msg_queue_msgsndhNtauh1hhj8*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}(hjzuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvuhhhX/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&]uh1j1hjvuhhhjuhM ubj{)}(hsecurity_msg_queue_msgsndh]j)}(hsecurity_msg_queue_msgsndh]hsecurity_msg_queue_msgsnd}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvuhhhjuhM ubj)}(h<(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjumodnameN classnameNj] j` )}jc ]jf )}jY jusbc.security_msg_queue_msgsndasbuh1hhjuubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hmsqh]hmsq}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hj)vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%vubj2)}(h h]h }(hj6vhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%vubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjGvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjIvmodnameN classnameNj] j` )}jc ]juc.security_msg_queue_msgsndasbuh1hhj%vubj2)}(h h]h }(hjevhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%vubj)}(hjh]h*}(hjsvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%vubj)}(hmsgh]hmsg}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(h int msqflgh](j )}(hinth]hint}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hmsqflgh]hmsqflg}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhjvuhhhjuhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjruhhhjuhM ubah}(h]jmuah ](jjeh"]h$]h&]jj)jhuh1jhjuhM hjouhhubj)}(hhh]h)}(h.Check if sending a sysv ipc message is allowedh]h.Check if sending a sysv ipc message is allowed}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjvhhubah}(h]h ]h"]h$]h&]uh1jhjouhhhjuhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jhhhj8*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)}(hjwh]h Parameters}(hjwhhhNhNubah}(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 hjvubj )}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj wh]hstruct kern_ipc_perm *msq}(hj"whhhNhNubah}(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 hjwubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj9whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5whM hj6wubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhj5whM hjwubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hjYwh]hstruct msg_msg *msg}(hj[whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjSwubj2)}(hhh]h)}(hmessageh]hmessage}(hjrwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnwhM hjowubah}(h]h ]h"]h$]h&]uh1j1hjSwubeh}(h]h ]h"]h$]h&]uh1jhjnwhM hjwubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjwh]h int msqflg}(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.chM hjwubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM hjwubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhM hjwubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjvubh)}(hsCheck permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**.h](h#Check permission before a message, }(hjwhhhNhNubj)}(h**msg**h]hmsg}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubhA, is enqueued on the message queue with permissions specified in }(hjwhhhNhNubj)}(h**msq**h]hmsq}(hjwhhhNhNubah}(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.chM hjvubh)}(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 hjvubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj.xhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhj8*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]xhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjlxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYxhhhjkxhM ubj{)}(hsecurity_msg_queue_msgrcvh]j)}(hsecurity_msg_queue_msgrcvh]hsecurity_msg_queue_msgrcv}(hj~xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYxhhhjkxhM 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)}(hjh]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 ]jf )}jY jxsbc.security_msg_queue_msgrcvasbuh1hhjxubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hmsqh]hmsq}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hj*yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'yubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,ymodnameN classnameNj] j` )}jc ]jxc.security_msg_queue_msgrcvasbuh1hhjyubj2)}(h h]h }(hjHyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjVyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hmsgh]hmsg}(hjcyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct task_struct *targeth](j)}(hjh]hstruct}(hj|yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxyubh)}(hhh]j)}(h task_structh]h task_struct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]jxc.security_msg_queue_msgrcvasbuh1hhjxyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxyubj)}(htargeth]htarget}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h long typeh](j )}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(htypeh]htype}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hint modeh](j )}(hinth]hint}(hj!zhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hj/zhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hmodeh]hmode}(hj=zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjYxhhhjkxhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUxhhhjkxhM ubah}(h]jPxah ](jjeh"]h$]h&]jj)jhuh1jhjkxhM hjRxhhubj)}(hhh]h)}(h,Check if receiving a sysv ipc msg is allowedh]h,Check if receiving a sysv ipc msg is allowed}(hjgzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdzhhubah}(h]h ]h"]h$]h&]uh1jhjRxhhhjkxhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhj8*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)}(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)}(hjzh]hstruct msg_msg *msg}(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)}(hmessageh]hmessage}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM hjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhM hjzubj)}(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}(hj3{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/{hM hj0{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj/{hM hjzubj)}(h(``long type`` type of message requested h](j)}(h ``long type``h]j)}(hjS{h]h long type}(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)}(htype of message requestedh]htype of message requested}(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 hjzubj)}(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 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 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)}(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, }(hj{hhhNhNubj)}(h**msg**h]hmsg}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh), is removed from the message queue. The }(hj{hhhNhNubj)}(h **target**h]htarget}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh 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).}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_shm_alloc (C function)c.security_shm_allochNtauh1hhj8*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}(hjW|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjS|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjf|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjS|hhhje|hM ubj{)}(hsecurity_shm_alloch]j)}(hsecurity_shm_alloch]hsecurity_shm_alloc}(hjx|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjS|hhhje|hM ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hjh]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 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 jz|sbc.security_shm_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)}(hshph]hshp}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubah}(h]h ]h"]h$]h&]jjuh1jhjS|hhhje|hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjO|hhhje|hM ubah}(h]jJ|ah ](jjeh"]h$]h&]jj)jhuh1jhje|hM hjL|hhubj)}(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&]uh1jhjL|hhhje|hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/}jj/}jjjuh1jhhhj8*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)}(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 *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjX}h]hstruct kern_ipc_perm *shp}(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}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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3}ubh)}(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 }(hj}hhhNhNubj)}(h**shp**h]hshp}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh` security field. The security field is initialized to NULL when the structure is first created.}(hj}hhhNhNubeh}(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)}(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 hj3}ubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and 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 hj3}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_shm_free (C function)c.security_shm_freehNtauh1hhj8*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}(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_shm_freeh]j)}(hsecurity_shm_freeh]hsecurity_shm_free}(hj2~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj ~hhhj~hM ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hjh]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)}(h kern_ipc_permh]h kern_ipc_perm}(hjl~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjn~modnameN classnameNj] j` )}jc ]jf )}jY j4~sbc.security_shm_freeasbuh1hhjJ~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)}(hshph]hshp}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF~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)}(hFree a sysv shm LSM blobh]hFree 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&]uh1jhj~hhhj~hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhj8*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)}(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 *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 hj ubj2)}(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&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM hj ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubh)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hjchhhNhNubj)}(h**perm->security**h]hperm->security}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh for the memory segment.}(hjchhhNhNubeh}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_shm_associate (C function)c.security_shm_associatehNtauh1hhj8*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}(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_associateh]j)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hjh]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 jsbc.security_shm_associateasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int shmflgh](j )}(hinth]hint}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hshmflgh]hshmflg}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(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 a sysv shm operation is allowedh]h(Check if a sysv shm 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&]jjjjjjjjjuh1jhhhj8*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)}(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&]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``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 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 hjрubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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.}(hjdhhhNhNubah}(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)}(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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjȁhM ubj{)}(hsecurity_shm_shmctlh]j)}(hsecurity_shm_shmctlh]hsecurity_shm_shmctl}(hjہhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjׁubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjȁhM ubj)}(h$(struct kern_ipc_perm *shp, int cmd)h](j)}(hstruct kern_ipc_perm *shph](j)}(hjh]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_shm_shmctlasbuh1hhjubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint cmdh](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(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 shm operation is allowedh]h(Check if a sysv shm 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ǂjjjuh1jhhhj8*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)}(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 *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}(hj hhhNhNubah}(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}(hjBhhhNhNubah}(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)}(hjdh]h Description}(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 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 }(hjzhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhD is to be performed on the shared memory region with permissions in }(hjzhhhNhNubj)}(h**shp**h]hshp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh.}(hjzhhhNhNubeh}(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.chMhj˂ubh)}(h"Return 0 if permission is granted.h]h"Return 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_shm_shmat (C function)c.security_shm_shmathNtauh1hhj8*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.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hsecurity_shm_shmath]j)}(hsecurity_shm_shmath]hsecurity_shm_shmat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h=(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hj1hhhNhNubah}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_shm_shmatasbuh1hhj-ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hchar __user *shmaddrh](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 }(hjÄhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjфhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshmaddrh]hshmaddr}(hjބhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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}(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/Check if a sysv shm attach operation is allowedh]h/Check if a sysv shm attach 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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhj8*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)}(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.chM hjYubj )}(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}(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 hjxubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhM hjuubj)}(h<``char __user *shmaddr`` address of memory region to attach h](j)}(h``char __user *shmaddr``h]j)}(hjh]hchar __user *shmaddr}(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"address of memory region to attachh]h"address of memory region to attach}(hjЅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̅hM hjͅubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj̅hM hjuubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjuubeh}(h]h ]h"]h$]h&]uh1j hjYubh)}(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.chMhjYubh)}(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 }(hjAhhhNhNubj)}(h**shp**h]hshp}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubhS to the data segment of the calling process. The attaching address is specified by }(hjAhhhNhNubj)}(h **shmaddr**h]hshmaddr}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjYubh)}(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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sem_alloc (C function)c.security_sem_allochNtauh1hhj8*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}(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_sem_alloch]j)}(hsecurity_sem_alloch]hsecurity_sem_alloc}(hj܆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؆ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjɆhMubj)}(h(struct kern_ipc_perm *sma)h]j)}(hstruct kern_ipc_perm *smah](j)}(hjh]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_allocasbuh1hhjubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(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"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.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjɆhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 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.chMhjubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(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:283: ./security/security.chMhjubh)}(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 }(hj hhhNhNubj)}(h**sma**h]hsma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh_ security field. The security field is initialized to NULL when the structure is first created.}(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)}(hj0h]hReturn}(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.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.}(hjFhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sem_free (C function)c.security_sem_freehNtauh1hhj8*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}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhhhjhM0ubj{)}(hsecurity_sem_freeh]j)}(hsecurity_sem_freeh]hsecurity_sem_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjhM0ubj)}(h(struct kern_ipc_perm *sma)h]j)}(hstruct kern_ipc_perm *smah](j)}(hjh]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_freeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhM0ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jhjhM0hjjhhubj)}(hhh]h)}(hFree a sysv semaphore LSM blobh]hFree a sysv semaphore LSM blob}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hj2hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhj8*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)}(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.chM4hjQubj )}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjvh]hstruct kern_ipc_perm *sma}(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.chM1hjpubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjmubah}(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.chM3hjQubh)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hjljhhhNhNubj)}(h**sma->security**h]h sma->security}(hjωhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjljubh for the semaphore.}(hjljhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_sem_associate (C function)c.security_sem_associatehNtauh1hhj8*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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM=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&]jjuh1jzhjhhhjhM=ubj)}(h'(struct kern_ipc_perm *sma, int semflg)h](j)}(hstruct kern_ipc_perm *smah](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY j+sbc.security_sem_associateasbuh1hhjAubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h int semflgh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjŊhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsemflgh]hsemflg}(hjӊhhhNhNubah}(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.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&]jjjjjjjjjuh1jhhhj8*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)}(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.chMAhjubj )}(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>hj8ubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM>hjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM>hj5ubj)}(h``int semflg`` operation flags h](j)}(h``int semflg``h]j)}(hjwh]h int semflg}(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.chM?hjqubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhM?hj5ubeh}(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 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.}(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)}(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.chMDhjubh)}(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.chMEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhj,hMMubj{)}(hsecurity_sem_semctlh]j)}(hsecurity_sem_semctlh]hsecurity_sem_semctl}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj,hMMubj)}(h$(struct kern_ipc_perm *sma, int cmd)h](j)}(hstruct kern_ipc_perm *smah](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj{modnameN classnameNj] j` )}jc ]jf )}jY jAsbc.security_sem_semctlasbuh1hhjWubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hint cmdh](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)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɌubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj,hMMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj,hMMhjhhubj)}(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.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1jhhhj8*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)}(hj5h]h Parameters}(hj7hhhNhNubah}(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.chMQhj/ubj )}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjTh]hstruct kern_ipc_perm *sma}(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.chMNhjNubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMNhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMNhjKubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hjh]hint 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.chMOhjubj2)}(hhh]h)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjKubeh}(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.chMQhj/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 }(hjލhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjލubh% is to be performed on the semaphore.}(hjލhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhj/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.chMShj/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.chMThj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sem_semop (C function)c.security_sem_semophNtauh1hhj8*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}(hjFhhhNhNubah}(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 }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjThM\ubj{)}(hsecurity_sem_semoph]j)}(hsecurity_sem_semoph]hsecurity_sem_semop}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjThM\ubj)}(hK(struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter)h](j)}(hstruct kern_ipc_perm *smah](j)}(hjh]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 jisbc.security_sem_semopasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjώhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hj܎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hstruct sembuf *sopsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsembufh]hsembuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_sem_semopasbuh1hhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsopsh]hsops}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hunsigned nsopsh](j )}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hnsopsh]hnsops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(h int alterh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(halterh]halter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThM\ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhjThM\hj;hhubj)}(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\hjݏhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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&]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&]uh1hhj6hM]hj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hM]hjubj)}(h.``struct sembuf *sops`` operations to perform h](j)}(h``struct sembuf *sops``h]j)}(hjZh]hstruct sembuf *sops}(hj\hhhNhNubah}(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^hjTubj2)}(hhh]h)}(hoperations to performh]hoperations to perform}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohM^hjpubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjohM^hjubj)}(h(``unsigned nsops`` number of operations h](j)}(h``unsigned nsops``h]j)}(hjh]hunsigned nsops}(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)}(hnumber of operationsh]hnumber of operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(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&]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$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&]uh1j1hjƐubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubeh}(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.chMbhjubh)}(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 }(hjhhhNhNubj)}(h **alter**h]halter}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 flag is nonzero, the semaphore set may be modified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjubh)}(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:283: ./security/security.chMdhjubh)}(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.chMehjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_getselfattr (C function)c.security_getselfattrhNtauh1hhj8*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}(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_getselfattrh]j)}(hsecurity_getselfattrh]hsecurity_getselfattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hM(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j)}(hunsigned int attrh](j )}(hunsignedh]hunsigned}(hj‘hhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_ctx __user *uctxh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_getselfattrasbuh1hhjubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh__user}(hjhhhNhNubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huctxh]huctx}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 __user *sizeh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jMc.security_getselfattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh__user}(hjhhhNhNubj2)}(h h]h }(hjʒhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjؒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 ]jMc.security_getselfattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(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]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjzhhubj)}(hhh]h)}(h-Read an LSM attribute of the current process.h]h-Read an LSM attribute of the current process.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhj8*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)}(hjyh]h Parameters}(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.chMhjsubj )}(hhh](j)}(h0``unsigned int attr`` which attribute to return 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 returnh]hwhich attribute to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hjѓh]hstruct lsm_ctx __user *uctx}(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)}(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&]uh1jhjhMhjubj)}(hP``u32 __user *size`` pointer to the size of space available to receive the data h](j)}(h``u32 __user *size``h]j)}(hj h]hu32 __user *size}(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)}(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&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hjCh]h u32 flags}(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)}(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}(hjdhhhNhNubah}(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.chMhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(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 }(hjhhhNhNubj)}(h**uctx**h]huctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK can be used to get both the number of attributes and the size of the data.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(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. }(hjȔhhhNhNubj)}(h**size**h]hsize}(hjДhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȔubh, is reset to the total size of the data. If }(hjȔhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȔubh8 is insufficient to contain the data -E2BIG is returned.}(hjȔhhhNhNubeh}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_setselfattr (C function)c.security_setselfattrhNtauh1hhj8*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}(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_setselfattrh]j)}(hsecurity_setselfattrh]hsecurity_setselfattr}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj)hMubj)}(hE(unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h](j)}(hunsigned int attrh](j )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj )}(hinth]hint}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hstruct lsm_ctx __user *uctxh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(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_setselfattrasbuh1hhjubj2)}(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)}(huctxh]huctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hu32 sizeh](h)}(hhh]j)}(hu32h]hu32}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]jc.security_setselfattrasbuh1hhj)ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hsizeh]hsize}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzmodnameN classnameNj] j` )}jc ]jc.security_setselfattrasbuh1hhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(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,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&]jjjjjjjjjuh1jhhhj8*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&]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)}(hwhich attribute to seth]hwhich attribute to set}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(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)}(hjHh]hstruct lsm_ctx __user *uctx}(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)}(h)the user-space source for the informationh]h)the user-space source for the information}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubj)}(h"``u32 size`` the size of the data h](j)}(h ``u32 size``h]j)}(hjh]hu32 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.chMhj{ubj2)}(hhh]h)}(hthe size of the datah]hthe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``u32 flags`` reserved for future use, must be 0 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)}(h"reserved for future use, must be 0h]h"reserved for future use, must be 0}(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&]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 }(hj hhhNhNubj)}(h**uctx**h]huctx}(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: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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_getprocattr (C function)c.security_getprocattrhNtauh1hhj8*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&]uh1jhjWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWhhhjihMubj{)}(hsecurity_getprocattrh]j)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjihMubj)}(hB(struct task_struct *p, int lsmid, const char *name, char **value)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j~sbc.security_getprocattrasbuh1hhjubj2)}(h h]h }(hj֘hhhNhNubah}(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&]noemphjjuh1jhjubj)}(h int lsmidh](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj )}(hcharh]hchar}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **valueh](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*}(hjęhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalueh]hvalue}(hjљhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjihMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjihMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jhjihMhjPhhubj)}(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&]uh1jhjPhhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 task_struct *p`` the 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.chMhj6ubj2)}(hhh]h)}(hthe taskh]hthe task}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hjuh]h int lsmid}(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.chMhjoubj2)}(hhh]h)}(hLSM identificationh]hLSM identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubj)}(h$``const char *name`` attribute 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)}(hattribute nameh]hattribute name}(hjǚhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÚhMhjĚubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjÚhMhj3ubj)}(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&]uh1jhjhMhj3ubeh}(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)}(hNRead attribute **name** for task **p** and store it into **value** if allowed.h](hRead attribute }(hj8hhhNhNubj)}(h**name**h]hname}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh for task }(hj8hhhNhNubj)}(h**p**h]hp}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh and store it into }(hj8hhhNhNubj)}(h **value**h]hvalue}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh if allowed.}(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)}(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.chMhjubh)}(hGReturns the length of **value** on success, a negative value otherwise.h](hReturns the length of }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( on success, a negative value otherwise.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_setprocattr (C function)c.security_setprocattrhNtauh1hhj8*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}(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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjқhhhjhM)ubj{)}(hsecurity_setprocattrh]j)}(hsecurity_setprocattrh]hsecurity_setprocattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjқhhhjhM)ubj)}(h7(int lsmid, const char *name, void *value, size_t size)h](j)}(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}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hcharh]hchar}(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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h void *valueh](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)}(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}(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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(hSet an attribute for a taskh]hSet an attribute for a task}(hjBhhhNhNubah}(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˛hhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhj8*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)}(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:283: ./security/security.chM-hj^ubj )}(hhh](j)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hjh]h int lsmid}(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)}(hLSM identificationh]hLSM identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjzubj)}(h$``const char *name`` attribute 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)}(hattribute nameh]hattribute name}(hj՝hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѝhM+hjҝubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjѝhM+hjzubj)}(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&]uh1hhj hM,hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hM,hjzubj)}(h%``size_t size`` attribute value size h](j)}(h``size_t size``h]j)}(hj.h]h size_t size}(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)}(hattribute value sizeh]hattribute value size}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM-hjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM-hjzubeh}(h]h ]h"]h$]h&]uh1j hj^ubh)}(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/hj^ubh)}(hYWrite (set) the current task's attribute **name** to **value**, size **size** if allowed.h](h+Write (set) the current task’s attribute }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, size }(hjhhhNhNubj)}(h**size**h]hsize}(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.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.chM1hj^ubh)}(h=Returns bytes written on success, a negative value otherwise.h]h=Returns bytes written on success, a negative value otherwise.}(hjܞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_post_notification (C function)c.security_post_notificationhNtauh1hhj8*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}(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_post_notificationh]j)}(hsecurity_post_notificationh]hsecurity_post_notification}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hR(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j)}(hconst struct cred *w_credh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j.sbc.security_post_notificationasbuh1hhjDubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hw_credh]hw_cred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hj՟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjџubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjџubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjџubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjџubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_post_notificationasbuh1hhjџ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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjџubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hstruct watch_notification *nh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNj] j` )}jc ]jc.security_post_notificationasbuh1hhj\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&]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 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.chMhjݠhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h*credentials of the task that set the watchh]h*credentials of the task that set the watch}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(hN``const struct cred *cred`` credentials of the task which triggered the watch h](j)}(h``const struct cred *cred``h]j)}(hjZh]hconst struct cred *cred}(hj\hhhNhNubah}(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.chMhjTubj2)}(hhh]h)}(h1credentials of the task which triggered the watchh]h1credentials of the task which triggered the watch}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjubj)}(h2``struct watch_notification *n`` the notification h](j)}(h ``struct watch_notification *n``h]j)}(hjh]hstruct watch_notification *n}(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 notificationh]hthe notification}(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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_watch_key (C function)c.security_watch_keyhNtauh1hhj8*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}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6hhhjHhMubj{)}(hsecurity_watch_keyh]j)}(hsecurity_watch_keyh]hsecurity_watch_key}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhjHhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(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_watch_keyasbuh1hhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjâhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hkeyh]hkey}(hjТhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhjHhMhj/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/hhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 key *key`` the key to watch h](j)}(h``struct key *key``h]j)}(hj;h]hstruct key *key}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubj2)}(hhh]h)}(hthe key to watchh]hthe key to watch}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_netlink_send (C function)c.security_netlink_sendhNtauh1hhj8*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&]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_netlink_sendh]j)}(hsecurity_netlink_sendh]hsecurity_netlink_send}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjޣhhhjhM ubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsockh]hsock}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_netlink_sendasbuh1hhjubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sk_buff *skbh](j)}(hjh]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 ]jYc.security_netlink_sendasbuh1hhjubj2)}(h h]h }(hjͤhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjۤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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)}(h1Save info and check if netlink sending is allowedh]h1Save info and check if netlink sending 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&]uh1jhjףhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1jhhhj8*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)}(hj4h]h Parameters}(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.chMhj.ubj )}(hhh](j)}(h#``struct sock *sk`` sending socket h](j)}(h``struct sock *sk``h]j)}(hjSh]hstruct sock *sk}(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.chM hjMubj2)}(hhh]h)}(hsending socketh]hsending socket}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM hjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjJubj)}(h(``struct sk_buff *skb`` netlink message 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)}(hnetlink messageh]hnetlink message}(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)}(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)}(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.}(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 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_socket_create (C function)c.security_socket_createhNtauh1hhj8*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}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMTubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhjAhMTubj{)}(hsecurity_socket_createh]j)}(hsecurity_socket_createh]hsecurity_socket_create}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhjAhMTubj)}(h.(int family, int type, int protocol, int kern)h](j)}(h int familyh](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(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&]noemphjjuh1jhjhubj)}(h int protocolh](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)}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֦ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hint kernh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hkernh]hkern}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhj/hhhjAhMTubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhjAhMTubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jhjAhMThj(hhubj)}(hhh]h)}(h)Check if creating a new socket is allowedh]h)Check if creating a new socket is allowed}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjRhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhj8*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)}(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.chMXhjqubj )}(hhh](j)}(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.chMUhjubj2)}(hhh]h)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMUhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjubj)}(h!``int type`` communications 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjɧubj2)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMVhjubah}(h]h ]h"]h$]h&]uh1j1hjɧubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjh]h int protocol}(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.chMWhjubj2)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubj)}(h6``int kern`` set to 1 if a kernel socket is requested h](j)}(h ``int kern``h]j)}(hjAh]hint kern}(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.chMXhj;ubj2)}(hhh]h)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMXhjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMXhjubeh}(h]h ]h"]h$]h&]uh1j hjqubh)}(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.chMZhjqubh)}(h1Check permissions prior to creating a new socket.h]h1Check permissions prior to creating a new socket.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhjqubh)}(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[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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhj8*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.chMdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMdubj{)}(hsecurity_socket_post_createh]j)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMdubj)}(hC(struct socket *sock, int family, int type, int protocol, int kern)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(hsocketh]hsocket}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_socket_post_createasbuh1hhj!ubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hsockh]hsock}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȩubeh}(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}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hkernh]hkern}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMdubah}(h]jۨah ](jjeh"]h$]h&]jj)jhuh1jhjhMdhjݨhhubj)}(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.chMdhjyhhubah}(h]h ]h"]h$]h&]uh1jhjݨhhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 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.chMehjubj2)}(hhh]h)}(hsocketh]hsocket}(hj֪hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҪhMehjӪubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjҪhMehjubj)}(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.chMfhjubj2)}(hhh]h)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMfhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMfhjubj)}(h!``int type`` communications type h](j)}(h ``int type``h]j)}(hj/h]hint type}(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.chMghj)ubj2)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMghjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMghjubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjhh]h int protocol}(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.chMhhjbubj2)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhhjubj)}(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.chMihjubj2)}(hhh]h)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubeh}(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.chMkhjubh)}(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.chMjhjubh)}(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)}(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.chMshjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_socket_bind (C function)c.security_socket_bindhNtauh1hhj8*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}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDhhhjVhMubj{)}(hsecurity_socket_bindh]j)}(hsecurity_socket_bindh]hsecurity_socket_bind}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDhhhjVhMubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hjh]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 jksbc.security_socket_bindasbuh1hhjubj2)}(h h]h }(hjìhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjѬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjެhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hstruct sockaddr *addressh](j)}(hjh]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 ]jc.security_socket_bindasbuh1hhjubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(h int addrlenh](j )}(hinth]hint}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(haddrlenh]haddrlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhjVhMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jhjVhMhj=hhubj)}(hhh]h)}(h+Check if a socket bind operation is allowedh]h+Check if a socket bind 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&]uh1jhj=hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjŭjjŭjjjuh1jhhhj8*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)}(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}(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}(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"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hj`h]h int addrlen}(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.chMhjZubj2)}(hhh]h)}(hlength of addressh]hlength of address}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubeh}(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 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 }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* is bound to the address specified in the }(hjhhhNhNubj)}(h **address**h]haddress}(hjˮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh parameter.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_socket_connect (C function)c.security_socket_connecthNtauh1hhj8*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 }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj9hMubj{)}(hsecurity_socket_connecth]j)}(hsecurity_socket_connecth]hsecurity_socket_connect}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj9hMubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jNsbc.security_socket_connectasbuh1hhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hstruct sockaddr *addressh](j)}(hjh]hstruct}(hjگhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֯ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj֯ubh)}(hhh]j)}(hsockaddrh]hsockaddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_socket_connectasbuh1hhj֯ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj֯ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֯ubj)}(haddressh]haddress}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֯ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(h int addrlenh](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(haddrlenh]haddrlen}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hMhj hhubj)}(hhh]h)}(h.Check if a socket connect operation is allowedh]h.Check if a socket connect 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&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.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&]uh1jhjhMhjȰubj)}(h@``struct sockaddr *address`` address of remote connection point h](j)}(h``struct sockaddr *address``h]j)}(hj h]hstruct sockaddr *address}(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)}(h"address of remote connection pointh]h"address of remote connection point}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȰubj)}(h"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hjCh]h int addrlen}(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)}(hlength of addressh]hlength of address}(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)}(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 }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to a remote address, }(hjhhhNhNubj)}(h **address**h]haddress}(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)}(hjɱh]hReturn}(hj˱hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDZubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_socket_listen (C function)c.security_socket_listenhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h=int security_socket_listen (struct socket *sock, int backlog)h]j)}(hah"]h$]h&]uh1j1hj hhhjhMubj{)}(hsecurity_socket_listenh]j)}(hsecurity_socket_listenh]hsecurity_socket_listen}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h"(struct socket *sock, int backlog)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubh)}(hhh]j)}(hsocketh]hsocket}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jf )}jY j1sbc.security_socket_listenasbuh1hhjGubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h int backlogh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj˲hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hbacklogh]hbacklog}(hjٲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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.chMhjubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjDh]hstruct socket *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.chMhj>ubj2)}(hhh]h)}(hsocketh]hsocket}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubj)}(h&``int backlog`` connection queue size h](j)}(h``int backlog``h]j)}(hj}h]h int backlog}(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.chMhjwubj2)}(hhh]h)}(hconnection queue sizeh]hconnection queue size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(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 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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_socket_accept (C function)c.security_socket_accepthNtauh1hhj8*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 }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj2hMubj{)}(hsecurity_socket_accepth]j)}(hsecurity_socket_accepth]hsecurity_socket_accept}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hMubj)}(h-(struct socket *sock, struct socket *newsock)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jGsbc.security_socket_acceptasbuh1hhj]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&]noemphjjuh1jhjYubj)}(hstruct socket *newsockh](j)}(hjh]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 ]jc.security_socket_acceptasbuh1hhjϴubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjϴubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϴubj)}(hnewsockh]hnewsock}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϴubeh}(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)}(h2Check if a socket is allowed to accept connectionsh]h2Check if a socket is allowed to accept connections}(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&]uh1jhjhhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jhhhj8*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)}(hjvh]h Parameters}(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.chMhjpubj )}(hhh](j)}(h)``struct socket *sock`` listening 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)}(hlistening socketh]hlistening socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``struct socket *newsock`` newly creation connection socket h](j)}(h``struct socket *newsock``h]j)}(hjεh]hstruct socket *newsock}(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 newly creation connection socketh]h newly creation connection socket}(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 hjpubh)}(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.chMhjpubh)}(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, }(hjhhhNhNubj)}(h **newsock**h]hnewsock}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubho, has been created and some information copied to it, but the accept operation has not actually been performed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubh)}(h **Return**h]j)}(hjBh]hReturn}(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.chMhjpubh)}(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.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_socket_sendmsg (C function)c.security_socket_sendmsghNtauh1hhj8*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}(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_sendmsgh]j)}(hsecurity_socket_sendmsgh]hsecurity_socket_sendmsg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h3(struct socket *sock, struct msghdr *msg, int size)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjĶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjѶhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj߶ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_sendmsgasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct msghdr *msgh](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubh)}(hhh]j)}(hmsghdrh]hmsghdr}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jc.security_socket_sendmsgasbuh1hhj2ubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint sizeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj|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|hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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&]uh1jhj ubah}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhj$ubj)}(h'``struct msghdr *msg`` message to send h](j)}(h``struct msghdr *msg``h]j)}(hjfh]hstruct msghdr *msg}(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)}(hmessage to sendh]hmessage to send}(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``int size`` size of message h](j)}(h ``int size``h]j)}(hjh]hint 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)}(hsize of messageh]hsize of message}(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 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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_socket_recvmsg (C function)c.security_socket_recvmsghNtauh1hhj8*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}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjThMubj{)}(hsecurity_socket_recvmsgh]j)}(hsecurity_socket_recvmsgh]hsecurity_socket_recvmsg}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjThMubj)}(h>(struct socket *sock, struct msghdr *msg, int size, int flags)h](j)}(hstruct socket *sockh](j)}(hjh]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 jisbc.security_socket_recvmsgasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjϹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjܹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hstruct msghdr *msgh](j)}(hjh]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_recvmsgasbuh1hhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsgh]hmsg}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hint sizeh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(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&]jjuh1jhjBhhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhjThMhj;hhubj)}(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.chMhjݺhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hreceiving socketh]hreceiving socket}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h*``struct msghdr *msg`` message to receive h](j)}(h``struct msghdr *msg``h]j)}(hjZh]hstruct msghdr *msg}(hj\hhhNhNubah}(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.chMhjTubj2)}(hhh]h)}(hmessage to receiveh]hmessage to receive}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjubj)}(h``int size`` size of message h](j)}(h ``int size``h]j)}(hjh]hint 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)}(hsize of messageh]hsize of message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``int flags`` operational flags h](j)}(h ``int flags``h]j)}(hj̻h]h int 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.chMhjƻubj2)}(hhh]h)}(hoperational flagsh]hoperational flags}(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: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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h5int security_socket_getsockname (struct socket *sock)h]j)}(h4int security_socket_getsockname(struct socket *sock)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_getsocknameh]j)}(hsecurity_socket_getsocknameh]hsecurity_socket_getsockname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hjh]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_getsocknameasbuh1hhjubj2)}(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&]noemphjjuh1jhjubah}(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 the socket addr is allowedh]h+Check if reading the socket addr 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&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhj8*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)}(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&]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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOubh)}(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.}(hjŽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOubh)}(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.chMhjOubh)}(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.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhj8*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 }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj)hMubj{)}(hsecurity_socket_getpeernameh]j)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj)hMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubh)}(hhh]j)}(hsocketh]hsocket}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]jf )}jY j>sbc.security_socket_getpeernameasbuh1hhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hsockh]hsock}(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)}(h+Check if reading the peer's addr is allowedh]h-Check if reading the peer’s addr 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&]jjjjjjjjjuh1jhhhj8*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}(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&]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.}(hjmhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhj8*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}(hjÿhhhNhNubah}(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_socket_getsockopth]j)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjѿhM ubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_getsockoptasbuh1hhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int levelh](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hlevelh]hlevel}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(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+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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjѿhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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&]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 socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hj.h]hstruct socket *sock}(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)}(hsocketh]hsocket}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM hjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM hj%ubj)}(h&``int level`` option's protocol level h](j)}(h ``int level``h]j)}(hjgh]h int level}(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)}(hoption's protocol levelh]hoption’s protocol level}(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 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.chM hjubj2)}(hhh]h)}(h option nameh]h option name}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(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 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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhj8*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}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUhhhjghMubj{)}(hsecurity_socket_setsockopth]j)}(hsecurity_socket_setsockopth]hsecurity_socket_setsockopt}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjghMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hjh]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 j|sbc.security_socket_setsockoptasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int optnameh](j )}(hinth]hint}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hoptnameh]hoptname}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jhjghMhjNhhubj)}(hhh]h)}(h+Check if setting a socket option is allowedh]h+Check if setting 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&]uh1jhjNhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubj)}(h``int optname`` option name h](j)}(h``int optname``h]j)}(hj6h]h int optname}(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.chMhj0ubj2)}(hhh]h)}(h option nameh]h option name}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hMCheck permissions before setting the options associated with socket **sock**.h](hDCheck permissions before setting 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.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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhj8*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&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM(ubj)}(h(struct socket *sock, int how)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubh)}(hhh]j)}(hsocketh]hsocket}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_shutdownasbuh1hhj(ubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hint howh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hhowh]hhow}(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-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&]jjjjjjjjjuh1jhhhj8*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)}(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.chM)hjubj2)}(hhh]h)}(hsocketh]hsocket}(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?``int how`` flag indicating how sends and receives are handled h](j)}(h ``int how``h]j)}(hj^h]hint how}(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*hjXubj2)}(hhh]h)}(h2flag indicating how sends and receives are handledh]h2flag indicating how sends and receives are handled}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM*hjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshM*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)}(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 }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is shut down.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhj8*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.chMIubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj%hMIubj{)}(h!security_socket_getpeersec_streamh]j)}(h!security_socket_getpeersec_streamh]h!security_socket_getpeersec_stream}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj%hMIubj)}(hK(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(hsocketh]hsocket}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]jf )}jY j:sb#c.security_socket_getpeersec_streamasbuh1hhjPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hsockptr_t optvalh](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)}(hoptvalh]hoptval}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(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_streamasbuh1hhj ubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hoptlenh]hoptlen}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj )}(hinth]hint}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMIubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj%hMIhj hhubj)}(hhh]h)}(hGet the remote peer labelh]hGet the remote peer label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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.chMMhjubj )}(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.chMJhjubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(h(``sockptr_t optval`` destination buffer h](j)}(h``sockptr_t optval``h]j)}(hj2h]hsockptr_t optval}(hj4hhhNhNubah}(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.chMKhj,ubj2)}(hhh]h)}(hdestination bufferh]hdestination buffer}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMKhjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMKhjubj)}(h?``sockptr_t optlen`` size of peer label copied into the buffer h](j)}(h``sockptr_t optlen``h]j)}(hjkh]hsockptr_t optlen}(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.chMLhjeubj2)}(hhh]h)}(h)size of peer label copied into the bufferh]h)size of peer label copied into the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(h<``unsigned int len`` maximum size of the destination buffer 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:283: ./security/security.chMMhjubj2)}(hhh]h)}(h&maximum size of the destination bufferh]h&maximum size of the destination buffer}(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)}(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.chMOhjubh)}(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.chMNhjubh)}(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.chMShjubh)}(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.chMThjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhj8*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}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMtubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGhhhjYhMtubj{)}(hlsm_sock_alloch]j)}(hlsm_sock_alloch]hlsm_sock_alloc}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjYhMtubj)}(h(struct sock *sock, gfp_t gfp)h](j)}(hstruct sock *sockh](j)}(hjh]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 jnsbc.lsm_sock_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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 ]jc.lsm_sock_allocasbuh1hhjubj2)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhMtubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjYhMthj@hhubj)}(hhh]h)}(hallocate a composite sock blobh]hallocate a composite sock blob}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjPhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhj8*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)}(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.chMxhjoubj )}(hhh](j)}(h1``struct sock *sock`` the sock that needs a blob h](j)}(h``struct sock *sock``h]j)}(hjh]hstruct sock *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.chMuhjubj2)}(hhh]h)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(h``gfp_t gfp`` allocation mode 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.chMvhjubj2)}(hhh]h)}(hallocation modeh]hallocation mode}(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 hjoubh)}(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.chMxhjoubh)}(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.chMwhjoubh)}(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.chMyhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sk_alloc (C function)c.security_sk_allochNtauh1hhj8*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&]uh1jhjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXhhhjjhMubj{)}(hsecurity_sk_alloch]j)}(hsecurity_sk_alloch]hsecurity_sk_alloc}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjjhMubj)}(h-(struct sock *sk, int family, gfp_t priority)h](j)}(hstruct sock *skh](j)}(hjh]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_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int familyh](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfamilyh]hfamily}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t priorityh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jc.security_sk_allocasbuh1hhj<ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hpriorityh]hpriority}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jhjjhMhjQhhubj)}(hhh]h)}(h)Allocate and initialize a sock's LSM blobh]h+Allocate and initialize a sock’s 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&]uh1jhjQhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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&]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.chMhj ubj2)}(hhh]h)}(hprotocol familyh]hprotocol family}(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``gfp_t priority`` gfp flags h](j)}(h``gfp_t priority``h]j)}(hjLh]hgfp_t priority}(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)}(h gfp flagsh]h gfp flags}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjubeh}(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)}(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.}(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 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sk_free (C function)c.security_sk_freehNtauh1hhj8*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)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubh)}(hhh]j)}(hsockh]hsock}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sk_freeasbuh1hhj,ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hskh]hsk}(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)}(hFree the sock's LSM blobh]hFree the sock’s 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&]jjjjjjjjjuh1jhhhj8*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}(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}(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.chMhjubh)}(hDeallocate security structure.h]hDeallocate security structure.}(hjEhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhj8*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}(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_inet_csk_cloneh]j)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjhMubj)}(h4(struct sock *newsk, const struct request_sock *req)h](j)}(hstruct sock *newskh](j)}(hjh]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_inet_csk_cloneasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewskh]hnewsk}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct request_sock *reqh](j)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_sockh]h request_sock}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jc.security_inet_csk_cloneasbuh1hhjubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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,Set new sock LSM state based on request_sockh]h,Set new sock LSM state based on request_sock}(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&]jjjjjjjjjuh1jhhhj8*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)}(hj9h]hconst struct request_sock *req}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj3ubj2)}(hhh]h)}(hconnection request_sockh]hconnection request_sock}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjubeh}(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&]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 }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh using the LSM state from }(hjhhhNhNubj)}(h**req**h]hreq}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhj8*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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsockh]hsock}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_mptcp_add_subflowasbuh1hhjubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sock *sskh](j)}(hjh]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 ]jTc.security_mptcp_add_subflowasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsskh]hssk}(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+Inherit the LSM label from the MPTCP socketh]h+Inherit the LSM label from the MPTCP socket}(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%jjjuh1jhhhj8*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)}(hj/h]h Parameters}(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)ubj )}(hhh](j)}(h,``struct sock *sk`` the owning MPTCP socket h](j)}(h``struct sock *sk``h]j)}(hjNh]hstruct sock *sk}(hjPhhhNhNubah}(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.chMhjHubj2)}(hhh]h)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(h%``struct sock *ssk`` the new subflow h](j)}(h``struct sock *ssk``h]j)}(hjh]hstruct sock *ssk}(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 new subflowh]hthe new subflow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubeh}(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)}(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.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)}(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.chMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhj8*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}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*hhhj<hMVubj{)}(hsecurity_xfrm_policy_cloneh]j)}(hsecurity_xfrm_policy_cloneh]hsecurity_xfrm_policy_clone}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhhj<hMVubj)}(h>(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j)}(hstruct xfrm_sec_ctx *old_ctxh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubh)}(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 jQsbc.security_xfrm_policy_cloneasbuh1hhjgubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hold_ctxh]hold_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct xfrm_sec_ctx **new_ctxph](j)}(hjh]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 ]jc.security_xfrm_policy_cloneasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_ctxph]hnew_ctxp}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj<hMVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj<hMVubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jhj<hMVhj#hhubj)}(hhh]h)}(hClone xfrm policy LSM stateh]hClone xfrm policy LSM state}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjhhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chMZhjubj )}(hhh](j)}(h7``struct xfrm_sec_ctx *old_ctx`` xfrm security context h](j)}(h ``struct xfrm_sec_ctx *old_ctx``h]j)}(hjh]hstruct xfrm_sec_ctx *old_ctx}(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)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubj)}(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.chMXhjubj2)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(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)}(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.chMZhjubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhjubh)}(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.chM\hjubh)}(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]hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhj8*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}(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_xfrm_policy_deleteh]j)}(hsecurity_xfrm_policy_deleteh]hsecurity_xfrm_policy_delete}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMrubj)}(h(struct xfrm_sec_ctx *ctx)h]j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hjh]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 ]jf )}jY jsbc.security_xfrm_policy_deleteasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hctxh]hctx}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMrubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMrhjhhubj)}(hhh]h)}(h*Check if deleting a xfrm policy is allowedh]h*Check if deleting a xfrm policy is allowed}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhj8*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)}(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.chMvhjhubj )}(hhh]j)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hjh]hstruct xfrm_sec_ctx *ctx}(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)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubah}(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.chMuhjhubh)}(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.chMthjhubh)}(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.chMvhjhubh)}(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.chMwhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhj8*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}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0hhhjBhMubj{)}(h!security_xfrm_state_alloc_acquireh]j)}(h!security_xfrm_state_alloc_acquireh]h!security_xfrm_state_alloc_acquire}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhjBhMubj)}(h>(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(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 jWsb#c.security_xfrm_state_alloc_acquireasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]hx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct xfrm_sec_ctx *polsech](j)}(hjh]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*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpolsech]hpolsec}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(h u32 secidh](h)}(hhh]j)}(hu32h]hu32}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]j#c.security_xfrm_state_alloc_acquireasbuh1hhjNubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhjBhMhj)hhubj)}(hhh]h)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state 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)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 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)}(hj%h]hstruct xfrm_sec_ctx *polsec}(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$associated policy's security contexth]h&associated policy’s security context}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h"``u32 secid`` secid from the flow h](j)}(h ``u32 secid``h]j)}(hj^h]h u32 secid}(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)}(hsecid from the flowh]hsecid from the flow}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.}(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 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhj8*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}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubh)}(hhh]j)}(h xfrm_stateh]h xfrm_state}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY j(sbc.security_xfrm_state_freeasbuh1hhj>ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hjh]hx}(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)}(hFree a xfrm stateh]hFree a xfrm state}(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&]jjjjjjjjjuh1jhhhj8*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)}(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.chMhjubh)}(hDeallocate x->security.h]hDeallocate x->security.}(hjVhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhj8*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}(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_policy_lookuph]j)}(hsecurity_xfrm_policy_lookuph]hsecurity_xfrm_policy_lookup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h((struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hjh]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 ]jf )}jY jsbc.security_xfrm_policy_lookupasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 fl_secidh](h)}(hhh]j)}(hu32h]hu32}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jc.security_xfrm_policy_lookupasbuh1hhj0ubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hfl_secidh]hfl_secid}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjzhhubj)}(hhh]h)}(h'Check if using a xfrm policy is allowedh]h'Check if using 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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_sec_ctx *ctx`` target xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hjh]hstruct xfrm_sec_ctx *ctx}(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)}(htarget xfrm security contexth]htarget xfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``u32 fl_secid`` flow secid used to authorize access h](j)}(h``u32 fl_secid``h]j)}(hjh]h u32 fl_secid}(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)}(h#flow secid used to authorize accessh]h#flow secid used to authorize access}(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 hjubh)}(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.chMhjubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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:283: ./security/security.chMhjubh)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhj8*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}(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_pol_flow_matchh]j)}(h"security_xfrm_state_pol_flow_matchh]h"security_xfrm_state_pol_flow_match}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hO(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j)}(hstruct xfrm_state *xh](j)}(hjh]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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsb$c.security_xfrm_state_pol_flow_matchasbuh1hhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hx}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_policy *xph](j)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubh)}(hhh]j)}(h xfrm_policyh]h xfrm_policy}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN 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)}(hxph]hxp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct flowi_common *flich](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(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_matchasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hflich]hflic}(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)}(hCheck for a xfrm matchh]hCheck for a xfrm match}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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 to match 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)}(hxfrm state to matchh]hxfrm state to match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubj)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h1Check **xp** and **flic** for a match with **x**.h](hCheck }(hjlhhhNhNubj)}(h**xp**h]hxp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh and }(hjlhhhNhNubj)}(h**flic**h]hflic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh for a match with }(hjlhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh.}(hjlhhhNhNubeh}(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 1 if there is a match.h]hReturns 1 if there is a match.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhj8*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)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_xfrm_decode_sessionasbuh1hhj1ubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(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 ]joc.security_xfrm_decode_sessionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsecidh]hsecid}(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%Determine the xfrm secid for a packeth]h%Determine the xfrm secid for a packet}(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%jjjuh1jhhhj8*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)}(hj/h]h Parameters}(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)ubj )}(hhh](j)}(h$``struct sk_buff *skb`` xfrm packet h](j)}(h``struct sk_buff *skb``h]j)}(hjNh]hstruct sk_buff *skb}(hjPhhhNhNubah}(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.chMhjHubj2)}(hhh]h)}(h xfrm packeth]h xfrm packet}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(h``u32 *secid`` secid h](j)}(h``u32 *secid``h]j)}(hjh]h u32 *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)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubeh}(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)}(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.chMhj)ubh)}(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.chMhj)ubh)}(h/Return 0 if all xfrms used have the same secid.h]h/Return 0 if all xfrms used have the same secid.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_key_alloc (C function)c.security_key_allochNtauh1hhj8*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}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNhhhj`hMubj{)}(hsecurity_key_alloch]j)}(hsecurity_key_alloch]hsecurity_key_alloc}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNhhhj`hMubj)}(h?(struct key *key, const struct cred *cred, unsigned long flags)h](j)}(hstruct key *keyh](j)}(hjh]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 jusbc.security_key_allocasbuh1hhjubj2)}(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)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hcredh]hcred}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]jc.security_key_allocasbuh1hhjubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hjshhhNhNubah}(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 }(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&]jjuh1jhjNhhhj`hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj`hMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhj`hMhjGhhubj)}(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&]uh1jhjGhhhj`hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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 hj ubj )}(hhh](j)}(h``struct key *key`` key h](j)}(h``struct key *key``h]j)}(hj/h]hstruct key *key}(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)}(hkeyh]hkey}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj&ubj)}(h(``const struct cred *cred`` credentials h](j)}(h``const struct cred *cred``h]j)}(hjhh]hconst struct cred *cred}(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.chM hjbubj2)}(hhh]h)}(h credentialsh]h credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM hj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM hj&ubj)}(h)``unsigned long flags`` allocation 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.chM hjubj2)}(hhh]h)}(hallocation flagsh]hallocation 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)}(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)}(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 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.chMhj ubh)}(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.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_key_free (C function)c.security_key_freehNtauh1hhj8*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}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDhhhjVhMubj{)}(hsecurity_key_freeh]j)}(hsecurity_key_freeh]hsecurity_key_free}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDhhhjVhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]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 jksbc.security_key_freeasbuh1hhjubj2)}(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&]noemphjjuh1jhj}ubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhjVhMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jhjVhMhj=hhubj)}(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&]uh1jhj=hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj8*hNhNubj)}(hl**Parameters** ``struct key *key`` key **Description** Notification of destruction; free security data.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`` key h](j)}(h``struct key *key``h]j)}(hjIh]hstruct key *key}(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.chM hjCubj2)}(hhh]h)}(hkeyh]hkey}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM hj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj$ubh)}(h0Notification of destruction; free security data.h]h0Notification of destruction; free security data.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_key_permission (C function)c.security_key_permissionhNtauh1hhj8*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}(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_key_permissionh]j)}(hsecurity_key_permissionh]hsecurity_key_permission}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM+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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_key_permissionasbuh1hhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hkey_refh]hkey_ref}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j%c.security_key_permissionasbuh1hhjLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(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 ]j%c.security_key_permissionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h need_permh]h need_perm}(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 a kernel key operation is allowedh]h*Check if a kernel key operation is allowed}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhj8*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)}(hjqh]h Parameters}(hjshhhNhNubah}(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/hjkubj )}(hhh](j)}(h$``key_ref_t key_ref`` key reference h](j)}(h``key_ref_t key_ref``h]j)}(hjh]hkey_ref_t key_ref}(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 key referenceh]h key reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubj)}(hC``const struct cred *cred`` credentials of actor requesting access 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.chM-hjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(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.hjubeh}(h]h ]h"]h$]h&]uh1j hjkubh)}(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.chM0hjkubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjkubh)}(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.chM1hjkubh)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]j)}(hah"]h$]h&]uh1j1hjhhhjhM;ubj{)}(hsecurity_key_getsecurityh]j)}(hsecurity_key_getsecurityh]hsecurity_key_getsecurity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM;ubj)}(h (struct key *key, char **buffer)h](j)}(hstruct key *keyh](j)}(hjh]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 jsbc.security_key_getsecurityasbuh1hhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkeyh]hkey}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **bufferh](j )}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(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)}(hGet the key's security labelh]hGet the key’s security label}(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&]jjjjjjjjjuh1jhhhj8*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)}(hj2h]h char **buffer}(hj4hhhNhNubah}(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.chM=hj,ubj2)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(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 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.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.}(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.chMBhjubh)}(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 }(hjhhhNhNubj)}(h **buffer**h]hbuffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /security_key_post_create_or_update (C function)$c.security_key_post_create_or_updatehNtauh1hhj8*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.chMNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMNubj{)}(h"security_key_post_create_or_updateh]j)}(h"security_key_post_create_or_updateh]h"security_key_post_create_or_update}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMNubj)}(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)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(hkeyh]hkey}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY jsb$c.security_key_post_create_or_updateasbuh1hhj$ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hkeyringh]hkeyring}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct key *keyh](j)}(hjh]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 ]jb$c.security_key_post_create_or_updateasbuh1hhjubj2)}(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&]noemphjjuh1jhj ubj)}(hconst void *payloadh](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 }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpayloadh]hpayload}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hsize_t payload_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jb$c.security_key_post_create_or_updateasbuh1hhjcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(h payload_lenh]h payload_len}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(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 bool createh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcreateh]hcreate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMNubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMNhjhhubj)}(hhh]h)}(h$Notification of key create or updateh]h$Notification of key create or update}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhj8*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)}(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.chMRhjaubj )}(hhh](j)}(h>``struct key *keyring`` keyring to which the key is linked to h](j)}(h``struct key *keyring``h]j)}(hjh]hstruct key *keyring}(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)}(h%keyring to which the key is linked toh]h%keyring to which the key is linked to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhj}ubj)}(h+``struct key *key`` created or updated 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.chMPhjubj2)}(hhh]h)}(hcreated or updated keyh]hcreated or updated key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhj}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.chMQhjubj2)}(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&]uh1hhj hMQhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMQhj}ubj)}(h)``size_t payload_len`` length of payload h](j)}(h``size_t payload_len``h]j)}(hj1h]hsize_t payload_len}(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.chMRhj+ubj2)}(hhh]h)}(hlength of payloadh]hlength of payload}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMRhjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMRhj}ubj)}(h"``unsigned long flags`` key flags h](j)}(h``unsigned long flags``h]j)}(hjjh]hunsigned long 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.chMShjdubj2)}(hhh]h)}(h key flagsh]h key flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjhMShj}ubj)}(hG``bool create`` flag indicating whether the key was created or updated h](j)}(h``bool create``h]j)}(hjh]h bool create}(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)}(h6flag indicating whether the key was created or updatedh]h6flag indicating whether the key was created or updated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMThj}ubeh}(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.chMVhjaubh)}(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.chMUhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhj8*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}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMcubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj1hMcubj{)}(hsecurity_audit_rule_inith]j)}(hsecurity_audit_rule_inith]hsecurity_audit_rule_init}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hMcubj)}(h=(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j)}(h u32 fieldh](h)}(hhh]j)}(hu32h]hu32}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.security_audit_rule_initasbuh1hhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hfieldh]hfield}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hu32 oph](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_audit_rule_initasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(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&]noemphjjuh1jhjXubj)}(hvoid **lsmruleh](j )}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hlsmruleh]hlsmrule}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(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 ]jc.security_audit_rule_initasbuh1hhjubj2)}(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&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hMchjhhubj)}(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.chMchjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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.chMghjubj )}(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.chMdhjubj2)}(hhh]h)}(h audit actionh]h audit action}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMdhj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hMdhjubj)}(h``u32 op`` rule operator h](j)}(h ``u32 op``h]j)}(hjVh]hu32 op}(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.chMehjPubj2)}(hhh]h)}(h rule operatorh]h rule operator}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMehjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMehjubj)}(h``char *rulestr`` rule context h](j)}(h``char *rulestr``h]j)}(hjh]h char *rulestr}(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.chMfhjubj2)}(hhh]h)}(h rule contexth]h rule context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(h8``void **lsmrule`` receive buffer for audit rule struct h](j)}(h``void **lsmrule``h]j)}(hjh]hvoid **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.chMghjubj2)}(hhh]h)}(h$receive buffer for audit rule structh]h$receive buffer for audit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubj)}(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.chMhhjubj2)}(hhh]h)}(hGFP flag used for kmalloch]hGFP flag used for kmalloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(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.chMjhjubh)}(h4Allocate and initialize an LSM audit rule structure.h]h4Allocate and initialize an LSM audit rule structure.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjubh)}(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.chMkhjubh)}(hVReturn 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](h Return 0 if }(hjyhhhNhNubj)}(h **lsmrule**h]hlsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh? has been successfully set, -EINVAL in case of an invalid rule.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhj8*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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMvubj{)}(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&]jjuh1jzhjhhhjhMvubj)}(h(struct audit_krule *krule)h]j)}(hstruct audit_krule *kruleh](j)}(hjh]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 }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkruleh]hkrule}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMvhjhhubj)}(hhh]h)}(h*Check if an audit rule contains LSM fieldsh]h*Check if an audit rule contains LSM fields}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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.chMzhjubj )}(hhh]j)}(h)``struct audit_krule *krule`` audit rule h](j)}(h``struct audit_krule *krule``h]j)}(hjh]hstruct audit_krule *krule}(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 audit ruleh]h audit rule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubah}(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.chMyhjubh)}(hQSpecifies whether given **krule** contains any fields related to the current LSM.h](hSpecifies whether given }(hj hhhNhNubj)}(h **krule**h]hkrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh0 contains any fields related to the current LSM.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubh)}(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.chM{hjubh)}(h1Returns 1 in case of relation found, 0 otherwise.h]h1Returns 1 in case of relation found, 0 otherwise.}(hjEhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhj8*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}(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_audit_rule_freeh]j)}(hsecurity_audit_rule_freeh]hsecurity_audit_rule_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjhMubj)}(h(void *lsmrule)h]j)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjphhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjihhubj)}(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&]uh1jhjihhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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$``void *lsmrule`` audit rule struct h](j)}(h``void *lsmrule``h]j)}(hjEh]h void *lsmrule}(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)}(haudit rule structh]haudit rule struct}(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)}(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().}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhj8*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}(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_audit_rule_matchh]j)}(hsecurity_audit_rule_matchh]hsecurity_audit_rule_match}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h9(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j)}(hstruct lsm_prop *proph](j)}(hjh]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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj"modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_audit_rule_matchasbuh1hhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjNhhhNhNubah}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]j<c.security_audit_rule_matchasbuh1hhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hfieldh]hfield}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 oph](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_audit_rule_matchasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlsmruleh]hlsmrule}(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&Check if a label matches an audit ruleh]h&Check if a label matches an audit rule}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhj8*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)}(hjyh]h Parameters}(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.chMhjsubj )}(hhh](j)}(h)``struct lsm_prop *prop`` security label 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)}(hsecurity labelh]hsecurity label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj2)}(hhh]h)}(hLSM audit fieldh]hLSM audit field}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u32 op`` matching operator h](j)}(h ``u32 op``h]j)}(hj h]hu32 op}(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)}(hmatching operatorh]hmatching operator}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``void *lsmrule`` audit rule h](j)}(h``void *lsmrule``h]j)}(hjCh]h void *lsmrule}(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)}(h audit ruleh]h audit rule}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubeh}(h]h ]h"]h$]h&]uh1j hjsubh)}(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.chMhjsubh)}(h_Determine if given **secid** matches a rule previously approved by security_audit_rule_known().h](hDetermine if given }(hjhhhNhNubj)}(h **secid**h]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC matches a rule previously approved by security_audit_rule_known().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(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.chMhjsubh)}(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.}(hjhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_bpf (C function)c.security_bpfhNtauh1hhj8*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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMubj{)}(h security_bpfh]j)}(h security_bpfh]h security_bpf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h?(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j)}(hint cmdh](j )}(hinth]hint}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hcmdh]hcmd}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hunion bpf_attr *attrh](j)}(hunionh]hunion}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpfasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(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 }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h bool kernelh](j )}(hj8h]hbool}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hkernelh]hkernel}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(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 the bpf syscall operation is allowedh]h-Check if the bpf syscall operation is allowed}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjthhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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``int cmd`` command h](j)}(h ``int cmd``h]j)}(hjh]hint 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.chMhjubj2)}(hhh]h)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``unsigned int size`` size h](j)}(h``unsigned int size``h]j)}(hj*h]hunsigned int 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.chMhj$ubj2)}(hhh]h)}(hsizeh]hsize}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjch]h bool kernel}(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)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjubeh}(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)}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_bpf_map (C function)c.security_bpf_maphNtauh1hhj8*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}(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_bpf_maph]j)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h$(struct bpf_map *map, fmode_t fmode)h](j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jf )}jY j-sbc.security_bpf_mapasbuh1hhjCubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(h fmode_t fmodeh](h)}(hhh]j)}(hfmode_th]hfmode_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_bpf_mapasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfmodeh]hfmode}(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'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&]jjjj*jj*jjjuh1jhhhj8*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)}(hj4h]h Parameters}(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.chMhj.ubj )}(hhh](j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hjSh]hstruct bpf_map *map}(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)}(hbpf maph]hbpf map}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubj)}(h``fmode_t fmode`` mode h](j)}(h``fmode_t fmode``h]j)}(hjh]h fmode_t fmode}(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)}(hmodeh]hmode}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj.ubh)}(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.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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_bpf_prog (C function)c.security_bpf_proghNtauh1hhj8*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}(hj3hhhNhNubah}(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 }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhjAhMubj{)}(hsecurity_bpf_progh]j)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhjAhMubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(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 jVsbc.security_bpf_progasbuh1hhjlubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubah}(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+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&]uh1jhj(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj8*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)}(hj4h]hstruct bpf_prog *prog}(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.chMhj.ubj2)}(hhh]h)}(h bpf programh]h bpf program}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+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&]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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhj8*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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpf_map_createasbuh1hhjubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hjph]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jRc.security_bpf_map_createasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bpf_token *tokenh](j)}(hjh]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 ]jRc.security_bpf_map_createasbuh1hhjubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htokenh]htoken}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hkernelh]hkernel}(hjhhhNhNubah}(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$Check if BPF map creation is allowedh]h$Check if BPF map creation 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&]jjjjjjjjjuh1jhhhj8*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)}(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 object 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 map objecth]hBPF map object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjubj)}(h@``struct bpf_token *token`` BPF token used to grant user access h](j)}(h``struct bpf_token *token``h]j)}(hjbh]hstruct bpf_token *token}(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.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&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjubj)}(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.chMhjubj2)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(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)}(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.}(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 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhj8*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}(hjBhhhNhNubah}(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 }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhjPhMubj{)}(hsecurity_bpf_prog_loadh]j)}(hsecurity_bpf_prog_loadh]hsecurity_bpf_prog_load}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhjPhMubj)}(hS(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubh)}(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 jesbc.security_bpf_prog_loadasbuh1hhj{ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hunion bpf_attr *attrh](j)}(hjph]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_bpf_prog_loadasbuh1hhjubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hattrh]hattr}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_bpf_prog_loadasbuh1hhj]ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(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&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhjPhMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhjPhMhj7hhubj)}(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&]uh1jhj7hhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj. jj. jjjuh1jhhhj8*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)}(hj8 h]h Parameters}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6 ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2 ubj )}(hhh](j)}(h-``struct bpf_prog *prog`` BPF program object h](j)}(h``struct bpf_prog *prog``h]j)}(hjW h]hstruct bpf_prog *prog}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQ ubj2)}(hhh]h)}(hBPF program objecth]hBPF program object}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl hMhjm ubah}(h]h ]h"]h$]h&]uh1j1hjQ ubeh}(h]h ]h"]h$]h&]uh1jhjl hMhjN 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}(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)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjN 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)}(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)}(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&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjN 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 hMhjN 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2 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.}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2 ubh)}(h **Return**h]j)}(hjd h]hReturn}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2 ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhj8*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}(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_bpf_token_createh]j)}(hsecurity_bpf_token_createh]hsecurity_bpf_token_create}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM ubj)}(hH(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j)}(hstruct bpf_token *tokenh](j)}(hjh]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 reftargetj modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_bpf_token_createasbuh1hhj ubj2)}(h h]h }(hj$ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(htokenh]htoken}(hj? hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunion bpf_attr *attrh](j)}(hjph]hunion}(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT ubj2)}(h h]h }(hje hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjT ubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjv hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjx modnameN classnameNj] j` )}jc ]j c.security_bpf_token_createasbuh1hhjT 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)}(hattrh]hattr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst struct path *pathh](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)}(hjh]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)}(hpathh]hpath}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]j c.security_bpf_token_createasbuh1hhj 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)}(hpathh]hpath}(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 creating of BPF token is allowedh]h)Check if creating of BPF token is allowed}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hja hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj| jj| jjjuh1jhhhj8*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)}(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_token *token`` BPF token object 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.chM hj ubj2)}(hhh]h)}(hBPF token objecth]hBPF token object}(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)}(hI``union bpf_attr *attr`` BPF syscall attributes used to create BPF token 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.chM hj ubj2)}(hhh]h)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create 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 hj ubj)}(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)}(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)}(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}(hj0 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)}(hjR h]h Description}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(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.}(hjh 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)}(hjy h]hReturn}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw 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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhj8*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}(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_bpf_token_cmdh]j)}(hsecurity_bpf_token_cmdh]hsecurity_bpf_token_cmd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM%ubj)}(h1(const struct bpf_token *token, enum bpf_cmd cmd)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]hstruct}(hjhhhNhNubah}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_bpf_token_cmdasbuh1hhj ubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(htokenh]htoken}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(henum bpf_cmd cmdh](j)}(hj:h]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_cmdh]hbpf_cmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jPc.security_bpf_token_cmdasbuh1hhjubj2)}(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&]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)}(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&]uh1jhj hhhj hM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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}(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)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hj=h]hconst struct 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.chM'hj7ubj2)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM'hjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM'hj4ubj)}(hP``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token h](j)}(h``enum bpf_cmd cmd``h]j)}(hjvh]henum bpf_cmd cmd}(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)}(h:BPF syscall command requested to be delegated by BPF tokenh]h:BPF syscall command requested to be delegated by BPF token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhM(hj4ubeh}(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)}(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.}(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)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhj8*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.chM5ubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj+hM5ubj{)}(hsecurity_bpf_token_capableh]j)}(hsecurity_bpf_token_capableh]hsecurity_bpf_token_capable}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj+hM5ubj)}(h((const struct bpf_token *token, int cap)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh)}(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_capableasbuh1hhjVubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(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&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj+hM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj+hM5hjhhubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhj8*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)}(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:283: ./security/security.chM9hjIubj )}(hhh](j)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hjnh]hconst struct bpf_token *token}(hjphhhNhNubah}(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.chM7hjhubj2)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjeubj)}(h@``int cap`` capabilities requested to be delegated by BPF token h](j)}(h ``int cap``h]j)}(hjh]hint cap}(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.chM8hjubj2)}(hhh]h)}(h3capabilities requested to be delegated by BPF tokenh]h3capabilities requested to be delegated by BPF token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjeubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjIubh)}(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.chM9hjIubh)}(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.chM<hjIubh)}(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=hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_bpf_map_free (C function)c.security_bpf_map_freehNtauh1hhj8*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}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhj\hMEubj{)}(hsecurity_bpf_map_freeh]j)}(hsecurity_bpf_map_freeh]hsecurity_bpf_map_free}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhj\hMEubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hjh]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 jqsbc.security_bpf_map_freeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhj\hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj\hMEubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhj\hMEhjChhubj)}(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.chMEhj hhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhj8*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)}(hj0h]h Parameters}(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.chMIhj*ubj )}(hhh]j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hjOh]hstruct bpf_map *map}(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.chMFhjIubj2)}(hhh]h)}(hbpf maph]hbpf map}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhj*ubh)}(h8Clean up the security information stored inside bpf map.h]h8Clean up the security information stored inside bpf map.}(hjhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhj8*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&]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_bpf_prog_freeh]j)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMRubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(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_prog_freeasbuh1hhjubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprogh]hprog}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMRhjhhubj)}(hhh]h)}(hFree a BPF program's LSM blobh]hFree a BPF program’s LSM blob}(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&]jjjjjjjjjuh1jhhhj8*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)}(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 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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjubj2)}(hhh]h)}(hBPF program structh]hBPF program struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubah}(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.chMUhjubh)}(hah"]h$]h&]uh1j1hjLhhhj^hM_ubj{)}(hsecurity_bpf_token_freeh]j)}(hsecurity_bpf_token_freeh]hsecurity_bpf_token_free}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhj^hM_ubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hjh]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 jssbc.security_bpf_token_freeasbuh1hhjubj2)}(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&]noemphjjuh1jhjubah}(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)}(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_hj hhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jhhhj8*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)}(hj2h]h Parameters}(hj4hhhNhNubah}(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.chMchj,ubj )}(hhh]j)}(h-``struct bpf_token *token`` BPF token struct h](j)}(h``struct bpf_token *token``h]j)}(hjQh]hstruct bpf_token *token}(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)}(hBPF token structh]hBPF token struct}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM`hjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhM`hjHubah}(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.chMbhj,ubh)}(h:Clean up the security information stored inside BPF token.h]h:Clean up the security information stored inside BPF token.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_perf_event_open (C function)c.security_perf_event_openhNtauh1hhj8*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&]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_openh]j)}(hsecurity_perf_event_openh]hsecurity_perf_event_open}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h (int type)h]j)}(hint typeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(htypeh]htype}(hj*hhhNhNubah}(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)}(h%Check if a perf event open is allowedh]h%Check if a perf event open is allowed}(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&]jjjjljjljjjuh1jhhhj8*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)}(hjvh]h Parameters}(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.chMhjpubj )}(hhh]j)}(h``int type`` type of event h](j)}(h ``int type``h]j)}(hjh]hint 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.chMhjubj2)}(hhh]h)}(h type of eventh]h type of 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 hjpubh)}(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.chMhjpubh)}(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.chMhjpubh)}(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.chMhjpubh)}(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.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_perf_event_alloc (C function)c.security_perf_event_allochNtauh1hhj8*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}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhX/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&]uh1j1hjJhhhj\hMubj{)}(hsecurity_perf_event_alloch]j)}(hsecurity_perf_event_alloch]hsecurity_perf_event_alloc}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhj\hMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]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 jqsbc.security_perf_event_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(heventh]hevent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj\hMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhj\hMhjChhubj)}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhj8*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)}(hj0h]h Parameters}(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.chMhj*ubj )}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjOh]hstruct perf_event *event}(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)}(h perf eventh]h perf event}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubah}(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+Allocate and save perf_event security info.h]h+Allocate and save perf_event security info.}(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.}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_perf_event_free (C function)c.security_perf_event_freehNtauh1hhj8*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)}(hjh]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 perf_eventh]h perf_event}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_perf_event_freeasbuh1hhj/ubj2)}(h h]h }(hjqhhhNhNubah}(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&]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}(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&]jjjjjjjjjuh1jhhhj8*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&]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)}(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:283: ./security/security.chMhjubh)}(h(Release (free) perf_event security info.h]h(Release (free) perf_event security info.}(hjHhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_perf_event_read (C function)c.security_perf_event_readhNtauh1hhj8*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}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjshhhjhMubj{)}(hsecurity_perf_event_readh]j)}(hsecurity_perf_event_readh]hsecurity_perf_event_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjshhhjhMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]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_readasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(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&]jjuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjlhhubj)}(hhh]h)}(h.Check if reading a perf event label is allowedh]h.Check if reading a perf event label is allowed}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhj8*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)}(hjYh]h Parameters}(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.chMhjSubj )}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjxh]hstruct perf_event *event}(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.chMhjrubj2)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjSubh)}(h)Read perf_event security info if allowed.h]h)Read perf_event security info if allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjSubh)}(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.chMhjSubh)}(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.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_perf_event_write (C function)c.security_perf_event_writehNtauh1hhj8*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}(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_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&]jjuh1jzhjhhhj-hM ubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN classnameNj] j` )}jc ]jf )}jY jBsbc.security_perf_event_writeasbuh1hhjXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(heventh]hevent}(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)}(h.Check if writing a perf event label is allowedh]h.Check if writing 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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj8*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)}(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)}(hj h]hstruct perf_event *event}(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 perf eventh]h perf event}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h*Write perf_event security info if allowed.h]h*Write perf_event security info if allowed.}(hjqhhhNhNubah}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_uring_override_creds (C function)c.security_uring_override_credshNtauh1hhj8*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}(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_uring_override_credsh]j)}(hsecurity_uring_override_credsh]hsecurity_uring_override_creds}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(const struct cred *new)h]j)}(hconst struct cred *newh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(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 jsbc.security_uring_override_credsasbuh1hhjubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjxhhhNhNubah}(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 overriding creds is allowedh]h$Check if overriding creds 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&]jjjjjjjjjuh1jhhhj8*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)}(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 cred *new`` new credentials h](j)}(h``const struct cred *new``h]j)}(hjh]hconst struct cred *new}(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 credentialsh]hnew credentials}(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)}(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 }(hj4 hhhNhNubj)}(h**new**h]hnew}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4 ubh.}(hj4 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)}(hjW h]hReturn}(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.chMhjubh)}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_uring_sqpoll (C function)c.security_uring_sqpollhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h int security_uring_sqpoll (void)h]j)}(hint security_uring_sqpoll(void)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_uring_sqpollh]j)}(hsecurity_uring_sqpollh]hsecurity_uring_sqpoll}(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'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&]uh1jhj hhhj hM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhj8*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)}(hjD!h]hvoid}(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:283: ./security/security.chKhj>!ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj]!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY!hKhjZ!ubah}(h]h ]h"]h$]h&]uh1j1hj>!ubeh}(h]h ]h"]h$]h&]uh1jhjY!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 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).}(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)}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_uring_cmd (C function)c.security_uring_cmdhNtauh1hhj8*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.chM5ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!hhhj!hM5ubj{)}(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!hM5ubj)}(h(struct io_uring_cmd *ioucmd)h]j)}(hstruct io_uring_cmd *ioucmdh](j)}(hjh]hstruct}(hj("hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$"ubj2)}(h h]h }(hj5"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$"ubh)}(hhh]j)}(h io_uring_cmdh]h io_uring_cmd}(hjF"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC"ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjH"modnameN classnameNj] j` )}jc ]jf )}jY j"sbc.security_uring_cmdasbuh1hhj$"ubj2)}(h h]h }(hjf"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$"ubj)}(hjh]h*}(hjt"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$"ubj)}(hioucmdh]hioucmd}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj "ubah}(h]h ]h"]h$]h&]jjuh1jhj!hhhj!hM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj!hM5ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jhj!hM5hj!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.chM5hj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jhhhj8*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.chM9hj"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.chM6hj"ubj2)}(hhh]h)}(hcommandh]hcommand}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM6hj#ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hM6hj"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.chM8hj"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.chM7hj"ubh)}(h **Return**h]j)}(hjN#h]hReturn}(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.chM9hj"ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjd#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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h!int security_uring_allowed (void)h]j)}(h int security_uring_allowed(void)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.chMBubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#hhhj#hMBubj{)}(hsecurity_uring_allowedh]j)}(hsecurity_uring_allowedh]hsecurity_uring_allowed}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj#hMBubj)}(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#hMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hMBubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jhj#hMBhj#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.chMBhj#hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhj8*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.chMFhj$ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj;$h]hvoid}(hj=$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj5$ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjT$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP$hKhjQ$ubah}(h]h ]h"]h$]h&]uh1j1hj5$ubeh}(h]h ]h"]h$]h&]uh1jhjP$hKhj2$ubah}(h]h ]h"]h$]h&]uh1j hj$ubh)}(h**Description**h]j)}(hjv$h]h Description}(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.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.chMChj$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.chMEhj$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.chMFhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhj8*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.chMOubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$hhhj$hMOubj{)}(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$hMOubj)}(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$hMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj$hMOubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jhj$hMOhj$hhubj)}(hhh]h)}(h*Notify LSMs that initramfs has been loadedh]h*Notify LSMs that initramfs has been loaded}(hjI%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjF%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjja%jja%jjjuh1jhhhj8*hNhNubj)}(hy**Parameters** ``void`` no arguments **Description** Tells the LSMs the initramfs has been unpacked into the rootfs.h](h)}(h**Parameters**h]j)}(hjk%h]h Parameters}(hjm%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShje%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 hje%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.chKhje%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.chMPhje%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhj8*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)}(hjh]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 }(hjJ&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&hhhj&hKubj)}(hjh]h*}(hjX&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hKubj{)}(hsecurityfs_create_fileh]j)}(hjG&h]hsecurityfs_create_file}(hji&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje&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}(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 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 ]jE&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)}(hjh]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)}(hdentryh]hdentry}(hjG'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjI'modnameN classnameNj] j` )}jc ]jE&c.securityfs_create_fileasbuh1hhj%'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)}(hparenth]hparent}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%'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"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)}(hjh]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 ]jE&c.securityfs_create_fileasbuh1hhj'ubj2)}(h h]h }(hj2(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hjh]h*}(hj@(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hfopsh]hfops}(hjM(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}(hjw(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjt(hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj&hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jhhhj8*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)}(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)}(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)}(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)}(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&]uh1j1hj(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 }(hjC)hhhNhNubj)}(h``NULL``h]hNULL}(hjK)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC)ubhI, then the file will be created in the root of the securityfs filesystem.}(hjC)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)}(hjv)h]h void *data}(hjx)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt)ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjp)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&]uh1j1hjp)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}(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)}(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.}(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(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:286: ./security/inode.chKhj(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.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#*hhhNhNubah}(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 }(hj2*hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj:*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2*ubh is returned.}(hj2*hhhNhNubeh}(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&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "securityfs_create_dir (C function)c.securityfs_create_dirhNtauh1hhj8*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)}(hjh]hstruct}(hjs*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo*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&]uh1j1hjo*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_dirsbc.securityfs_create_dirasbuh1hhjo*hhhj*hKubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjo*hhhj*hKubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo*hhhj*hKubj{)}(hsecurityfs_create_dirh]j)}(hj*h]hsecurityfs_create_dir}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjo*hhhj*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}(hj1+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct dentry *parenth](j)}(hjh]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)}(hdentryh]hdentry}(hjh+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje+ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjj+modnameN classnameNj] j` )}jc ]j*c.securityfs_create_dirasbuh1hhjF+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)}(hparenth]hparent}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhjo*hhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjk*hhhj*hKubah}(h]jf*ah ](jjeh"]h$]h&]jj)jhuh1jhj*hKhjh*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.chKhj+hhubah}(h]h ]h"]h$]h&]uh1jhjh*hhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1jhhhj8*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)}(hjF,h]hstruct dentry *parent}(hjH,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD,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 }(hj_,hhhNhNubj)}(h``NULL``h]hNULL}(hjg,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_,ubhN, then the directory 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,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: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 }(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.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,hhhNhNubah}(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 }(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.chKhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &securityfs_create_symlink (C function)c.securityfs_create_symlinkhNtauh1hhj8*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)}(hjh]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&]uh1jhj7-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<-modnameN classnameNj] j` )}jc ]jf )}jY securityfs_create_symlinksbc.securityfs_create_symlinkasbuh1hhj-hhhj(-hKubj2)}(h h]h }(hj[-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj(-hKubj)}(hjh]h*}(hji-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj(-hKubj{)}(hsecurityfs_create_symlinkh]j)}(hjX-h]hsecurityfs_create_symlink}(hjz-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj(-hKubj)}(hb(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)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)}(hjh]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 ]jV-c.securityfs_create_symlinkasbuh1hhj-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}(hjI.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hconst char *targeth](j)}(hjh]hconst}(hjb.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^.ubj2)}(h h]h }(hjo.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)}(htargeth]htarget}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h#const struct inode_operations *iopsh](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)}(hjh]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)}(hinode_operationsh]hinode_operations}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.modnameN classnameNj] j` )}jc ]jV-c.securityfs_create_symlinkasbuh1hhj.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)}(hiopsh]hiops}(hj1/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 symlink in the securityfs filesystemh]h-create a symlink 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-hhhj(-hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjs/jjs/jjjuh1jhhhj8*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}/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.chKhjw/ubj )}(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)}(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)}(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.}(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 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)}(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 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 }(hj/hhhNhNubj)}(h``NULL``h]hNULL}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhN, then the directory 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``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)}(hj"0h]hconst char *target}(hj$0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj0ubj2)}(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 }(hj;0hhhNhNubj)}(h``NULL``h]hNULL}(hjC0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;0ubh , then the }(hj;0hhhNhNubj)}(h**iops**h]hiops}(hjU0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;0ubhP parameter needs to be setup to handle .readlink and .get_link inode_operations.}(hj;0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj80ubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhj70hKhj/ubj)}(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)}(hj0h]h#const struct inode_operations *iops}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjz0ubj2)}(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 }(hj0hhhNhNubj)}(h``NULL``h]hNULL}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh@, then the default simple_symlink_inode operations will be used.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj0ubah}(h]h ]h"]h$]h&]uh1j1hjz0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj/ubeh}(h]h ]h"]h$]h&]uh1j hjw/ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjw/ubh)}(hFThis function creates a symlink in securityfs with the given **name**.h](h=This function creates a symlink in securityfs with the given }(hj0hhhNhNubj)}(h**name**h]hname}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjw/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).}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjw/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 }(hj1hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh is returned.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjw/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j securityfs_remove (C function)c.securityfs_removehNtauh1hhj8*hhhNhNubj)}(hhh](j)}(h.void securityfs_remove (struct dentry *dentry)h]j)}(h-void securityfs_remove(struct dentry *dentry)h](j )}(hvoidh]hvoid}(hjU1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQ1hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMubj2)}(h h]h }(hjd1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQ1hhhjc1hMubj{)}(hsecurityfs_removeh]j)}(hsecurityfs_removeh]hsecurityfs_remove}(hjv1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQ1hhhjc1hMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]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 ]jf )}jY jx1sbc.securityfs_removeasbuh1hhj1ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hdentryh]hdentry}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhjQ1hhhjc1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM1hhhjc1hMubah}(h]jH1ah ](jjeh"]h$]h&]jj)jhuh1jhjc1hMhjJ1hhubj)}(hhh]h)}(h:removes a file or directory from the securityfs filesystemh]h:removes a file or directory from the securityfs filesystem}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjJ1hhhjc1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-2jj-2jjjuh1jhhhj8*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)}(hj72h]h Parameters}(hj92hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj52ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM hj12ubj )}(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)}(hjV2h]hstruct dentry *dentry}(hjX2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT2ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhjP2ubj2)}(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.}(hjo2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk2hMhjl2ubah}(h]h ]h"]h$]h&]uh1j1hjP2ubeh}(h]h ]h"]h$]h&]uh1jhjk2hMhjM2ubah}(h]h ]h"]h$]h&]uh1j hj12ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM hj12ubh)}(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.)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhj12ubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM#hj12ubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM'hj12ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8*hhhNhNubeh}(h]security-frameworkah ]h"]security frameworkah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hAudit Interfacesh]hAudit Interfaces}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hhhhhM"ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_start (C function)c.audit_log_starthNtauh1hhj2hhhNhNubj)}(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)}(hjh]hstruct}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMfubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 3hhhj3hMfubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj,3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.3modnameN classnameNj] j` )}jc ]jf )}jY audit_log_startsbc.audit_log_startasbuh1hhj 3hhhj3hMfubj2)}(h h]h }(hjM3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 3hhhj3hMfubj)}(hjh]h*}(hj[3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 3hhhj3hMfubj{)}(haudit_log_starth]j)}(hjJ3h]haudit_log_start}(hjl3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj 3hhhj3hMfubj)}(h5(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(h audit_contexth]h audit_context}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jH3c.audit_log_startasbuh1hhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hctxh]hctx}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jH3c.audit_log_startasbuh1hhj3ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hgfp_maskh]hgfp_mask}(hj&4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hint typeh](j )}(hinth]hint}(hj?4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;4ubj2)}(h h]h }(hjM4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;4ubj)}(htypeh]htype}(hj[4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhj 3hhhj3hMfubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hMfubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hMfhj3hhubj)}(hhh]h)}(hobtain an audit bufferh]hobtain an audit buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMfhj4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhj2hNhNubj)}(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)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMjhj4ubj )}(hhh](j)}(h:``struct audit_context *ctx`` audit_context (may be NULL) h](j)}(h``struct audit_context *ctx``h]j)}(hj4h]hstruct audit_context *ctx}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMghj4ubj2)}(hhh]h)}(haudit_context (may be NULL)h]haudit_context (may be NULL)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMghj4ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMghj4ubj)}(h&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hj4h]hgfp_t gfp_mask}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhhj4ubj2)}(hhh]h)}(htype of allocationh]htype of allocation}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhhj5ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhhj4ubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hj85h]hint type}(hj:5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj65ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMihj25ubj2)}(hhh]h)}(haudit message typeh]haudit message type}(hjQ5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM5hMihjN5ubah}(h]h ]h"]h$]h&]uh1j1hj25ubeh}(h]h ]h"]h$]h&]uh1jhjM5hMihj4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjs5h]h Description}(hju5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq5ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMkhj4ubh)}(h9Returns audit_buffer pointer on success or NULL on error.h]h9Returns audit_buffer pointer on success or NULL on error.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMjhj4ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMlhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_format (C function)c.audit_log_formathNtauh1hhj2hhhNhNubj)}(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}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hMubj{)}(haudit_log_formath]j)}(haudit_log_formath]haudit_log_format}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hMubj)}(h/(struct audit_buffer *ab, const char *fmt, ...)h](j)}(hstruct audit_buffer *abh](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj"6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$6modnameN classnameNj] j` )}jc ]jf )}jY j5sbc.audit_log_formatasbuh1hhj6ubj2)}(h h]h }(hjB6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]h*}(hjP6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(habh]hab}(hj]6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjv6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjr6ubj )}(hcharh]hchar}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjr6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjr6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr6ubj)}(hfmth]hfmt}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(h...h]j)}(hjh]h...}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhj5hMhj5hhubj)}(hhh]h)}(h'format a message into the audit buffer.h]h'format a message into the audit buffer.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jhhhj2hNhNubj)}(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)}(hj7h]h Parameters}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj7ubj )}(hhh](j)}(h)``struct audit_buffer *ab`` audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj=7h]hstruct audit_buffer *ab}(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:292: ./kernel/audit.chMhj77ubj2)}(hhh]h)}(h audit_bufferh]h audit_buffer}(hjV7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR7hMhjS7ubah}(h]h ]h"]h$]h&]uh1j1hj77ubeh}(h]h ]h"]h$]h&]uh1jhjR7hMhj47ubj)}(h"``const char *fmt`` format string h](j)}(h``const char *fmt``h]j)}(hjv7h]hconst char *fmt}(hjx7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjp7ubj2)}(hhh]h)}(h format stringh]h format string}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1j1hjp7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj47ubj)}(h4``...`` optional parameters matching **fmt** string h](j)}(h``...``h]j)}(hj7h]h...}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj7ubj2)}(hhh]h)}(h+optional parameters matching **fmt** stringh](hoptional parameters matching }(hj7hhhNhNubj)}(h**fmt**h]hfmt}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh string}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj47ubeh}(h]h ]h"]h$]h&]uh1j hj7ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj7ubh)}(h*All the work is done in audit_log_vformat.h]h*All the work is done in audit_log_vformat.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_subj_ctx (C function)c.audit_log_subj_ctxhNtauh1hhj2hhhNhNubj)}(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}(hjA8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=8hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMubj2)}(h h]h }(hjP8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=8hhhjO8hMubj{)}(haudit_log_subj_ctxh]j)}(haudit_log_subj_ctxh]haudit_log_subj_ctx}(hjb8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=8hhhjO8hMubj)}(h0(struct audit_buffer *ab, struct lsm_prop *prop)h](j)}(hstruct audit_buffer *abh](j)}(hjh]hstruct}(hj~8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz8ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjz8ubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jf )}jY jd8sbc.audit_log_subj_ctxasbuh1hhjz8ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjz8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz8ubj)}(habh]hab}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjv8ubj)}(hstruct lsm_prop *proph](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]j8c.audit_log_subj_ctxasbuh1hhj8ubj2)}(h h]h }(hj,9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hjh]h*}(hj:9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hproph]hprop}(hjG9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjv8ubeh}(h]h ]h"]h$]h&]jjuh1jhj=8hhhjO8hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj98hhhjO8hMubah}(h]j48ah ](jjeh"]h$]h&]jj)jhuh1jhjO8hMhj68hhubj)}(hhh]h)}(hAdd LSM subject informationh]hAdd LSM subject information}(hjq9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjn9hhubah}(h]h ]h"]h$]h&]uh1jhj68hhhjO8hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhj2hNhNubj)}(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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj9ubj )}(hhh](j)}(h)``struct audit_buffer *ab`` audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj9h]hstruct audit_buffer *ab}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj9ubj2)}(hhh]h)}(h audit_bufferh]h audit_buffer}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubj)}(h2``struct lsm_prop *prop`` LSM subject properties. h](j)}(h``struct lsm_prop *prop``h]j)}(hj9h]hstruct lsm_prop *prop}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj9ubj2)}(hhh]h)}(hLSM subject properties.h]hLSM subject properties.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj9ubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj9ubh)}(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.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_end (C function)c.audit_log_endhNtauh1hhj2hhhNhNubj)}(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}(hjk:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjg:hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM ubj2)}(h h]h }(hjz:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjg:hhhjy:hM ubj{)}(h audit_log_endh]j)}(h audit_log_endh]h audit_log_end}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjg:hhhjy:hM ubj)}(h(struct audit_buffer *ab)h]j)}(hstruct audit_buffer *abh](j)}(hjh]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}(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_log_endasbuh1hhj: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)}(habh]hab}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubah}(h]h ]h"]h$]h&]jjuh1jhjg:hhhjy:hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjc:hhhjy:hM ubah}(h]j^:ah ](jjeh"]h$]h&]jj)jhuh1jhjy: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`:hhhjy:hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjC;jjC;jjjuh1jhhhj2hNhNubj)}(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)}(hjM;h]h Parameters}(hjO;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK;ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjG;ubj )}(hhh]j)}(h-``struct audit_buffer *ab`` the audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hjl;h]hstruct audit_buffer *ab}(hjn;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj;ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjf;ubj2)}(hhh]h)}(hthe audit_bufferh]hthe audit_buffer}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM hj;ubah}(h]h ]h"]h$]h&]uh1j1hjf;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM hjc;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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjG;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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjG;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log (C function) c.audit_loghNtauh1hhj2hhhNhNubj)}(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)}(hjh]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 audit_contexth]h audit_context}(hjG<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjI<modnameN classnameNj] j` )}jc ]jf )}jY j<sb c.audit_logasbuh1hhj%<ubj2)}(h h]h }(hjg<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%<ubj)}(hjh]h*}(hju<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%<ubj)}(hctxh]hctx}(hj<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}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]jc< c.audit_logasbuh1hhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hgfp_maskh]hgfp_mask}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<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}(hj3=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=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)}(hfmth]hfmt}(hj\=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!<ubj)}(h...h]j)}(hjh]h...}(hju=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq=ubah}(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}(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=jjjuh1jhhhj2hNhNubj)}(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)}(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_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hj=h]hstruct audit_context *ctx}(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)}(h audit contexth]h audit context}(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&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hj>h]hgfp_t gfp_mask}(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)}(htype of allocationh]htype of allocation}(hj1>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 ``int type`` audit message type h](j)}(h ``int type``h]j)}(hjQ>h]hint type}(hjS>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO>ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjK>ubj2)}(hhh]h)}(haudit message typeh]haudit message type}(hjj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf>hM hjg>ubah}(h]h ]h"]h$]h&]uh1j1hjK>ubeh}(h]h ]h"]h$]h&]uh1jhjf>hM hj=ubj)}(h)``const char *fmt`` format string to use 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.chM hj>ubj2)}(hhh]h)}(hformat string to useh]hformat 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)}(h7``...`` variable parameters matching 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj>ubj2)}(hhh]h)}(h.variable parameters matching the format stringh]h.variable parameters matching the format string}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj=ubh)}(hThis is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.h]hThis is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.}(hj?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&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_filter_op (C function)c.__audit_filter_ophNtauh1hhj2hhhNhNubj)}(hhh](j)}(hint __audit_filter_op (struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h]j)}(hint __audit_filter_op(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h](j )}(hinth]hint}(hjC?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 }(hjR?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj??hhhjQ?hM.ubj{)}(h__audit_filter_oph]j)}(h__audit_filter_oph]h__audit_filter_op}(hjd?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj??hhhjQ?hM.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)}(hjh]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 jf?sbc.__audit_filter_opasbuh1hhj|?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&]noemphjjuh1jhjx?ubj)}(hstruct audit_context *ctxh](j)}(hjh]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 ]j?c.__audit_filter_opasbuh1hhj?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}(hjI@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx?ubj)}(hstruct list_head *listh](j)}(hjh]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 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 ]j?c.__audit_filter_opasbuh1hhj^@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)}(hlisth]hlist}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx?ubj)}(hstruct audit_names *nameh](j)}(hjh]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_namesh]h audit_names}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@modnameN classnameNj] j` )}jc ]j?c.__audit_filter_opasbuh1hhj@ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hnameh]hname}(hj)AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx?ubj)}(hunsigned long oph](j )}(hunsignedh]hunsigned}(hjBAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>Aubj2)}(h h]h }(hjPAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>Aubj )}(hlongh]hlong}(hj^AhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>Aubj2)}(h h]h }(hjlAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>Aubj)}(hoph]hop}(hjzAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx?ubeh}(h]h ]h"]h$]h&]jjuh1jhj??hhhjQ?hM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;?hhhjQ?hM.ubah}(h]j6?ah ](jjeh"]h$]h&]jj)jhuh1jhjQ?hM.hj8?hhubj)}(hhh]h)}(h7common filter helper for operations (syscall/uring/etc)h]h7common filter helper for operations (syscall/uring/etc)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.hjAhhubah}(h]h ]h"]h$]h&]uh1jhj8?hhhjQ?hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhj2hNhNubj)}(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)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hjAubj )}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hjAh]hstruct task_struct *tsk}(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)}(hassociated taskh]hassociated task}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM/hjAubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM/hjAubj)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hjBh]hstruct audit_context *ctx}(hj BhhhNhNubah}(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.chM0hjBubj2)}(hhh]h)}(h audit contexth]h audit context}(hj7BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3BhM0hj4Bubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj3BhM0hjAubj)}(h-``struct list_head *list`` audit filter list h](j)}(h``struct list_head *list``h]j)}(hjWBh]hstruct list_head *list}(hjYBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUBubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hjQBubj2)}(hhh]h)}(haudit filter listh]haudit filter list}(hjpBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlBhM1hjmBubah}(h]h ]h"]h$]h&]uh1j1hjQBubeh}(h]h ]h"]h$]h&]uh1jhjlBhM1hjAubj)}(h6``struct audit_names *name`` audit_name (can be NULL) h](j)}(h``struct audit_names *name``h]j)}(hjBh]hstruct audit_names *name}(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.chM2hjBubj2)}(hhh]h)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM2hjBubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM2hjAubj)}(h.``unsigned long op`` current syscall/uring_op h](j)}(h``unsigned long op``h]j)}(hjBh]hunsigned long op}(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.chM3hjBubj2)}(hhh]h)}(hcurrent syscall/uring_oph]hcurrent syscall/uring_op}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM3hjBubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM3hjAubeh}(h]h ]h"]h$]h&]uh1j hjAubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hjAubh)}(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 }(hjChhhNhNubj)}(h**list**h]hlist}(hj"ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh against }(hjChhhNhNubj)}(h**tsk**h]htsk}(hj4ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh using }(hjChhhNhNubj)}(h**ctx**h]hctx}(hjFChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh, }(hjChhhNhNubj)}(h**name**h]hname}(hjXChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh, and }(hjChhhNhNubj)}(h**op**h]hop}(hjjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhr, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The }(hjChhhNhNubj)}(h**name**h]hname}(hj|ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh 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.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_filter_uring (C function)c.audit_filter_uringhNtauh1hhj2hhhNhNubj)}(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}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjChMPubj{)}(haudit_filter_uringh]j)}(haudit_filter_uringh]haudit_filter_uring}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjChMPubj)}(h4(struct task_struct *tsk, struct audit_context *ctx)h](j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubh)}(hhh]j)}(h task_structh]h task_struct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Dubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jf )}jY jCsbc.audit_filter_uringasbuh1hhjCubj2)}(h h]h }(hj0DhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hj>DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(htskh]htsk}(hjKDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjdDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Dubj2)}(h h]h }(hjqDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Dubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]j,Dc.audit_filter_uringasbuh1hhj`Dubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Dubj)}(hctxh]hctx}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjChMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjChMPubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhjChMPhjChhubj)}(hhh]h)}(h&apply filters to an io_uring operationh]h&apply filters to an io_uring operation}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1jhhhj2hNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit contexth](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMThjEubj )}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hj&Eh]hstruct task_struct *tsk}(hj(EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Eubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMQhj Eubj2)}(hhh]h)}(hassociated taskh]hassociated task}(hj?EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;EhMQhjah"]h$]h&]uh1j1hjEhhhjEhMubj{)}(haudit_reset_contexth]j)}(haudit_reset_contexth]haudit_reset_context}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjEhMubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jf )}jY jEsbc.audit_reset_contextasbuh1hhjEubj2)}(h h]h }(hj4FhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hjh]h*}(hjBFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hctxh]hctx}(hjOFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubah}(h]h ]h"]h$]h&]jjuh1jhjEhhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhjEhhubj)}(hhh]h)}(hreset a audit_context structureh]hreset a audit_context structure}(hjyFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjvFhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jhhhj2hNhNubj)}(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)}(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.chMhjFubj )}(hhh]j)}(h9``struct audit_context *ctx`` the audit_context to reset h](j)}(h``struct audit_context *ctx``h]j)}(hjFh]hstruct audit_context *ctx}(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.chMhjFubj2)}(hhh]h)}(hthe audit_context to reseth]hthe audit_context to reset}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j hjFubh)}(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.chMhjFubh)}(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.}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_alloc (C function) c.audit_allochNtauh1hhj2hhhNhNubj)}(hhh](j)}(h)int audit_alloc (struct task_struct *tsk)h]j)}(h(int audit_alloc(struct task_struct *tsk)h](j )}(hinth]hint}(hj:GhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6GhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hjIGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6GhhhjHGhMubj{)}(h audit_alloch]j)}(h audit_alloch]h audit_alloc}(hj[GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6GhhhjHGhMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hjwGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsGubh)}(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 j]Gsb c.audit_allocasbuh1hhjsGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsGubj)}(htskh]htsk}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoGubah}(h]h ]h"]h$]h&]jjuh1jhj6GhhhjHGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2GhhhjHGhMubah}(h]j-Gah ](jjeh"]h$]h&]jj)jhuh1jhjHGhMhj/Ghhubj)}(hhh]h)}(h*allocate an audit context block for a taskh]h*allocate an audit context block for a task}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhj/GhhhjHGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhj2hNhNubj)}(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)}(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.chMhjHubj )}(hhh]j)}(h!``struct task_struct *tsk`` task h](j)}(h``struct task_struct *tsk``h]j)}(hj;Hh]hstruct task_struct *tsk}(hj=HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Hubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj5Hubj2)}(hhh]h)}(htaskh]htask}(hjTHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPHhMhjQHubah}(h]h ]h"]h$]h&]uh1j1hj5Hubeh}(h]h ]h"]h$]h&]uh1jhjPHhMhj2Hubah}(h]h ]h"]h$]h&]uh1j hjHubh)}(h**Description**h]j)}(hjvHh]h Description}(hjxHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtHubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjHubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_uring (C function)c.audit_log_uringhNtauh1hhj2hhhNhNubj)}(hhh](j)}(h0void audit_log_uring (struct audit_context *ctx)h]j)}(h/void audit_log_uring(struct audit_context *ctx)h](j )}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHhhhjHhMOubj{)}(haudit_log_uringh]j)}(haudit_log_uringh]haudit_log_uring}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjHhMOubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(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 jHsbc.audit_log_uringasbuh1hhjHubj2)}(h h]h }(hj6IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjDIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hctxh]hctx}(hjQIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhjHhMOubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jhjHhMOhjHhhubj)}(hhh]h)}(hgenerate a AUDIT_URINGOP recordh]hgenerate a AUDIT_URINGOP record}(hj{IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhjxIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhj2hNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShjIubj )}(hhh]j)}(h/``struct audit_context *ctx`` the audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hjIh]hstruct audit_context *ctx}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMUhjIubj2)}(hhh]h)}(hthe audit contexth]hthe audit context}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMUhjIubah}(h]h ]h"]h$]h&]uh1j hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_free (C function)c.__audit_freehNtauh1hhj2hhhNhNubj)}(hhh](j)}(h+void __audit_free (struct task_struct *tsk)h]j)}(h*void __audit_free(struct task_struct *tsk)h](j )}(hvoidh]hvoid}(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 }(hj%JhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhj$JhMubj{)}(h __audit_freeh]j)}(h __audit_freeh]h __audit_free}(hj7JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Jubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhj$JhMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hjSJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOJubj2)}(h h]h }(hj`JhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOJubh)}(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 j9Jsbc.__audit_freeasbuh1hhjOJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOJubj)}(htskh]htsk}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKJubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhj$JhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj$JhMubah}(h]j Jah ](jjeh"]h$]h&]jj)jhuh1jhj$JhMhj Jhhubj)}(hhh]h)}(hfree a per-task audit contexth]hfree a per-task audit context}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhj Jhhhj$JhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhj2hNhNubj)}(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)}(hjJh]h Parameters}(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.chM hjJubj )}(hhh]j)}(hC``struct task_struct *tsk`` task whose audit context block to free 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)}(h&task whose audit context block to freeh]h&task whose audit context block to free}(hj0KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,KhMhj-Kubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhj,KhMhjKubah}(h]h ]h"]h$]h&]uh1j hjJubh)}(h**Description**h]j)}(hjRKh]h Description}(hjTKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjJubh)}(h8Called from copy_process, do_exit, and the io_uring codeh]h8Called from copy_process, do_exit, and the io_uring code}(hjhKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_return_fixup (C function)c.audit_return_fixuphNtauh1hhj2hhhNhNubj)}(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}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhjKhM0ubj{)}(haudit_return_fixuph]j)}(haudit_return_fixuph]haudit_return_fixup}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhjKhM0ubj)}(h3(struct audit_context *ctx, int success, long code)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jf )}jY jKsbc.audit_return_fixupasbuh1hhjKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hj LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hctxh]hctx}(hj-LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(h int successh](j )}(hinth]hint}(hjFLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBLubj2)}(h h]h }(hjTLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBLubj)}(hsuccessh]hsuccess}(hjbLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(h long codeh](j )}(hlongh]hlong}(hj{LhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwLubj)}(hcodeh]hcode}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhM0ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjKhM0hjKhhubj)}(hhh]h)}(h+fixup the return codes in the audit_contexth]h+fixup the return codes in the audit_context}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hjLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1jhhhj2hNhNubj)}(hX\**Parameters** ``struct audit_context *ctx`` the audit_context ``int success`` true/false value to indicate if the operation succeeded or not ``long code`` operation return code **Description** We 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](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hjLubj )}(hhh](j)}(h0``struct audit_context *ctx`` the audit_context h](j)}(h``struct audit_context *ctx``h]j)}(hjMh]hstruct audit_context *ctx}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hjLubj2)}(hhh]h)}(hthe audit_contexth]hthe audit_context}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM1hjMubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjMhM1hjLubj)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hj;Mh]h int success}(hj=MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Mubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj5Mubj2)}(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}(hjTMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPMhM2hjQMubah}(h]h ]h"]h$]h&]uh1j1hj5Mubeh}(h]h ]h"]h$]h&]uh1jhjPMhM2hjLubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hjtMh]h long code}(hjvMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3hjnMubj2)}(hhh]h)}(hoperation return codeh]hoperation return code}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM3hjMubah}(h]h ]h"]h$]h&]uh1j1hjnMubeh}(h]h ]h"]h$]h&]uh1jhjMhM3hjLubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hjLubh)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhj2hhhNhNubj)}(hhh](j)}(h void __audit_uring_entry (u8 op)h]j)}(hvoid __audit_uring_entry(u8 op)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.chMLubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhjNhMLubj{)}(h__audit_uring_entryh]j)}(h__audit_uring_entryh]h__audit_uring_entry}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhjNhMLubj)}(h(u8 op)h]j)}(hu8 oph](h)}(hhh]j)}(hu8h]hu8}(hj4NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Nubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6NmodnameN classnameNj] j` )}jc ]jf )}jY jNsbc.__audit_uring_entryasbuh1hhj-Nubj2)}(h h]h }(hjTNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Nubj)}(hoph]hop}(hjbNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)Nubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhjNhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjNhMLubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjNhMLhjMhhubj)}(hhh]h)}(h4prepare the kernel task's audit context for io_uringh]h6prepare the kernel task’s audit context for io_uring}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLhjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjNhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhj2hNhNubj)}(hX **Parameters** ``u8 op`` the io_uring opcode **Description** This is similar to audit_syscall_entry() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_entry() as we rely on the audit context checking present in that function.h](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.chMPhjNubj )}(hhh]j)}(h``u8 op`` the io_uring opcode h](j)}(h ``u8 op``h]j)}(hjNh]hu8 op}(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.chMMhjNubj2)}(hhh]h)}(hthe io_uring opcodeh]hthe io_uring opcode}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMMhjNubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMMhjNubah}(h]h ]h"]h$]h&]uh1j hjNubh)}(h**Description**h]j)}(hjOh]h Description}(hj OhhhNhNubah}(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.chMOhjNubh)}(hThis is similar to audit_syscall_entry() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_entry() as we rely on the audit context checking present in that function.h]hThis is similar to audit_syscall_entry() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_entry() as we rely on the audit context checking present in that function.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMNhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_uring_exit (C function)c.__audit_uring_exithNtauh1hhj2hhhNhNubj)}(hhh](j)}(h0void __audit_uring_exit (int success, long code)h]j)}(h/void __audit_uring_exit(int success, long code)h](j )}(hvoidh]hvoid}(hjMOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIOhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMoubj2)}(h h]h }(hj\OhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIOhhhj[OhMoubj{)}(h__audit_uring_exith]j)}(h__audit_uring_exith]h__audit_uring_exit}(hjnOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIOhhhj[OhMoubj)}(h(int success, long code)h](j)}(h int successh](j )}(hinth]hint}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hsuccessh]hsuccess}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h long codeh](j )}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hcodeh]hcode}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjIOhhhj[OhMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEOhhhj[OhMoubah}(h]j@Oah ](jjeh"]h$]h&]jj)jhuh1jhj[OhMohjBOhhubj)}(hhh]h)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMohjPhhubah}(h]h ]h"]h$]h&]uh1jhjBOhhhj[OhMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhj2hNhNubj)}(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)}(hj'Ph]h Parameters}(hj)PhhhNhNubah}(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.chMshj!Pubj )}(hhh](j)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hjFPh]h int success}(hjHPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDPubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMphj@Pubj2)}(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}(hj_PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[PhMphj\Pubah}(h]h ]h"]h$]h&]uh1j1hj@Pubeh}(h]h ]h"]h$]h&]uh1jhj[PhMphj=Pubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hjPh]h long code}(hjPhhhNhNubah}(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.chMqhjyPubj2)}(hhh]h)}(hoperation return codeh]hoperation return code}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMqhjPubah}(h]h ]h"]h$]h&]uh1j1hjyPubeh}(h]h ]h"]h$]h&]uh1jhjPhMqhj=Pubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMshj!Pubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMrhj!Pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhj2hhhNhNubj)}(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}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhhhj QhMubj{)}(h__audit_syscall_entryh]j)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hj QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhj QhMubj)}(hS(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j)}(h int majorh](j )}(hinth]hint}(hjah"]h$]h&]uh1j1hj8Qubj)}(hmajorh]hmajor}(hjXQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8Qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4Qubj)}(hunsigned long a1h](j )}(hunsignedh]hunsigned}(hjqQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmQubj )}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmQubj)}(ha1h]ha1}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4Qubj)}(hunsigned long a2h](j )}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj )}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(ha2h]ha2}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4Qubj)}(hunsigned long a3h](j )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hj!RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj )}(hlongh]hlong}(hj/RhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hj=RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(ha3h]ha3}(hjKRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4Qubj)}(hunsigned long a4h](j )}(hunsignedh]hunsigned}(hjdRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`Rubj2)}(h h]h }(hjrRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Rubj )}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`Rubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Rubj)}(ha4h]ha4}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4Qubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhj QhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhj QhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jhj QhMhjPhhubj)}(hhh]h)}(h(fill in an audit record at syscall entryh]h(fill in an audit record at syscall entry}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhj QhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhj2hNhNubj)}(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)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjRubj )}(hhh](j)}(h,``int major`` major syscall type (function) h](j)}(h ``int major``h]j)}(hjSh]h int major}(hj ShhhNhNubah}(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.chMhjSubj2)}(hhh]h)}(hmajor syscall type (function)h]hmajor syscall type (function)}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubj)}(h3``unsigned long a1`` additional syscall register 1 h](j)}(h``unsigned long a1``h]j)}(hj@Sh]hunsigned long a1}(hjBShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Subah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj:Subj2)}(hhh]h)}(hadditional syscall register 1h]hadditional syscall register 1}(hjYShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUShMhjVSubah}(h]h ]h"]h$]h&]uh1j1hj:Subeh}(h]h ]h"]h$]h&]uh1jhjUShMhjRubj)}(h3``unsigned long a2`` additional syscall register 2 h](j)}(h``unsigned long a2``h]j)}(hjySh]hunsigned long a2}(hj{ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwSubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjsSubj2)}(hhh]h)}(hadditional syscall register 2h]hadditional syscall register 2}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j1hjsSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubj)}(h3``unsigned long a3`` additional syscall register 3 h](j)}(h``unsigned long a3``h]j)}(hjSh]hunsigned long a3}(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.chMhjSubj2)}(hhh]h)}(hadditional syscall register 3h]hadditional syscall register 3}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubj)}(h3``unsigned long a4`` additional syscall register 4 h](j)}(h``unsigned long a4``h]j)}(hjSh]hunsigned long a4}(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.chMhjSubj2)}(hhh]h)}(hadditional syscall register 4h]hadditional syscall register 4}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjThMhjRubeh}(h]h ]h"]h$]h&]uh1j hjRubh)}(h**Description**h]j)}(hj&Th]h Description}(hj(ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Tubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjRubh)}(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).}(hjah"]h$]h&]uh1j1hjgThhhjyThMubj{)}(h__audit_syscall_exith]j)}(h__audit_syscall_exith]h__audit_syscall_exit}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjgThhhjyThMubj)}(h(int success, long return_code)h](j)}(h int successh](j )}(hinth]hint}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hsuccessh]hsuccess}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hlong return_codeh](j )}(hlongh]hlong}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(h return_codeh]h return_code}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjgThhhjyThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjcThhhjyThMubah}(h]j^Tah ](jjeh"]h$]h&]jj)jhuh1jhjyThMhj`Thhubj)}(hhh]h)}(h,deallocate audit context after a system callh]h,deallocate audit context after a system call}(hj#UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj Uhhubah}(h]h ]h"]h$]h&]uh1jhj`ThhhjyThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;Ujj;Ujjjuh1jhhhj2hNhNubj)}(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)}(hjEUh]h Parameters}(hjGUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCUubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj?Uubj )}(hhh](j)}(h-``int success`` success value of the syscall h](j)}(h``int success``h]j)}(hjdUh]h int success}(hjfUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbUubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj^Uubj2)}(hhh]h)}(hsuccess value of the syscallh]hsuccess value of the syscall}(hj}UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyUhMhjzUubah}(h]h ]h"]h$]h&]uh1j1hj^Uubeh}(h]h ]h"]h$]h&]uh1jhjyUhMhj[Uubj)}(h1``long return_code`` return value of the syscall h](j)}(h``long return_code``h]j)}(hjUh]hlong return_code}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjUubj2)}(hhh]h)}(hreturn value of the syscallh]hreturn value of the syscall}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj[Uubeh}(h]h ]h"]h$]h&]uh1j hj?Uubh)}(h**Description**h]j)}(hjUh]h Description}(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.chMhj?Uubh)}(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().}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj?Uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_getname (C function)c.__audit_getnamehNtauh1hhj2hhhNhNubj)}(hhh](j)}(h,void __audit_getname (struct filename *name)h]j)}(h+void __audit_getname(struct filename *name)h](j )}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM}ubj2)}(h h]h }(hj,VhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVhhhj+VhM}ubj{)}(h__audit_getnameh]j)}(h__audit_getnameh]h__audit_getname}(hj>VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Vubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhj+VhM}ubj)}(h(struct filename *name)h]j)}(hstruct filename *nameh](j)}(hjh]hstruct}(hjZVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVVubj2)}(h h]h }(hjgVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVVubh)}(hhh]j)}(hfilenameh]hfilename}(hjxVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzVmodnameN classnameNj] j` )}jc ]jf )}jY j@Vsbc.__audit_getnameasbuh1hhjVVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVVubj)}(hnameh]hname}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRVubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhj+VhM}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhj+VhM}ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jhj+VhM}hjVhhubj)}(hhh]h)}(hadd a name to the listh]hadd a name to the list}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM}hjVhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhj+VhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhj2hNhNubj)}(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)}(hjVh]h Parameters}(hjWhhhNhNubah}(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&``struct filename *name`` name to add h](j)}(h``struct filename *name``h]j)}(hjWh]hstruct filename *name}(hj WhhhNhNubah}(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.chM~hjWubj2)}(hhh]h)}(h name to addh]h name to add}(hj7WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3WhM~hj4Wubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhj3WhM~hjWubah}(h]h ]h"]h$]h&]uh1j hjVubh)}(h**Description**h]j)}(hjYWh]h Description}(hj[WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWWubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjVubh)}(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().}(hjoWhhhNhNubah}(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&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_inode (C function)c.__audit_inodehNtauh1hhj2hhhNhNubj)}(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}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWhhhjWhMubj{)}(h __audit_inodeh]j)}(h __audit_inodeh]h __audit_inode}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjWhMubj)}(hH(struct filename *name, const struct dentry *dentry, unsigned int flags)h](j)}(hstruct filename *nameh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubh)}(hhh]j)}(hfilenameh]hfilename}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jf )}jY jWsbc.__audit_inodeasbuh1hhjWubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hj'XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hnameh]hname}(hj4XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hconst struct dentry *dentryh](j)}(hjh]hconst}(hjMXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIXubj2)}(h h]h }(hjZXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIXubj)}(hjh]hstruct}(hjhXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIXubj2)}(h h]h }(hjuXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIXubh)}(hhh]j)}(hdentryh]hdentry}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jXc.__audit_inodeasbuh1hhjIXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIXubj)}(hdentryh]hdentry}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj )}(hinth]hint}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hflagsh]hflags}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjWhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jhjWhMhjWhhubj)}(hhh]h)}(h(store the inode and device from a lookuph]h(store the inode and device from a lookup}(hj:YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj7Yhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRYjjRYjjjuh1jhhhj2hNhNubj)}(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\Yh]h Parameters}(hj^YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZYubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjVYubj )}(hhh](j)}(h-``struct filename *name`` name being audited h](j)}(h``struct filename *name``h]j)}(hj{Yh]hstruct filename *name}(hj}YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyYubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjuYubj2)}(hhh]h)}(hname being auditedh]hname being audited}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1j1hjuYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjrYubj)}(h5``const struct dentry *dentry`` dentry being audited h](j)}(h``const struct dentry *dentry``h]j)}(hjYh]hconst struct dentry *dentry}(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)}(hdentry being auditedh]hdentry being audited}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjrYubj)}(h;``unsigned int flags`` attributes for this particular entryh](j)}(h``unsigned int flags``h]j)}(hjYh]hunsigned int flags}(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)}(h$attributes for this particular entryh]h$attributes for this particular entry}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjZubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjrYubeh}(h]h ]h"]h$]h&]uh1j hjVYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j auditsc_get_stamp (C function)c.auditsc_get_stamphNtauh1hhj2hhhNhNubj)}(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}(hjGZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjCZhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjVZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCZhhhjUZhM ubj{)}(hauditsc_get_stamph]j)}(hauditsc_get_stamph]hauditsc_get_stamp}(hjhZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjCZhhhjUZhM ubj)}(h6(struct audit_context *ctx, struct audit_stamp *stamp)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZmodnameN classnameNj] j` )}jc ]jf )}jY jjZsbc.auditsc_get_stampasbuh1hhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hctxh]hctx}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|Zubj)}(hstruct audit_stamp *stamph](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(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 ]jZc.auditsc_get_stampasbuh1hhjZubj2)}(h h]h }(hj2[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hj@[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hstamph]hstamp}(hjM[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|Zubeh}(h]h ]h"]h$]h&]jjuh1jhjCZhhhjUZhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?ZhhhjUZhM ubah}(h]j:Zah ](jjeh"]h$]h&]jj)jhuh1jhjUZhM hjah"]h$]h&]uh1j1hjm\hhhj\hM ubj{)}(h__audit_mq_openh]j)}(h__audit_mq_openh]h__audit_mq_open}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjm\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&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hoflagh]hoflag}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\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 ]jf )}jY j\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&]noemphjjuh1jhj\ubj)}(hstruct mq_attr *attrh](j)}(hjh]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}(hjK]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjM]modnameN classnameNj] j` )}jc ]j]c.__audit_mq_openasbuh1hhj)]ubj2)}(h h]h }(hji]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)]ubj)}(hjh]h*}(hjw]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\ubeh}(h]h ]h"]h$]h&]jjuh1jhjm\hhhj\hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhji\hhhj\hM ubah}(h]jd\ah ](jjeh"]h$]h&]jj)jhuh1jhj\hM hjf\hhubj)}(hhh]h)}(h%record audit data for a POSIX MQ openh]h%record audit data for a POSIX MQ open}(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&]uh1jhjf\hhhj\hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhj2hNhNubj)}(ht**Parameters** ``int oflag`` open flag ``umode_t mode`` mode bits ``struct mq_attr *attr`` queue attributesh](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.chM hj]ubj )}(hhh](j)}(h``int oflag`` open flag h](j)}(h ``int oflag``h]j)}(hj]h]h int oflag}(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)}(h open flagh]h open flag}(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``umode_t mode`` mode bits 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:295: ./kernel/auditsc.chM hj"^ubj2)}(hhh]h)}(h mode bitsh]h mode bits}(hjA^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 mq_attr *attr`` queue attributesh](j)}(h``struct mq_attr *attr``h]j)}(hja^h]hstruct mq_attr *attr}(hjc^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)}(hqueue attributesh]hqueue attributes}(hjz^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjw^ubah}(h]h ]h"]h$]h&]uh1j1hj[^ubeh}(h]h ]h"]h$]h&]uh1jhjv^hM hj]ubeh}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  __audit_mq_sendrecv (C function)c.__audit_mq_sendrecvhNtauh1hhj2hhhNhNubj)}(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}(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{)}(h__audit_mq_sendrecvh]j)}(h__audit_mq_sendrecvh]h__audit_mq_sendrecv}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhj^hM 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}(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_mq_sendrecvasbuh1hhj^ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hmqdesh]hmqdes}(hj)_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hsize_t msg_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjE_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjG_modnameN classnameNj] j` )}jc ]j_c.__audit_mq_sendrecvasbuh1hhj>_ubj2)}(h h]h }(hjc_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>_ubj)}(hmsg_lenh]hmsg_len}(hjq_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned int msg_prioh](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)}(hmsg_prioh]hmsg_prio}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(h$const struct timespec64 *abs_timeouth](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)}(hjh]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 timespec64h]h timespec64}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]j_c.__audit_mq_sendrecvasbuh1hhj_ubj2)}(h h]h }(hj2`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hjh]h*}(hj@`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h abs_timeouth]h abs_timeout}(hjM`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)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(hjw`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjt`hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1jhhhj2hNhNubj)}(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)}(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.chM hj`ubj )}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hj`h]h mqd_t mqdes}(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)}(h MQ descriptorh]h MQ descriptor}(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"``size_t msg_len`` Message length h](j)}(h``size_t msg_len``h]j)}(hj`h]hsize_t msg_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:295: ./kernel/auditsc.chM hj`ubj2)}(hhh]h)}(hMessage lengthh]hMessage length}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhjahM hj`ubj)}(h+``unsigned int msg_prio`` Message priority h](j)}(h``unsigned int msg_prio``h]j)}(hj*ah]hunsigned int msg_prio}(hj,ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(aubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj$aubj2)}(hhh]h)}(hMessage priorityh]hMessage priority}(hjCahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?ahM hj@aubah}(h]h ]h"]h$]h&]uh1j1hj$aubeh}(h]h ]h"]h$]h&]uh1jhj?ahM hj`ubj)}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j)}(h(``const struct timespec64 *abs_timeout``h]j)}(hjcah]h$const struct timespec64 *abs_timeout}(hjeahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaaubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj]aubj2)}(hhh]h)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(hj|ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjyaubah}(h]h ]h"]h$]h&]uh1j1hj]aubeh}(h]h ]h"]h$]h&]uh1jhjxahM hj`ubeh}(h]h ]h"]h$]h&]uh1j hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhj2hhhNhNubj)}(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}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjahhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjahM ubj{)}(h__audit_mq_notifyh]j)}(h__audit_mq_notifyh]h__audit_mq_notify}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjahM ubj)}(h2(mqd_t mqdes, const struct sigevent *notification)h](j)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jf )}jY jasbc.__audit_mq_notifyasbuh1hhjaubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hmqdesh]hmqdes}(hj+bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(h#const struct sigevent *notificationh](j)}(hjh]hconst}(hjDbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@bubj2)}(h h]h }(hjQbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@bubj)}(hjh]hstruct}(hj_bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@bubj2)}(h h]h }(hjlbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@bubh)}(hhh]j)}(hsigeventh]hsigevent}(hj}bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jbc.__audit_mq_notifyasbuh1hhj@bubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@bubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@bubj)}(h notificationh]h notification}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjahM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjahM ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jhjahM hjahhubj)}(hhh]h)}(h'record audit data for a POSIX MQ notifyh]h'record audit data for a POSIX MQ notify}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjbhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jhhhj2hNhNubj)}(hm**Parameters** ``mqd_t mqdes`` MQ descriptor ``const struct sigevent *notification`` Notification eventh](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjbubj )}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hj!ch]h mqd_t mqdes}(hj#chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjcubj2)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hj:chhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6chM hj7cubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj6chM hjcubj)}(h:``const struct sigevent *notification`` Notification eventh](j)}(h'``const struct sigevent *notification``h]j)}(hjZch]h#const struct sigevent *notification}(hj\chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXcubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjTcubj2)}(hhh]h)}(hNotification eventh]hNotification event}(hjschhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjpcubah}(h]h ]h"]h$]h&]uh1j1hjTcubeh}(h]h ]h"]h$]h&]uh1jhjochM hjcubeh}(h]h ]h"]h$]h&]uh1j hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "__audit_mq_getsetattr (C function)c.__audit_mq_getsetattrhNtauh1hhj2hhhNhNubj)}(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}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjchhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjchhhjchM ubj{)}(h__audit_mq_getsetattrh]j)}(h__audit_mq_getsetattrh]h__audit_mq_getsetattr}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjchM ubj)}(h%(mqd_t mqdes, struct mq_attr *mqstat)h](j)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jf )}jY jcsbc.__audit_mq_getsetattrasbuh1hhjcubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hmqdesh]hmqdes}(hj"dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct mq_attr *mqstath](j)}(hjh]hstruct}(hj;dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7dubj2)}(h h]h }(hjHdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7dubh)}(hhh]j)}(hmq_attrh]hmq_attr}(hjYdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVdubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[dmodnameN classnameNj] j` )}jc ]jdc.__audit_mq_getsetattrasbuh1hhj7dubj2)}(h h]h }(hjwdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7dubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7dubj)}(hmqstath]hmqstat}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjchM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjchM ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhjchM hjchhubj)}(hhh]h)}(h2record audit data for a POSIX MQ get/set attributeh]h2record audit data for a POSIX MQ get/set attribute}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhj2hNhNubj)}(hV**Parameters** ``mqd_t mqdes`` MQ descriptor ``struct mq_attr *mqstat`` MQ flagsh](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjdubj )}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjdh]h mqd_t mqdes}(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)}(h MQ descriptorh]h MQ descriptor}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubj)}(h#``struct mq_attr *mqstat`` MQ flagsh](j)}(h``struct mq_attr *mqstat``h]j)}(hj6eh]hstruct mq_attr *mqstat}(hj8ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4eubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj0eubj2)}(hhh]h)}(hMQ flagsh]hMQ flags}(hjOehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjLeubah}(h]h ]h"]h$]h&]uh1j1hj0eubeh}(h]h ]h"]h$]h&]uh1jhjKehM hjdubeh}(h]h ]h"]h$]h&]uh1j hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_ipc_obj (C function)c.__audit_ipc_objhNtauh1hhj2hhhNhNubj)}(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}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjehM ubj{)}(h__audit_ipc_objh]j)}(h__audit_ipc_objh]h__audit_ipc_obj}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjehM ubj)}(h(struct kern_ipc_perm *ipcp)h]j)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY jesbc.__audit_ipc_objasbuh1hhjeubj2)}(h h]h }(hj fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hipcph]hipcp}(hj&fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjehM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehM ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhjehM hjehhubj)}(hhh]h)}(h record audit data for ipc objecth]h record audit data for ipc object}(hjPfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjMfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhfjjhfjjjuh1jhhhj2hNhNubj)}(h@**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permissionsh](h)}(h**Parameters**h]j)}(hjrfh]h Parameters}(hjtfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpfubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjlfubj )}(hhh]j)}(h.``struct kern_ipc_perm *ipcp`` ipc permissionsh](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjfh]hstruct kern_ipc_perm *ipcp}(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)}(hipc permissionsh]hipc permissions}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjfubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhM hjfubah}(h]h ]h"]h$]h&]uh1j hjlfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !__audit_ipc_set_perm (C function)c.__audit_ipc_set_permhNtauh1hhj2hhhNhNubj)}(hhh](j)}(hTvoid __audit_ipc_set_perm (unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h]j)}(hSvoid __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfhhhjfhM ubj{)}(h__audit_ipc_set_permh]j)}(h__audit_ipc_set_permh]h__audit_ipc_set_perm}(hj ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfhhhjfhM ubj)}(h:(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j)}(hunsigned long qbytesh](j )}(hunsignedh]hunsigned}(hj(ghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$gubj2)}(h h]h }(hj6ghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$gubj )}(hlongh]hlong}(hjDghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$gubj2)}(h h]h }(hjRghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$gubj)}(hqbytesh]hqbytes}(hj`ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj gubj)}(h uid_t uidh](h)}(hhh]j)}(huid_th]huid_t}(hj|ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjygubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj~gmodnameN classnameNj] j` )}jc ]jf )}jY jgsbc.__audit_ipc_set_permasbuh1hhjugubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjugubj)}(huidh]huid}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjugubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj gubj)}(h gid_t gidh](h)}(hhh]j)}(hgid_th]hgid_t}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jgc.__audit_ipc_set_permasbuh1hhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hgidh]hgid}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj gubj)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jgc.__audit_ipc_set_permasbuh1hhjhubj2)}(h h]h }(hj,hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hmodeh]hmode}(hj:hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj gubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjfhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhjfhM ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjfhM hjfhhubj)}(hhh]h)}(h)record audit data for new ipc permissionsh]h)record audit data for new ipc permissions}(hjdhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjahhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|hjj|hjjjuh1jhhhj2hNhNubj)}(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)}(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$``unsigned long qbytes`` msgq bytes h](j)}(h``unsigned long qbytes``h]j)}(hjhh]hunsigned long qbytes}(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 msgq bytesh]h msgq bytes}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM hjhubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjhubj)}(h``uid_t uid`` msgq user id h](j)}(h ``uid_t uid``h]j)}(hjhh]h uid_t uid}(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 msgq user idh]h msgq user id}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM hjhubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjhubj)}(h``gid_t gid`` msgq group id h](j)}(h ``gid_t gid``h]j)}(hjih]h gid_t gid}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjiubj2)}(hhh]h)}(h msgq group idh]h msgq group id}(hj0ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,ihM hj-iubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhj,ihM hjhubj)}(h)``umode_t mode`` msgq mode (permissions) h](j)}(h``umode_t mode``h]j)}(hjPih]h umode_t mode}(hjRihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNiubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJiubj2)}(hhh]h)}(hmsgq mode (permissions)h]hmsgq mode (permissions)}(hjiihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeihM hjfiubah}(h]h ]h"]h$]h&]uh1j1hjJiubeh}(h]h ]h"]h$]h&]uh1jhjeihM hjhubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjhubh)}(h"Called only after audit_ipc_obj().h]h"Called only after audit_ipc_obj().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_socketcall (C function)c.__audit_socketcallhNtauh1hhj2hhhNhNubj)}(hhh](j)}(h7int __audit_socketcall (int nargs, unsigned long *args)h]j)}(h6int __audit_socketcall(int nargs, unsigned long *args)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjihhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2 ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjihhhjihM2 ubj{)}(h__audit_socketcallh]j)}(h__audit_socketcallh]h__audit_socketcall}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhjihM2 ubj)}(h (int nargs, unsigned long *args)h](j)}(h int nargsh](j )}(hinth]hint}(hj jhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj jubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj jubj)}(hnargsh]hnargs}(hj)jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned long *argsh](j )}(hunsignedh]hunsigned}(hjBjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>jubj2)}(h h]h }(hjPjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>jubj )}(hlongh]hlong}(hj^jhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>jubj2)}(h h]h }(hjljhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>jubj)}(hjh]h*}(hjzjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>jubj)}(hargsh]hargs}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhjihM2 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihM2 ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjihM2 hjihhubj)}(hhh]h)}(h$record audit data for sys_socketcallh]h$record audit data for sys_socketcall}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2 hjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihM2 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhj2hNhNubj)}(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)}(hjjh]h Parameters}(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.chM6 hjjubj )}(hhh](j)}(hJ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. h](j)}(h ``int nargs``h]j)}(hjjh]h int nargs}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3 hjjubj2)}(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.}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM3 hjkubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjkhM3 hjjubj)}(h"``unsigned long *args`` args arrayh](j)}(h``unsigned long *args``h]j)}(hj+kh]hunsigned long *args}(hj-khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)kubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5 hj%kubj2)}(hhh]h)}(h args arrayh]h args array}(hjDkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4 hjAkubah}(h]h ]h"]h$]h&]uh1j1hj%kubeh}(h]h ]h"]h$]h&]uh1jhj@khM5 hjjubeh}(h]h ]h"]h$]h&]uh1j hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_fd_pair (C function)c.__audit_fd_pairhNtauh1hhj2hhhNhNubj)}(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}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMD ubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkhhhjkhMD ubj{)}(h__audit_fd_pairh]j)}(h__audit_fd_pairh]h__audit_fd_pair}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhjkhMD ubj)}(h(int fd1, int fd2)h](j)}(hint fd1h](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hfd1h]hfd1}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hint fd2h](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hfd2h]hfd2}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhjkhMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}khhhjkhMD ubah}(h]jxkah ](jjeh"]h$]h&]jj)jhuh1jhjkhMD hjzkhhubj)}(hhh]h)}(h)record audit data for pipe and socketpairh]h)record audit data for pipe and socketpair}(hj=lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMD hj:lhhubah}(h]h ]h"]h$]h&]uh1jhjzkhhhjkhMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUljjUljjjuh1jhhhj2hNhNubj)}(ha**Parameters** ``int fd1`` the first file descriptor ``int fd2`` the second file descriptorh](h)}(h**Parameters**h]j)}(hj_lh]h Parameters}(hjalhhhNhNubah}(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.chMH hjYlubj )}(hhh](j)}(h&``int fd1`` the first file descriptor h](j)}(h ``int fd1``h]j)}(hj~lh]hint fd1}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|lubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chME hjxlubj2)}(hhh]h)}(hthe first file descriptorh]hthe first file descriptor}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhME hjlubah}(h]h ]h"]h$]h&]uh1j1hjxlubeh}(h]h ]h"]h$]h&]uh1jhjlhME hjulubj)}(h&``int fd2`` the second file descriptorh](j)}(h ``int fd2``h]j)}(hjlh]hint fd2}(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.chMG hjlubj2)}(hhh]h)}(hthe second file descriptorh]hthe second file descriptor}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMF hjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMG hjulubeh}(h]h ]h"]h$]h&]uh1j hjYlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_sockaddr (C function)c.__audit_sockaddrhNtauh1hhj2hhhNhNubj)}(hhh](j)}(h'int __audit_sockaddr (int len, void *a)h]j)}(h&int __audit_sockaddr(int len, void *a)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.chMR ubj2)}(h h]h }(hj mhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj mhhhjmhMR ubj{)}(h__audit_sockaddrh]j)}(h__audit_sockaddrh]h__audit_sockaddr}(hj2mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.mubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj mhhhjmhMR ubj)}(h(int len, void *a)h](j)}(hint lenh](j )}(hinth]hint}(hjNmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJmubj2)}(h h]h }(hj\mhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJmubj)}(hlenh]hlen}(hjjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFmubj)}(hvoid *ah](j )}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjh]ha}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFmubeh}(h]h ]h"]h$]h&]jjuh1jhj mhhhjmhMR ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj mhhhjmhMR ubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjmhMR hjmhhubj)}(hhh]h)}(h7record audit data for sys_bind, sys_connect, sys_sendtoh]h7record audit data for sys_bind, sys_connect, sys_sendto}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMR hjmhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhMR ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhj2hNhNubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMV hjmubj )}(hhh](j)}(h&``int len`` data length in user space h](j)}(h ``int len``h]j)}(hjnh]hint len}(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.chMS hjnubj2)}(hhh]h)}(hdata length in user spaceh]hdata length in user space}(hj/nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+nhMS hj,nubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhj+nhMS hj nubj)}(h)``void *a`` data address in kernel space h](j)}(h ``void *a``h]j)}(hjOnh]hvoid *a}(hjQnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMT hjInubj2)}(hhh]h)}(hdata address in kernel spaceh]hdata address in kernel space}(hjhnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdnhMT hjenubah}(h]h ]h"]h$]h&]uh1j1hjInubeh}(h]h ]h"]h$]h&]uh1jhjdnhMT hj nubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMV hjmubh)}(h6Returns 0 for success or NULL context or < 0 on error.h]h6Returns 0 for success or NULL context or < 0 on error.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMU hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &audit_signal_info_syscall (C function)c.audit_signal_info_syscallhNtauh1hhj2hhhNhNubj)}(hhh](j)}(h5int audit_signal_info_syscall (struct task_struct *t)h]j)}(h4int audit_signal_info_syscall(struct task_struct *t)h](j )}(hinth]hint}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnhhhjnhMv ubj{)}(haudit_signal_info_syscallh]j)}(haudit_signal_info_syscallh]haudit_signal_info_syscall}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnhhhjnhMv ubj)}(h(struct task_struct *t)h]j)}(hstruct task_struct *th](j)}(hjh]hstruct}(hj ohhhNhNubah}(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}(hj*ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'oubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,omodnameN classnameNj] j` )}jc ]jf )}jY jnsbc.audit_signal_info_syscallasbuh1hhjoubj2)}(h h]h }(hjJohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hjXohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hth]ht}(hjeohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhjnhhhjnhMv ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjnhMv ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jhjnhMv hjnhhubj)}(hhh]h)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv hjohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMv ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhj2hNhNubj)}(h**Parameters** ``struct task_struct *t`` task being signaled **Description** If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.h](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(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.chMz hjoubj )}(hhh]j)}(h.``struct task_struct *t`` task being signaled h](j)}(h``struct task_struct *t``h]j)}(hjoh]hstruct task_struct *t}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMw hjoubj2)}(hhh]h)}(htask being signaledh]htask being signaled}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMw hjoubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjohMw hjoubah}(h]h ]h"]h$]h&]uh1j hjoubh)}(h**Description**h]j)}(hj ph]h Description}(hj phhhNhNubah}(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.chMy hjoubh)}(h]If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.h]h]If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.}(hj!phhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMx hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #__audit_log_bprm_fcaps (C function)c.__audit_log_bprm_fcapshNtauh1hhj2hhhNhNubj)}(hhh](j)}(hfint __audit_log_bprm_fcaps (struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h]j)}(heint __audit_log_bprm_fcaps(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j )}(hinth]hint}(hjPphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLphhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hj_phhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLphhhj^phM ubj{)}(h__audit_log_bprm_fcapsh]j)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hjqphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLphhhj^phM ubj)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jf )}jY jspsbc.__audit_log_bprm_fcapsasbuh1hhjpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hbprmh]hbprm}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hconst struct cred *newh](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hj qhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hj'qhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubh)}(hhh]j)}(hcredh]hcred}(hj8qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5qubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:qmodnameN classnameNj] j` )}jc ]jpc.__audit_log_bprm_fcapsasbuh1hhjpubj2)}(h h]h }(hjVqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjdqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hnewh]hnew}(hjqqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]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 ]jpc.__audit_log_bprm_fcapsasbuh1hhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(holdh]hold}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjLphhhj^phM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHphhhj^phM ubah}(h]jCpah ](jjeh"]h$]h&]jj)jhuh1jhj^phM hjEphhubj)}(hhh]h)}(h9store information about a loading bprm and relevant fcapsh]h9store information about a loading bprm and relevant fcaps}(hj&rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj#rhhubah}(h]h ]h"]h$]h&]uh1jhjEphhhj^phM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>rjj>rjjjuh1jhhhj2hNhNubj)}(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)}(hjHrh]h Parameters}(hjJrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFrubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjBrubj )}(hhh](j)}(hB``struct linux_binprm *bprm`` pointer to the bprm being processed h](j)}(h``struct linux_binprm *bprm``h]j)}(hjgrh]hstruct linux_binprm *bprm}(hjirhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjerubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjarubj2)}(hhh]h)}(h#pointer to the bprm being processedh]h#pointer to the bprm being processed}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|rhM hj}rubah}(h]h ]h"]h$]h&]uh1j1hjarubeh}(h]h ]h"]h$]h&]uh1jhj|rhM hj^rubj)}(h8``const struct cred *new`` the proposed new credentials h](j)}(h``const struct cred *new``h]j)}(hjrh]hconst struct cred *new}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjrubj2)}(hhh]h)}(hthe proposed new credentialsh]hthe proposed new credentials}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM hjrubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhM hj^rubj)}(h/``const struct cred *old`` the old credentials h](j)}(h``const struct cred *old``h]j)}(hjrh]hconst struct cred *old}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjrubj2)}(hhh]h)}(hthe old credentialsh]hthe old credentials}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM hjrubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhM hj^rubeh}(h]h ]h"]h$]h&]uh1j hjBrubh)}(h**Description**h]j)}(hjsh]h Description}(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.chM hjBrubh)}(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}(hj*shhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjBrubh)}(h-Erich]h-Eric}(hj9shhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjBrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_log_capset (C function)c.__audit_log_capsethNtauh1hhj2hhhNhNubj)}(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}(hjhshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdshhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjwshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdshhhjvshM ubj{)}(h__audit_log_capseth]j)}(h__audit_log_capseth]h__audit_log_capset}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdshhhjvshM ubj)}(h0(const struct cred *new, const struct cred *old)h](j)}(hconst struct cred *newh](j)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(hhh]j)}(hcredh]hcred}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jf )}jY jssbc.__audit_log_capsetasbuh1hhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hj thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hnewh]hnew}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj2thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.tubj2)}(h h]h }(hj?thhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.tubj)}(hjh]hstruct}(hjMthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.tubj2)}(h h]h }(hjZthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.tubh)}(hhh]j)}(hcredh]hcred}(hjkthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhtubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmtmodnameN classnameNj] j` )}jc ]jsc.__audit_log_capsetasbuh1hhj.tubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.tubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.tubj)}(holdh]hold}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhjdshhhjvshM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`shhhjvshM ubah}(h]j[sah ](jjeh"]h$]h&]jj)jhuh1jhjvshM hj]shhubj)}(hhh]h)}(h;store information about the arguments to the capset syscallh]h;store information about the arguments to the capset syscall}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjthhubah}(h]h ]h"]h$]h&]uh1jhj]shhhjvshM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1jhhhj2hNhNubj)}(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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjtubj )}(hhh](j)}(h/``const struct cred *new`` the new credentials h](j)}(h``const struct cred *new``h]j)}(hjuh]hconst struct cred *new}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj uubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj uubj2)}(hhh]h)}(hthe new credentialsh]hthe new credentials}(hj(uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$uhM hj%uubah}(h]h ]h"]h$]h&]uh1j1hj uubeh}(h]h ]h"]h$]h&]uh1jhj$uhM hjuubj)}(h9``const struct cred *old`` the old (current) credentials h](j)}(h``const struct cred *old``h]j)}(hjHuh]hconst struct cred *old}(hjJuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFuubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjBuubj2)}(hhh]h)}(hthe old (current) credentialsh]hthe old (current) credentials}(hjauhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]uhM hj^uubah}(h]h ]h"]h$]h&]uh1j1hjBuubeh}(h]h ]h"]h$]h&]uh1jhj]uhM hjuubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjtubh)}(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}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_core_dumps (C function)c.audit_core_dumpshNtauh1hhj2hhhNhNubj)}(hhh](j)}(h"void audit_core_dumps (long signr)h]j)}(h!void audit_core_dumps(long signr)h](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjuhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM\ ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuhhhjuhM\ ubj{)}(haudit_core_dumpsh]j)}(haudit_core_dumpsh]haudit_core_dumps}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjuhhhjuhM\ ubj)}(h (long signr)h]j)}(h long signrh](j )}(hlongh]hlong}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hsignrh]hsignr}(hj!vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhjuhhhjuhM\ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjuhM\ ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jhjuhM\ hjuhhubj)}(hhh]h)}(h6record information about processes that end abnormallyh]h6record information about processes that end abnormally}(hjKvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM\ hjHvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhM\ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcvjjcvjjjuh1jhhhj2hNhNubj)}(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)}(hjmvh]h Parameters}(hjovhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkvubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM` hjgvubj )}(hhh]j)}(h``long signr`` signal value h](j)}(h``long signr``h]j)}(hjvh]h long signr}(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 signal valueh]h signal value}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM] hjvubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM] hjvubah}(h]h ]h"]h$]h&]uh1j hjgvubh)}(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_ hjgvubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM^ hjgvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_seccomp (C function)c.audit_seccomphNtauh1hhj2hhhNhNubj)}(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}(hj whhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMu ubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhjwhMu ubj{)}(h audit_seccomph]j)}(h audit_seccomph]h audit_seccomp}(hj-whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)wubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjwhMu ubj)}(h-(unsigned long syscall, long signr, int code)h](j)}(hunsigned long syscallh](j )}(hunsignedh]hunsigned}(hjIwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEwubj2)}(h h]h }(hjWwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEwubj )}(hlongh]hlong}(hjewhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEwubj2)}(h h]h }(hjswhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEwubj)}(hsyscallh]hsyscall}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAwubj)}(h long signrh](j )}(hlongh]hlong}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hsignrh]hsignr}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAwubj)}(hint codeh](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hcodeh]hcode}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAwubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhMu ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhMu ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjwhMu hjwhhubj)}(hhh]h)}(h)record information about a seccomp actionh]h)record information about a seccomp action}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMu hjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMu ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-xjj-xjjjuh1jhhhj2hNhNubj)}(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)}(hj7xh]h Parameters}(hj9xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5xubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMy hj1xubj )}(hhh](j)}(h)``unsigned long syscall`` syscall number h](j)}(h``unsigned long syscall``h]j)}(hjVxh]hunsigned long syscall}(hjXxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTxubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv hjPxubj2)}(hhh]h)}(hsyscall numberh]hsyscall number}(hjoxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkxhMv hjlxubah}(h]h ]h"]h$]h&]uh1j1hjPxubeh}(h]h ]h"]h$]h&]uh1jhjkxhMv hjMxubj)}(h``long signr`` signal value h](j)}(h``long signr``h]j)}(hjxh]h long signr}(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.chMw hjxubj2)}(hhh]h)}(h signal valueh]h signal value}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMw hjxubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMw hjMxubj)}(h ``int code`` the seccomp action h](j)}(h ``int code``h]j)}(hjxh]hint code}(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.chMx hjxubj2)}(hhh]h)}(hthe seccomp actionh]hthe seccomp action}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMx hjxubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMx hjMxubeh}(h]h ]h"]h$]h&]uh1j hj1xubh)}(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.chMz hj1xubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMy hj1xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_rule_change (C function)c.audit_rule_changehNtauh1hhj2hhhNhNubj)}(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}(hjHyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDyhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMfubj2)}(h h]h }(hjWyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDyhhhjVyhMfubj{)}(haudit_rule_changeh]j)}(haudit_rule_changeh]haudit_rule_change}(hjiyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDyhhhjVyhMfubj)}(h.(int type, int seq, void *data, size_t datasz)h](j)}(hint typeh](j )}(hinth]hint}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(htypeh]htype}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}yubj)}(hint seqh](j )}(hinth]hint}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hseqh]hseq}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}yubj)}(h void *datah](j )}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hj zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hdatah]hdata}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}yubj)}(h size_t dataszh](h)}(hhh]j)}(hsize_th]hsize_t}(hj4zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1zubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6zmodnameN classnameNj] j` )}jc ]jf )}jY jkysbc.audit_rule_changeasbuh1hhj-zubj2)}(h h]h }(hjTzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-zubj)}(hdataszh]hdatasz}(hjbzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}yubeh}(h]h ]h"]h$]h&]jjuh1jhjDyhhhjVyhMfubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@yhhhjVyhMfubah}(h]j;yah ](jjeh"]h$]h&]jj)jhuh1jhjVyhMfhj=yhhubj)}(hhh]h)}(h-apply all rules to the specified message typeh]h-apply all rules to the specified message type}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMfhjzhhubah}(h]h ]h"]h$]h&]uh1jhj=yhhhjVyhMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhj2hNhNubj)}(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)}(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:298: ./kernel/auditfilter.chMjhjzubj )}(hhh](j)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hjzh]hint type}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMghjzubj2)}(hhh]h)}(haudit message typeh]haudit message type}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMghjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMghjzubj)}(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.chMhhj{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{hMhhj{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhhjzubj)}(h``void *data`` payload data h](j)}(h``void *data``h]j)}(hj?{h]h void *data}(hjA{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.chMihj9{ubj2)}(hhh]h)}(h payload datah]h payload data}(hjX{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT{hMihjU{ubah}(h]h ]h"]h$]h&]uh1j1hj9{ubeh}(h]h ]h"]h$]h&]uh1jhjT{hMihjzubj)}(h&``size_t datasz`` size of payload datah](j)}(h``size_t datasz``h]j)}(hjx{h]h size_t datasz}(hjz{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv{ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMkhjr{ubj2)}(hhh]h)}(hsize of payload datah]hsize of payload data}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMjhj{ubah}(h]h ]h"]h$]h&]uh1j1hjr{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMkhjzubeh}(h]h ]h"]h$]h&]uh1j hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "audit_list_rules_send (C function)c.audit_list_rules_sendhNtauh1hhj2hhhNhNubj)}(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}(hj{hhhNhNubah}(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 }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{hhhj{hMubj{)}(haudit_list_rules_sendh]j)}(haudit_list_rules_sendh]haudit_list_rules_send}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhhj{hMubj)}(h&(struct sk_buff *request_skb, int seq)h](j)}(hstruct sk_buff *request_skbh](j)}(hjh]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)}(hsk_buffh]hsk_buff}(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_list_rules_sendasbuh1hhj |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)}(h request_skbh]h request_skb}(hjh|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj |ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hint seqh](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)}(hseqh]hseq}(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)}(hlist the audit rulesh]hlist the audit rules}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1jhhhj2hNhNubj)}(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)}(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.chMhj|ubj )}(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)}(hj}h]hstruct sk_buff *request_skb}(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.chMhj}ubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hj}hhhj}hMubj{)}(h parent_lenh]j)}(h parent_lenh]h parent_len}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhj}hMubj)}(h(const char *path)h]j)}(hconst char *pathh](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)}(hpathh]hpath}(hj~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)}(h3find the length of the parent portion of a pathnameh]h3find the length of the parent portion of a pathname}(hjF~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjC~hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^~jj^~jjjuh1jhhhj2hNhNubj)}(hL**Parameters** ``const char *path`` pathname of which to determine lengthh](h)}(h**Parameters**h]j)}(hjh~h]h Parameters}(hjj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf~ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjb~ubj )}(hhh]j)}(h:``const char *path`` pathname of which to determine lengthh](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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj~ubj2)}(hhh]h)}(h%pathname of which to determine lengthh]h%pathname of which to determine length}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj~ubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj~~ubah}(h]h ]h"]h$]h&]uh1j hjb~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %audit_compare_dname_path (C function)c.audit_compare_dname_pathhNtauh1hhj2hhhNhNubj)}(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}(hj~hhhNhNubah}(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 }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~hhhj~hMubj{)}(haudit_compare_dname_pathh]j)}(haudit_compare_dname_pathh]haudit_compare_dname_path}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhj~hMubj)}(h;(const struct qstr *dname, const char *path, int parentlen)h](j)}(hconst struct qstr *dnameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hqstrh]hqstr}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.audit_compare_dname_pathasbuh1hhjubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdnameh]hdname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int parentlenh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h parentlenh]h parentlen}(hj$hhhNhNubah}(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&]jjjuh1jjjhj~hhhj~hMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jhj~hMhj~hhubj)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jhhhj2hNhNubj)}(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)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjjubj )}(hhh](j)}(h>``const struct qstr *dname`` dentry name that we're comparing h](j)}(h``const struct qstr *dname``h]j)}(hjh]hconst struct qstr *dname}(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)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``const char *path`` full pathname that we're comparing 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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj€ubj2)}(hhh]h)}(h"full pathname that we're comparingh]h$full pathname that we’re comparing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj݀hMhjހubah}(h]h ]h"]h$]h&]uh1j1hj€ubeh}(h]h ]h"]h$]h&]uh1jhj݀hMhjubj)}(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.}(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 hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj2hhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM"ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhM.ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sys_acct (C function) c.sys_accthNtauh1hhjIhhhNhNubj)}(hhh](j)}(h(long sys_acct (const char __user * name)h]j)}(h&long sys_acct(const char __user *name)h](j )}(hlongh]hlong}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjhMubj{)}(hsys_accth]j)}(hsys_accth]hsys_acct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(h(const char __user *name)h]j)}(hconst char __user *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 }(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)}(hnameh]hname}(hjhhhNhNubah}(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)}(h!enable/disable process accountingh]h!enable/disable process accounting}(hj0hhhNhNubah}(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&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhjIhNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjLubj )}(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)}(hjqh]hconst char __user * name}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjkubj2)}(hhh]h)}(h?file name for accounting records or NULL to shutdown accountingh]h?file name for accounting records or NULL to shutdown accounting}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjLubh)}(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.}(hj‚hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjLubh)}(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:304: ./kernel/acct.chM"hjLubh)}(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#hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j acct_collect (C function)c.acct_collecthNtauh1hhjIhhhNhNubj)}(hhh](j)}(h1void acct_collect (long exitcode, int group_dead)h]j)}(h0void acct_collect(long exitcode, int group_dead)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/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&]uh1j1hjhhhj&hM)ubj{)}(h acct_collecth]j)}(h acct_collecth]h acct_collect}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hM)ubj)}(h(long exitcode, int group_dead)h](j)}(h long exitcodeh](j )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hexitcodeh]hexitcode}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hint group_deadh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h group_deadh]h group_dead}(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)}(h0collect accounting information into pacct_structh]h0collect accounting information into pacct_struct}(hjЃhhhNhNubah}(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&]uh1jhj hhhj&hM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjIhNhNubj)}(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}(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*hj ubj2)}(hhh]h)}(htask exit codeh]htask exit code}(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)}(hH``int group_dead`` not 0, if this thread is the last one in the process.h](j)}(h``int group_dead``h]j)}(hjJh]hint group_dead}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM,hjDubj2)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM+hj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM,hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j acct_process (C function)c.acct_processhNtauh1hhjIhhhNhNubj)}(hhh](j)}(hvoid acct_process (void)h]j)}(hvoid acct_process(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMbubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMbubj{)}(h acct_processh]j)}(h acct_processh]h acct_process}(hjńhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMbubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj݄ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjلubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMbhjhhubj)}(hhh]h)}(h.handles process accounting for an exiting taskh]h.handles process accounting for an exiting task}(hj hhhNhNubah}(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&]uh1jhjhhhjhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1jhhhjIhNhNubj)}(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)}(hjLh]hvoid}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhhjFubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chKhjbubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhhjCubah}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubeh}(h]accounting-frameworkah ]h"]accounting frameworkah$]h&]uh1hhhhhhhhM.ubh)}(hhh](h)}(h Block Devicesh]h Block Devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_advance (C function) c.bio_advancehNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKubj2)}(h h]h }(hj΅hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjͅhKubj{)}(h bio_advanceh]j)}(h bio_advanceh]h bio_advance}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܅ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjͅhKubj)}(h&(struct bio *bio, unsigned int nbytes)h](j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(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 jsb c.bio_advanceasbuh1hhjubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nbytesh](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)}(hnbytesh]hnbytes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjͅhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjͅhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjͅhKhjhhubj)}(hhh]h)}(h0increment/complete a bio by some number of bytesh]h0increment/complete a bio by some number of bytes}(hjІhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhj͆hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjͅhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhjubj )}(hhh](j)}(h#``struct bio *bio`` bio to advance 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:310: ./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)}(hjJh]hunsigned int nbytes}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhjDubj2)}(hhh]h)}(hnumber of bytes to completeh]hnumber of bytes to complete}(hjchhhNhNubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./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:310: ./include/linux/bio.hhKhjubh)}(hI**bio** will then represent the remaining, uncompleted portion of the io.h](j)}(h**bio**h]hbio}(hjhhhNhNubah}(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:310: ./include/linux/bio.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j folio_iter (C struct) c.folio_iterhNtauh1hhjhhhNhNubj)}(hhh](j)}(h folio_iterh]j)}(hstruct folio_iterh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h folio_iterh]j)}(hjh]h folio_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj߇hhhjhKubah}(h]jڇah ](jjeh"]h$]h&]jj)jhuh1jhjhKhj܇hhubj)}(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:310: ./include/linux/bio.hhMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj܇hhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjAjjAjjjuh1jhhhjhNhNubj)}(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}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh:}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjEubj7C)}(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; };}hjfsbah}(h]h ]h"]h$]h&]jjuh1j6ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM hjEubh)}(h **Members**h]j)}(hjwh]hMembers}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjEubj )}(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:310: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(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)}(hjψh]hoffset}(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:310: ./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:310: ./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).}(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 hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhjhhhNhNubj)}(hhh](j)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]j{)}(hbio_for_each_folio_allh]j)}(hj[h]hbio_for_each_folio_all}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM5ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjxhM5ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjxhM5hjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjxhM5ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(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:310: ./include/linux/bio.hhM7hjhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM5hjubah}(h]h ]h"]h$]h&]uh1jhjhM5hjhhubj)}(hr**Parameters** ``fi`` struct folio_iter which is updated for each folio. ``bio`` struct bio to iterate over.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:310: ./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:310: ./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&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM8hjubj2)}(hhh]h)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM7hj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hM8hjubeh}(h]h ]h"]h$]h&]uh1j hjƉubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_next_split (C function)c.bio_next_splithNtauh1hhjhhhNhNubj)}(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)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMEubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzhhhjhMEubh)}(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_splitasbuh1hhjzhhhjhMEubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzhhhjhMEubj)}(hjh]h*}(hj̊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhMEubj{)}(hbio_next_splith]j)}(hjh]hbio_next_split}(hj݊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjيubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjhMEubj)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hstruct bio *bioh](j)}(hjh]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.bio_next_splitasbuh1hhjubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int sectorsh](j )}(hinth]hint}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hsectorsh]hsectors}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(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 ]jc.bio_next_splitasbuh1hhjubj2)}(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&]noemphjjuh1jhjubj)}(hstruct bio_set *bsh](j)}(hjh]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 ]jc.bio_next_splitasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbsh]hbs}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjzhhhjhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhMEubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjhMEhjshhubj)}(hhh]h)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hjfhhhNhNubj)}(h **sectors**h]hsectors}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh# from a bio, splitting if necessary}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMEhjchhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:310: ./include/linux/bio.hhMIhjubj )}(hhh](j)}(h!``struct bio *bio`` bio to split 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:310: ./include/linux/bio.hhMFhjubj2)}(hhh]h)}(h bio to splith]h bio to split}(hjҌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjΌhMFhjόubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjΌhMFhjubj)}(hE``int sectors`` number of sectors to split from the front of **bio** h](j)}(h``int sectors``h]j)}(hjh]h int sectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(h``gfp_t gfp`` gfp mask h](j)}(h ``gfp_t gfp``h]j)}(hj9h]h gfp_t gfp}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMHhj3ubj2)}(hhh]h)}(hgfp maskh]hgfp mask}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMHhjOubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMHhjubj)}(h0``struct bio_set *bs`` bio set to allocate from h](j)}(h``struct bio_set *bs``h]j)}(hjrh]hstruct bio_set *bs}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMIhjlubj2)}(hhh]h)}(hbio set to allocate fromh]hbio set to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./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}(hjˍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÍubh of }(hjÍhhhNhNubj)}(h**bio**h]hbio}(hjݍhhhNhNubah}(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:310: ./include/linux/bio.hhMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #bio_iov_bounce_nr_vecs (C function)c.bio_iov_bounce_nr_vecshNtauh1hhjhhhNhNubj)}(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}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$hhhj6hMubj )}(hshorth]hshort}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$hhhj6hMubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$hhhj6hMubj{)}(hbio_iov_bounce_nr_vecsh]j)}(hbio_iov_bounce_nr_vecsh]hbio_iov_bounce_nr_vecs}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$hhhj6hMubj)}(h%(struct iov_iter *iter, blk_opf_t op)h](j)}(hstruct iov_iter *iterh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj2)}(h h]h }(hjhhhNhNubah}(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 jgsbc.bio_iov_bounce_nr_vecsasbuh1hhj}ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(hjh]h*}(hj͎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hiterh]hiter}(hjڎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h blk_opf_t oph](h)}(hhh]j)}(h blk_opf_th]h blk_opf_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.bio_iov_bounce_nr_vecsasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoph]hop}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj6hMhjhhubj)}(hhh]h)}(h*calculate number of bvecs for a bounce bioh]h*calculate number of bvecs for a bounce bio}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhjhNhNubj)}(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)}(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:310: ./include/linux/bio.hhMhjhubj )}(hhh](j)}(h.``struct iov_iter *iter`` iter to bounce from h](j)}(h``struct iov_iter *iter``h]j)}(hjh]hstruct iov_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(hiter to bounce fromh]hiter to bounce from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``blk_opf_t op`` REQ_OP_* for the bio h](j)}(h``blk_opf_t op``h]j)}(hjƏh]h blk_opf_t op}(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:310: ./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ۏhMhjubeh}(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:310: ./include/linux/bio.hhMhjhubh)}(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 }(hjhhhNhNubj)}(h**iter**h]hiter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_add_max_vecs (C function)c.bio_add_max_vecshNtauh1hhjhhhNhNubj)}(hhh](j)}(h=unsigned int bio_add_max_vecs (void *kaddr, unsigned int len)h]j)}(hah"]h$]h&]uh1j1hjThhhjfhMubj )}(hinth]hint}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjThhhjfhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhjfhMubj{)}(hbio_add_max_vecsh]j)}(hbio_add_max_vecsh]hbio_add_max_vecs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjfhMubj)}(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*}(hj͐hhhNhNubah}(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}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjfhMhjMhhubj)}(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}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjhNhNubj)}(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)}(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:310: ./include/linux/bio.hhMhjqubj )}(hhh](j)}(h.``void *kaddr`` kernel virtual address to add h](j)}(h``void *kaddr``h]j)}(hjh]h void *kaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(hkernel virtual address to addh]hkernel virtual address to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``unsigned int len`` length in bytes to add 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjɑubj2)}(hhh]h)}(hlength in bytes to addh]hlength in bytes to add}(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 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:310: ./include/linux/bio.hhMhjqubh)}(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 [}(hj hhhNhNubj)}(h **kaddr**h]hkaddr}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubj)}(h**len**h]hlen}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh] in the worse case.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_is_zone_append (C function)c.bio_is_zone_appendhNtauh1hhjhhhNhNubj)}(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}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjhMubj{)}(hbio_is_zone_appendh]j)}(hbio_is_zone_appendh]hbio_is_zone_append}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]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.bio_is_zone_appendasbuh1hhjubj2)}(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&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhhubj)}(hhh]h)}(his this a zone append bio?h]his this a zone append bio?}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhjhNhNubj)}(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)}(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:310: ./include/linux/bio.hhMhjNubj )}(hhh]j)}(h!``struct bio *bio`` bio to check h](j)}(h``struct bio *bio``h]j)}(hjsh]hstruct bio *bio}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjmubj2)}(hhh]h)}(h bio to checkh]h bio to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubah}(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:310: ./include/linux/bio.hhMhjNubh)}(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}(hj̓hhhNhNubah}(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:310: ./include/linux/bio.hhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_queue_flag_set (C function)c.blk_queue_flag_sethNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKLubj{)}(hblk_queue_flag_seth]j)}(hblk_queue_flag_seth]hblk_queue_flag_set}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKLubj)}(h,(unsigned int flag, struct request_queue *q)h](j)}(hunsigned int flagh](j )}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj )}(hinth]hint}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj)}(hflagh]hflag}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hstruct request_queue *qh](j)}(hjh]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 j(sbc.blk_queue_flag_setasbuh1hhjubj2)}(h h]h }(hjєhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjߔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKLhjhhubj)}(hhh]h)}(hatomically set a queue flagh]hatomically set a queue flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKLhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhjhNhNubj)}(hc**Parameters** ``unsigned int flag`` flag to be set ``struct request_queue *q`` request queueh](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKPhj1ubj )}(hhh](j)}(h%``unsigned int flag`` flag to be set h](j)}(h``unsigned int flag``h]j)}(hjVh]hunsigned int flag}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKMhjPubj2)}(hhh]h)}(hflag to be seth]hflag to be set}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKMhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKMhjMubj)}(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:311: ./block/blk-core.chKOhjubj2)}(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:311: ./block/blk-core.chKNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjMubeh}(h]h ]h"]h$]h&]uh1j hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blk_queue_flag_clear (C function)c.blk_queue_flag_clearhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKWubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKWubj{)}(hblk_queue_flag_clearh]j)}(hblk_queue_flag_clearh]hblk_queue_flag_clear}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKWubj)}(h,(unsigned int flag, struct request_queue *q)h](j)}(hunsigned int flagh](j )}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj )}(hinth]hint}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hflagh]hflag}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(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_queue_flag_clearasbuh1hhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjÖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hj.ch]hq}(hjЖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKWubah}(h]jܕah ](jjeh"]h$]h&]jj)jhuh1jhjhKWhjޕhhubj)}(hhh]h)}(hatomically clear a queue flagh]hatomically clear a queue flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKWhjhhubah}(h]h ]h"]h$]h&]uh1jhjޕhhhjhKWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hg**Parameters** ``unsigned int flag`` flag to be cleared ``struct request_queue *q`` request queueh](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:311: ./block/blk-core.chK[hjubj )}(hhh](j)}(h)``unsigned int flag`` flag to be cleared h](j)}(h``unsigned int flag``h]j)}(hj:h]hunsigned int flag}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKXhj4ubj2)}(hhh]h)}(hflag to be clearedh]hflag to be cleared}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKXhjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKXhj1ubj)}(h)``struct request_queue *q`` request queueh](j)}(h``struct request_queue *q``h]j)}(hjsh]hstruct request_queue *q}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKZhjmubj2)}(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:311: ./block/blk-core.chKYhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhKZhj1ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_op_str (C function) c.blk_op_strhNtauh1hhjhhhNhNubj)}(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}(hj͗hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɗhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKuubj2)}(h h]h }(hjۗhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjɗhhhjڗhKuubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjɗhhhjڗhKuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjɗhhhjڗhKuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɗhhhjڗhKuubj{)}(h blk_op_strh]j)}(h blk_op_strh]h blk_op_str}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjɗhhhjڗhKuubj)}(h(enum req_op op)h]j)}(henum req_op oph](j)}(hj:h]henum}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubh)}(hhh]j)}(hreq_oph]hreq_op}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.blk_op_strasbuh1hhj.ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hoph]hop}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhjɗhhhjڗhKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjŗhhhjڗhKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjڗhKuhj—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:311: ./block/blk-core.chKuhjhhubah}(h]h ]h"]h$]h&]uh1jhj—hhhjڗhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:311: ./block/blk-core.chKyhjĘubj )}(hhh]j)}(h(``enum req_op op`` a request operation. h](j)}(h``enum req_op op``h]j)}(hjh]henum req_op op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKvhjubj2)}(hhh]h)}(ha request operation.h]ha request operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubah}(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:311: ./block/blk-core.chKxhjĘ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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKwhjĘubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_sync_queue (C function)c.blk_sync_queuehNtauh1hhjhhhNhNubj)}(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}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjwhKubj{)}(hblk_sync_queueh]j)}(hblk_sync_queueh]hblk_sync_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhKubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjƙmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_sync_queueasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(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)}(h'cancel any pending callbacks on a queueh]h'cancel any pending callbacks on a queue}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhj%hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1jhhhjhNhNubj)}(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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjDubj )}(hhh]j)}(h&``struct request_queue *q`` the queue h](j)}(h``struct request_queue *q``h]j)}(hjih]hstruct request_queue *q}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjcubj2)}(hhh]h)}(h the queueh]h the queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj`ubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjDubj)}(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:311: ./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.}(hj͚hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjubeh}(h]h ]h"]h$]h&]uh1jhj̚hKhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hblk_set_pm_onlyh]j)}(hblk_set_pm_onlyh]hblk_set_pm_only}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]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 request_queueh]h request_queue}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jf )}jY j%sbc.blk_set_pm_onlyasbuh1hhj;ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hj.ch]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hincrement pm_only counterh]hincrement pm_only counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjٛjjٛjjjuh1jhhhjhNhNubj)}(hC**Parameters** ``struct request_queue *q`` request queue pointerh](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:311: ./block/blk-core.chKhjݛubj )}(hhh]j)}(h1``struct request_queue *q`` request queue pointerh](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:311: ./block/blk-core.chKhjubj2)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjݛubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_put_queue (C function)c.blk_put_queuehNtauh1hhjhhhNhNubj)}(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}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXhhhjjhMubj{)}(h blk_put_queueh]j)}(h blk_put_queueh]h blk_put_queue}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjjhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]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 jsbc.blk_put_queueasbuh1hhjubj2)}(h h]h }(hjלhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jhjjhMhjQhhubj)}(hhh]h)}(h$decrement the request_queue refcounth]h$decrement the request_queue refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhjhNhNubj)}(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)}(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:311: ./block/blk-core.chMhj7ubj )}(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)}(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:311: ./block/blk-core.chMhjVubj2)}(hhh]h)}(h9the request_queue structure to decrement the refcount forh]h9the request_queue structure to decrement the refcount for}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj7ubh)}(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:311: ./block/blk-core.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_get_queue (C function)c.blk_get_queuehNtauh1hhjhhhNhNubj)}(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:311: ./block/blk-core.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj؝hhhjhMubj{)}(h blk_get_queueh]j)}(h blk_get_queueh]h blk_get_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj؝hhhjhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_get_queueasbuh1hhjubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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$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:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjѝhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:311: ./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:311: ./block/blk-core.chMhj՞ubj2)}(hhh]h)}(h9the request_queue structure to increment the refcount forh]h9the request_queue structure to increment the refcount for}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(h4Increment the refcount of the request_queue kobject.h]h4Increment the refcount of the request_queue kobject.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(h **Context**h]j)}(hj=h]hContext}(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:311: ./block/blk-core.chMhjubh)}(h Any context.h]h Any context.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j submit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhjhhhNhNubj)}(hhh](j)}(h(void submit_bio_noacct (struct bio *bio)h]j)}(h'void submit_bio_noacct(struct bio *bio)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~hhhjhMubj{)}(hsubmit_bio_noaccth]j)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhjhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]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 reftargetjߟmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.submit_bio_noacctasbuh1hhjubj2)}(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&]jjuh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjwhhubj)}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhjhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj^ubj )}(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)}(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:311: ./block/blk-core.chMhj}ubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjhhhjhMubj{)}(h submit_bioh]j)}(h submit_bioh]h submit_bio}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hjMhhhNhNubah}(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 ]jf )}jY j&sb c.submit_bioasbuh1hhj<ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hbioh]hbio}(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.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:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjۡjjۡjjjuh1jhhhjhNhNubj)}(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)}(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:311: ./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)}(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:311: ./block/blk-core.chMhjubj2)}(hhh]h)}(h6The :c:type:`struct bio ` which describes the I/Oh](hThe }(hjhhhNhNubh)}(h:c:type:`struct bio `h]j)}(hj'h]h struct bio}(hj)hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjbiouh1hhjhMhjubh which describes the I/O}(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 hjߡubh)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./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 }(hjxhhhNhNubh)}(h:c:type:`struct bio `h]j)}(hjh]h struct bio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjbiouh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjxubhr that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field.}(hjxhhhNhNubeh}(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:311: ./block/blk-core.chMhjߡubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_poll (C function) c.bio_pollhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hbio_pollh]j)}(hbio_pollh]hbio_poll}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h@(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(hbioh]hbio}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.bio_pollasbuh1hhj$ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct io_comp_batch *iobh](j)}(hjh]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 ]jb c.bio_pollasbuh1hhjubj2)}(h h]h }(hj֣hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hiobh]hiob}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(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 }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjBhhhNhNubah}(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]jޢah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hpoll for BIO completionsh]hpoll for BIO completions}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:311: ./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:311: ./block/blk-core.chMhjubj2)}(hhh]h)}(hbio to poll forh]hbio to poll for}(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 io_comp_batch *iob`` batches of IO h](j)}(h``struct io_comp_batch *iob``h]j)}(hjh]hstruct io_comp_batch *iob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj2)}(hhh]h)}(h batches of IOh]h batches of IO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``unsigned int flags`` BLK_POLL_* flags that control the behavior h](j)}(h``unsigned int flags``h]j)}(hjh]hunsigned int flags}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj2)}(hhh]h)}(h*BLK_POLL_* flags that control the behaviorh]h*BLK_POLL_* flags that control the behavior}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./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:311: ./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:311: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hbio_start_io_accth]j)}(hbio_start_io_accth]hbio_start_io_acct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubh)}(hhh]j)}(hbioh]hbio}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jf )}jY j)sbc.bio_start_io_acctasbuh1hhj?ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hbioh]hbio}(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]jݥah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjߥhhubj)}(hhh]h)}(h*start I/O accounting for bio based driversh]h*start I/O accounting for bio based drivers}(hjƦhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjæhhubah}(h]h ]h"]h$]h&]uh1jhjߥhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjަjjަjjjuh1jhhhjhNhNubj)}(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)}(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:311: ./block/blk-core.chM!hjubj )}(hhh]j)}(h-``struct bio *bio`` bio to start account for h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj2)}(hhh]h)}(hbio to start account forh]hbio to start account 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)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM hjubh)}(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().}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_lld_busy (C function)c.blk_lld_busyhNtauh1hhjhhhNhNubj)}(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:311: ./block/blk-core.chMAubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMAubj{)}(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&]jjuh1jzhjhhhjhMAubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjħhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߧubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_lld_busyasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMAubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jhjhMAhj|hhubj)}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMAhjChhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1jhhhjhNhNubj)}(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)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMEhjbubj )}(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:311: ./block/blk-core.chMBhjubj2)}(hhh]h)}(h%the queue of the device being checkedh]h%the queue of the device being checked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhj~ubah}(h]h ]h"]h$]h&]uh1j hjbubh)}(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:311: ./block/blk-core.chMDhjbubj)}(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:311: ./block/blk-core.chMDhjب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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMHhjبubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjbubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMNhjbubh)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMOhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_start_plug (C function)c.blk_start_plughNtauh1hhjhhhNhNubj)}(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}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjUhMubj{)}(hblk_start_plugh]j)}(hblk_start_plugh]hblk_start_plug}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjUhMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hjh]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 jjsbc.blk_start_plugasbuh1hhjubj2)}(h h]h }(hj©hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjЩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hplugh]hplug}(hjݩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubah}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jhjUhMhj<hhubj)}(hhh]h)}(h7initialize blk_plug and track it inside the task_structh]h7initialize blk_plug and track it inside the task_struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:311: ./block/blk-core.chMhj#ubj )}(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)}(hjHh]hstruct blk_plug *plug}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjBubj2)}(hhh]h)}(hEThe :c:type:`struct blk_plug ` that needs to be initializedh](hThe }(hjahhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjkh]hstruct blk_plug}(hjmhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjblk_pluguh1hhj]hMhjaubh that needs to be initialized}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj#ubj)}(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}(hjȪhhhNhNubah}(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:311: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_finish_plug (C function)c.blk_finish_plughNtauh1hhjhhhNhNubj)}(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}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$hhhj6hMubj{)}(hblk_finish_plugh]j)}(hblk_finish_plugh]hblk_finish_plug}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$hhhj6hMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubh)}(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 jKsbc.blk_finish_plugasbuh1hhjaubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubah}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj6hMhjhhubj)}(hhh]h)}(h(mark the end of a batch of submitted I/Oh]h(mark the end of a batch of submitted I/O}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(hj h]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:311: ./block/blk-core.chMhjubj )}(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)}(hj)h]hstruct blk_plug *plug}(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:311: ./block/blk-core.chMhj#ubj2)}(hhh]h)}(hCThe :c:type:`struct blk_plug ` passed to blk_start_plug()h](hThe }(hjBhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjLh]hstruct blk_plug}(hjNhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjblk_pluguh1hhj>hMhjBubh passed to blk_start_plug()}(hjBhhhNhNubeh}(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)}(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:311: ./block/blk-core.chMhjubh)}(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:311: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_queue_enter (C function)c.blk_queue_enterhNtauh1hhjhhhNhNubj)}(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}(hj̬hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjȬhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM,ubj2)}(h h]h }(hj۬hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjȬhhhjڬhM,ubj{)}(hblk_queue_enterh]j)}(hblk_queue_enterh]hblk_queue_enter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjȬhhhjڬhM,ubj)}(h3(struct request_queue *q, blk_mq_req_flags_t flags)h](j)}(hstruct request_queue *qh](j)}(hjh]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_queue_enterasbuh1hhjubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hblk_mq_req_flags_t flagsh](h)}(hhh]j)}(hblk_mq_req_flags_th]hblk_mq_req_flags_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jCc.blk_queue_enterasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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)}(h"try to increase q->q_usage_counterh]h"try to increase q->q_usage_counter}(hjӭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM,hjЭhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjڬhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:314: ./block/blk-core.chM0hjubj )}(hhh](j)}(h2``struct request_queue *q`` request queue pointer 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:314: ./block/blk-core.chM-hjubj2)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(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)}(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)}(hjMh]hblk_mq_req_flags_t flags}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM/hjGubj2)}(hhh]h)}(h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh]h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM.hjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM/hj ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhjhhhNhNubj)}(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:317: ./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}(hjȮhhhNhNubah}(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)}(hjh]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 jʮsbc.blk_rq_map_user_iovasbuh1hhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjܮubj)}(hstruct request *rqh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(hrequesth]hrequest}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjumodnameN classnameNj] j` )}jc ]jc.blk_rq_map_user_iovasbuh1hhjQubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjܮubj)}(hstruct rq_map_data *map_datah](j)}(hjh]hstruct}(hjůhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjүhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rq_map_datah]h rq_map_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.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)}(hmap_datah]hmap_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjܮubj)}(hconst struct iov_iter *iterh](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jc.blk_rq_map_user_iovasbuh1hhj1ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(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 ]jc.blk_rq_map_user_iovasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfp_maskh]hgfp_mask}(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)}(h4map user data to a request, for passthrough requestsh]h4map user data to a request, for passthrough requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhjhNhNubj)}(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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj5ubj )}(hhh](j)}(hK``struct request_queue *q`` request queue where request should be inserted h](j)}(h``struct request_queue *q``h]j)}(hjZh]hstruct request_queue *q}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjTubj2)}(hhh]h)}(h.request queue where request should be insertedh]h.request queue where request should be inserted}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(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:317: ./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&]uh1jhjhMhjQubj)}(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)}(hj̱h]hstruct rq_map_data *map_data}(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:317: ./block/blk-map.chMhjƱubj2)}(hhh]h)}(h7pointer to the rq_map_data holding pages (if necessary)h]h7pointer to the rq_map_data holding pages (if necessary)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjƱubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(h/``const struct iov_iter *iter`` iovec iterator h](j)}(h``const struct iov_iter *iter``h]j)}(hjh]hconst struct iov_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj2)}(hhh]h)}(hiovec iteratorh]hiovec iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j)}(hj>h]hgfp_t gfp_mask}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj8ubj2)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj5ubj)}(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:317: ./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:317: ./block/blk-map.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhjhhhNhNubj)}(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}(hjײhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjӲhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chM^ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjӲhhhjhM^ubj{)}(hblk_rq_unmap_userh]j)}(hblk_rq_unmap_userh]hblk_rq_unmap_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjӲhhhjhM^ubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_rq_unmap_userasbuh1hhjubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(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)}(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:317: ./block/blk-map.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jhj̲hhhjhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:317: ./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&]uh1jhjֳubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chM_hjҳubj2)}(hhh]h)}(hstart of bio listh]hstart of bio list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j1hjҳubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjϳ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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMahj)ubah}(h]h ]h"]h$]h&]uh1jhj;hMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhjhhhNhNubj)}(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}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhjphMubj{)}(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&]jjuh1jzhj^hhhjphMubj)}(hB(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j)}(hstruct request *rqh](j)}(hjh]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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *kbufh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hkbufh]hkbuf}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hinth]hint}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(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}(hjӵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjphMhjWhhubj)}(hhh]h)}(h6map kernel data to a request, for passthrough requestsh]h6map kernel data to a request, for passthrough requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj )}(hhh](j)}(h'``struct request *rq`` request to fill h](j)}(h``struct request *rq``h]j)}(hj>h]hstruct request *rq}(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:317: ./block/blk-map.chMhj8ubj2)}(hhh]h)}(hrequest to fillh]hrequest to fill}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubj)}(h!``void *kbuf`` the kernel buffer h](j)}(h``void *kbuf``h]j)}(hjwh]h void *kbuf}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjqubj2)}(hhh]h)}(hthe kernel bufferh]hthe kernel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubj)}(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:317: ./block/blk-map.chMhjubj2)}(hhh]h)}(hlength of user datah]hlength of user data}(hjɶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŶhMhjƶubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjŶhMhj5ubj)}(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:317: ./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&]uh1jhjhMhj5ubeh}(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:317: ./block/blk-map.chMhjubj)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj:ubah}(h]h ]h"]h$]h&]uh1jhjLhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_register_queue (C function)c.blk_register_queuehNtauh1hhjhhhNhNubj)}(hhh](j)}(h-int blk_register_queue (struct gendisk *disk)h]j)}(h,int blk_register_queue(struct gendisk *disk)h](j )}(hinth]hint}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjhMubj{)}(hblk_register_queueh]j)}(hblk_register_queueh]hblk_register_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjηhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˷ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjзmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_register_queueasbuh1hhjubj2)}(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)}(h'register a block layer queue with sysfsh]h'register a block layer queue with sysfs}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhjhNhNubj)}(hk**Parameters** ``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjOubj )}(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)}(hjth]hstruct gendisk *disk}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjnubj2)}(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:320: ./block/blk-sysfs.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubah}(h]h ]h"]h$]h&]uh1j hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhjhhhNhNubj)}(hhh](j)}(h0void blk_unregister_queue (struct gendisk *disk)h]j)}(h/void blk_unregister_queue(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjθhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjʸhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMubj2)}(h h]h }(hjݸhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjʸhhhjܸhMubj{)}(hblk_unregister_queueh]j)}(hblk_unregister_queueh]hblk_unregister_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjʸhhhjܸhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj+modnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_unregister_queueasbuh1hhjubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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#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:320: ./block/blk-sysfs.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjøhhhjܸhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:320: ./block/blk-sysfs.chMhjubj )}(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)}(hjϹh]hstruct gendisk *disk}(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:320: ./block/blk-sysfs.chMhjɹubj2)}(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.}(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**Note**h]j)}(hj h]hNote}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhjhhhNhNubj)}(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}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhj]hKubj{)}(hblk_set_stacking_limitsh]j)}(hblk_set_stacking_limitsh]hblk_set_stacking_limits}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhj]hKubj)}(h(struct queue_limits *lim)h]j)}(hstruct queue_limits *limh](j)}(hjh]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 jrsbc.blk_set_stacking_limitsasbuh1hhjubj2)}(h h]h }(hjʺhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjغhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj]hKubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhj]hKhjDhhubj)}(hhh]h)}(h'set default limits for stacking devicesh]h'set default limits for stacking devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhjhNhNubj)}(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)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK#hj+ubj )}(hhh]j)}(hA``struct queue_limits *lim`` the queue_limits structure to reset h](j)}(h``struct queue_limits *lim``h]j)}(hjPh]hstruct queue_limits *lim}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK hjJubj2)}(hhh]h)}(h#the queue_limits structure to reseth]h#the queue_limits structure to reset}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehK hjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehK hjGubah}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK"hj+ubh)}(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:323: ./block/blk-settings.chK!hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhjhhhNhNubj)}(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}(hjлhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj̻hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj2)}(h h]h }(hj߻hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj̻hhhj޻hMubj{)}(hqueue_limits_commit_updateh]j)}(hqueue_limits_commit_updateh]hqueue_limits_commit_update}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj̻hhhj޻hMubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hjh]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_commit_updateasbuh1hhj ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj.ch]hq}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hjh]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_commit_updateasbuh1hhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]h*}(hjȼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hlimh]hlim}(hjռhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(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'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:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjŻhhhj޻hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:323: ./block/blk-settings.chMhjubj )}(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:323: ./block/blk-settings.chMhj:ubj2)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(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:323: ./block/blk-settings.chMhjsubj2)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(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:323: ./block/blk-settings.chMhjubh)}(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 }(hjʽhhhNhNubj)}(h**lim**h]hlim}(hjҽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʽubhR that were obtained from queue_limits_start_update() and updated by the caller to }(hjʽhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʽubhe. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.}(hjʽhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubh)}(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:323: ./block/blk-settings.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhjhhhNhNubj)}(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}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM>ubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj:hM>ubj{)}(h!queue_limits_commit_update_frozenh]j)}(h!queue_limits_commit_update_frozenh]h!queue_limits_commit_update_frozen}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj:hM>ubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(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 jOsb#c.queue_limits_commit_update_frozenasbuh1hhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hj.ch]hq}(hj¾hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct queue_limits *limh](j)}(hjh]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 queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j#c.queue_limits_commit_update_frozenasbuh1hhj־ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj־ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj־ubj)}(hlimh]hlim}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj־ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(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>hj!hhubj)}(hhh]h)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM>hjXhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhjhNhNubj)}(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)}(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:323: ./block/blk-settings.chMBhjwubj )}(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:323: ./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)}(hjտh]hstruct queue_limits *lim}(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:323: ./block/blk-settings.chM@hjϿubj2)}(hhh]h)}(hlimits to applyh]hlimits to apply}(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**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:323: ./block/blk-settings.chMBhjwubh)}(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 }(hj&hhhNhNubj)}(h**lim**h]hlim}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubhf that were obtained from queue_limits_start_update() and updated with the new values by the caller to }(hj&hhhNhNubj)}(h**q**h]hq}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh>. Freezes the queue before the update and unfreezes it after.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMAhjwubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMEhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j queue_limits_set (C function)c.queue_limits_sethNtauh1hhjhhhNhNubj)}(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:323: ./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)}(hjh]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 jsbc.queue_limits_setasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jc.queue_limits_setasbuh1hhj2ubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMWubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1jhjhMWhj}hhubj)}(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:323: ./block/blk-settings.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:323: ./block/blk-settings.chM[hjubj )}(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:323: ./block/blk-settings.chMXhjubj2)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMXhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMXhjubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hj1h]hstruct queue_limits *lim}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMYhj+ubj2)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMYhjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMYhjubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./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:323: ./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:323: ./block/blk-settings.chM^hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_stack_limits (C function)c.blk_stack_limitshNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_stack_limitsh]j)}(hblk_stack_limitsh]hblk_stack_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h@(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j)}(hstruct queue_limits *th](j)}(hjh]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 reftargetjAmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_stack_limitsasbuh1hhjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjgoh]ht}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *bh](j)}(hjh]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 ]j[c.blk_stack_limitsasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj[h]hb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t starth](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j[c.blk_stack_limitsasbuh1hhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hj0hhhNhNubah}(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'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhjhNhNubj)}(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)}(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:323: ./block/blk-settings.chMhjvubj )}(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:323: ./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:323: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h6the underlying queue limits (bottom, component device)h]h6the underlying queue limits (bottom, component device)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h=``sector_t start`` first data sector within component device h](j)}(h``sector_t start``h]j)}(hj h]hsector_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h)first data sector within component deviceh]h)first data sector within component device}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjvubj)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj^ubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj^ubeh}(h]h ]h"]h$]h&]uh1jhjphMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhjhhhNhNubj)}(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:323: ./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&]uh1jhjubah}(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)}(hjh]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.queue_limits_stack_bdevasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjgoh]ht}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(h block_deviceh]h block_device}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]jc.queue_limits_stack_bdevasbuh1hhjPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t offseth](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.queue_limits_stack_bdevasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *pfxh](j)}(hjh]hconst}(hj hhhNhNubah}(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 }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpfxh]hpfx}(hjPhhhNhNubah}(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'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:323: ./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:323: ./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)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h$the underlying block device (bottom)h]h$the underlying block device (bottom)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hH``sector_t offset`` offset to beginning of data within component device h](j)}(h``sector_t offset``h]j)}(hj-h]hsector_t offset}(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:323: ./block/blk-settings.chMhj'ubj2)}(hhh]h)}(h3offset to beginning of data within component deviceh]h3offset to beginning of data within component device}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(h6``const char *pfx`` prefix to use for warnings logged h](j)}(h``const char *pfx``h]j)}(hjfh]hconst char *pfx}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj`ubj2)}(hhh]h)}(h!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(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 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:323: ./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:323: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hqueue_limits_stack_integrityh]j)}(hqueue_limits_stack_integrityh]hqueue_limits_stack_integrity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h0(struct queue_limits *t, struct queue_limits *b)h](j)}(hstruct queue_limits *th](j)}(hjh]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 queue_limitsh]h queue_limits}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.queue_limits_stack_integrityasbuh1hhj(ubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hjgoh]ht}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct queue_limits *bh](j)}(hjh]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 ]jfc.queue_limits_stack_integrityasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj[h]hb}(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)}(hstack integrity profileh]hstack integrity profile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jhhhjhNhNubj)}(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)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj9ubj )}(hhh](j)}(h/``struct queue_limits *t`` target queue limits h](j)}(h``struct queue_limits *t``h]j)}(hj^h]hstruct queue_limits *t}(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:323: ./block/blk-settings.chMhjXubj2)}(hhh]h)}(htarget queue limitsh]htarget queue limits}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjUubj)}(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:323: ./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&]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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj9ubh)}(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 }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be stacked into the target }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh". Stacking is possible if either:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj9ubj)}(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]jG)}(hhh](j)}(h;does not have any integrity information stacked into it yeth]h)}(hj$h]h;does not have any integrity information stacked into it yet}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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 }(hj>hhhNhNubj)}(h**b**h]hb}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh is identical to the one in }(hj>hhhNhNubj)}(h**t**h]ht}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j}HjzjHhjHj;uh1jGhjubah}(h]h ]h"]h$]h&]uh1jhj3hMhj9ubh)}(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:323: ./block/blk-settings.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_set_queue_depthh]j)}(hblk_set_queue_depthh]hblk_set_queue_depth}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct request_queue *q, unsigned int depth)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubh)}(hhh]j)}(h request_queueh]h request_queue}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY j+sbc.blk_set_queue_depthasbuh1hhjAubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hj.ch]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hunsigned int depthh](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)}(hdepthh]hdepth}(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)}(h1tell the block layer about the device queue depthh]h1tell the block layer about the device queue depth}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhjhNhNubj)}(ht**Parameters** ``struct request_queue *q`` the request queue for the device ``unsigned int depth`` queue depthh](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj4ubj )}(hhh](j)}(h=``struct request_queue *q`` the request queue for the device h](j)}(h``struct request_queue *q``h]j)}(hjYh]hstruct request_queue *q}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjSubj2)}(hhh]h)}(h the request queue for the deviceh]h the request queue for the device}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(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:323: ./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:323: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubeh}(h]h ]h"]h$]h&]uh1j hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhjhhhNhNubj)}(hhh](j)}(h2int blkdev_issue_flush (struct block_device *bdev)h]j)}(h1int blkdev_issue_flush(struct block_device *bdev)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblkdev_issue_flushh]j)}(hblkdev_issue_flushh]hblkdev_issue_flush}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hjh]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 block_deviceh]h block_device}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjImodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blkdev_issue_flushasbuh1hhj%ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hbdevh]hbdev}(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 queue a flushh]h queue a flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:326: ./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)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjubj2)}(hhh]h)}(hblockdev to issue flush forh]hblockdev to issue flush for}(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:326: ./block/blk-flush.chMhjubj)}(h/Issue a flush for the block device in question.h]h)}(hj@h]h/Issue a flush for the block device in question.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhj>ubah}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhjhhhNhNubj)}(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}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrhhhjhKKubj{)}(hblkdev_issue_discardh]j)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhKKubj)}(hO(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j)}(hstruct block_device *bdevh](j)}(hjh]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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hj hhhNhNubah}(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&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jc.blkdev_issue_discardasbuh1hhj!ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hsectorh]hsector}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jc.blkdev_issue_discardasbuh1hhjiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(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.blkdev_issue_discardasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(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&]jjuh1jhjrhhhjhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhKKubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhKKhjkhhubj)}(hhh]h)}(hqueue a discardh]hqueue a discard}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKKhj hhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhjhNhNubj)}(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)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKOhj*ubj )}(hhh](j)}(h<``struct block_device *bdev`` blockdev to issue discard for h](j)}(h``struct block_device *bdev``h]j)}(hjOh]hstruct block_device *bdev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKLhjIubj2)}(hhh]h)}(hblockdev to issue discard forh]hblockdev to issue discard for}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKLhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhKLhjFubj)}(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:329: ./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&]uh1jhjhKMhjFubj)}(h3``sector_t nr_sects`` number of sectors to discard 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:329: ./block/blk-lib.chKNhjubj2)}(hhh]h)}(hnumber of sectors to discardh]hnumber of sectors to discard}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjFubj)}(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:329: ./block/blk-lib.chKOhjubj2)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKOhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjFubeh}(h]h ]h"]h$]h&]uh1j hj*ubh)}(h**Description**h]j)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKQhj*ubj)}(h4Issue a discard request for the sectors in question.h]h)}(hjMh]h4Issue a discard request for the sectors in question.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKQhjKubah}(h]h ]h"]h$]h&]uh1jhj\hKQhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhjhhhNhNubj)}(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:329: ./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)}(hjh]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_zerooutasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t sectorh](h)}(hhh]j)}(hsector_th]hsector_t}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jc.__blkdev_issue_zerooutasbuh1hhj.ubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hsectorh]hsector}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](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 ]jc.__blkdev_issue_zerooutasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(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.__blkdev_issue_zerooutasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio **bioph](j)}(hjh]hstruct}(hj hhhNhNubah}(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 ]jc.__blkdev_issue_zerooutasbuh1hhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioph]hbiop}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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&]jjjuh1jjjhj{hhhjhKubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjxhhubj)}(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:329: ./block/blk-lib.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:329: ./block/blk-lib.chKhjubj )}(hhh](j)}(h0``struct block_device *bdev`` blockdev to issue h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKhjubj2)}(hhh]h)}(hblockdev to issueh]hblockdev to issue}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjGh]hsector_t sector}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKhjAubj2)}(hhh]h)}(h start sectorh]h start sector}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjubj)}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKhjzubj2)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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:329: ./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&]uh1jhjhKhjubj)}(h,``struct bio **biop`` pointer to anchor bio h](j)}(h``struct bio **biop``h]j)}(hjh]hstruct bio **biop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKhjubj2)}(hhh]h)}(hpointer to anchor bioh]hpointer to anchor bio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hj+h]hunsigned flags}(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:329: ./block/blk-lib.chKhj%ubj2)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(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)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKhjubj)}(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:329: ./block/blk-lib.chKhj|ubh)}(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:329: ./block/blk-lib.chKhj|ubh)}(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:329: ./block/blk-lib.chMhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblkdev_issue_zeroouth]j)}(hblkdev_issue_zeroouth]hblkdev_issue_zeroout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubh)}(hhh]j)}(h block_deviceh]h block_device}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blkdev_issue_zerooutasbuh1hhj0ubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(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 ]jnc.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&]noemphjjuh1jhj,ubj)}(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 ]jnc.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&]noemphjjuh1jhj,ubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jnc.blkdev_issue_zerooutasbuh1hhj2ubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hgfp_maskh]hgfp_mask}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(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)}(hzero-fill a block rangeh]hzero-fill a block range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:329: ./block/blk-lib.chMhjubj )}(hhh](j)}(h0``struct block_device *bdev`` blockdev to write 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:329: ./block/blk-lib.chMhjubj2)}(hhh]h)}(hblockdev to writeh]hblockdev to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hj>h]hsector_t sector}(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:329: ./block/blk-lib.chMhj8ubj2)}(hhh]h)}(h start sectorh]h start sector}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjwh]hsector_t nr_sects}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjqubj2)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:329: ./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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hjh]hunsigned flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM hjubj2)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM"hjubj)}(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 }(hj>hhhNhNubj)}(h ``flags``h]hflags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM"hj:ubah}(h]h ]h"]h$]h&]uh1jhj^hM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhjhhhNhNubj)}(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:335: ./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)}(hjh]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.blk_trace_ioctlasbuh1hhjubj2)}(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&]noemphjjuh1jhjubj)}(h unsigned cmdh](j )}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hcmdh]hcmd}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hchar __user *argh](j )}(hcharh]hchar}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh__user}(hjehhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hargh]harg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjzhhubj)}(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:335: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:335: ./kernel/trace/blktrace.chMhjubj )}(hhh](j)}(h/``struct block_device *bdev`` the block device h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj ubj2)}(hhh]h)}(hthe block deviceh]hthe 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$hMhjubj)}(h``unsigned cmd`` the ioctl cmd h](j)}(h``unsigned cmd``h]j)}(hjHh]h unsigned cmd}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjBubj2)}(hhh]h)}(h the ioctl cmdh]h the ioctl cmd}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubj)}(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:335: ./kernel/trace/blktrace.chMhj{ubj2)}(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:335: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhjhhhNhNubj)}(hhh](j)}(h1void blk_trace_shutdown (struct request_queue *q)h]j)}(h0void blk_trace_shutdown(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_trace_shutdownh]j)}(hblk_trace_shutdownh]hblk_trace_shutdown}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_trace_shutdownasbuh1hhjubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(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!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:335: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:335: ./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)}(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:335: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h,the request queue associated with the deviceh]h,the request queue associated with the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhjhhhNhNubj)}(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}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhjChMubj{)}(hblk_add_trace_rqh]j)}(hblk_add_trace_rqh]hblk_add_trace_rq}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChMubj)}(hS(struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h](j)}(hstruct request *rqh](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.blk_add_trace_rqasbuh1hhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hblk_status_t errorh](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.blk_add_trace_rqasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(herrorh]herror}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned int nr_bytesh](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}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hnr_bytesh]hnr_bytes}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hu64 whath](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_rqasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hu64 cgidh](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)}(hcgidh]hcgid}(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)Add a trace for a request oriented actionh]h)Add a trace for a request oriented action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhjhNhNubj)}(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)}(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:335: ./kernel/trace/blktrace.chMhj:ubj )}(hhh](j)}(h*``struct request *rq`` the source request h](j)}(h``struct request *rq``h]j)}(hj_h]hstruct request *rq}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjYubj2)}(hhh]h)}(hthe source requesth]hthe source request}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(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:335: ./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&]uh1jhjhMhjVubj)}(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:335: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hnumber of completed bytesh]hnumber of completed bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hj h]hu64 what}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h the actionh]h the action}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubj)}(h``u64 cgid`` the cgroup info h](j)}(h ``u64 cgid``h]j)}(hjCh]hu64 cgid}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj=ubj2)}(hhh]h)}(hthe cgroup infoh]hthe cgroup info}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjVubeh}(h]h ]h"]h$]h&]uh1j hj:ubh)}(h**Description**h]j)}(hj~h]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:335: ./kernel/trace/blktrace.chMhj:ubj)}(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:335: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhjhhhNhNubj)}(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:335: ./kernel/trace/blktrace.chMCubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMCubj{)}(hblk_add_trace_bioh]j)}(hblk_add_trace_bioh]hblk_add_trace_bio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMCubj)}(h?(struct request_queue *q, struct bio *bio, u64 what, int error)h](j)}(hstruct request_queue *qh](j)}(hjh]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_add_trace_bioasbuh1hhjubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj.ch]hq}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jCc.blk_add_trace_bioasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(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 ]jCc.blk_add_trace_bioasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int errorh](j )}(hinth]hint}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(herrorh]herror}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMCubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMChjhhubj)}(hhh]h)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMChjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:335: ./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:335: ./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)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMEhjubj2)}(hhh]h)}(hthe source bioh]hthe source bio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubj)}(h``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hj+h]hu64 what}(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:335: ./kernel/trace/blktrace.chMFhj%ubj2)}(hhh]h)}(h the actionh]h the action}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMFhjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMFhjubj)}(h``int error`` error, if any h](j)}(h ``int error``h]j)}(hjdh]h int error}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMGhj^ubj2)}(hhh]h)}(h error, if anyh]h error, if any}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMGhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMGhjubeh}(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:335: ./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:335: ./kernel/trace/blktrace.chMIhjubah}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_add_trace_bio_remaph]j)}(hblk_add_trace_bio_remaph]hblk_add_trace_bio_remap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h9(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](j)}(h void *ignoreh](j )}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hignoreh]hignore}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_add_trace_bio_remapasbuh1hhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(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.blk_add_trace_bio_remapasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(h sector_t fromh](h)}(hhh]j)}(hsector_th]hsector_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)}(hfromh]hfrom}(hjUhhhNhNubah}(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%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:335: ./kernel/trace/blktrace.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:335: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hjhhhNhNubah}(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)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hthe source bioh]hthe source bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``dev_t dev`` source device h](j)}(h ``dev_t dev``h]j)}(hj2h]h dev_t dev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj,ubj2)}(hhh]h)}(h source deviceh]h source device}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjkh]h sector_t from}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjeubj2)}(hhh]h)}(h source sectorh]h source sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(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:335: ./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:335: ./kernel/trace/blktrace.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_add_trace_rq_remaph]j)}(hblk_add_trace_rq_remaph]hblk_add_trace_rq_remap}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h<(void *ignore, struct request *rq, dev_t dev, sector_t from)h](j)}(h void *ignoreh](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)}(hignoreh]hignore}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct request *rqh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(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_rq_remapasbuh1hhjfubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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.blk_add_trace_rq_remapasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h sector_t fromh](h)}(hhh]j)}(hsector_th]hsector_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)}(hfromh]hfrom}(hjShhhNhNubah}(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)Add a trace for a request-remap operationh]h)Add a trace for a request-remap operation}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:335: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:335: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hthe source requesth]hthe source request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h``dev_t dev`` target device h](j)}(h ``dev_t dev``h]j)}(hj0h]h dev_t dev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj*ubj2)}(hhh]h)}(h target deviceh]h target device}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjih]h sector_t from}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjcubj2)}(hhh]h)}(h source sectorh]h source sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(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:335: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j disk_release (C function)c.disk_releasehNtauh1hhjhhhNhNubj)}(hhh](j)}(h&void disk_release (struct device *dev)h]j)}(h%void disk_release(struct device *dev)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h disk_releaseh]j)}(h disk_releaseh]h disk_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubh)}(hhh]j)}(hdeviceh]hdevice}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.disk_releaseasbuh1hhj,ubj2)}(h h]h }(hjnhhhNhNubah}(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(ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h/releases all allocated resources of the gendiskh]h/releases all allocated resources of the gendisk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:338: ./block/genhd.chMhjubj )}(hhh]j)}(h9``struct device *dev`` the device representing this disk h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubj2)}(hhh]h)}(h!the device representing this diskh]h!the device representing this disk}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(h>This function releases all allocated resources of the gendisk.h]h>This function releases all allocated resources of the gendisk.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(h **Context**h]j)}(hjeh]hContext}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(h can sleeph]h can sleep}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  bdev_count_inflight (C function)c.bdev_count_inflighthNtauh1hhjhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjhKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hbdev_count_inflighth]j)}(hbdev_count_inflighth]hbdev_count_inflight}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct block_device *part)h]j)}(hstruct block_device *parth](j)}(hjh]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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY jsbc.bdev_count_inflightasbuh1hhjubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparth]hpart}(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)}(h2get the number of inflight IOs for a block device.h]h2get the number of inflight IOs for a block device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj )}(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)}(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:341: ./block/genhd.chKhjubj )}(hhh]j)}(h0``struct block_device *part`` the block device. h](j)}(h``struct block_device *part``h]j)}(hjh]hstruct block_device *part}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjubj2)}(hhh]h)}(hthe block device.h]hthe block device.}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __register_blkdev (C function)c.__register_blkdevhNtauh1hhjhhhNhNubj)}(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}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjUhKubj{)}(h__register_blkdevh]j)}(h__register_blkdevh]h__register_blkdev}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjUhKubj)}(hA(unsigned int major, const char *name, void (*probe)(dev_t devt))h](j)}(hunsigned int majorh](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)}(hmajorh]hmajor}(hjhhhNhNubah}(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}(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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hvoid (*probe)(dev_t devt)h](j )}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hj;h]h(}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hprobeh]hprobe}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hj;h]h)}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hj;h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(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 jjsbc.__register_blkdevasbuh1hhj.ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hj;h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhKubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jhjUhKhj<hhubj)}(hhh]h)}(hregister a new block deviceh]hregister a new block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:341: ./block/genhd.chKhjubj )}(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)}(hj9h]hunsigned int major}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhj3ubj2)}(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 }(hjRhhhNhNubj)}(h **major**h]hmajor}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh. = 0, try to allocate any unused major number.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjOubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhj0ubj)}(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:341: ./block/genhd.chKhjubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjhhhjhM@ubj{)}(hadd_disk_fwnodeh]j)}(hadd_disk_fwnodeh]hadd_disk_fwnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM@ubj)}(hr(struct device *parent, struct gendisk *disk, const struct attribute_group **groups, struct fwnode_handle *fwnode)h](j)}(hstruct device *parenth](j)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.add_disk_fwnodeasbuh1hhj ubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hparenth]hparent}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gendisk *diskh](j)}(hjh]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.add_disk_fwnodeasbuh1hhjubj2)}(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)}(hjh]hstruct}(hj!hhhNhNubah}(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 reftargetjAmodnameN classnameNj] j` )}jc ]j^c.add_disk_fwnodeasbuh1hhjubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct fwnode_handle *fwnodeh](j)}(hjh]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 ]j^c.add_disk_fwnodeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfwnodeh]hfwnode}(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/add disk information to kernel list with fwnodeh]h/add disk information to kernel list with fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM@hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jhhhjhNhNubj)}(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)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMDhj;ubj )}(hhh](j)}(h5``struct device *parent`` parent device for the disk h](j)}(h``struct device *parent``h]j)}(hj`h]hstruct device *parent}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMAhjZubj2)}(hhh]h)}(hparent device for the diskh]hparent device for the disk}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMAhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMAhjWubj)}(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:341: ./block/genhd.chMBhjubj2)}(hhh]h)}(h#per-device partitioning informationh]h#per-device partitioning information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjWubj)}(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:341: ./block/genhd.chMChjubj2)}(hhh]h)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjWubj)}(h6``struct fwnode_handle *fwnode`` attached disk fwnode h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hj h]hstruct fwnode_handle *fwnode}(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:341: ./block/genhd.chMDhjubj2)}(hhh]h)}(hattached disk fwnodeh]hattached disk fwnode}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMDhj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMDhjWubeh}(h]h ]h"]h$]h&]uh1j hj;ubh)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMFhj;ubh)}(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 }(hj\hhhNhNubj)}(h**disk**h]hdisk}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh: with the kernel. Also attach a fwnode to the disk device.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMEhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j device_add_disk (C function)c.device_add_diskhNtauh1hhjhhhNhNubj)}(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:341: ./block/genhd.chMhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMhubj{)}(hdevice_add_diskh]j)}(hdevice_add_diskh]hdevice_add_disk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMhubj)}(hT(struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h](j)}(hstruct device *parenth](j)}(hjh]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 jsbc.device_add_diskasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(hhh]j)}(hgendiskh]hgendisk}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jc.device_add_diskasbuh1hhjHubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.device_add_diskasbuh1hhjubj2)}(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)}(hgroupsh]hgroups}(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)}(h#add disk information to kernel listh]h#add disk information to kernel list}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jhhhjhNhNubj)}(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:341: ./block/genhd.chMlhjubj )}(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:341: ./block/genhd.chMihjubj2)}(hhh]h)}(hparent device for the diskh]hparent device for the disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubj)}(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:341: ./block/genhd.chMjhjubj2)}(hhh]h)}(h#per-device partitioning informationh]h#per-device partitioning information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubj)}(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:341: ./block/genhd.chMkhjubj2)}(hhh]h)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMkhj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hMkhjubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMmhjubh)}(hQThis function registers the partitioning information in **disk** with the kernel.h](h8This function registers the partitioning information in }(hjihhhNhNubj)}(h**disk**h]hdisk}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh with the kernel.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_mark_disk_dead (C function)c.blk_mark_disk_deadhNtauh1hhjhhhNhNubj)}(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:341: ./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)}(hjh]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_mark_disk_deadasbuh1hhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj3hhhNhNubah}(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&]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}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:341: ./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:341: ./block/genhd.chMhjubj2)}(hhh]h)}(hdisk to mark as deadh]hdisk to mark as dead}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j del_gendisk (C function) c.del_gendiskhNtauh1hhjhhhNhNubj)}(hhh](j)}(h'void del_gendisk (struct gendisk *disk)h]j)}(h&void del_gendisk(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj9hMubj{)}(h del_gendiskh]j)}(h del_gendiskh]h del_gendisk}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj9hMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jNsb c.del_gendiskasbuh1hhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hMhj hhubj)}(hhh]h)}(hremove the gendiskh]hremove the gendisk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubj )}(hhh]j)}(h6``struct gendisk *disk`` the struct gendisk to remove 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:341: ./block/genhd.chMhj&ubj2)}(hhh]h)}(hthe struct gendisk to removeh]hthe struct gendisk to remove}(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)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(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:341: ./block/genhd.chMhjubh)}(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:341: ./block/genhd.chMhjubh)}(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:341: ./block/genhd.chM#hjubh)}(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:341: ./block/genhd.chM&hjubh)}(h can sleeph]h can sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j invalidate_disk (C function)c.invalidate_diskhNtauh1hhjhhhNhNubj)}(hhh](j)}(h+void invalidate_disk (struct gendisk *disk)h]j)}(h*void invalidate_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:341: ./block/genhd.chM?ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM?ubj{)}(hinvalidate_diskh]j)}(hinvalidate_diskh]hinvalidate_disk}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM?ubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(hgendiskh]hgendisk}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]jf )}jY j#sbc.invalidate_diskasbuh1hhj9ubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdiskh]hdisk}(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)}(hinvalidate the diskh]hinvalidate the disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM?hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:341: ./block/genhd.chMChjubj )}(hhh]j)}(h:``struct gendisk *disk`` the struct gendisk to invalidate 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:341: ./block/genhd.chM@hjubj2)}(hhh]h)}(h the struct gendisk to invalidateh]h the struct gendisk to invalidate}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMBhjubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMAhjubh)}(h **Context**h]j)}(hjch]hContext}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMEhjubh)}(h can sleeph]h can sleep}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMFhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j put_disk (C function) c.put_diskhNtauh1hhjhhhNhNubj)}(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:341: ./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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]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.put_diskasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj1hhhNhNubah}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hdecrements the gendisk refcounth]hdecrements the gendisk refcount}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:341: ./block/genhd.chMhjubj )}(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:341: ./block/genhd.chMhjubj2)}(hhh]h)}(h0the struct gendisk to decrement the refcount forh]h0the struct gendisk to decrement the refcount for}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(h**Note**h]j)}(hj h]hNote}(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:341: ./block/genhd.chMhjubh)}(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).}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(h **Context**h]j)}(hj2h]hContext}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j set_disk_ro (C function) c.set_disk_rohNtauh1hhjhhhNhNubj)}(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}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjshhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjshhhjhMubj{)}(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&]jjuh1jzhjshhhjhMubj)}(h&(struct gendisk *disk, bool read_only)h](j)}(hstruct gendisk *diskh](j)}(hjh]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.set_disk_roasbuh1hhjubj2)}(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&]noemphjjuh1jhjubj)}(hbool read_onlyh](j )}(hj8h]hbool}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(h read_onlyh]h read_only}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjlhhubj)}(hhh]h)}(hset a gendisk read-onlyh]hset a gendisk read-only}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:341: ./block/genhd.chMhjubj )}(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:341: ./block/genhd.chMhjubj2)}(hhh]h)}(hgendisk to operate onh]hgendisk to operate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hjh]hbool read_only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubj2)}(hhh]h)}(hE``true`` to set the disk read-only, ``false`` set the disk read/writeh](j)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to set the disk read-only, }(hjhhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh set the disk read/write}(hjhhhNhNubeh}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $bdev_validate_blocksize (C function)c.bdev_validate_blocksizehNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hbdev_validate_blocksizeh]j)}(hbdev_validate_blocksizeh]hbdev_validate_blocksize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h+(struct block_device *bdev, int block_size)h](j)}(hstruct block_device *bdevh](j)}(hjh]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.bdev_validate_blocksizeasbuh1hhjubj2)}(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&]noemphjjuh1jhjubj)}(hint block_sizeh](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(h block_sizeh]h block_size}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhKubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjzhhubj)}(hhh]h)}(h(check that this block size is acceptableh]h(check that this block size is acceptable}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjwhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:344: ./block/bdev.chKhjubj )}(hhh](j)}(h3``struct block_device *bdev`` blockdevice to check 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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubj2)}(hhh]h)}(hblockdevice to checkh]hblockdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h'``int block_size`` block size to check h](j)}(h``int block_size``h]j)}(hjh]hint block_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubj2)}(hhh]h)}(hblock size to checkh]hblock size to check}(hj hhhNhNubah}(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 hjubh)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubh)}(h **Return**h]j)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubh)}(hah"]h$]h&]uh1j1hjhhhjhM ubj{)}(h bdev_freezeh]j)}(h bdev_freezeh]h bdev_freeze}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hjh]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 jsb c.bdev_freezeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hj1hhhNhNubah}(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)}(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:344: ./block/bdev.chM hjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM$hjwubj )}(hhh]j)}(h2``struct block_device *bdev`` blockdevice to lock 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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM!hjubj2)}(hhh]h)}(hblockdevice to lockh]hblockdevice to lock}(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 hjwubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM#hjwubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM"hjwubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM*hjwubh)}(hah"]h$]h&]uh1j1hj?hhhjQhMJubj{)}(h bdev_thawh]j)}(h bdev_thawh]h bdev_thaw}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhjQhMJubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubh)}(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 jfsb c.bdev_thawasbuh1hhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhMJubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1jhjQhMJhj8hhubj)}(hhh]h)}(hunlock filesystemh]hunlock filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:344: ./block/bdev.chMNhjubj )}(hhh]j)}(h4``struct block_device *bdev`` blockdevice to unlock h](j)}(h``struct block_device *bdev``h]j)}(hjDh]hstruct block_device *bdev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMKhj>ubj2)}(hhh]h)}(hblockdevice to unlockh]hblockdevice to unlock}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMKhjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMKhj;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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMMhjubh)}(hHUnlocks the filesystem and marks it writeable again after bdev_freeze().h]hHUnlocks the filesystem and marks it writeable again after bdev_freeze().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMLhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMNhjubh)}(hah"]h$]h&]uh1j1hjhhhjhMBubj{)}(hbd_prepare_to_claimh]j)}(hbd_prepare_to_claimh]hbd_prepare_to_claim}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMBubj)}(hL(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(h block_deviceh]h block_device}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.bd_prepare_to_claimasbuh1hhj$ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h void *holderh](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)}(hholderh]hholder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h!const struct blk_holder_ops *hopsh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hblk_holder_opsh]hblk_holder_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jbc.bd_prepare_to_claimasbuh1hhjubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hhopsh]hhops}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMBhjhhubj)}(hhh]h)}(hclaim a block deviceh]hclaim a block device}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMBhjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:344: ./block/bdev.chMFhjubj )}(hhh](j)}(h7``struct block_device *bdev`` block device of interest 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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMChjubj2)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(h1``void *holder`` holder trying to claim **bdev** h](j)}(h``void *holder``h]j)}(hjh]h void *holder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMDhjubj2)}(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 hMDhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMDhjubj)}(h2``const struct blk_holder_ops *hops`` holder ops. h](j)}(h%``const struct blk_holder_ops *hops``h]j)}(hj9 h]h!const struct blk_holder_ops *hops}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7 ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMEhj3 ubj2)}(hhh]h)}(h holder ops.h]h holder ops.}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN hMEhjO ubah}(h]h ]h"]h$]h&]uh1j1hj3 ubeh}(h]h ]h"]h$]h&]uh1jhjN hMEhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjt h]h Description}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMGhjubh)}(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}(hj 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:344: ./block/bdev.chMFhjubh)}(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:344: ./block/bdev.chMJhjubh)}(h/0 if **bdev** can be claimed, -EBUSY otherwise.h](h0 if }(hj hhhNhNubj)}(h**bdev**h]hbdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh" can be claimed, -EBUSY otherwise.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bd_abort_claiming (C function)c.bd_abort_claiminghNtauh1hhjhhhNhNubj)}(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:344: ./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}(hj7 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3 ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj$ hMubj)}(h)(struct block_device *bdev, void *holder)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjS hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO ubj2)}(h h]h }(hj` hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjO ubh)}(hhh]j)}(h block_deviceh]h block_device}(hjq hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjs modnameN classnameNj] j` )}jc ]jf )}jY j9 sbc.bd_abort_claimingasbuh1hhjO ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjO ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO ubj)}(hbdevh]hbdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjK 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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hholderh]hholder}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjK 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:344: ./block/bdev.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$ hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0 jj0 jjjuh1jhhhjhNhNubj)}(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&]uh1jhj8 ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj4 ubj )}(hhh](j)}(h7``struct block_device *bdev`` block device of interest h](j)}(h``struct block_device *bdev``h]j)}(hjY h]hstruct block_device *bdev}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjS ubj2)}(hhh]h)}(hblock device of interesth]hblock device of interest}(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)}(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:344: ./block/bdev.chMhj ubj2)}(hhh]h)}(h holder that has claimed **bdev**h](hholder that has claimed }(hj hhhNhNubj)}(h**bdev**h]hbdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjP ubeh}(h]h ]h"]h$]h&]uh1j hj4 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:344: ./block/bdev.chMhj4 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:344: ./block/bdev.chMhj4 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bdev_fput (C function) c.bdev_fputhNtauh1hhjhhhNhNubj)}(hhh](j)}(h'void bdev_fput (struct file *bdev_file)h]j)}(h&void bdev_fput(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:344: ./block/bdev.chMubj2)}(h h]h }(hj/ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj. hMubj{)}(h bdev_fputh]j)}(h bdev_fputh]h bdev_fput}(hjA 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)}(hjh]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)}(hfileh]hfile}(hj{ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj} modnameN classnameNj] j` )}jc ]jf )}jY jC sb c.bdev_fputasbuh1hhjY 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)}(h bdev_fileh]h bdev_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU 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)}(h0yield claim to the block device and put the fileh]h0yield claim to the block device and put the file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj. hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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 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:344: ./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:344: ./block/bdev.chMhj ubj2)}(hhh]h)}(hopen block deviceh]hopen block device}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6 hMhj7 ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj6 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&]uh1jhjZ ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj ubh)}(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.}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lookup_bdev (C function) c.lookup_bdevhNtauh1hhjhhhNhNubj)}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hMubj{)}(h lookup_bdevh]j)}(h lookup_bdevh]h lookup_bdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMubj)}(h"(const char *pathname, dev_t *dev)h](j)}(hconst char *pathnameh](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 }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hpathnameh]hpathname}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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 ]jf )}jY j sb c.lookup_bdevasbuh1hhj7ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hdevh]hdev}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(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&Look up a struct block_device by name.h]h&Look up a struct block_device by name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:344: ./block/bdev.chMhjubj )}(hhh](j)}(hE``const char *pathname`` Name of the block device in the filesystem. h](j)}(h``const char *pathname``h]j)}(hjh]hconst char *pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubj2)}(hhh]h)}(h+Name of the block device in the filesystem.h]h+Name of the block device in the filesystem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``dev_t *dev`` Pointer to the block device's dev_t, if found. 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&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubj2)}(hhh]h)}(h.Pointer to the block device's dev_t, if found.h]h0Pointer to the block device’s dev_t, if found.}(hj6hhhNhNubah}(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)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(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 }(hjnhhhNhNubj)}(h **pathname**h]hpathname}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh7 in the current namespace if possible and return it in }(hjnhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h)0 if succeeded, negative errno otherwise.h]h)0 if succeeded, negative errno otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhMubj{)}(hbdev_mark_deadh]j)}(hbdev_mark_deadh]hbdev_mark_dead}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h*(struct block_device *bdev, bool surprise)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(hhh]j)}(h block_deviceh]h block_device}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jf )}jY j2sbc.bdev_mark_deadasbuh1hhjHubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(h bool surpriseh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsurpriseh]hsurprise}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(hmark a block device as deadh]hmark a block device as dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:344: ./block/bdev.chMhjubj )}(hhh](j)}(h9``struct block_device *bdev`` block device to operate on h](j)}(h``struct block_device *bdev``h]j)}(hjDh]hstruct block_device *bdev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj>ubj2)}(hhh]h)}(hblock device to operate onh]hblock device to operate on}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubj)}(h.``bool surprise`` indicate a surprise removal h](j)}(h``bool surprise``h]j)}(hj}h]h bool surprise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjwubj2)}(hhh]h)}(hindicate a surprise removalh]hindicate a surprise removal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(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 }(hjhhhNhNubj)}(h **surprise**h]hsurprise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to }(hjhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU the device or media is already gone, if not we are preparing for an orderly removal.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] block-devicesah ]h"] block devicesah$]h&]uh1hhhhhhhhM4ubh)}(hhh](h)}(h Char devicesh]h Char devices}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM\ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #register_chrdev_region (C function)c.register_chrdev_regionhNtauh1hhjhhhNhNubj)}(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}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEhhhjWhKubj{)}(hregister_chrdev_regionh]j)}(hregister_chrdev_regionh]hregister_chrdev_region}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjWhKubj)}(h.(dev_t from, unsigned count, const char *name)h](j)}(h dev_t fromh](h)}(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 jlsbc.register_chrdev_regionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(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)}(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 }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhKubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jhjWhKhj>hhubj)}(hhh]h)}(h"register a range of device numbersh]h"register a range of device numbers}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjphhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:350: ./fs/char_dev.chKhjubj )}(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)}(hjh]h dev_t from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj2)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hE``unsigned count`` the number of consecutive device numbers required h](j)}(h``unsigned count``h]j)}(hjh]hunsigned count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj2)}(hhh]h)}(h1the number of consecutive device numbers requiredh]h1the number of consecutive device numbers required}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h7``const char *name`` the name of the 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:350: ./fs/char_dev.chKhj!ubj2)}(hhh]h)}(h!the name of the device or driver.h]h!the name of the device or driver.}(hj@hhhNhNubah}(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)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  alloc_chrdev_region (C function)c.alloc_chrdev_regionhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(halloc_chrdev_regionh]j)}(halloc_chrdev_regionh]halloc_chrdev_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(hB(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j)}(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 ]jf )}jY jsbc.alloc_chrdev_regionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned baseminorh](j )}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(h baseminorh]h baseminor}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h'register a range of char device numbersh]h'register a range of char device numbers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1jhhhjhNhNubj)}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj/ubj )}(hhh](j)}(h:``dev_t *dev`` output parameter for first assigned number h](j)}(h``dev_t *dev``h]j)}(hjTh]h dev_t *dev}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjNubj2)}(hhh]h)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhjKubj)}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned baseminor``h]j)}(hjh]hunsigned baseminor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj2)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjKubj)}(h8``unsigned count`` the number of minor numbers required h](j)}(h``unsigned count``h]j)}(hjh]hunsigned count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj2)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjKubj)}(hA``const char *name`` the name of the associated device or driver 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:350: ./fs/char_dev.chKhjubj2)}(hhh]h)}(h+the name of the associated device or driverh]h+the name of the associated device or driver}(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 hj/ubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj/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 }(hjPhhhNhNubj)}(h**dev**h]hdev}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh). Returns zero or a negative error code.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __register_chrdev (C function)c.__register_chrdevhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h__register_chrdevh]j)}(h__register_chrdevh]h__register_chrdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(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}(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)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseminorh](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 }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h baseminorh]h baseminor}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(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"const struct file_operations *fopsh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.__register_chrdevasbuh1hhjubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfopsh]hfops}(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)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:350: ./fs/char_dev.chKhjubj )}(hhh](j)}(hG``unsigned int major`` major device number or 0 for dynamic allocation 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:350: ./fs/char_dev.chKhjubj2)}(hhh]h)}(h/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hI``unsigned int baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(hj6h]hunsigned int baseminor}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj0ubj2)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjubj)}(h<``unsigned int count`` the number of minor numbers required h](j)}(h``unsigned int count``h]j)}(hjoh]hunsigned int count}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjiubj2)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h3``const char *name`` name of this range of devices 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:350: ./fs/char_dev.chKhjubj2)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hT``const struct file_operations *fops`` file operations associated with this devices h](j)}(h&``const struct file_operations *fops``h]j)}(hjh]h"const struct file_operations *fops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj2)}(hhh]h)}(h,file operations associated with this devicesh]h,file operations associated with this devices}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubh)}(hYIf **major** == 0 this functions will dynamically allocate a major and return its number.h](hIf }(hj2hhhNhNubj)}(h **major**h]hmajor}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubhM == 0 this functions will dynamically allocate a major and return its number.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubh)}(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 }(hjShhhNhNubj)}(h **major**h]hmajor}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubhp > 0 this function will attempt to reserve a device with the given major number and will return zero on success.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubh)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %unregister_chrdev_region (C function)c.unregister_chrdev_regionhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM,ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM,ubj{)}(hunregister_chrdev_regionh]j)}(hunregister_chrdev_regionh]hunregister_chrdev_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM,ubj)}(h(dev_t from, unsigned count)h](j)}(h dev_t fromh](h)}(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 jsbc.unregister_chrdev_regionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfromh]hfrom}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hcounth]hcount}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(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$unregister a range of device numbersh]h$unregister a range of device numbers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM,hj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:350: ./fs/char_dev.chM0hjubj )}(hhh](j)}(h?``dev_t from`` the first in the range of numbers to unregister h](j)}(h``dev_t from``h]j)}(hjh]h dev_t from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM-hjubj2)}(hhh]h)}(h/the first in the range of numbers to unregisterh]h/the first in the range of numbers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h>``unsigned count`` the number of device numbers to unregister h](j)}(h``unsigned count``h]j)}(hjh]hunsigned count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM.hjubj2)}(hhh]h)}(h*the number of device numbers to unregisterh]h*the number of device numbers to unregister}(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)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM0hjubh)}(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 }(hjJhhhNhNubj)}(h **count**h]hcount}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh device numbers, starting with }(hjJhhhNhNubj)}(h**from**h]hfrom}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  __unregister_chrdev (C function)c.__unregister_chrdevhNtauh1hhjhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMBubj{)}(h__unregister_chrdevh]j)}(h__unregister_chrdevh]h__unregister_chrdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMBubj)}(hR(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j)}(hunsigned int majorh](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)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseminorh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj )}(hinth]hint}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(h baseminorh]h baseminor}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMBhjhhubj)}(hhh]h)}(hunregister and destroy a cdevh]hunregister and destroy a cdev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMBhj8hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jhhhjhNhNubj)}(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)}(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:350: ./fs/char_dev.chMFhjWubj )}(hhh](j)}(h+``unsigned int major`` major device number h](j)}(h``unsigned int major``h]j)}(hj|h]hunsigned int major}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMChjvubj2)}(hhh]h)}(hmajor device numberh]hmajor device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhMChjsubj)}(h?``unsigned int baseminor`` first of the range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(hjh]hunsigned int baseminor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMDhjubj2)}(hhh]h)}(h#first of the range of minor numbersh]h#first of the range of minor numbers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjsubj)}(hJ``unsigned int count`` the number of minor numbers this cdev is occupying h](j)}(h``unsigned int count``h]j)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMEhjubj2)}(hhh]h)}(h2the number of minor numbers this cdev is occupyingh]h2the number of minor numbers this cdev is occupying}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMEhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMEhjsubj)}(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:350: ./fs/char_dev.chMFhj! ubj2)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj< hMFhj= ubah}(h]h ]h"]h$]h&]uh1j1hj! ubeh}(h]h ]h"]h$]h&]uh1jhj< hMFhjsubeh}(h]h ]h"]h$]h&]uh1j hjWubh)}(h**Description**h]j)}(hjb h]h Description}(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:350: ./fs/char_dev.chMHhjWubh)}(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 }(hjx hhhNhNubj)}(h **major**h]hmajor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubh, }(hjx hhhNhNubj)}(h **baseminor**h]h baseminor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubh and }(hjx hhhNhNubj)}(h **count**h]hcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubh5. This function undoes what __register_chrdev() did.}(hjx hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMGhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_add (C function) c.cdev_addhNtauh1hhjhhhNhNubj)}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hMubj{)}(hcdev_addh]j)}(hcdev_addh]hcdev_add}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMubj)}(h+(struct cdev *p, dev_t dev, unsigned count)h](j)}(hstruct cdev *ph](j)}(hjh]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)}(hcdevh]hcdev}(hj8!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:!modnameN classnameNj] j` )}jc ]jf )}jY j!sb c.cdev_addasbuh1hhj!ubj2)}(h h]h }(hjX!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjf!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hjh]hp}(hjs!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(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 ]jT! c.cdev_addasbuh1hhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hdevh]hdev}(hj!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&]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!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 a char device to the systemh]hadd a char device to the system}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1"jj1"jjjuh1jhhhjhNhNubj)}(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;"h]h Parameters}(hj="hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj5"ubj )}(hhh](j)}(h5``struct cdev *p`` the cdev structure for the device h](j)}(h``struct cdev *p``h]j)}(hjZ"h]hstruct cdev *p}(hj\"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjT"ubj2)}(hhh]h)}(h!the cdev structure for the deviceh]h!the cdev structure for the device}(hjs"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo"hMhjp"ubah}(h]h ]h"]h$]h&]uh1j1hjT"ubeh}(h]h ]h"]h$]h&]uh1jhjo"hMhjQ"ubj)}(hK``dev_t dev`` the first device number for which this device is responsible h](j)}(h ``dev_t dev``h]j)}(hj"h]h dev_t 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:350: ./fs/char_dev.chMhj"ubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hj[#hhhjm#hMubj{)}(hcdev_set_parenth]j)}(hcdev_set_parenth]hcdev_set_parent}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[#hhhjm#hMubj)}(h&(struct cdev *p, struct kobject *kobj)h](j)}(hstruct cdev *ph](j)}(hjh]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)}(hcdevh]hcdev}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY j#sbc.cdev_set_parentasbuh1hhj#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#ubj)}(hstruct kobject *kobjh](j)}(hjh]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)}(hkobjecth]hkobject}(hj+$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj($ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-$modnameN classnameNj] j` )}jc ]j#c.cdev_set_parentasbuh1hhj $ubj2)}(h h]h }(hjI$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj $ubj)}(hjh]h*}(hjW$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $ubj)}(hkobjh]hkobj}(hjd$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhj[#hhhjm#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjW#hhhjm#hMubah}(h]jR#ah ](jjeh"]h$]h&]jj)jhuh1jhjm#hMhjT#hhubj)}(hhh]h)}(h(set the parent kobject for a char deviceh]h(set the parent kobject for a char device}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjT#hhhjm#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhjhNhNubj)}(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)}(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:350: ./fs/char_dev.chMhj$ubj )}(hhh](j)}(h&``struct cdev *p`` the cdev structure h](j)}(h``struct cdev *p``h]j)}(hj$h]hstruct cdev *p}(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:350: ./fs/char_dev.chMhj$ubj2)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(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 kobject *kobj`` the kobject to take a reference to h](j)}(h``struct kobject *kobj``h]j)}(hj%h]hstruct kobject *kobj}(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:350: ./fs/char_dev.chMhj%ubj2)}(hhh]h)}(h"the kobject to take a reference toh]h"the kobject to take a reference to}(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)}(hjC%h]h Description}(hjE%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA%ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj$ubh)}(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.}(hjY%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_device_add (C function)c.cdev_device_addhNtauh1hhjhhhNhNubj)}(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}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%hhhj%hMubj{)}(hcdev_device_addh]j)}(hcdev_device_addh]hcdev_device_add}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhj%hMubj)}(h'(struct cdev *cdev, struct device *dev)h](j)}(hstruct cdev *cdevh](j)}(hjh]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)}(hcdevh]hcdev}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%modnameN classnameNj] j` )}jc ]jf )}jY j%sbc.cdev_device_addasbuh1hhj%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)}(hcdevh]hcdev}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hstruct device *devh](j)}(hjh]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)}(hdeviceh]hdevice}(hjU&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjW&modnameN classnameNj] j` )}jc ]j%c.cdev_device_addasbuh1hhj3&ubj2)}(h h]h }(hjs&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3&ubj)}(hdevh]hdev}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3&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?add a char device and it's corresponding struct device, linkinkh]hAadd a char device and it’s corresponding struct device, linkink}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj}%hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhjhNhNubj)}(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)}(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:350: ./fs/char_dev.chM hj&ubj )}(hhh](j)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hj&h]hstruct cdev *cdev}(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:350: ./fs/char_dev.chM hj&ubj2)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(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 device *dev`` the device structure h](j)}(h``struct device *dev``h]j)}(hj2'h]hstruct device *dev}(hj4'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0'ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM hj,'ubj2)}(hhh]h)}(hthe device structureh]hthe device structure}(hjK'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG'hM hjH'ubah}(h]h ]h"]h$]h&]uh1j1hj,'ubeh}(h]h ]h"]h$]h&]uh1jhjG'hM hj&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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM hj&ubh)}(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 }(hj'hhhNhNubj)}(h**cdev**h]hcdev}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh4 to the system, just as cdev_add does. It then adds }(hj'hhhNhNubj)}(h**dev**h]hdev}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubhX  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.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM hj&ubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj&ubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj&ubh)}(h**NOTE**h]j)}(hj'h]hNOTE}(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:350: ./fs/char_dev.chMhj&ubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_device_del (C function)c.cdev_device_delhNtauh1hhjhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hj(hhhj)(hM1ubj{)}(hcdev_device_delh]j)}(hcdev_device_delh]hcdev_device_del}(hj<(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj)(hM1ubj)}(h'(struct cdev *cdev, struct device *dev)h](j)}(hstruct cdev *cdevh](j)}(hjh]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)}(hcdevh]hcdev}(hjv(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjx(modnameN classnameNj] j` )}jc ]jf )}jY j>(sbc.cdev_device_delasbuh1hhjT(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)}(hcdevh]hcdev}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP(ubj)}(hstruct device *devh](j)}(hjh]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 ]j(c.cdev_device_delasbuh1hhj(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&]noemphjjuh1jhjP(ubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj)(hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj)(hM1ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj)(hM1hj(hhubj)}(hhh]h)}(hinverse of cdev_device_addh]hinverse of cdev_device_add}(hjK)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM1hjH)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj)(hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjc)jjc)jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the cdev structure ``struct device *dev`` the device structure **Description** cdev_device_del() is a helper function to call cdev_del and device_del. It should be used whenever cdev_device_add is used. If dev->devt 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)}(hjm)h]h Parameters}(hjo)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk)ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM5hjg)ubj )}(hhh](j)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hj)h]hstruct cdev *cdev}(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:350: ./fs/char_dev.chM2hj)ubj2)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM2hj)ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM2hj)ubj)}(h,``struct device *dev`` the device structure 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:350: ./fs/char_dev.chM3hj)ubj2)}(hhh]h)}(hthe device structureh]hthe device structure}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM3hj)ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM3hj)ubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM5hjg)ubh)}(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*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM4hjg)ubh)}(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.}(hj%*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM7hjg)ubh)}(h**NOTE**h]j)}(hj6*h]hNOTE}(hj8*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4*ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM:hjg)ubh)}(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.}(hjL*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM;hjg)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_del (C function) c.cdev_delhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid cdev_del (struct cdev *p)h]j)}(hvoid cdev_del(struct cdev *p)h](j )}(hvoidh]hvoid}(hj{*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjw*hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMLubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjw*hhhj*hMLubj{)}(hcdev_delh]j)}(hcdev_delh]hcdev_del}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjw*hhhj*hMLubj)}(h(struct cdev *p)h]j)}(hstruct cdev *ph](j)}(hjh]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)}(hcdevh]hcdev}(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.cdev_delasbuh1hhj*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&]jjuh1jhjw*hhhj*hMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjs*hhhj*hMLubah}(h]jn*ah ](jjeh"]h$]h&]jj)jhuh1jhj*hMLhjp*hhubj)}(hhh]h)}(hremove a cdev from the systemh]hremove a cdev from the system}(hj:+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMLhj7+hhubah}(h]h ]h"]h$]h&]uh1jhjp*hhhj*hMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjR+jjR+jjjuh1jhhhjhNhNubj)}(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)}(hj\+h]h Parameters}(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:350: ./fs/char_dev.chMPhjV+ubj )}(hhh]j)}(h4``struct cdev *p`` the cdev structure to be removed h](j)}(h``struct cdev *p``h]j)}(hj{+h]hstruct cdev *p}(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:350: ./fs/char_dev.chMMhju+ubj2)}(hhh]h)}(h the cdev structure to be removedh]h the cdev structure to be removed}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMMhj+ubah}(h]h ]h"]h$]h&]uh1j1hju+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMMhjr+ubah}(h]h ]h"]h$]h&]uh1j hjV+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:350: ./fs/char_dev.chMOhjV+ubh)}(hPcdev_del() removes **p** from the system, possibly freeing the structure itself.h](hcdev_del() removes }(hj+hhhNhNubj)}(h**p**h]hp}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh8 from the system, possibly freeing the structure itself.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMNhjV+ubh)}(h**NOTE**h]j)}(hj+h]hNOTE}(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:350: ./fs/char_dev.chMQhjV+ubh)}(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,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMRhjV+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_alloc (C function) c.cdev_allochNtauh1hhjhhhNhNubj)}(hhh](j)}(hstruct cdev * cdev_alloc (void)h]j)}(hstruct cdev *cdev_alloc(void)h](j)}(hjh]hstruct}(hj4,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0,hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMyubj2)}(h h]h }(hjB,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0,hhhjA,hMyubh)}(hhh]j)}(hcdevh]hcdev}(hjS,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjU,modnameN classnameNj] j` )}jc ]jf )}jY cdev_allocsb c.cdev_allocasbuh1hhj0,hhhjA,hMyubj2)}(h h]h }(hjt,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0,hhhjA,hMyubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0,hhhjA,hMyubj{)}(h cdev_alloch]j)}(hjq,h]h cdev_alloc}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0,hhhjA,hMyubj)}(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&]jjuh1jhj0,hhhjA,hMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,,hhhjA,hMyubah}(h]j',ah ](jjeh"]h$]h&]jj)jhuh1jhjA,hMyhj),hhubj)}(hhh]h)}(hallocate a cdev structureh]hallocate a cdev structure}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMyhj,hhubah}(h]h ]h"]h$]h&]uh1jhj),hhhjA,hMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhjhNhNubj)}(hu**Parameters** ``void`` no arguments **Description** Allocates and returns a cdev structure, or NULL 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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj-ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj2-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)}(hjT-h]h Description}(hjV-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj,ubh)}(h;Allocates and returns a cdev structure, or NULL on failure.h]h;Allocates and returns a cdev structure, or NULL on failure.}(hjj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMzhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_init (C function) c.cdev_inithNtauh1hhjhhhNhNubj)}(hhh](j)}(hFvoid cdev_init (struct cdev *cdev, const struct file_operations *fops)h]j)}(hEvoid cdev_init(struct cdev *cdev, const struct file_operations *fops)h](j )}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj-hMubj{)}(h cdev_inith]j)}(h cdev_inith]h cdev_init}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj-hMubj)}(h7(struct cdev *cdev, const struct file_operations *fops)h](j)}(hstruct cdev *cdevh](j)}(hjh]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)}(hcdevh]hcdev}(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.cdev_initasbuh1hhj-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)}(hcdevh]hcdev}(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}(hjH.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubj2)}(h h]h }(hjU.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjD.ubj)}(hjh]hstruct}(hjc.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubj2)}(h h]h }(hjp.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjD.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.cdev_initasbuh1hhjD.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjD.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.ubj)}(hfopsh]hfops}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD.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)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj.hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhjhNhNubj)}(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/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:350: ./fs/char_dev.chMhj/ubj )}(hhh](j)}(h2``struct cdev *cdev`` the structure to initialize h](j)}(h``struct cdev *cdev``h]j)}(hj%/h]hstruct cdev *cdev}(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:350: ./fs/char_dev.chMhj/ubj2)}(hhh]h)}(hthe structure to initializeh]hthe structure to initialize}(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``const struct file_operations *fops`` the file_operations for this device 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:350: ./fs/char_dev.chMhjX/ubj2)}(hhh]h)}(h#the file_operations for this deviceh]h#the file_operations for this device}(hjw/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs/hMhjt/ubah}(h]h ]h"]h$]h&]uh1j1hjX/ubeh}(h]h ]h"]h$]h&]uh1jhjs/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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj/ubh)}(haInitializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h Initializes }(hj/hhhNhNubj)}(h**cdev**h]hcdev}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh, remembering }(hj/hhhNhNubj)}(h**fops**h]hfops}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh7, making it ready to add to the system with cdev_add().}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM\ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hhhhhMbubh)}(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 }(hj0hhhNhNubh)}(h:c:type:`struct clk `h]j)}(hj 0h]h struct clk}(hj0hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj 0ubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjclkuh1hhhhMdhj0ubh 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.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMdhj/hhubh)}(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 }(hj30hhhNhNubjh)}(h*retention mode*h]hretention mode}(hj;0hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj30ubh. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.}(hj30hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMnhj/hhubh)}(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.}(hjS0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhj/hhubh)}(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.}(hja0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj/hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_notifier (C struct)c.clk_notifierhNtauh1hhj/hhhNhNubj)}(hhh](j)}(h clk_notifierh]j)}(hstruct clk_notifierh](j)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0hhhj0hKubj{)}(h clk_notifierh]j)}(hj0h]h clk_notifier}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhj0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hKubah}(h]j{0ah ](jjeh"]h$]h&]jj)jhuh1jhj0hKhj}0hhubj)}(hhh]h)}(hassociate a clk with a notifierh]hassociate a clk with a notifier}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK,hj0hhubah}(h]h ]h"]h$]h&]uh1jhj}0hhhj0hKubeh}(h]h ](jstructeh"]h$]h&]jjjj0jj0jjjuh1jhhhj/hNhNubj)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh:}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hj0ubj7C)}(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; };}hj1sbah}(h]h ]h"]h$]h&]jjuh1j6ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK2hj0ubh)}(h **Members**h]j)}(hj1h]hMembers}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8hj0ubj )}(hhh](j)}(h4``clk`` struct clk * to associate the notifier with h](j)}(h``clk``h]j)}(hj71h]hclk}(hj91hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj51ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK.hj11ubj2)}(hhh]h)}(h+struct clk * to associate the notifier withh]h+struct clk * to associate the notifier with}(hjP1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL1hK.hjM1ubah}(h]h ]h"]h$]h&]uh1j1hj11ubeh}(h]h ]h"]h$]h&]uh1jhjL1hK.hj.1ubj)}(h8``notifier_head`` a blocking_notifier_head for this clk h](j)}(h``notifier_head``h]j)}(hjp1h]h notifier_head}(hjr1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK/hjj1ubj2)}(hhh]h)}(h%a blocking_notifier_head for this clkh]h%a blocking_notifier_head for this clk}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hK/hj1ubah}(h]h ]h"]h$]h&]uh1j1hjj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hK/hj.1ubj)}(h``node`` linked list pointersh](j)}(h``node``h]j)}(hj1h]hnode}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK/hj1ubj2)}(hhh]h)}(hlinked list pointersh]hlinked list pointers}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hj1ubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hK/hj.1ubeh}(h]h ]h"]h$]h&]uh1j hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(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:389: ./include/linux/clk.hhK3hj/hhubh)}(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 }(hj2hhhNhNubj)}(h**clk**h]hclk}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh. Future notifiers on that }(hj2hhhNhNubj)}(h**clk**h]hclk}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh are added to the }(hj2hhhNhNubj)}(h**notifier_head**h]h notifier_head}(hj.2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hj/hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhj/hhhNhNubj)}(hhh](j)}(hclk_notifier_datah]j)}(hstruct clk_notifier_datah](j)}(hjh]hstruct}(hj`2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8ubj2)}(h h]h }(hjn2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\2hhhjm2hK8ubj{)}(hclk_notifier_datah]j)}(hjZ2h]hclk_notifier_data}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\2hhhjm2hK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjX2hhhjm2hK8ubah}(h]jS2ah ](jjeh"]h$]h&]jj)jhuh1jhjm2hK8hjU2hhubj)}(hhh]h)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK=hj2hhubah}(h]h ]h"]h$]h&]uh1jhjU2hhhjm2hK8ubeh}(h]h ](jstructeh"]h$]h&]jjjj2jj2jjjuh1jhhhj/hNhNubj)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh:}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhj2ubj7C)}(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; };}hj2sbah}(h]h ]h"]h$]h&]jjuh1j6ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKChj2ubh)}(h **Members**h]j)}(hj2h]hMembers}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIhj2ubj )}(hhh](j)}(h#``clk`` struct clk * being changed h](j)}(h``clk``h]j)}(hj3h]hclk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK?hj 3ubj2)}(hhh]h)}(hstruct clk * being changedh]hstruct clk * being changed}(hj(3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$3hK?hj%3ubah}(h]h ]h"]h$]h&]uh1j1hj 3ubeh}(h]h ]h"]h$]h&]uh1jhj$3hK?hj3ubj)}(h'``old_rate`` previous rate of this clk h](j)}(h ``old_rate``h]j)}(hjH3h]hold_rate}(hjJ3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hjB3ubj2)}(hhh]h)}(hprevious rate of this clkh]hprevious rate of this clk}(hja3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]3hK@hj^3ubah}(h]h ]h"]h$]h&]uh1j1hjB3ubeh}(h]h ]h"]h$]h&]uh1jhj]3hK@hj3ubj)}(h!``new_rate`` new rate of this clkh](j)}(h ``new_rate``h]j)}(hj3h]hnew_rate}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hj{3ubj2)}(hhh]h)}(hnew rate of this clkh]hnew rate of this clk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhj3ubah}(h]h ]h"]h$]h&]uh1j1hj{3ubeh}(h]h ]h"]h$]h&]uh1jhj3hK@hj3ubeh}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(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:389: ./include/linux/clk.hhKDhj/hhubh)}(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).}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhj/hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhj/hhhNhNubj)}(hhh](j)}(h clk_bulk_datah]j)}(hstruct clk_bulk_datah](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3hhhj4hKIubj{)}(h clk_bulk_datah]j)}(hj3h]h clk_bulk_data}(hj"4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhj4hKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj4hKIubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj4hKIhj3hhubj)}(hhh]h)}(h"Data used for bulk clk operations.h]h"Data used for bulk clk operations.}(hjD4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKNhjA4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj4hKIubeh}(h]h ](jstructeh"]h$]h&]jjjj\4jj\4jjjuh1jhhhj/hNhNubj)}(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}(hjh4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd4ubh:}(hjd4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhj`4ubj7C)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hj4sbah}(h]h ]h"]h$]h&]jjuh1j6ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKThj`4ubh)}(h **Members**h]j)}(hj4h]hMembers}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKYhj`4ubj )}(hhh](j)}(h``id`` clock consumer ID h](j)}(h``id``h]j)}(hj4h]hid}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKQhj4ubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKQhj4ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKQhj4ubj)}(h2``clk`` struct clk * to store the associated clockh](j)}(h``clk``h]j)}(hj4h]hclk}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKQhj4ubj2)}(hhh]h)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhj5ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKQhj4ubeh}(h]h ]h"]h$]h&]uh1j hj`4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(h**Description**h]j)}(hj-5h]h Description}(hj/5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKUhj/hhubh)}(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.}(hjC5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhj/hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhj/hhhNhNubj)}(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}(hjk5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjg5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK_ubj2)}(h h]h }(hjz5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjg5hhhjy5hK_ubj{)}(hclk_notifier_registerh]j)}(hclk_notifier_registerh]hclk_notifier_register}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjg5hhhjy5hK_ubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubh)}(hhh]j)}(hclkh]hclk}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj5modnameN classnameNj] j` )}jc ]jf )}jY j5sbc.clk_notifier_registerasbuh1hhj5ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hclkh]hclk}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hstruct notifier_block *nbh](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj'6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hj86hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj56ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:6modnameN classnameNj] j` )}jc ]j5c.clk_notifier_registerasbuh1hhj6ubj2)}(h h]h }(hjV6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]h*}(hjd6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hnbh]hnb}(hjq6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhjg5hhhjy5hK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjc5hhhjy5hK_ubah}(h]j^5ah ](jjeh"]h$]h&]jj)jhuh1jhjy5hK_hj`5hhubj)}(hhh]h)}(h.register a clock rate-change notifier callbackh]h.register a clock rate-change notifier callback}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK_hj6hhubah}(h]h ]h"]h$]h&]uh1jhj`5hhhjy5hK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKchj6ubj )}(hhh](j)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(hj6h]hstruct clk *clk}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK`hj6ubj2)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hK`hj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hK`hj6ubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hj7h]hstruct notifier_block *nb}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKahj7ubj2)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hj.7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*7hKahj+7ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj*7hKahj6ubeh}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h**Description**h]j)}(hjP7h]h Description}(hjR7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKchj6ubh)}(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.}(hjf7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKbhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhj/hhhNhNubj)}(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}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKjubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7hhhj7hKjubj{)}(hclk_notifier_unregisterh]j)}(hclk_notifier_unregisterh]hclk_notifier_unregister}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhj7hKjubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(hclkh]hclk}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY j7sbc.clk_notifier_unregisterasbuh1hhj7ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hclkh]hclk}(hj+8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct notifier_block *nbh](j)}(hjh]hstruct}(hjD8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@8ubj2)}(h h]h }(hjQ8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@8ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjb8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_8ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjd8modnameN classnameNj] j` )}jc ]j 8c.clk_notifier_unregisterasbuh1hhj@8ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@8ubj)}(hnbh]hnb}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hKjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hKjubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jhj7hKjhj7hhubj)}(hhh]h)}(h0unregister a clock rate-change notifier callbackh]h0unregister a clock rate-change notifier callback}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKjhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hKjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKnhj8ubj )}(hhh](j)}(hD``struct clk *clk`` clock whose rate we are no longer interested in h](j)}(h``struct clk *clk``h]j)}(hj9h]hstruct clk *clk}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKkhj9ubj2)}(hhh]h)}(h/clock whose rate we are no longer interested inh]h/clock whose rate we are no longer interested in}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKkhj9ubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hKkhj8ubj)}(hG``struct notifier_block *nb`` notifier block which will be unregisteredh](j)}(h``struct notifier_block *nb``h]j)}(hj?9h]hstruct notifier_block *nb}(hjA9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKmhj99ubj2)}(hhh]h)}(h)notifier block which will be unregisteredh]h)notifier block which will be unregistered}(hjX9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKlhjU9ubah}(h]h ]h"]h$]h&]uh1j1hj99ubeh}(h]h ]h"]h$]h&]uh1jhjT9hKmhj8ubeh}(h]h ]h"]h$]h&]uh1j hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhj/hhhNhNubj)}(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}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKqubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhj9hKqubj{)}(hdevm_clk_notifier_registerh]j)}(hdevm_clk_notifier_registerh]hdevm_clk_notifier_register}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhj9hKqubj)}(h@(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(hdeviceh]hdevice}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY j9sbc.devm_clk_notifier_registerasbuh1hhj9ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hj":hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdevh]hdev}(hj/:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjH:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD:ubj2)}(h h]h }(hjU:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjD:ubh)}(hhh]j)}(hclkh]hclk}(hjf:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjh:modnameN classnameNj] j` )}jc ]j:c.devm_clk_notifier_registerasbuh1hhjD:ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjD:ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD:ubj)}(hclkh]hclk}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hstruct notifier_block *nbh](j)}(hjh]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 ]j: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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hKqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hKqubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhj9hKqhj9hhubj)}(hhh]h)}(h0register a managed rate-change notifier callbackh]h0register a managed rate-change notifier callback}(hj9;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKqhj6;hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hKqubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQ;jjQ;jjjuh1jhhhj/hNhNubj)}(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&]uh1jhjY;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKuhjU;ubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjz;h]hstruct device *dev}(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:389: ./include/linux/clk.hhKrhjt;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&]uh1j1hjt;ubeh}(h]h ]h"]h$]h&]uh1jhj;hKrhjq;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:389: ./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;hKshjq;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:389: ./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<hKthjq;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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKvhjU;ubh)}(h'Returns 0 on success, -EERROR otherwiseh]h'Returns 0 on success, -EERROR otherwise}(hj=<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKuhjU;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhj/hhhNhNubj)}(hhh](j)}(h'long clk_get_accuracy (struct clk *clk)h]j)}(h&long clk_get_accuracy(struct clk *clk)h](j )}(hlongh]hlong}(hjl<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjh<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|ubj2)}(h h]h }(hj{<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjh<hhhjz<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&]jjuh1jzhjh<hhhjz<hK|ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]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<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hclkh]hclk}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjh<hhhjz<hK|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjd<hhhjz<hK|ubah}(h]j_<ah ](jjeh"]h$]h&]jj)jhuh1jhjz<hK|hja<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.}(hj,=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|hj)=hhubah}(h]h ]h"]h$]h&]uh1jhja<hhhjz<hK|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjD=jjD=jjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKhjH=ubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjm=h]hstruct clk *clk}(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:389: ./include/linux/clk.hhK~hjg=ubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hK~hj=ubah}(h]h ]h"]h$]h&]uh1j1hjg=ubeh}(h]h ]h"]h$]h&]uh1jhj=hK~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:389: ./include/linux/clk.hhKhjH=ubh)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjH=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_phase (C function)c.clk_set_phasehNtauh1hhj/hhhNhNubj)}(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}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=hhhj=hKubj{)}(h clk_set_phaseh]j)}(h clk_set_phaseh]h clk_set_phase}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj >ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhhj=hKubj)}(h(struct clk *clk, int degrees)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj*>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&>ubj2)}(h h]h }(hj7>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&>ubh)}(hhh]j)}(hclkh]hclk}(hjH>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJ>modnameN classnameNj] j` )}jc ]jf )}jY j>sbc.clk_set_phaseasbuh1hhj&>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)}(hclkh]hclk}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj">ubj)}(h int degreesh](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)}(hdegreesh]hdegrees}(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(adjust the phase shift of a clock signalh]h(adjust the phase shift of a clock signal}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhj/hNhNubj)}(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?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:389: ./include/linux/clk.hhKhj>ubj )}(hhh](j)}(h(``struct clk *clk`` clock signal 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:389: ./include/linux/clk.hhKhj?ubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(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:389: ./include/linux/clk.hhKhj>ubh)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_phase (C function)c.clk_get_phasehNtauh1hhj/hhhNhNubj)}(hhh](j)}(h#int clk_get_phase (struct clk *clk)h]j)}(h"int clk_get_phase(struct clk *clk)h](j )}(hinth]hint}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhj?hKubj{)}(h clk_get_phaseh]j)}(h clk_get_phaseh]h clk_get_phase}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhj?hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]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}(hj7@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9@modnameN classnameNj] j` )}jc ]jf )}jY j?sbc.clk_get_phaseasbuh1hhj@ubj2)}(h h]h }(hjW@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hje@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hclkh]hclk}(hjr@hhhNhNubah}(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(return the phase shift of a clock signalh]h(return the phase shift of a clock signal}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKhj@ubj )}(hhh]j)}(h(``struct clk *clk`` clock signal 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:389: ./include/linux/clk.hhKhj@ubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(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)}(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:389: ./include/linux/clk.hhKhj@ubh)}(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.}(hj.AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhj/hhhNhNubj)}(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}(hj]AhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYAhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hjlAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYAhhhjkAhKubj{)}(hclk_set_duty_cycleh]j)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hj~AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYAhhhjkAhKubj)}(h5(struct clk *clk, unsigned int num, unsigned int den)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubh)}(hhh]j)}(hclkh]hclk}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjAmodnameN classnameNj] j` )}jc ]jf )}jY jAsbc.clk_set_duty_cycleasbuh1hhjAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hclkh]hclk}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hunsigned int numh](j )}(hunsignedh]hunsigned}(hj BhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj )}(hinth]hint}(hj(BhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj2)}(h h]h }(hj6BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hnumh]hnum}(hjDBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hunsigned int denh](j )}(hunsignedh]hunsigned}(hj]BhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYBubj2)}(h h]h }(hjkBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYBubj )}(hinth]hint}(hjyBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYBubj)}(hdenh]hden}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjYAhhhjkAhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUAhhhjkAhKubah}(h]jPAah ](jjeh"]h$]h&]jj)jhuh1jhjkAhKhjRAhhubj)}(hhh]h)}(h-adjust the duty cycle ratio of a clock signalh]h-adjust the duty cycle ratio of a clock signal}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjBhhubah}(h]h ]h"]h$]h&]uh1jhjRAhhhjkAhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jhhhj/hNhNubj)}(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)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjBubj )}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hjCh]hstruct clk *clk}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjBubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhjChKhjBubj)}(hE``unsigned int num`` numerator of the duty cycle ratio to be applied h](j)}(h``unsigned int num``h]j)}(hj9Ch]hunsigned int num}(hj;ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Cubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj3Cubj2)}(hhh]h)}(h/numerator of the duty cycle ratio to be appliedh]h/numerator of the duty cycle ratio to be applied}(hjRChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNChKhjOCubah}(h]h ]h"]h$]h&]uh1j1hj3Cubeh}(h]h ]h"]h$]h&]uh1jhjNChKhjBubj)}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j)}(h``unsigned int den``h]j)}(hjrCh]hunsigned int den}(hjtChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjlCubj2)}(hhh]h)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1j1hjlCubeh}(h]h ]h"]h$]h&]uh1jhjChKhjBubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjBubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhj/hhhNhNubj)}(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}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjDhKubj{)}(hclk_get_scaled_duty_cycleh]j)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjDhKubj)}(h%(struct clk *clk, unsigned int scale)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj/DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Dubj2)}(h h]h }(hjah"]h$]h&]uh1j1hj+Dubh)}(hhh]j)}(hclkh]hclk}(hjMDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjODmodnameN classnameNj] j` )}jc ]jf )}jY jDsbc.clk_get_scaled_duty_cycleasbuh1hhj+Dubj2)}(h h]h }(hjmDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+Dubj)}(hjh]h*}(hj{DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Dubj)}(hclkh]hclk}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'Dubj)}(hunsigned int scaleh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hinth]hint}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hscaleh]hscale}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'Dubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjDhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjDhKubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhjDhKhjChhubj)}(hhh]h)}(h-return the duty cycle ratio of a clock signalh]h-return the duty cycle ratio of a clock signal}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjDhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKhjEubj )}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hjDEh]hstruct clk *clk}(hjFEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj>Eubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hj]EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYEhKhjZEubah}(h]h ]h"]h$]h&]uh1j1hj>Eubeh}(h]h ]h"]h$]h&]uh1jhjYEhKhj;Eubj)}(hY``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer h](j)}(h``unsigned int scale``h]j)}(hj}Eh]hunsigned int scale}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Eubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjwEubj2)}(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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjEubah}(h]h ]h"]h$]h&]uh1j1hjwEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj;Eubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjEubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_is_match (C function)c.clk_is_matchhNtauh1hhj/hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjEhhhj FhKubj{)}(h clk_is_matchh]j)}(h clk_is_matchh]h clk_is_match}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhj FhKubj)}(h*(const struct clk *p, const struct clk *q)h](j)}(hconst struct clk *ph](j)}(hjh]hconst}(hj9FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Fubj2)}(h h]h }(hjFFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Fubj)}(hjh]hstruct}(hjTFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Fubj2)}(h h]h }(hjaFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Fubh)}(hhh]j)}(hclkh]hclk}(hjrFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtFmodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.clk_is_matchasbuh1hhj5Fubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Fubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Fubj)}(hjh]hp}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Fubj)}(hconst struct clk *qh](j)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(hclkh]hclk}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jFc.clk_is_matchasbuh1hhjFubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hj*GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hj.ch]hq}(hj7GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Fubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhj FhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj FhKubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhj FhKhjEhhubj)}(hhh]h)}(h3check if two clk's point to the same hardware clockh]h5check if two clk’s point to the same hardware clock}(hj`GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj]Ghhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj FhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxGjjxGjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKhj|Gubj )}(hhh](j)}(h/``const struct clk *p`` clk compared against q h](j)}(h``const struct clk *p``h]j)}(hjGh]hconst struct clk *p}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjGubj2)}(hhh]h)}(hclk compared against qh]hclk compared against q}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjGubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjGubj)}(h/``const struct clk *q`` clk compared against p h](j)}(h``const struct clk *q``h]j)}(hjGh]hconst struct clk *q}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjGubj2)}(hhh]h)}(hclk compared against ph]hclk compared against p}(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 hj|Gubh)}(h**Description**h]j)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj|Gubh)}(hReturns 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.h](hyReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if }(hj+HhhhNhNubj)}(h**p**h]hp}(hj3HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Hubh and }(hj+HhhhNhNubj)}(h**q**h]hq}(hjEHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Hubh share the same }(hj+HhhhNhNubh)}(h$:c:type:`struct clk_core `h]j)}(hjYHh]hstruct clk_core}(hj[HhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjWHubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjclk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj+Hubh object.}(hj+HhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjvHhKhj|Gubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj|Gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhj/hhhNhNubj)}(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}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHhhhjHhKubj{)}(hclk_rate_exclusive_geth]j)}(hclk_rate_exclusive_geth]hclk_rate_exclusive_get}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjHhKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(hhh]j)}(hclkh]hclk}(hj IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj ImodnameN classnameNj] j` )}jc ]jf )}jY jHsbc.clk_rate_exclusive_getasbuh1hhjHubj2)}(h h]h }(hj+IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hj9IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hclkh]hclk}(hjFIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhjHhKubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jhjHhKhjHhhubj)}(hhh]h)}(h3get exclusivity over the rate control of a producerh]h3get exclusivity over the rate control of a producer}(hjpIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjmIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKhjIubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjIh]hstruct clk *clk}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjIubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKhjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjIubah}(h]h ]h"]h$]h&]uh1j hjIubh)}(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:389: ./include/linux/clk.hhKhjIubh)}(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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjIubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjIubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjIubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hj/JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (devm_clk_rate_exclusive_get (C function)c.devm_clk_rate_exclusive_gethNtauh1hhj/hhhNhNubj)}(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}(hj^JhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hjmJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZJhhhjlJhKubj{)}(hdevm_clk_rate_exclusive_geth]j)}(hdevm_clk_rate_exclusive_geth]hdevm_clk_rate_exclusive_get}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Jubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZJhhhjlJhKubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(hhh]j)}(hdeviceh]hdevice}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]jf )}jY jJsbc.devm_clk_rate_exclusive_getasbuh1hhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hdevh]hdev}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Kubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Kubh)}(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.devm_clk_rate_exclusive_getasbuh1hhj Kubj2)}(h h]h }(hjIKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Kubj)}(hjh]h*}(hjWKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Kubj)}(hclkh]hclk}(hjdKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjZJhhhjlJhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVJhhhjlJhKubah}(h]jQJah ](jjeh"]h$]h&]jj)jhuh1jhjlJhKhjSJhhubj)}(hhh]h)}(h&devm variant of clk_rate_exclusive_geth]h&devm variant of clk_rate_exclusive_get}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjKhhubah}(h]h ]h"]h$]h&]uh1jhjSJhhhjlJhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKhjKubj )}(hhh](j)}(h:``struct device *dev`` device the exclusivity is bound to h](j)}(h``struct device *dev``h]j)}(hjKh]hstruct device *dev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjKubj2)}(hhh]h)}(h"device the exclusivity is bound toh]h"device the exclusivity is bound to}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjKubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjKubj)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjLh]hstruct clk *clk}(hj LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjLubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj!LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhKhjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhKhjKubeh}(h]h ]h"]h$]h&]uh1j hjKubh)}(h**Description**h]j)}(hjCLh]h Description}(hjELhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjALubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjKubh)}(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 }(hjYLhhhNhNubj)}(h**clk**h]hclk}(hjaLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYLubh) and registers a devm cleanup handler on }(hjYLhhhNhNubj)}(h**dev**h]hdev}(hjsLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYLubh" to call clk_rate_exclusive_put().}(hjYLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjKubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #clk_rate_exclusive_put (C function)c.clk_rate_exclusive_puthNtauh1hhj/hhhNhNubj)}(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}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLhhhjLhKubj{)}(hclk_rate_exclusive_puth]j)}(hclk_rate_exclusive_puth]hclk_rate_exclusive_put}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhjLhKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hclkh]hclk}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jf )}jY jLsbc.clk_rate_exclusive_putasbuh1hhjLubj2)}(h h]h }(hj6MhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjDMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hclkh]hclk}(hjQMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jhjLhKhjLhhubj)}(hhh]h)}(h7release exclusivity over the rate control of a producerh]h7release exclusivity over the rate control of a producer}(hj{MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjxMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./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:389: ./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)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjMubh)}(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()}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjMubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjMubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj+NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_save_context (C function)c.clk_save_contexthNtauh1hhj/hhhNhNubj)}(hhh](j)}(hint clk_save_context (void)h]j)}(hint clk_save_context(void)h](j )}(hinth]hint}(hjZNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hjiNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVNhhhjhNhKubj{)}(hclk_save_contexth]j)}(hclk_save_contexth]hclk_save_context}(hj{NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVNhhhjhNhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]noemphjjuh1jhjNubah}(h]h ]h"]h$]h&]jjuh1jhjVNhhhjhNhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRNhhhjhNhKubah}(h]jMNah ](jjeh"]h$]h&]jj)jhuh1jhjhNhKhjONhhubj)}(hhh]h)}(hsave clock context for poweroffh]hsave clock context for poweroff}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjNhhubah}(h]h ]h"]h$]h&]uh1jhjONhhhjhNhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhKhjNubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjOh]hvoid}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjNubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjOubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjOhKhjNubah}(h]h ]h"]h$]h&]uh1j hjNubh)}(h**Description**h]j)}(hj=Oh]h Description}(hj?OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Oubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjNubh)}(hSaves 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]hSaves 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.}(hjSOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  clk_restore_context (C function)c.clk_restore_contexthNtauh1hhj/hhhNhNubj)}(hhh](j)}(hvoid clk_restore_context (void)h]j)}(hvoid clk_restore_context(void)h](j )}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~OhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~OhhhjOhKubj{)}(hclk_restore_contexth]j)}(hclk_restore_contexth]hclk_restore_context}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~OhhhjOhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhj~OhhhjOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzOhhhjOhKubah}(h]juOah ](jjeh"]h$]h&]jj)jhuh1jhjOhKhjwOhhubj)}(hhh]h)}(h$restore clock context after poweroffh]h$restore clock context after poweroff}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjOhhubah}(h]h ]h"]h$]h&]uh1jhjwOhhhjOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhj/hNhNubj)}(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)}(hj Ph]h Parameters}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Pubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjPubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj*Ph]hvoid}(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:389: ./include/linux/clk.hhKhj$Pubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjCPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?PhKhj@Pubah}(h]h ]h"]h$]h&]uh1j1hj$Pubeh}(h]h ]h"]h$]h&]uh1jhj?PhKhj!Pubah}(h]h ]h"]h$]h&]uh1j hjPubh)}(h**Description**h]j)}(hjePh]h Description}(hjgPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjPubh)}(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.}(hj{PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_prepare (C function) c.clk_preparehNtauh1hhj/hhhNhNubj)}(hhh](j)}(h!int clk_prepare (struct clk *clk)h]j)}(h int clk_prepare(struct clk *clk)h](j )}(hinth]hint}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhhhjPhMDubj{)}(h clk_prepareh]j)}(h clk_prepareh]h clk_prepare}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjPhMDubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(hclkh]hclk}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY jPsb c.clk_prepareasbuh1hhjPubj2)}(h h]h }(hj%QhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hj3QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hclkh]hclk}(hj@QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhMDubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jhjPhMDhjPhhubj)}(hhh]h)}(hprepare a clock sourceh]hprepare a clock source}(hjjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhjgQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMHhjQubj )}(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:389: ./include/linux/clk.hhMEhjQubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMEhjQubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMEhjQubah}(h]h ]h"]h$]h&]uh1j hjQubh)}(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:389: ./include/linux/clk.hhMGhjQubh)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMFhjQubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMHhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_unprepare (C function)c.clk_unpreparehNtauh1hhj/hhhNhNubj)}(hhh](j)}(h$void clk_unprepare (struct clk *clk)h]j)}(h#void clk_unprepare(struct clk *clk)h](j )}(hvoidh]hvoid}(hj:RhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6RhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMNubj2)}(h h]h }(hjIRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6RhhhjHRhMNubj{)}(h clk_unprepareh]j)}(h clk_unprepareh]h clk_unprepare}(hj[RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6RhhhjHRhMNubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjwRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsRubh)}(hhh]j)}(hclkh]hclk}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jf )}jY j]Rsbc.clk_unprepareasbuh1hhjsRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsRubj)}(hclkh]hclk}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoRubah}(h]h ]h"]h$]h&]jjuh1jhj6RhhhjHRhMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2RhhhjHRhMNubah}(h]j-Rah ](jjeh"]h$]h&]jj)jhuh1jhjHRhMNhj/Rhhubj)}(hhh]h)}(h"undo preparation of a clock sourceh]h"undo preparation of a clock source}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMNhjRhhubah}(h]h ]h"]h$]h&]uh1jhj/RhhhjHRhMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMRhjSubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj;Sh]hstruct clk *clk}(hj=ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMOhj5Subj2)}(hhh]h)}(h clock sourceh]h clock source}(hjTShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPShMOhjQSubah}(h]h ]h"]h$]h&]uh1j1hj5Subeh}(h]h ]h"]h$]h&]uh1jhjPShMOhj2Subah}(h]h ]h"]h$]h&]uh1j hjSubh)}(h**Description**h]j)}(hjvSh]h Description}(hjxShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMQhjSubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMPhjSubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMShjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhj/hhhNhNubj)}(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}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjShhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]ubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjShhhjShM]ubj{)}(hclk_is_enabled_when_preparedh]j)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhjShM]ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubh)}(hhh]j)}(hclkh]hclk}(hj$ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Tubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&TmodnameN classnameNj] j` )}jc ]jf )}jY jSsbc.clk_is_enabled_when_preparedasbuh1hhjTubj2)}(h h]h }(hjDThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjRThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hclkh]hclk}(hj_ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubah}(h]h ]h"]h$]h&]jjuh1jhjShhhjShM]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjShM]ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhjShM]hjShhubj)}(hhh]h)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1jhhhj/hNhNubj)}(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)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMahjTubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjTh]hstruct clk *clk}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjTubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM^hjTubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjThM^hjTubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjTubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM_hjTubh)}(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.}(hj*UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMbhjTubh)}(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.}(hj9UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMfhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get (C function) c.clk_gethNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hjhUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjvUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdUhhhjuUhMubh)}(hhh]j)}(hclkh]hclk}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY clk_getsb c.clk_getasbuh1hhjdUhhhjuUhMubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdUhhhjuUhMubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdUhhhjuUhMubj{)}(hclk_geth]j)}(hjUh]hclk_get}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdUhhhjuUhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubh)}(hhh]j)}(hdeviceh]hdevice}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jU c.clk_getasbuh1hhjUubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hj,VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hdevh]hdev}(hj9VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hconst char *idh](j)}(hjh]hconst}(hjRVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNVubj2)}(h h]h }(hj_VhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNVubj )}(hcharh]hchar}(hjmVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNVubj2)}(h h]h }(hj{VhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNVubj)}(hidh]hid}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjdUhhhjuUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`UhhhjuUhMubah}(h]j[Uah ](jjeh"]h$]h&]jj)jhuh1jhjuUhMhj]Uhhubj)}(hhh]h)}(h2lookup and obtain a reference to a clock producer.h]h2lookup and obtain a reference to a clock producer.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1jhj]UhhhjuUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjVubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjWh]hstruct device *dev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjVubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj:Wh]hconst char *id}(hjah"]h$]h&]uh1j1hjXhhhj.XhMubj{)}(h clk_bulk_geth]j)}(h clk_bulk_geth]h clk_bulk_get}(hjAXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Xubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhj.XhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj]XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYXubj2)}(h h]h }(hjjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYXubh)}(hhh]j)}(hdeviceh]hdevice}(hj{XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}XmodnameN classnameNj] j` )}jc ]jf )}jY jCXsbc.clk_bulk_getasbuh1hhjYXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYXubj)}(hdevh]hdev}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUXubj)}(h int num_clksh](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hnum_clksh]hnum_clks}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUXubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hj"YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$YmodnameN classnameNj] j` )}jc ]jXc.clk_bulk_getasbuh1hhjYubj2)}(h h]h }(hj@YhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjNYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hclksh]hclks}(hj[YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUXubeh}(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;lookup and obtain a number of references to clock producer.h]h;lookup and obtain a number of references to clock producer.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhj.XhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjYubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjYh]hstruct device *dev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjYubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjYh]h int num_clks}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjYubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hj8Zh]hstruct clk_bulk_data *clks}(hj:ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Zubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj2Zubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjQZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMZhMhjNZubah}(h]h ]h"]h$]h&]uh1j1hj2Zubeh}(h]h ]h"]h$]h&]uh1jhjMZhMhjYubeh}(h]h ]h"]h$]h&]uh1j hjYubh)}(h**Description**h]j)}(hjsZh]h Description}(hjuZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubh)}(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 }(hjZhhhNhNubj)}(h**dev**h]hdev}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh and }(hjZhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjZhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh field.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_get_all (C function)c.clk_bulk_get_allhNtauh1hhj/hhhNhNubj)}(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:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj*[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[hhhj)[hMubj{)}(hclk_bulk_get_allh]j)}(hclk_bulk_get_allh]hclk_bulk_get_all}(hj<[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhj)[hMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]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)}(hdeviceh]hdevice}(hjv[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjx[modnameN classnameNj] j` )}jc ]jf )}jY j>[sbc.clk_bulk_get_allasbuh1hhjT[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[ubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]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 clk_bulk_datah]h clk_bulk_data}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]j[c.clk_bulk_get_allasbuh1hhj[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)}(hclksh]hclks}(hj.\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP[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=lookup and obtain all available references to clock producer.h]h=lookup and obtain all available references to clock producer.}(hjX\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjU\hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj)[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp\jjp\jjjuh1jhhhj/hNhNubj)}(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)}(hjz\h]h Parameters}(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:389: ./include/linux/clk.hhMhjt\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:389: ./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)}(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:389: ./include/linux/clk.hhMhj\ubj2)}(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&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj\ubeh}(h]h ]h"]h$]h&]uh1j hjt\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:389: ./include/linux/clk.hhMhjt\ubh)}(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.}(hj#]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjt\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 }(hj2]hhhNhNubj)}(h**clks**h]hclks}(hj:]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2]ubhN field. Returns 0 if there’re none and a negative value if something failed.}(hj2]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjt\ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjS]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjt\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.}(hjb]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjt\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "clk_bulk_get_optional (C function)c.clk_bulk_get_optionalhNtauh1hhj/hhhNhNubj)}(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}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhj]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&]jjuh1jzhj]hhhj]hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]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.clk_bulk_get_optionalasbuh1hhj]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)}(h int num_clksh](j )}(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)}(hnum_clksh]hnum_clks}(hj\^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hju^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq^ubh)}(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 reftargetj^modnameN classnameNj] j` )}jc ]j^c.clk_bulk_get_optionalasbuh1hhjq^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq^ubj)}(hclksh]hclks}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq^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:lookup and obtain a number of references to clock producerh]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:389: ./include/linux/clk.hhMhj^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhj/hNhNubj)}(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:389: ./include/linux/clk.hhMhj_ubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj7_h]hstruct device *dev}(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:389: ./include/linux/clk.hhMhj1_ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjP_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL_hMhjM_ubah}(h]h ]h"]h$]h&]uh1j1hj1_ubeh}(h]h ]h"]h$]h&]uh1jhjL_hMhj._ubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjp_h]h int num_clks}(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:389: ./include/linux/clk.hhMhjj_ubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j1hjj_ubeh}(h]h ]h"]h$]h&]uh1jhj_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:389: ./include/linux/clk.hhMhj_ubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of 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._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:389: ./include/linux/clk.hhMhj_ubh)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j devm_clk_bulk_get (C function)c.devm_clk_bulk_gethNtauh1hhj/hhhNhNubj)}(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}(hj)`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%`hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj8`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%`hhhj7`hMubj{)}(hdevm_clk_bulk_geth]j)}(hdevm_clk_bulk_geth]hdevm_clk_bulk_get}(hjJ`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%`hhhj7`hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjf`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb`ubj2)}(h h]h }(hjs`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjb`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 jL`sbc.devm_clk_bulk_getasbuh1hhjb`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjb`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb`ubj)}(hdevh]hdev}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^`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&]noemphjjuh1jhj^`ubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hj ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj aubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj aubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hj+ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(aubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-amodnameN classnameNj] j` )}jc ]j`c.devm_clk_bulk_getasbuh1hhj aubj2)}(h h]h }(hjIahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj aubj)}(hjh]h*}(hjWahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj aubj)}(hclksh]hclks}(hjdahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^`ubeh}(h]h ]h"]h$]h&]jjuh1jhj%`hhhj7`hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!`hhhj7`hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1jhj7`hMhj`hhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj7`hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhj/hNhNubj)}(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)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjaubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjah]hstruct device *dev}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjaubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjbh]h int num_clks}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjbubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj!bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjAbh]hstruct clk_bulk_data *clks}(hjCbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;bubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjZbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVbhMhjWbubah}(h]h ]h"]h$]h&]uh1j1hj;bubeh}(h]h ]h"]h$]h&]uh1jhjVbhMhjaubeh}(h]h ]h"]h$]h&]uh1j hjaubh)}(h**Description**h]j)}(hj|bh]h Description}(hj~bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjaubh)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjaubh)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhj/hhhNhNubj)}(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}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbhhhjbhMubj{)}(hdevm_clk_bulk_get_optionalh]j)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_bulk_get_optional}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbhhhjbhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj cubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj cubh)}(hhh]j)}(hdeviceh]hdevice}(hj+chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(cubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-cmodnameN classnameNj] j` )}jc ]jf )}jY jbsbc.devm_clk_bulk_get_optionalasbuh1hhj cubj2)}(h h]h }(hjKchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj cubj)}(hjh]h*}(hjYchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj cubj)}(hdevh]hdev}(hjfchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h int num_clksh](j )}(hinth]hint}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj{cubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{cubj)}(hnum_clksh]hnum_clks}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jGcc.devm_clk_bulk_get_optionalasbuh1hhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hclksh]hclks}(hj dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1jhjbhMhjbhhubj)}(hhh]h)}(h-managed get multiple optional consumer clocksh]h-managed get multiple optional consumer clocks}(hj5dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj2dhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMdjjMdjjjuh1jhhhj/hNhNubj)}(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)}(hjWdh]h Parameters}(hjYdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQdubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjvdh]hstruct device *dev}(hjxdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjpdubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1j1hjpdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjmdubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjdh]h int num_clks}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjdubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjmdubj)}(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)}(hjdh]hstruct clk_bulk_data *clks}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjdubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjmdubeh}(h]h ]h"]h$]h&]uh1j hjQdubh)}(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:389: ./include/linux/clk.hhMhjQdubh)}(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.}(hj9ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQdubh)}(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 }(hjHehhhNhNubj)}(h**dev**h]hdev}(hjPehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHeubh and }(hjHehhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjbehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHeubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjHehhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hjtehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHeubh field.}(hjHehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQdubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQdubh)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .devm_clk_bulk_get_optional_enable (C function)#c.devm_clk_bulk_get_optional_enablehNtauh1hhj/hhhNhNubj)}(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}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjehMubj{)}(h!devm_clk_bulk_get_optional_enableh]j)}(h!devm_clk_bulk_get_optional_enableh]h!devm_clk_bulk_get_optional_enable}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjehMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(hdeviceh]hdevice}(hj&fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#fubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(fmodnameN classnameNj] j` )}jc ]jf )}jY jesb#c.devm_clk_bulk_get_optional_enableasbuh1hhjfubj2)}(h h]h }(hjFfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjTfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hdevh]hdev}(hjafhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(h int num_clksh](j )}(hinth]hint}(hjzfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvfubj)}(hnum_clksh]hnum_clks}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jBf#c.devm_clk_bulk_get_optional_enableasbuh1hhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hclksh]hclks}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhjehMhjehhubj)}(hhh]h)}(h-Get and enable optional bulk clocks (managed)h]h-Get and enable optional bulk clocks (managed)}(hj0ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj-ghhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHgjjHgjjjuh1jhhhj/hNhNubj)}(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)}(hjRgh]h Parameters}(hjTghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLgubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjqgh]hstruct device *dev}(hjsghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjogubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkgubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j1hjkgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjhgubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjgh]h int num_clks}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjgubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjhgubj)}(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)}(hjgh]hstruct clk_bulk_data *clks}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjgubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjhgubeh}(h]h ]h"]h$]h&]uh1j hjLgubh)}(h**Description**h]j)}(hjhh]h Description}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLgubh)}(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.}(hj4hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLgubh)}(h **Return**h]j)}(hjEhh]hReturn}(hjGhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLgubh)}(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[hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhj/hhhNhNubj)}(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}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM ubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhhjhhM ubj{)}(hdevm_clk_bulk_get_allh]j)}(hdevm_clk_bulk_get_allh]hdevm_clk_bulk_get_all}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhhjhhM ubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jf )}jY jhsbc.devm_clk_bulk_get_allasbuh1hhjhubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hdevh]hdev}(hj ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hj9ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5iubj2)}(h h]h }(hjFihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5iubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjWihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYimodnameN classnameNj] j` )}jc ]jic.devm_clk_bulk_get_allasbuh1hhj5iubj2)}(h h]h }(hjuihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5iubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5iubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5iubj)}(hclksh]hclks}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjhhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhhM ubah}(h]j}hah ](jjeh"]h$]h&]jj)jhuh1jhjhhM hjhhhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjiubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjjh]hstruct device *dev}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj!jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM hjjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjiubj)}(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)}(hjAjh]hstruct clk_bulk_data **clks}(hjCjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?jubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hj;jubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjZjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVjhM hjWjubah}(h]h ]h"]h$]h&]uh1j1hj;jubeh}(h]h ]h"]h$]h&]uh1jhjVjhM hjiubeh}(h]h ]h"]h$]h&]uh1j hjiubh)}(h**Description**h]j)}(hj|jh]h Description}(hj~jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjiubh)}(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 }(hjjhhhNhNubj)}(h**clks**h]hclks}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjiubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhj/hhhNhNubj)}(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}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhjjhMubj{)}(hdevm_clk_bulk_get_all_enabledh]j)}(hdevm_clk_bulk_get_all_enabledh]hdevm_clk_bulk_get_all_enabled}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhjjhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hj,khhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubh)}(hhh]j)}(hdeviceh]hdevice}(hj=khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:kubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?kmodnameN classnameNj] j` )}jc ]jf )}jY jksbc.devm_clk_bulk_get_all_enabledasbuh1hhjkubj2)}(h h]h }(hj]khhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjkkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hdevh]hdev}(hjxkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jYkc.devm_clk_bulk_get_all_enabledasbuh1hhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjH)}(hclksh]hclks}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjjhMhjjhhubj)}(hhh]h)}(h3Get and enable all clocks of the consumer (managed)h]h3Get and enable all clocks of the consumer (managed)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7ljj7ljjjuh1jhhhj/hNhNubj)}(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)}(hjAlh]h Parameters}(hjClhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?lubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;lubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj`lh]hstruct device *dev}(hjblhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjZlubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjylhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjulhMhjvlubah}(h]h ]h"]h$]h&]uh1j1hjZlubeh}(h]h ]h"]h$]h&]uh1jhjulhMhjWlubj)}(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)}(hjlh]hstruct clk_bulk_data **clks}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjlubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjWlubeh}(h]h ]h"]h$]h&]uh1j hj;lubh)}(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:389: ./include/linux/clk.hhMhj;lubh)}(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 }(hjlhhhNhNubj)}(h**clks**h]hclks}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj;lubh)}(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.}(hj mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM"hj;lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j devm_clk_get (C function)c.devm_clk_gethNtauh1hhj/hhhNhNubj)}(hhh](j)}(h>struct clk * devm_clk_get (struct device *dev, const char *id)h]j)}(hah"]h$]h&]uh1j1hj6mhhhjGmhM-ubh)}(hhh]j)}(hclkh]hclk}(hjYmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[mmodnameN classnameNj] j` )}jc ]jf )}jY devm_clk_getsbc.devm_clk_getasbuh1hhj6mhhhjGmhM-ubj2)}(h h]h }(hjzmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6mhhhjGmhM-ubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6mhhhjGmhM-ubj{)}(h devm_clk_geth]j)}(hjwmh]h devm_clk_get}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6mhhhjGmhM-ubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(hhh]j)}(hdeviceh]hdevice}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmmodnameN classnameNj] j` )}jc ]jumc.devm_clk_getasbuh1hhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hdevh]hdev}(hj nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hconst char *idh](j)}(hjh]hconst}(hj$nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubj2)}(h h]h }(hj1nhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj nubj )}(hcharh]hchar}(hj?nhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj nubj2)}(h h]h }(hjMnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj nubj)}(hjh]h*}(hj[nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubj)}(hidh]hid}(hjhnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhj6mhhhjGmhM-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2mhhhjGmhM-ubah}(h]j-mah ](jjeh"]h$]h&]jj)jhuh1jhjGmhM-hj/mhhubj)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM-hjnhhubah}(h]h ]h"]h$]h&]uh1jhj/mhhhjGmhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhM1hjnubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjnh]hstruct device *dev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hjnubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM.hjnubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM.hjnubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj oh]hconst char *id}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM/hjoubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj%ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ohM/hj"oubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhj!ohM/hjnubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(h **Context**h]j)}(hjGoh]hContext}(hjIohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjnubh)}(h May sleep.h]h May sleep.}(hj]ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjnubh)}(h **Return**h]j)}(hjnoh]hReturn}(hjpohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjloubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hjnubh)}(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 }(hjohhhNhNubj)}(h**dev**h]hdev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh and }(hjohhhNhNubj)}(h**id**h]hid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjohhhNhNubj)}(h**id**h]hid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhY may be identical strings, but clk_get may return different clock producers depending on }(hjohhhNhNubj)}(h**dev**h]hdev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh.)}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hjnubh)}(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:389: ./include/linux/clk.hhM9hjnubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hjnubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "devm_clk_get_prepared (C function)c.devm_clk_get_preparedhNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hj1phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-phhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBubj2)}(h h]h }(hj?phhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-phhhj>phMBubh)}(hhh]j)}(hclkh]hclk}(hjPphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRpmodnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_preparedsbc.devm_clk_get_preparedasbuh1hhj-phhhj>phMBubj2)}(h h]h }(hjqphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-phhhj>phMBubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-phhhj>phMBubj{)}(hdevm_clk_get_preparedh]j)}(hjnph]hdevm_clk_get_prepared}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-phhhj>phMBubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubh)}(hhh]j)}(hdeviceh]hdevice}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jlpc.devm_clk_get_preparedasbuh1hhjpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hdevh]hdev}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hconst char *idh](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hj(qhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj )}(hcharh]hchar}(hj6qhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjDqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjRqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hidh]hid}(hj_qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhj-phhhj>phMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)phhhj>phMBubah}(h]j$pah ](jjeh"]h$]h&]jj)jhuh1jhj>phMBhj&phhubj)}(hhh]h)}(hdevm_clk_get() + clk_prepare()h]hdevm_clk_get() + clk_prepare()}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBhjqhhubah}(h]h ]h"]h$]h&]uh1jhj&phhhj>phMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMFhjqubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjqh]hstruct device *dev}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMChjqubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMChjqubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMChjqubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjrh]hconst char *id}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhjqubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMDhjrubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjrhMDhjqubeh}(h]h ]h"]h$]h&]uh1j hjqubh)}(h **Context**h]j)}(hj>rh]hContext}(hj@rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjah"]h$]h&]uh1j1hj$shhhj5shMWubh)}(hhh]j)}(hclkh]hclk}(hjGshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjIsmodnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_enabledsbc.devm_clk_get_enabledasbuh1hhj$shhhj5shMWubj2)}(h h]h }(hjhshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$shhhj5shMWubj)}(hjh]h*}(hjvshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$shhhj5shMWubj{)}(hdevm_clk_get_enabledh]j)}(hjesh]hdevm_clk_get_enabled}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$shhhj5shMWubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(hhh]j)}(hdeviceh]hdevice}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jcsc.devm_clk_get_enabledasbuh1hhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hdevh]hdev}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hconst char *idh](j)}(hjh]hconst}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj )}(hcharh]hchar}(hj-thhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubj2)}(h h]h }(hj;thhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hjh]h*}(hjIthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hidh]hid}(hjVthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhj$shhhj5shMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj shhhj5shMWubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhj5shMWhjshhubj)}(hhh]h)}(h%devm_clk_get() + clk_prepare_enable()h]h%devm_clk_get() + clk_prepare_enable()}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMWhj}thhubah}(h]h ]h"]h$]h&]uh1jhjshhhj5shMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1jhhhj/hNhNubj)}(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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM[hjtubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjth]hstruct device *dev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMXhjtubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMXhjtubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjthMXhjtubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjth]hconst char *id}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMYhjtubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMYhjuubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjuhMYhjtubeh}(h]h ]h"]h$]h&]uh1j hjtubh)}(h **Context**h]j)}(hj5uh]hContext}(hj7uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3uubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM[hjtubh)}(h May sleep.h]h May sleep.}(hjKuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM[hjtubh)}(h **Return**h]j)}(hj\uh]hReturn}(hj^uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjtubh)}(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 }(hjruhhhNhNubj)}(h**dev**h]hdev}(hjzuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjruubh and }(hjruhhhNhNubj)}(h**id**h]hid}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjruubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjruhhhNhNubj)}(h**id**h]hid}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjruubhY may be identical strings, but clk_get may return different clock producers depending on }(hjruhhhNhNubj)}(h**dev**h]hdev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjruubh.)}(hjruhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjtubh)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMchjtubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMbhjtubh)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMdhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "devm_clk_get_optional (C function)c.devm_clk_get_optionalhNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMkubj2)}(h h]h }(hj-vhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhj,vhMkubh)}(hhh]j)}(hclkh]hclk}(hj>vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;vubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@vmodnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_optionalsbc.devm_clk_get_optionalasbuh1hhjvhhhj,vhMkubj2)}(h h]h }(hj_vhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhj,vhMkubj)}(hjh]h*}(hjmvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhj,vhMkubj{)}(hdevm_clk_get_optionalh]j)}(hj\vh]hdevm_clk_get_optional}(hj~vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhj,vhMkubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(hdeviceh]hdevice}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jZvc.devm_clk_get_optionalasbuh1hhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hdevh]hdev}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hconst char *idh](j)}(hjh]hconst}(hj whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj )}(hcharh]hchar}(hj$whhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hj2whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hj@whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hidh]hid}(hjMwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhj,vhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhj,vhMkubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhj,vhMkhjvhhubj)}(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.}(hjwwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMkhjtwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhj,vhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMohjwubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjwh]hstruct device *dev}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMmhjwubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMmhjwubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMmhjwubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjwh]hconst char *id}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMnhjwubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMnhjxubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjxhMnhjwubeh}(h]h ]h"]h$]h&]uh1j hjwubh)}(h **Context**h]j)}(hj,xh]hContext}(hj.xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*xubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMphjwubh)}(h May sleep.h]h May sleep.}(hjBxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMphjwubh)}(h **Return**h]j)}(hjSxh]hReturn}(hjUxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMrhjwubh)}(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 }(hjixhhhNhNubj)}(h**dev**h]hdev}(hjqxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjixubh and }(hjixhhhNhNubj)}(h**id**h]hid}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjixubh 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().}(hjixhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMrhjwubh)}(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:389: ./include/linux/clk.hhMyhjwubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMxhjwubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM{hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +devm_clk_get_optional_prepared (C function) c.devm_clk_get_optional_preparedhNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjxhMubh)}(hhh]j)}(hclkh]hclk}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_optional_preparedsb c.devm_clk_get_optional_preparedasbuh1hhjxhhhjxhMubj2)}(h h]h }(hj2yhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjxhMubj)}(hjh]h*}(hj@yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhMubj{)}(hdevm_clk_get_optional_preparedh]j)}(hj/yh]hdevm_clk_get_optional_prepared}(hjQyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjxhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjlyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhyubj2)}(h h]h }(hjyyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhyubh)}(hhh]j)}(hdeviceh]hdevice}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]j-y c.devm_clk_get_optional_preparedasbuh1hhjhyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhyubj)}(hdevh]hdev}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdyubj)}(hconst char *idh](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 }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hidh]hid}(hj zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdyubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjxhMhjxhhubj)}(hhh]h)}(h'devm_clk_get_optional() + clk_prepare()h]h'devm_clk_get_optional() + clk_prepare()}(hjJzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjGzhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbzjjbzjjjuh1jhhhj/hNhNubj)}(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)}(hjlzh]h Parameters}(hjnzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjfzubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjzh]hstruct device *dev}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjzh]hconst char *id}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubeh}(h]h ]h"]h$]h&]uh1j hjfzubh)}(h **Context**h]j)}(hjzh]hContext}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjfzubh)}(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:389: ./include/linux/clk.hhMhjfzubh)}(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:389: ./include/linux/clk.hhMhjfzubh)}(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}(hjD{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<{ubh and }(hj<{hhhNhNubj)}(h**id**h]hid}(hjV{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:389: ./include/linux/clk.hhMhjfzubh)}(h**Description**h]j)}(hjq{h]h Description}(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:389: ./include/linux/clk.hhMhjfzubh)}(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:389: ./include/linux/clk.hhMhjfzubh)}(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:389: ./include/linux/clk.hhMhjfzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *devm_clk_get_optional_enabled (C function)c.devm_clk_get_optional_enabledhNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{hhhj{hMubh)}(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_enabledasbuh1hhj{hhhj{hMubj2)}(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{)}(hdevm_clk_get_optional_enabledh]j)}(hj|h]hdevm_clk_get_optional_enabled}(hj$|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj |ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhhj{hMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]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)}(hdeviceh]hdevice}(hj]|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_|modnameN classnameNj] j` )}jc ]j|c.devm_clk_get_optional_enabledasbuh1hhj;|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&]noemphjjuh1jhj7|ubj)}(hconst char *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}(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)}(hidh]hid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7|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.devm_clk_get_optional() + clk_prepare_enable()h]h.devm_clk_get_optional() + clk_prepare_enable()}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj}hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5}jj5}jjjuh1jhhhj/hNhNubj)}(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}(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:389: ./include/linux/clk.hhMhj9}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:389: ./include/linux/clk.hhMhjX}ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjw}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs}hMhjt}ubah}(h]h ]h"]h$]h&]uh1j1hjX}ubeh}(h]h ]h"]h$]h&]uh1jhjs}hMhjU}ubj)}(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:389: ./include/linux/clk.hhMhj}ubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjU}ubeh}(h]h ]h"]h$]h&]uh1j hj9}ubh)}(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:389: ./include/linux/clk.hhMhj9}ubh)}(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:389: ./include/linux/clk.hhMhj9}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:389: ./include/linux/clk.hhMhj9}ubh)}(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 }(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_enabled().}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9}ubh)}(h**Description**h]j)}(hjD~h]h Description}(hjF~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9}ubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjZ~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9}ubh)}(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.}(hji~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(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_ratehNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~hhhj~hMubh)}(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_enabled_with_ratesb)c.devm_clk_get_optional_enabled_with_rateasbuh1hhj~hhhj~hMubj2)}(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'devm_clk_get_optional_enabled_with_rateh]j)}(hj~h]h'devm_clk_get_optional_enabled_with_rate}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhj~hMubj)}(h8(struct device *dev, const char *id, unsigned long rate)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]j~)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjihhhNhNubah}(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&]uh1jhj~ubj2)}(h h]h }(hjhhhNhNubah}(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)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()h]h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./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:389: ./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&]uh1jhjhMhjyubj)}(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:389: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЀhMhjрubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjЀhMhjyubj)}(h&``unsigned long rate`` new clock rate 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:389: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hnew clock rateh]hnew clock rate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjyubeh}(h]h ]h"]h$]h&]uh1j hj]ubh)}(h **Context**h]j)}(hj/h]hContext}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj]ubh)}(h May sleep.h]h May sleep.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj]ubh)}(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:389: ./include/linux/clk.hhMhj]ubh)}(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 }(hjlhhhNhNubj)}(h**dev**h]hdev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh and }(hjlhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh 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().}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj]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:389: ./include/linux/clk.hhMhj]ubh)}(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:389: ./include/linux/clk.hhMhj]ubh)}(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:389: ./include/linux/clk.hhMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $devm_get_clk_from_child (C function)c.devm_get_clk_from_childhNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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 devm_get_clk_from_childsbc.devm_get_clk_from_childasbuh1hhjhhhjhMubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hdevm_get_clk_from_childh]j)}(hj2h]hdevm_get_clk_from_child}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h@(struct device *dev, struct device_node *np, const char *con_id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j0c.devm_get_clk_from_childasbuh1hhjkubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hdevh]hdev}(hjƂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hstruct device_node *nph](j)}(hjh]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 device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j0c.devm_get_clk_from_childasbuh1hhjۂubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjۂubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubj)}(hnph]hnp}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hconst char *con_idh](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj )}(hcharh]hchar}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(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:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjՃjjՃjjjuh1jhhhj/hNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݃ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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:389: ./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:``struct device_node *np`` pointer to clock consumer node h](j)}(h``struct device_node *np``h]j)}(hj7h]hstruct device_node *np}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj1ubj2)}(hhh]h)}(hpointer to clock consumer nodeh]hpointer to clock consumer node}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubj)}(h)``const char *con_id`` clock consumer ID h](j)}(h``const char *con_id``h]j)}(hjph]hconst char *con_id}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjjubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjكubh)}(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}(hjɄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjۄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjكubh)}(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:389: ./include/linux/clk.hhMhjكubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_enable (C function) c.clk_enablehNtauh1hhj/hhhNhNubj)}(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:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj-hMubj{)}(h clk_enableh]j)}(h clk_enableh]h clk_enable}(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)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubh)}(hhh]j)}(hclkh]hclk}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN classnameNj] j` )}jc ]jf )}jY jBsb c.clk_enableasbuh1hhjXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubah}(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 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:389: ./include/linux/clk.hhMhj܅hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./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:389: ./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:389: ./include/linux/clk.hhMhjubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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:389: ./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:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_enable (C function)c.clk_bulk_enablehNtauh1hhj/hhhNhNubj)}(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:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj͆hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj̆hMubj{)}(hclk_bulk_enableh]j)}(hclk_bulk_enableh]hclk_bulk_enable}(hj߆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۆubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj̆hMubj)}(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 }(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)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_bulk_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}(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)}(h9inform the system when the set of clks should be running.h]h9inform the system when the set of clks should be running.}(hj·hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjˇhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̆hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubj)}(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)}(hjHh]h const struct clk_bulk_data *clks}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjBubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(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:389: ./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:389: ./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:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_disable (C function) c.clk_disablehNtauh1hhj/hhhNhNubj)}(hhh](j)}(h"void clk_disable (struct clk *clk)h]j)}(h!void clk_disable(struct clk *clk)h](j )}(hvoidh]hvoid}(hj׈hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjӈhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjӈhhhjhMubj{)}(h clk_disableh]j)}(h clk_disableh]h clk_disable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjӈhhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY jsb c.clk_disableasbuh1hhjubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjmhhhNhNubah}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj̈hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./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:389: ./include/linux/clk.hhMhj҉ubj2)}(hhh]h)}(h clock sourceh]h clock source}(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:389: ./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:389: ./include/linux/clk.hhMhjubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhj/hhhNhNubj)}(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}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrhhhjhMubj{)}(hclk_bulk_disableh]j)}(hclk_bulk_disableh]hclk_bulk_disable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhMubj)}(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}(hjϊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_bulk_disableasbuh1hhjubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjkhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjNjh]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:389: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj܋hMhj݋ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj܋hMhjubj)}(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:389: ./include/linux/clk.hhMhjubj2)}(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&]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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(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:389: ./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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_rate (C function)c.clk_get_ratehNtauh1hhj/hhhNhNubj)}(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&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj2)}(h h]h }(hjɌhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h clk_get_rateh]j)}(h clk_get_rateh]h clk_get_rate}(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)}(hjh]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݌sbc.clk_get_rateasbuh1hhjubj2)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(h2**Parameters** ``struct clk *clk`` clock sourceh](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:389: ./include/linux/clk.hhMhjubj )}(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:389: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjԍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjэubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjЍhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_put (C function) c.clk_puthNtauh1hhj/hhhNhNubj)}(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:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj#hMubj{)}(hclk_puth]j)}(hclk_puth]hclk_put}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj#hMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(hclkh]hclk}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jf )}jY j8sb c.clk_putasbuh1hhjNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj#hMhj 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:389: ./include/linux/clk.hhMhjҎhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./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:389: ./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+hMhj ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjQh]hNote}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put 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:389: ./include/linux/clk.hhM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_put (C function)c.clk_bulk_puthNtauh1hhj/hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjhM&ubj{)}(h clk_bulk_puth]j)}(h clk_bulk_puth]h clk_bulk_put}(hjƏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM&ubj)}(h*(int num_clks, struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjhhhNhNubah}(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)}(hstruct clk_bulk_data *clksh](j)}(hjh]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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY jȏsbc.clk_bulk_putasbuh1hhjubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjphhhNhNubah}(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"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:389: ./include/linux/clk.hhM&hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./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)}(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:389: ./include/linux/clk.hhM'hjՐubj2)}(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&]uh1j1hjՐubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjҐubj)}(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:389: ./include/linux/clk.hhM(hjubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of 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(hjҐubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjOh]hNote}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_put_all (C function)c.clk_bulk_put_allhNtauh1hhj/hhhNhNubj)}(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:389: ./include/linux/clk.hhM3ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM3ubj{)}(hclk_bulk_put_allh]j)}(hclk_bulk_put_allh]hclk_bulk_put_all}(hjđhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM3ubj)}(h*(int num_clks, struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjhhhNhNubah}(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)}(hstruct clk_bulk_data *clksh](j)}(hjh]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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj5modnameN classnameNj] j` )}jc ]jf )}jY jƑsbc.clk_bulk_put_allasbuh1hhjubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjؑubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM3hjhhubj)}(hhh]h)}(h"free" all the clock sourceh]h“free” all the clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./include/linux/clk.hhM7hjubj )}(hhh](j)}(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:389: ./include/linux/clk.hhM4hjӒubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1j1hjӒubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjВubj)}(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:389: ./include/linux/clk.hhM5hj ubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM5hj(ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM5hjВubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjMh]hNote}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM7hjubh)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM7hjubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j devm_clk_put (C function)c.devm_clk_puthNtauh1hhj/hhhNhNubj)}(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:389: ./include/linux/clk.hhM@ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM@ubj{)}(h devm_clk_puth]j)}(h devm_clk_puth]h devm_clk_put}(hj“hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM@ubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjޓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjړubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjړubh)}(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.devm_clk_putasbuh1hhjړubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjړubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjړubj)}(hdevh]hdev}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjړubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj֓ubj)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hclkh]hclk}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jc.devm_clk_putasbuh1hhjLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(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"free" a managed clock sourceh]h!“free” a managed clock source}(hjєhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM@hjΔhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMDhjubj )}(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:389: ./include/linux/clk.hhMAhj ubj2)}(hhh]h)}(h device used to acquire the clockh]h device used to acquire the clock}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMAhj(ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMAhj ubj)}(h>``struct clk *clk`` clock source acquired with devm_clk_get() h](j)}(h``struct clk *clk``h]j)}(hjKh]hstruct clk *clk}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBhjEubj2)}(hhh]h)}(h)clock source acquired with devm_clk_get()h]h)clock source acquired with devm_clk_get()}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMBhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMBhj ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhjubh)}(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:389: ./include/linux/clk.hhMDhjubh)}(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:389: ./include/linux/clk.hhMHhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_round_rate (C function)c.clk_round_ratehNtauh1hhj/hhhNhNubj)}(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}(hjڕhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj֕hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMRubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj֕hhhjhMRubj{)}(hclk_round_rateh]j)}(hclk_round_rateh]hclk_round_rate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj֕hhhjhMRubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_round_rateasbuh1hhjubj2)}(h h]h }(hjUhhhNhNubah}(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)}(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}(hjhhhNhNubah}(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)}(h3adjust a rate to the exact rate a clock can provideh]h3adjust a rate to the exact rate a clock can provide}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMRhjhhubah}(h]h ]h"]h$]h&]uh1jhjϕhhhjhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMVhjubj )}(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:389: ./include/linux/clk.hhMShj&ubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMShjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMShj#ubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjeh]hunsigned long rate}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMThj_ubj2)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMThj{ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMThj#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:389: ./include/linux/clk.hhMVhjubh)}(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:389: ./include/linux/clk.hhMUhjubj)}(hrate = clk_round_rate(clk, r); h]h)}(hrate = clk_round_rate(clk, r);h]hrate = clk_round_rate(clk, r);}(hjۗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMYhjחubah}(h]h ]h"]h$]h&]uh1jhjhMYhjubh)}(hand:h]hand:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM[hjubj)}(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:389: ./include/linux/clk.hhM]hjubah}(h]h ]h"]h$]h&]uh1jhjhM]hjubh)}(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:389: ./include/linux/clk.hhM`hjubh)}(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:389: ./include/linux/clk.hhMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_rate (C function)c.clk_set_ratehNtauh1hhj/hhhNhNubj)}(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}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMiubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRhhhjdhMiubj{)}(h clk_set_rateh]j)}(h clk_set_rateh]h clk_set_rate}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhjdhMiubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]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 jysbc.clk_set_rateasbuh1hhjubj2)}(h h]h }(hjјhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjߘhhhNhNubah}(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}(hj!hhhNhNubah}(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&]jjuh1jhjRhhhjdhMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhMiubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjdhMihjKhhubj)}(hhh]h)}(h%set the clock rate for a clock sourceh]h%set the clock rate for a clock source}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMihjdhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMmhjubj )}(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:389: ./include/linux/clk.hhMjhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubj)}(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&]uh1jhjߙubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMkhjۙubj2)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1j1hjۙubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubeh}(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:389: ./include/linux/clk.hhMmhjubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMlhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhj/hhhNhNubj)}(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}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hMuubj{)}(hclk_set_rate_exclusiveh]j)}(hclk_set_rate_exclusiveh]hclk_set_rate_exclusive}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hMuubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]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&]uh1jhjȚubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj͚modnameN classnameNj] j` )}jc ]jf )}jY jsbc.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 }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hrateh]hrate}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhj~hMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj~hMuubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhj~hMuhjehhubj)}(hhh]h)}(h:set the clock rate and claim exclusivity over clock sourceh]h:set the clock rate and claim exclusivity over clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuhj~hhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./include/linux/clk.hhMyhjubj )}(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:389: ./include/linux/clk.hhMwhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjۛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjכhMwhj؛ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjכhMwhjubj)}(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:389: ./include/linux/clk.hhMxhjubj2)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMzhjubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMyhjubh)}(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:389: ./include/linux/clk.hhM|hjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_has_parent (C function)c.clk_has_parenthNtauh1hhj/hhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hclk_has_parenth]j)}(hclk_has_parenth]hclk_has_parent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h1(const struct clk *clk, const struct clk *parent)h](j)}(hconst struct clk *clkh](j)}(hjh]hconst}(hj՜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjќubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjќubj)}(hjh]hstruct}(hjhhhNhNubah}(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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_has_parentasbuh1hhjќ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)}(hclkh]hclk}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjќubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj͜ubj)}(hconst struct clk *parenth](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hjh]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 ]j*c.clk_has_parentasbuh1hhj^ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hjh]h*}(hjǝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hparenth]hparent}(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)}(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:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj9ubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h1``const struct clk *parent`` parent clock source h](j)}(h``const struct clk *parent``h]j)}(hjxh]hconst struct clk *parent}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjrubj2)}(hhh]h)}(hparent clock sourceh]hparent clock source}(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**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:389: ./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.}(hjɞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(hMReturns true if **parent** is a possible parent for **clk**, false otherwise.h](hReturns true if }(hj؞hhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؞ubh is a possible parent for }(hj؞hhhNhNubj)}(h**clk**h]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؞ubh, false otherwise.}(hj؞hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhj/hhhNhNubj)}(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}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj9hMubj{)}(hclk_set_rate_rangeh]j)}(hclk_set_rate_rangeh]hclk_set_rate_range}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj9hMubj)}(h7(struct clk *clk, unsigned long min, unsigned long max)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jNsbc.clk_set_rate_rangeasbuh1hhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hunsigned long minh](j )}(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)}(hminh]hmin}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֟ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hunsigned long maxh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj )}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hmaxh]hmax}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hMhj hhubj)}(hhh]h)}(h#set a rate range for a clock sourceh]h#set a rate range for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./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:389: ./include/linux/clk.hhMhjȠubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjȠubeh}(h]h ]h"]h$]h&]uh1jhjhMhjŠubj)}(hB``unsigned long min`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long min``h]j)}(hjh]hunsigned long min}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjŠubj)}(hB``unsigned long max`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long max``h]j)}(hj@h]hunsigned long max}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:ubj2)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjŠubeh}(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:389: ./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:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhj/hhhNhNubj)}(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:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjϡhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjΡhMubj{)}(hclk_set_min_rateh]j)}(hclk_set_min_rateh]hclk_set_min_rate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݡubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjΡhMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(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 }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj2)}(h h]h }(hj}hhhNhNubah}(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)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(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+set a minimum clock rate for a clock sourceh]h+set a minimum clock rate for a clock source}(hjѢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj΢hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjΡhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./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:389: ./include/linux/clk.hhMhj ubj2)}(hhh]h)}(h clock sourceh]h clock source}(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)}(hC``unsigned long rate`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long rate``h]j)}(hjKh]hunsigned long rate}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjEubj2)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhj/hhhNhNubj)}(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}(hjˣhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjǣhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjڣhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjǣhhhj٣hMubj{)}(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&]jjuh1jzhjǣhhhj٣hMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]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&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_set_max_rateasbuh1hhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(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 a maximum clock rate for a clock sourceh]h+set a maximum clock rate for a clock source}(hjܤhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj٤hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj٣hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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:389: ./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:389: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubj)}(hC``unsigned long rate`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long rate``h]j)}(hjVh]hunsigned long rate}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPubj2)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjubeh}(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:389: ./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:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_parent (C function)c.clk_set_parenthNtauh1hhj/hhhNhNubj)}(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}(hj֥hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjҥhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjҥhhhjhMubj{)}(hclk_set_parenth]j)}(hclk_set_parenth]hclk_set_parent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjҥhhhjhMubj)}(h%(struct clk *clk, struct clk *parent)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_set_parentasbuh1hhjubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct clk *parenth](j)}(hjh]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 ]jMc.clk_set_parentasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjϦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(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)}(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:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj˥hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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}(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:389: ./include/linux/clk.hhMhj"ubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjGh]hstruct clk *clk}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjAubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubj)}(h+``struct clk *parent`` parent clock source h](j)}(h``struct clk *parent``h]j)}(hjh]hstruct clk *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzubj2)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(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:389: ./include/linux/clk.hhMhj"ubh)}(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:389: ./include/linux/clk.hhMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_parent (C function)c.clk_get_parenthNtauh1hhj/hhhNhNubj)}(hhh](j)}(h-struct clk * clk_get_parent (struct clk *clk)h]j)}(h+struct clk *clk_get_parent(struct clk *clk)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj!modnameN classnameNj] j` )}jc ]jf )}jY clk_get_parentsbc.clk_get_parentasbuh1hhjhhhj hMubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj{)}(hclk_get_parenth]j)}(hj=h]hclk_get_parent}(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)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j;c.clk_get_parentasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjĨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hclkh]hclk}(hjѨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(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*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:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** Returns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing 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:389: ./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:389: ./include/linux/clk.hhMhj6ubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubah}(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:389: ./include/linux/clk.hhMhjubh)}(hfReturns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.h]hfReturns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_sys (C function) c.clk_get_syshNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjʩhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjɩhMubh)}(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 clk_get_syssb c.clk_get_sysasbuh1hhjhhhjɩ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 clk_get_sysh]j)}(hjh]h clk_get_sys}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjɩhMubj)}(h((const char *dev_id, const char *con_id)h](j)}(hconst char *dev_idh](j)}(hjh]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj )}(hcharh]hchar}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hdev_idh]hdev_id}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hconst char *con_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)}(hcon_idh]hcon_id}(hjתhhhNhNubah}(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)}(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:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjɩhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h#``const char *dev_id`` device name h](j)}(h``const char *dev_id``h]j)}(hjBh]hconst char *dev_id}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj<ubj2)}(hhh]h)}(h device nameh]h device name}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(h%``const char *con_id`` connection ID h](j)}(h``const char *con_id``h]j)}(hj{h]hconst char *con_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:389: ./include/linux/clk.hhMhjuubj2)}(hhh]h)}(h connection IDh]h connection 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**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:389: ./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 }(hj̫hhhNhNubj)}(h **dev_id**h]hdev_id}(hjԫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̫ubh and }(hj̫hhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̫ubh 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.}(hj̫hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./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:389: ./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:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_drop_range (C function)c.clk_drop_rangehNtauh1hhj/hhhNhNubj)}(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&]uh1jhj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhjKhMubj{)}(hclk_drop_rangeh]j)}(hclk_drop_rangeh]hclk_drop_range}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjKhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(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_drop_rangeasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjƬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hclkh]hclk}(hjӬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jhjKhMhj2hhubj)}(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:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj/hNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **Description** Returns success (0) or negative errno.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:389: ./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:389: ./include/linux/clk.hhMhj8ubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubah}(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:389: ./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:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_optional (C function)c.clk_get_optionalhNtauh1hhj/hhhNhNubj)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj2)}(h h]h }(hj̭hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj˭hMubh)}(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 clk_get_optionalsbc.clk_get_optionalasbuh1hhjhhhj˭hMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj˭hMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj˭hMubj{)}(hclk_get_optionalh]j)}(hjh]hclk_get_optional}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj˭hMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubh)}(hhh]j)}(hdeviceh]hdevice}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jc.clk_get_optionalasbuh1hhj4ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(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 }(hjѮhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj߮hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj˭hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj˭hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj˭hMhjhhubj)}(hhh]h)}(hah"]h$]h&]uh1j1hj6hhhjGhK@ubj{)}(hsame_state_synchronize_rcuh]j)}(hsame_state_synchronize_rcuh]hsame_state_synchronize_rcu}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhjGhK@ubj)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j)}(hunsigned long oldstate1h](j )}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(h oldstate1h]h oldstate1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hunsigned long oldstate2h](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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjðubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjðubj)}(h oldstate2h]h oldstate2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjðubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhjGhK@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjGhK@ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhjGhK@hj/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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhK@hj&hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjGhK@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhjhNhNubj)}(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)}(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:398: ./include/linux/rcupdate.hhKDhjEubj )}(hhh](j)}(h3``unsigned long oldstate1`` First old-state value. h](j)}(h``unsigned long oldstate1``h]j)}(hjjh]hunsigned long oldstate1}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKAhjdubj2)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKAhjubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjaubj)}(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:398: ./include/linux/rcupdate.hhKBhjubj2)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKBhjaubeh}(h]h ]h"]h$]h&]uh1j hjEubh)}(h**Description**h]j)}(hjޱh]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:398: ./include/linux/rcupdate.hhKDhjEubh)}(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:398: ./include/linux/rcupdate.hhKChjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #cond_resched_tasks_rcu_qs (C macro)c.cond_resched_tasks_rcu_qshNtauh1hhjhhhNhNubj)}(hhh](j)}(hcond_resched_tasks_rcu_qsh]j)}(hcond_resched_tasks_rcu_qsh]j{)}(hcond_resched_tasks_rcu_qsh]j)}(hjAh]hcond_resched_tasks_rcu_qs}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj^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&]jjjjwjjwjjjuh1jhhhjhNhNubh)}(h ``cond_resched_tasks_rcu_qs ()``h]j)}(hj}h]hcond_resched_tasks_rcu_qs ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjhhubj)}(hX Report potential quiescent states to RCU **Description** This macro 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](j)}(h)Report potential quiescent states to RCU h]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:398: ./include/linux/rcupdate.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(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:398: ./include/linux/rcupdate.hhKhjubh)}(hThis macro 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 macro 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:398: ./include/linux/rcupdate.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjhhubh)}(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)}(hjh]hrcu_softirq_qs_periodic}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jmacroeh"]h$]h&]jjjj&jj&jjjuh1jhhhjhNhNubh)}(h$``rcu_softirq_qs_periodic (old_ts)``h]j)}(hj,h]h rcu_softirq_qs_periodic (old_ts)}(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:398: ./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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjBubah}(h]h ]h"]h$]h&]uh1jhjThKhjhhubj)}(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)}(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:398: ./include/linux/rcupdate.hhKhj[ubj )}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjzubj2)}(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&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhjwubah}(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:398: ./include/linux/rcupdate.hhKhj[ubh)}(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}(hjٳhhhNhNubah}(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:398: ./include/linux/rcupdate.hhKhj[ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj[ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj[ubeh}(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)}(hj*h]hRCU_LOCKDEP_WARN}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMcubah}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhjGhMcubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jhjGhMchj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhjGhMcubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1jhhhjhNhNubh)}(h``RCU_LOCKDEP_WARN (c, s)``h]j)}(hjfh]hRCU_LOCKDEP_WARN (c, s)}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMehjhhubj)}(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:398: ./include/linux/rcupdate.hhMchj|ubah}(h]h ]h"]h$]h&]uh1jhjhMchjhhubj)}(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:398: ./include/linux/rcupdate.hhMghjubj )}(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:398: ./include/linux/rcupdate.hhMdhjubj2)}(hhh]h)}(hcondition to checkh]hcondition to check}(hjӴhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϴhMdhjдubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjϴhMdhjubj)}(h``s`` informative message 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:398: ./include/linux/rcupdate.hhMehjubj2)}(hhh]h)}(hinformative messageh]hinformative message}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMghjubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMfhjubeh}(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)}(hjmh]hlockdep_assert_in_rcu_read_lock}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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&]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:398: ./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:398: ./include/linux/rcupdate.hhMhjõubah}(h]h ]h"]h$]h&]uh1jhjյhMhjubh)}(h**Description**h]j)}(hj޵h]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:398: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhjյhMhjhhubh)}(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)}(hjh]h"lockdep_assert_in_rcu_read_lock_bh}(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:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj9hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjRjjRjjjuh1jhhhjhNhNubh)}(h)``lockdep_assert_in_rcu_read_lock_bh ()``h]j)}(hjXh]h%lockdep_assert_in_rcu_read_lock_bh ()}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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()}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjrubah}(h]h ]h"]h$]h&]uh1jhjhMhjnubh)}(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:398: ./include/linux/rcupdate.hhMhjnubh)}(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:398: ./include/linux/rcupdate.hhMhjnubeh}(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}(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:398: ./include/linux/rcupdate.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,``lockdep_assert_in_rcu_read_lock_sched ()``h]j)}(hjh]h(lockdep_assert_in_rcu_read_lock_sched ()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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()}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj3hMhjubh)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjhhubh)}(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)}(hjzh]hlockdep_assert_in_rcu_reader}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(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:398: ./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}(hjԷhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjзubah}(h]h ]h"]h$]h&]uh1jhjhMhj̷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:398: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj̷ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhhubh)}(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)}(hj8h]h unrcu_pointer}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjUhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhjUhMhj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhjUhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1jhhhjhNhNubh)}(h``unrcu_pointer (p)``h]j)}(hjth]hunrcu_pointer (p)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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:398: ./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:398: ./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:398: ./include/linux/rcupdate.hhMhj¸ubj2)}(hhh]h)}(h*pointer needing to lose its __rcu propertyh]h*pointer needing to lose its __rcu property}(hjhhhNhNubah}(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)}(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:398: ./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 }(hjhhhNhNubj)}(h**p**h]hp}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhn from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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)}(hjTh]hRCU_INITIALIZER}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjqhM ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjqhM hjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjqhM ubeh}(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:398: ./include/linux/rcupdate.hhM hjhhubj)}(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:398: ./include/linux/rcupdate.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hjhhubj)}(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:398: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h.``v`` The value to statically initialize with.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:398: ./include/linux/rcupdate.hhMhj޹ubj2)}(hhh]h)}(h(The value to statically initialize with.h]h(The value to statically initialize with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hjubah}(h]h ]h"]h$]h&]uh1j1hj޹ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj۹ubah}(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)}(hj8h]hrcu_assign_pointer}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjUhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhjUhMhj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhjUhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1jhhhjhNhNubh)}(h``rcu_assign_pointer (p, v)``h]j)}(hjth]hrcu_assign_pointer (p, v)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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:398: ./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:398: ./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:398: ./include/linux/rcupdate.hhMhjºubj2)}(hhh]h)}(hpointer to assign toh]hpointer to assign to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjݺhMhj޺ubah}(h]h ]h"]h$]h&]uh1j1hjºubeh}(h]h ]h"]h$]h&]uh1jhjݺhMhjubj)}(h ``v`` value to assign (publish) 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:398: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(hvalue to assign (publish)h]hvalue to assign (publish)}(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:398: ./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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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:398: ./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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j)}(hjh]h%rcu_replace_pointer (rcu_ptr, ptr, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM<hjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM:hjubah}(h]h ]h"]h$]h&]uh1jhj hM:hjhhubj)}(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)}(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:398: ./include/linux/rcupdate.hhM>hjubj )}(hhh](j)}(h5``rcu_ptr`` RCU pointer, whose old value is returned h](j)}(h ``rcu_ptr``h]j)}(hj8h]hrcu_ptr}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM;hj2ubj2)}(hhh]h)}(h(RCU pointer, whose old value is returnedh]h(RCU pointer, whose old value is returned}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM;hjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM;hj/ubj)}(h``ptr`` regular pointer h](j)}(h``ptr``h]j)}(hjqh]hptr}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM<hjkubj2)}(hhh]h)}(hregular pointerh]hregular pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhM<hj/ubj)}(hI``c`` the lockdep 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:398: ./include/linux/rcupdate.hhM=hjubj2)}(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&]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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM?hjubh)}(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 }(hjhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! is an RCU-annotated pointer and }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh} is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of }(hjhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is returned, and }(hjhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM>hjubeh}(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{0)}(hrcu_access_pointerh]j)}(hj~h]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:398: ./include/linux/rcupdate.hhMLubah}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhMLubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjhMLhjyhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhjhMLubeh}(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:398: ./include/linux/rcupdate.hhMNhjhhubj)}(h(fetch RCU pointer with no dereferencing h]h)}(h'fetch RCU pointer with no dereferencingh]h'fetch RCU pointer with no dereferencing}(hjԽhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMLhjнubah}(h]h ]h"]h$]h&]uh1jhjhMLhjhhubj)}(hXT**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. 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. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer(). 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)}(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:398: ./include/linux/rcupdate.hhMPhjubj )}(hhh]j)}(h``p`` The pointer to read 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:398: ./include/linux/rcupdate.hhMMhjubj2)}(hhh]h)}(hThe pointer to readh]hThe pointer to read}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMMhj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMMhjubah}(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:398: ./include/linux/rcupdate.hhMOhjubh)}(hXKReturn 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. 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. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().h]hXKReturn 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. 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. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer().}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMNhjubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMXhjubh)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM^hjubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMiubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjþhMiubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjþhMihjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjþhMiubeh}(h]h ](jmacroeh"]h$]h&]jjjjܾjjܾjjjuh1jhhhjhNhNubh)}(h ``rcu_dereference_check (p, c)``h]j)}(hjh]hrcu_dereference_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:398: ./include/linux/rcupdate.hhMkhjhhubj)}(h$rcu_dereference with debug checking h]h)}(h#rcu_dereference with debug checkingh]h#rcu_dereference with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMihjubah}(h]h ]h"]h$]h&]uh1jhj hMihjhhubj)}(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.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:398: ./include/linux/rcupdate.hhMmhjubj )}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hj6h]hp}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMjhj0ubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMjhjLubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMjhj-ubj)}(hA``c`` The conditions under which the dereference will take place 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:398: ./include/linux/rcupdate.hhMkhjiubj2)}(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&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMkhj-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:398: ./include/linux/rcupdate.hhMmhjubh)}(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:398: ./include/linux/rcupdate.hhMlhjubh)}(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:398: ./include/linux/rcupdate.hhMshjubj)}(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(}(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&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMuhjubh));}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj hMuhj޿ubah}(h]h ]h"]h$]h&]uh1jhj hMuhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMwhjubh)}(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:}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM{hjubj)}(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(}(hjChhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjMh]h foo->lock}(hjOhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjCubh) ||}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjjhMhj?ubj2)}(hhh]h)}(h.atomic_read(:c:type:`foo->usage `) == 0);h](h atomic_read(}(hjxhhhNhNubh)}(h:c:type:`foo->usage `h]j)}(hjh]h foo->usage}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjfoouh1hhjjhMhjxubh) == 0);}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjjhMhjuubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhjjhMhj<ubah}(h]h ]h"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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:398: ./include/linux/rcupdate.hhMhjubeh}(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)}(hjh]hrcu_dereference_bh_check}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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#``rcu_dereference_bh_check (p, c)``h]j)}(hj'h]hrcu_dereference_bh_check (p, c)}(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:398: ./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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj=ubah}(h]h ]h"]h$]h&]uh1jhjOhMhjhhubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjVubj )}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjuubj2)}(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&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(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:398: ./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&]uh1jhjhMhjrubeh}(h]h ]h"]h$]h&]uh1j hjVubh)}(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:398: ./include/linux/rcupdate.hhMhjVubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjVubeh}(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)}(hj.h]hrcu_dereference_sched_check}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjKhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhjKhMhj)hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj)hhhjKhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjdjjdjjjuh1jhhhjhNhNubh)}(h&``rcu_dereference_sched_check (p, c)``h]j)}(hjjh]h"rcu_dereference_sched_check (p, c)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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:398: ./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:398: ./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:398: ./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:398: ./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&]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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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)}(hjqh]hrcu_dereference_all_check}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjshhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h$``rcu_dereference_all_check (p, c)``h]j)}(hjh]h rcu_dereference_all_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:398: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(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)}(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:398: ./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:398: ./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)}(hj:h]hc}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj4ubj2)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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:398: ./include/linux/rcupdate.hhMhjubeh}(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:398: ./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_protected (p, c)``h]j)}(hjh]h rcu_dereference_protected (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:398: ./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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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** 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)}(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:398: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjDh]hp}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hj}h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjwubj2)}(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&]uh1j1hjwubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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 }(hjhhhNhNubjh)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjubh prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(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)}(hjh]hrcu_dereference}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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&]jjjjNjjNjjjuh1jhhhjhNhNubh)}(h``rcu_dereference (p)``h]j)}(hjTh]hrcu_dereference (p)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjjubah}(h]h ]h"]h$]h&]uh1jhj|hMhjhhubj)}(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:398: ./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:398: ./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)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(h8This is a simple wrapper around rcu_dereference_check().h]h8This is a simple wrapper around rcu_dereference_check().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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)}(hj"h]hrcu_dereference_bh}(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:398: ./include/linux/rcupdate.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&]jjjjXjjXjjjuh1jhhhjhNhNubh)}(h``rcu_dereference_bh (p)``h]j)}(hj^h]hrcu_dereference_bh (p)}(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:398: ./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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjtubah}(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:398: ./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:398: ./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)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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)}(hj,h]hrcu_dereference_sched}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhjIhMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jhjIhMhj'hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj'hhhjIhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjbjjbjjjuh1jhhhjhNhNubh)}(h``rcu_dereference_sched (p)``h]j)}(hjhh]hrcu_dereference_sched (p)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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:398: ./include/linux/rcupdate.hhMhj~ubah}(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:398: ./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:398: ./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)}(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:398: ./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:398: ./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)}(hj6h]hrcu_dereference_all}(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:398: ./include/linux/rcupdate.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``rcu_dereference_all (p)``h]j)}(hjrh]hrcu_dereference_all (p)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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:398: ./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:398: ./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:398: ./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)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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)}(hj@h]hrcu_pointer_handoff}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj]hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhj]hMhj;hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj;hhhj]hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1jhhhjhNhNubh)}(h``rcu_pointer_handoff (p)``h]j)}(hj|h]hrcu_pointer_handoff (p)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjhhubj)}(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:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h``p`` The pointer to hand off 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:398: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(hThe pointer to hand offh]hThe pointer to hand off}(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:398: ./include/linux/rcupdate.hhMhjubh)}(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:398: ./include/linux/rcupdate.hhMhjubj7C)}(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();}hj0sbah}(h]h ]h"]h$]h&]jjuh1j6Ch]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[hhhjmhMubj{)}(h rcu_read_lockh]j)}(h rcu_read_lockh]h rcu_read_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhjmhMubj)}(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&]jjuh1jhj[hhhjmhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjmhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1jhjmhMhjThhubj)}(hhh]h)}(h7mark the beginning of an RCU read-side critical sectionh]h7mark the beginning of an RCU read-side critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:398: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(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)}(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:398: ./include/linux/rcupdate.hhKhjubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM"hjubh)}(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:398: ./include/linux/rcupdate.hhM.hjubh)}(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:398: ./include/linux/rcupdate.hhM2hjubh)}(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:398: ./include/linux/rcupdate.hhM7hjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMVubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMVubj{)}(hrcu_read_unlockh]j)}(hrcu_read_unlockh]hrcu_read_unlock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMVubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMVhjhhubj)}(hhh]h)}(h3marks the end of an RCU read-side critical section.h]h3marks the end of an RCU read-side critical section.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMVhj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhjhNhNubj)}(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)}(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:398: ./include/linux/rcupdate.hhMZhjUubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjzh]hvoid}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjtubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhKhjqubah}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjUubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMWhjUubh)}(h)See rcu_read_lock() for more information.h]h)See rcu_read_lock() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM]hjUubeh}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMkubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMkubj{)}(hrcu_read_lock_bhh]j)}(hrcu_read_lock_bhh]hrcu_read_lock_bh}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMkubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMkhjhhubj)}(hhh]h)}(h0mark the beginning of an RCU-bh critical sectionh]h0mark the beginning of an RCU-bh critical section}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMkhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMkubeh}(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:398: ./include/linux/rcupdate.hhMohjubj )}(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:398: ./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:398: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMlhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMrhjubeh}(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}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<hhhjNhMubj{)}(hrcu_read_unlock_bhh]j)}(hrcu_read_unlock_bhh]hrcu_read_unlock_bh}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhjNhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhjNhMhj5hhubj)}(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:398: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMubeh}(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)}(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:398: ./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:398: ./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)}(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:398: ./include/linux/rcupdate.hhKhjubh)}(h,See rcu_read_lock_bh() for more information.h]h,See rcu_read_lock_bh() for more information.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(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}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjvhMubj{)}(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&]jjuh1jzhjdhhhjvhMubj)}(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&]jjuh1jhjdhhhjvhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhjvhMhj]hhubj)}(hhh]h)}(h2mark the beginning of a RCU-sched critical sectionh]h2mark the beginning of a RCU-sched critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:398: ./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:398: ./include/linux/rcupdate.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%hKhjubah}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(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:398: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(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&]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)}(h/marks the end of a RCU-classic critical sectionh]h/marks the end of a RCU-classic critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hi**Parameters** ``void`` no arguments **Description** See rcu_read_lock_sched() 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:398: ./include/linux/rcupdate.hhMhj"ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjGh]hvoid}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjAubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj"ubh)}(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:398: ./include/linux/rcupdate.hhMhj"ubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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_INIT_POINTER (p, v)``h]j)}(hjh]hRCU_INIT_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:398: ./include/linux/rcupdate.hhMhjhhubj)}(h$initialize an RCU protected pointer h]h)}(h#initialize an RCU protected pointerh]h#initialize an RCU protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj%hMhjhhubj)}(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)}(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:398: ./include/linux/rcupdate.hhMhj,ubj )}(hhh](j)}(h%``p`` The pointer to be initialized. h](j)}(h``p``h]j)}(hjQh]hp}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjKubj2)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(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:398: ./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&]uh1jhjhMhjHubeh}(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:398: ./include/linux/rcupdate.hhMhj,ubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj,ubjG)}(hhh](j)}(h>This use of RCU_INIT_POINTER() is NULLing out the pointer *or*h]h)}(hjh](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(hjhhhNhNubjh)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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 }(hjhhhNhNubjh)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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() }(hj>hhhNhNubjh)}(h*and*h]hand}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jghj>ubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:ubjG)}(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 }(hjbhhhNhNubjh)}(h*any*h]hany}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjbubh5 reader-visible changes to this structure since then }(hjbhhhNhNubjh)}(h*or*h]hor}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jghjbubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^ubah}(h]h ]h"]h$]h&]uh1jhj[ubj)}(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:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]j}HjzjHhjHjHuh1jGhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j}Hj~HjHhjHjHuh1jGhj,ubh)}(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:398: ./include/linux/rcupdate.hhMhj,ubh)}(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 }(hjhhhNhNubjh)}(h*after*h]hafter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjubhX you have completely initialized the reader-accessible portions of the linked structure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj,ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj,ubeh}(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)}(hjh]hRCU_POINTER_INITIALIZER}(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:398: ./include/linux/rcupdate.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj8hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj8hM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj8hM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjQjjQjjjuh1jhhhjhNhNubh)}(h"``RCU_POINTER_INITIALIZER (p, v)``h]j)}(hjWh]hRCU_POINTER_INITIALIZER (p, v)}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hjmubah}(h]h ]h"]h$]h&]uh1jhjhM hjhhubj)}(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:398: ./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:398: ./include/linux/rcupdate.hhM hjubj2)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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:398: ./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)}(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:398: ./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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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)}(hj^h]h kfree_rcu}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhj{hMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jhj{hMhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhj{hMubeh}(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:398: ./include/linux/rcupdate.hhMhjhhubj)}(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:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(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)}(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:398: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h:``ptr`` pointer to kfree for double-argument invocations. 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:398: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hD``rhf`` the name of the struct rcu_head within the type of **ptr**. h](j)}(h``rhf``h]j)}(hj'h]hrhf}(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:398: ./include/linux/rcupdate.hhMhj!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 }(hj@hhhNhNubj)}(h**ptr**h]hptr}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh.}(hj@hhhNhNubeh}(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)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(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:398: ./include/linux/rcupdate.hhM(hjubh)}(hah"]h$]h&]uh1j1hjVhhhjhhMsubj{)}(h rcu_head_inith]j)}(h rcu_head_inith]h rcu_head_init}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjhhMsubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hjh]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 j}sbc.rcu_head_initasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhMsubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjhhMshjOhhubj)}(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:398: ./include/linux/rcupdate.hhMshjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhjhNhNubj)}(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)}(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:398: ./include/linux/rcupdate.hhMwhj6ubj )}(hhh]j)}(h?``struct rcu_head *rhp`` The rcu_head structure to initialize. h](j)}(h``struct rcu_head *rhp``h]j)}(hj[h]hstruct rcu_head *rhp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMthjUubj2)}(hhh]h)}(h%The rcu_head structure to initialize.h]h%The rcu_head structure to initialize.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMthjqubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMthjRubah}(h]h ]h"]h$]h&]uh1j hj6ubh)}(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:398: ./include/linux/rcupdate.hhMvhj6ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMuhj6ubeh}(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:398: ./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)}(hjh]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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_head_after_call_rcuasbuh1hhjubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hjphhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jQc.rcu_head_after_call_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfh]hf}(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,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:398: ./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:398: ./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)}(hj#h]hstruct rcu_head *rhp}(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:398: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(hThe rcu_head structure to test.h]hThe rcu_head structure to test.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(hK``rcu_callback_t f`` The function passed to call_rcu() along with **rhp**. h](j)}(h``rcu_callback_t f``h]j)}(hj\h]hrcu_callback_t f}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjVubj2)}(hhh]h)}(h5The function passed to call_rcu() along with **rhp**.h](h-The function passed to call_rcu() along with }(hjuhhhNhNubj)}(h**rhp**h]hrhp}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh.}(hjuhhhNhNubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./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}(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:398: ./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}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVhhhjhhKubj{)}(hrcu_softirq_qsh]j)}(hrcu_softirq_qsh]hrcu_softirq_qs}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjhhKubj)}(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&]jjuh1jhjVhhhjhhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhKubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjhhKhjOhhubj)}(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:400: ./kernel/rcu/tree.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhKubeh}(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:400: ./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:400: ./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)}(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:400: ./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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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:}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubj7C)}(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}hjqsbah}(h]h ]h"]h$]h&]jjuh1j6ChV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM,ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM,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&]jjuh1jzhjhhhjhM,ubj)}(h (struct rcu_data *rdp, int snap)h](j)}(hstruct rcu_data *rdph](j)}(hjh]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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsb!c.rcu_watching_snap_stopped_sinceasbuh1hhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrdph]hrdp}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint snaph](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hsnaph]hsnap}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(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)}(hBHas RCU stopped watching a given CPU since the specified **snap**?h](h9Has RCU stopped watching a given CPU since the specified }(hjhhhNhNubj)}(h**snap**h]hsnap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,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:400: ./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:400: ./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&]uh1hhj hM/hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hM/hjubj)}(hH``int snap`` rcu_watching snapshot taken when the CPU wasn't in an EQS. h](j)}(h ``int snap``h]j)}(hj/h]hint snap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM0hj)ubj2)}(hhh]h)}(h:rcu_watching snapshot taken when the CPU wasn't in an EQS.h]hah"]h$]h&]uh1j1hjhhhjhMsubj{)}(hrcu_is_cpu_rrupt_from_idleh]j)}(hrcu_is_cpu_rrupt_from_idleh]hrcu_is_cpu_rrupt_from_idle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMsubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMsubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMshjhhubj)}(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:400: ./kernel/rcu/tree.chMshjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMwhjwubj )}(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:400: ./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 hjwubh)}(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:400: ./kernel/rcu/tree.chKhjwubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMthjwubh)}(h,The caller must have at least disabled IRQs.h]h,The caller must have at least disabled IRQs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMwhjwubeh}(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:400: ./kernel/rcu/tree.chMkubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj9hMkubj{)}(hrcu_irq_exit_check_preempth]j)}(hrcu_irq_exit_check_preempth]hrcu_irq_exit_check_preempt}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj9hMkubj)}(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'hhhj9hMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hMkhj hhubj)}(hhh]h)}(h$Validate that scheduling is possibleh]h$Validate that scheduling is possible}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMkhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h'**Parameters** ``void`` no argumentsh](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:400: ./kernel/rcu/tree.chMohjubj )}(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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMqhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:400: ./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}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj;hM}ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]noemphjjuh1jhjbubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chMhjubj )}(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:400: ./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:400: ./kernel/rcu/tree.chKhjubh)}(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:400: ./kernel/rcu/tree.chM~hjubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubeh}(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}(hjohhhNhNubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjhMubj{)}(hrcu_is_watchingh]j)}(hrcu_is_watchingh]hrcu_is_watching}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(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&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhhubj)}(hhh]h)}(h9RCU read-side critical sections permitted on current CPU?h]h9RCU read-side critical sections permitted on current CPU?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubj )}(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:400: ./kernel/rcu/tree.chKhj&ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj#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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh( if RCU is watching the running CPU and }(hj}hhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh otherwise. An }(hj}hhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(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:400: ./kernel/rcu/tree.chMhjubh)}(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:400: ./kernel/rcu/tree.chMhjubh)}(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:400: ./kernel/rcu/tree.chMhjubeh}(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}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj2hM ubj{)}(hrcu_set_gpwrap_lagh]j)}(hrcu_set_gpwrap_lagh]hrcu_set_gpwrap_lag}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hM ubj)}(h(unsigned long lag_gps)h]j)}(hunsigned long lag_gpsh](j )}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hjohhhNhNubah}(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)}(hlag_gpsh]hlag_gps}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(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'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:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hM 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:400: ./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:400: ./kernel/rcu/tree.chM hjubj2)}(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}(hj%hhhNhNubah}(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:400: ./kernel/rcu/tree.chM hjubah}(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 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}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM\ ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hM\ ubj{)}(hcall_rcu_hurryh]j)}(hcall_rcu_hurryh]hcall_rcu_hurry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hM\ ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hjh]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.call_rcu_hurryasbuh1hhjubj2)}(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&]noemphjjuh1jhjubj)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]jc.call_rcu_hurryasbuh1hhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfunch]hfunc}(hjNhhhNhNubah}(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)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM\ hjuhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hM\ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chM` hjubj )}(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:400: ./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:400: ./kernel/rcu/tree.chMa 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMa hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMa 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMc hjubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMb hjubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMf hjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMy ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}hhhjhMy ubj{)}(hcall_rcuh]j)}(hcall_rcuh]hcall_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhMy ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hjh]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 jsb c.call_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(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)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj5modnameN classnameNj] j` )}jc ]j c.call_rcuasbuh1hhj,ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hfunch]hfunc}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhMy ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhMy ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjhMy hjvhhubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMy hjhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMy ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chM} hjubj )}(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:400: ./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:400: ./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 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:400: ./kernel/rcu/tree.chM hjubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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:400: ./kernel/rcu/tree.chM hjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubeh}(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:400: ./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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjAhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhjhNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chM 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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&]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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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:400: ./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:400: ./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:400: ./kernel/rcu/tree.chM 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:400: ./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:400: ./kernel/rcu/tree.chM 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)}(hGvoid get_completed_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hFvoid get_completed_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM= ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=hhhjOhM= ubj{)}(h"get_completed_synchronize_rcu_fullh]j)}(h"get_completed_synchronize_rcu_fullh]h"get_completed_synchronize_rcu_full}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhhjOhM= ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jdsb$c.get_completed_synchronize_rcu_fullasbuh1hhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhM= ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhM= ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jhjOhM= hj6hhubj)}(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:400: ./kernel/rcu/tree.chM= hjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhM= ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` Place to put state cookie **Description** Stores into **rgosp** 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)}(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:400: ./kernel/rcu/tree.chMA hjubj )}(hhh]j)}(h<``struct rcu_gp_oldstate *rgosp`` Place to put state cookie h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjBh]hstruct rcu_gp_oldstate *rgosp}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM> hj<ubj2)}(hhh]h)}(hPlace to put state cookieh]hPlace to put state cookie}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM> hjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM> hj9ubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM@ hjubh)}(hStores into **rgosp** 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 }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM? 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:400: ./kernel/rcu/tree.chML ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhML ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhML ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhML ubj{)}(hget_state_synchronize_rcuh]j)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhML 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&]jjuh1jhjhhhjhML ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhML ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhML hjhhubj)}(hhh]h)}(hSnapshot current RCU stateh]hSnapshot current RCU state}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chML hjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhML ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhjhNhNubj)}(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)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMP hjsubj )}(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:400: ./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 hjsubh)}(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:400: ./kernel/rcu/tree.chKhjsubh)}(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:400: ./kernel/rcu/tree.chMM hjsubeh}(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)}(hCvoid get_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hBvoid get_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM^ ubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hM^ ubj{)}(hget_state_synchronize_rcu_fullh]j)}(hget_state_synchronize_rcu_fullh]hget_state_synchronize_rcu_full}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hM^ ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjumodnameN classnameNj] j` )}jc ]jf )}jY j;sb c.get_state_synchronize_rcu_fullasbuh1hhjQubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(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)}(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:400: ./kernel/rcu/tree.chM^ hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hM^ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` location to place combined normal/expedited grace-period state **Description** Places the normal and expedited grace-period states in **rgosp**. 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_oldstate 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:400: ./kernel/rcu/tree.chMb hjubj )}(hhh]j)}(ha``struct rcu_gp_oldstate *rgosp`` location to place combined normal/expedited grace-period state h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjh]hstruct rcu_gp_oldstate *rgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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}(hj2hhhNhNubah}(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)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMa hjubh)}(hXPlaces the normal and expedited grace-period states in **rgosp**. 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_oldstate 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 }(hjjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhX. 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_oldstate 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.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMi 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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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{)}(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&]jjuh1jzhjhhhjhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(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#Snapshot and start RCU grace periodh]h#Snapshot and start RCU grace period}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhjhNhNubj)}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjYubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj~h]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjxubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjYubh)}(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:400: ./kernel/rcu/tree.chM hjYubeh}(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)}(hDvoid start_poll_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hCvoid start_poll_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hM 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&]jjuh1jzhjhhhj hM ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf )}jY j!sb!c.start_poll_synchronize_rcu_fullasbuh1hhj7ubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(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/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:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX"**Parameters** ``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() **Description** Places the normal and expedited grace-period states in ***rgos**. 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:400: ./kernel/rcu/tree.chM hjubj )}(hhh]j)}(hs``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjh]hstruct rcu_gp_oldstate *rgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXPlaces the normal and expedited grace-period states in ***rgos**. 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 }(hjPhhhNhNubj)}(h ***rgos**h]h*rgos}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhXK. 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.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hpoll_state_synchronize_rcuh]j)}(hpoll_state_synchronize_rcuh]hpoll_state_synchronize_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM 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&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(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:400: ./kernel/rcu/tree.chM hj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1jhhhjhNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chM hjKubj )}(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)}(hjph]hunsigned long oldstate}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjjubj2)}(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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjgubah}(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:400: ./kernel/rcu/tree.chM hjKubh)}(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}(hj#hhhNhNubah}(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:400: ./kernel/rcu/tree.chM hjKubh)}(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.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjKubh)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjKubh)}(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 }(hjZhhhNhNubj)}(h **oldstate**h]holdstate}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh0, and that returned at the end of this function.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjKubeh}(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)}(hDbool poll_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hCbool poll_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hpoll_state_synchronize_rcu_fullh]j)}(hpoll_state_synchronize_rcu_fullh]hpoll_state_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb!c.poll_state_synchronize_rcu_fullasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrgosph]hrgosp}(hj0hhhNhNubah}(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-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhjhNhNubj)}(hXl**Parameters** ``struct rcu_gp_oldstate *rgosp`` 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 *rgosp 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 **rgosp** 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_oldstate 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 **rgosp**, 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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjvubj )}(hhh]j)}(hs``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjh]hstruct rcu_gp_oldstate *rgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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 hjvubh)}(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:400: ./kernel/rcu/tree.chM hjvubh)}(hXIf a full RCU grace period has elapsed since the earlier call from which *rgosp 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 **rgosp** 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 }(hjhhhNhNubjh)}(h$*rgosp was obtained, return **true**h]h"rgosp was obtained, return **true*}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jghjubh, 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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjvubh)}(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_oldstate 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_oldstate 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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjvubh)}(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 **rgosp**, 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 }(hjdhhhNhNubj)}(h **rgosp**h]hrgosp}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubhX, 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 }(hjdhhhNhNubj)}(h**true**h]htrue}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubhF, then the root rcu_node structure is the one that needs to be polled.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjvubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hcond_synchronize_rcuh]j)}(hcond_synchronize_rcuh]hcond_synchronize_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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}(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)}(h*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jhhhjhNhNubj)}(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)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjrubj )}(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)}(hjh]hunsigned long oldstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubj2)}(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()}(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 hjrubh)}(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:400: ./kernel/rcu/tree.chMhjrubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjrubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM"hjrubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ 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:400: ./kernel/rcu/tree.chM'hjrubeh}(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)}(h>void cond_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(h=void cond_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j *)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5ubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjUhM5ubj{)}(hcond_synchronize_rcu_fullh]j)}(hcond_synchronize_rcu_fullh]hcond_synchronize_rcu_full}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjUhM5ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jjsbc.cond_synchronize_rcu_fullasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubah}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhM5ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jhjUhM5hj<hhubj)}(hhh]h)}(h*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` 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 **rgosp** 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 **rgosp** 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:400: ./kernel/rcu/tree.chM9hj#ubj )}(hhh]j)}(h``struct rcu_gp_oldstate *rgosp`` 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_oldstate *rgosp``h]j)}(hjHh]hstruct rcu_gp_oldstate *rgosp}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM6hjBubj2)}(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()}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM6hj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM6hj?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:400: ./kernel/rcu/tree.chM8hj#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 **rgosp** 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 }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubha was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM7hj#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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./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 **rgosp** 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 **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ 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:400: ./kernel/rcu/tree.chMBhj#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&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h rcu_barrierh]j)}(h rcu_barrierh]h rcu_barrier}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h7Wait until all in-flight call_rcu() callbacks complete.h]h7Wait until all in-flight call_rcu() callbacks complete.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chMhjubj )}(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:400: ./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:400: ./kernel/rcu/tree.chKhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubeh}(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}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMLubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=hhhjOhMLubj{)}(hrcu_barrier_throttledh]j)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhhjOhMLubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhMLubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jhjOhMLhj6hhubj)}(hhh]h)}(h-Do rcu_barrier(), but limit to one per secondh]h-Do rcu_barrier(), but limit to one per second}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chMPhjubj )}(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:400: ./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)}(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:400: ./kernel/rcu/tree.chKhjubh)}(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:400: ./kernel/rcu/tree.chMMhjubh)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMShjubh)}(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!}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMWhjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsynchronize_rcu_expeditedh]j)}(hsynchronize_rcu_expeditedh]hsynchronize_rcu_expedited}(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]jzah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj|hhubj)}(hhh]h)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:402: ./kernel/rcu/tree_exp.hhMhj ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj/h]hvoid}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhKhj)ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhj&ubah}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(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&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubah}(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;Snapshot current RCU state and start expedited grace periodh]h;Snapshot current RCU state and start expedited grace period}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1jhhhjhNhNubj)}(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)}(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:402: ./kernel/rcu/tree_exp.hhMhjlubj )}(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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.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 hjlubh)}(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:402: ./kernel/rcu/tree_exp.hhKhjlubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjlubeh}(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)}(hNvoid start_poll_synchronize_rcu_expedited_full (struct rcu_gp_oldstate *rgosp)h]j)}(hMvoid start_poll_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhMubj{)}(h)start_poll_synchronize_rcu_expedited_fullh]j)}(h)start_poll_synchronize_rcu_expedited_fullh]h)start_poll_synchronize_rcu_expedited_full}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY j4sb+c.start_poll_synchronize_rcu_expedited_fullasbuh1hhjJubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` Place to put snapshot of grace-period state **Description** Places the normal and expedited grace-period states in rgosp. 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)}(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:402: ./kernel/rcu/tree_exp.hhMhjubj )}(hhh]j)}(hN``struct rcu_gp_oldstate *rgosp`` Place to put snapshot of grace-period state h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjh]hstruct rcu_gp_oldstate *rgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./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 hjubh)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubh)}(hXyPlaces the normal and expedited grace-period states in rgosp. 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]hXyPlaces the normal and expedited grace-period states in rgosp. 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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubeh}(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&]uh1j1hjhhhjhM+ubj{)}(hcond_synchronize_rcu_expeditedh]j)}(hcond_synchronize_rcu_expeditedh]hcond_synchronize_rcu_expedited}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM+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&]jjuh1jhjhhhjhM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM+hjhhubj)}(hhh]h)}(h4Conditionally wait for an expedited RCU grace periodh]h4Conditionally wait for an expedited RCU grace period}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhM+hj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhjhNhNubj)}(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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhM/hjMubj )}(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)}(hjrh]hunsigned long oldstate}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhM-hjlubj2)}(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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjiubah}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhM/hjMubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhM.hjMubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhM3hjMubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ and that returned at the end of this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhM8hjMubeh}(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)}(hHvoid cond_synchronize_rcu_expedited_full (struct rcu_gp_oldstate *rgosp)h]j)}(hGvoid cond_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMFubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj0hMFubj{)}(h#cond_synchronize_rcu_expedited_fullh]j)}(h#cond_synchronize_rcu_expedited_fullh]h#cond_synchronize_rcu_expedited_full}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj0hMFubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jEsb%c.cond_synchronize_rcu_expedited_fullasbuh1hhj[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj0hMFhjhhubj)}(hhh]h)}(h4Conditionally wait for an expedited RCU grace periodh]h4Conditionally wait for an expedited RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` 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 **rgosp** 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 **rgosp** 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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMJhjubj )}(hhh]j)}(h``struct rcu_gp_oldstate *rgosp`` 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_oldstate *rgosp``h]j)}(hj#h]hstruct rcu_gp_oldstate *rgosp}(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:402: ./kernel/rcu/tree_exp.hhMGhjubj2)}(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&]uh1hhj8hMGhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMGhjubah}(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:402: ./kernel/rcu/tree_exp.hhMIhjubh)}(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 **rgosp** 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 }(hjthhhNhNubj)}(h **rgosp**h]hrgosp}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhk was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMHhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMNhjubh)}(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 **rgosp** 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 **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ and that returned at the end of this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMShjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKDubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKDubj{)}(hrcu_read_lock_held_commonh]j)}(hrcu_read_lock_held_commonh]hrcu_read_lock_held_common}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKDubj)}(h (bool *ret)h]j)}(h bool *reth](j )}(hj8h]hbool}(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)}(hreth]hret}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKDhjhhubj)}(hhh]h)}(h4might we be in RCU-sched read-side critical section?h]h4might we be in RCU-sched read-side critical section?}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKDhjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chKHhjubj )}(hhh]j)}(h?``bool *ret`` Best guess answer if lockdep cannot be relied on h](j)}(h ``bool *ret``h]j)}(hjh]h bool *ret}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKEhjubj2)}(hhh]h)}(h0Best guess answer if lockdep cannot be relied onh]h0Best guess answer if lockdep cannot be relied on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKEhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKEhjubah}(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:404: ./kernel/rcu/update.chKGhjubh)}(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 }(hjhhhNhNubj)}(h``*ret``h]h*ret}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhR contains the best guess described below. Otherwise returns false, in which case }(hjhhhNhNubj)}(h``*ret``h]h*ret}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhH tells the caller nothing and the caller should instead consult lockdep.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKFhjubh)}(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 }(hj8hhhNhNubj)}(h``*ret``h]h*ret}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhX 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.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKKhjubh)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKThjubh)}(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 }(hjhhhhNhNubj)}(h``*ret``h]h*ret}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubhXW 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.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKWhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKchjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrcu_async_hurryh]j)}(hrcu_async_hurryh]hrcu_async_hurry}(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)}(h)Make future async RCU callbacks not lazy.h]h)Make future async RCU callbacks not lazy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chKhj;ubj )}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjZubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjWubah}(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:404: ./kernel/rcu/update.chKhj;ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhj;ubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrcu_async_relaxh]j)}(hrcu_async_relaxh]hrcu_async_relax}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(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&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h%Make future async RCU callbacks lazy.h]h%Make future async RCU callbacks lazy.}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjD hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_ jj_ jjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chKhjc 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:404: ./kernel/rcu/update.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 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:404: ./kernel/rcu/update.chKhjc ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjc ubeh}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hKubj{)}(hrcu_expedite_gph]j)}(hrcu_expedite_gph]hrcu_expedite_gp}(hj) hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj% ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjE hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjA ubah}(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!Expedite future RCU grace periodsh]h!Expedite future RCU grace periods}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjl hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chKhj 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:404: ./kernel/rcu/update.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:404: ./kernel/rcu/update.chKhj ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhj ubeh}(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}(hj0 hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj, hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKubj2)}(h h]h }(hj? hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj, hhhj> hKubj{)}(hrcu_unexpedite_gph]j)}(hrcu_unexpedite_gph]hrcu_unexpedite_gp}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj, hhhj> hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjm hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhji ubah}(h]h ]h"]h$]h&]noemphjjuh1jhje 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)Cancel prior rcu_expedite_gp() invocationh]h)Cancel prior rcu_expedite_gp() invocation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhj% hhhj> hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chKhj 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:404: ./kernel/rcu/update.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:404: ./kernel/rcu/update.chKhj ubh)}(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.}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhj ubeh}(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}(hjX hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjT hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMFubj2)}(h h]h }(hjg hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjT hhhjf hMFubhnotrace}(hjT hhhNhNubj2)}(h h]h }(hjy hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjT hhhjf hMFubj{)}(hrcu_read_lock_heldh]j)}(hrcu_read_lock_heldh]hrcu_read_lock_held}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjT hhhjf hMFubj)}(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&]jjuh1jhjT hhhjf hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjP hhhjf hMFubah}(h]jK ah ](jjeh"]h$]h&]jj)jhuh1jhjf hMFhjM hhubj)}(hhh]h)}(h.might we be in RCU read-side critical section?h]h.might we be in RCU read-side critical section?}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMFhj hhubah}(h]h ]h"]h$]h&]uh1jhjM hhhjf hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chMJhj 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:404: ./kernel/rcu/update.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)}(hjM h]h Description}(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:404: ./kernel/rcu/update.chKhj ubh)}(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.}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMGhj ubh)}(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.}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMMhj ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMPhj ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMUhj ubeh}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMdubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hMdubhnotrace}(hj hhhNhNubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hMdubj{)}(hrcu_read_lock_bh_heldh]j)}(hrcu_read_lock_bh_heldh]hrcu_read_lock_bh_held}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMdubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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)}(h1might we be in RCU-bh read-side critical section?h]h1might we be in RCU-bh read-side critical section?}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMdhj5hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chMhhjTubj )}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjsubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhKhjpubah}(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:404: ./kernel/rcu/update.chKhjTubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMehjTubh)}(hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.h]hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMlhjTubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMnhjTubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj%hMubj{)}(hwakeme_after_rcuh]j)}(hwakeme_after_rcuh]hwakeme_after_rcu}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj%hMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]jf )}jY j:sbc.wakeme_after_rcuasbuh1hhjPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(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)}(h5Callback function to awaken a task after grace periodh]h5Callback function to awaken a task after grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chMhjubj )}(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)}(hjh]hstruct rcu_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubj2)}(hhh]h)}(h;Pointer to rcu_head member within rcu_synchronize structureh]h;Pointer to rcu_head member within rcu_synchronize structure}(hj1hhhNhNubah}(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)}(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:404: ./kernel/rcu/update.chMhjubh)}(hBAwaken the corresponding task now that a grace period has elapsed.h]hBAwaken the corresponding task now that a grace period has elapsed.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hinit_rcu_head_on_stackh]j)}(hinit_rcu_head_on_stackh]hinit_rcu_head_on_stack}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hjh]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.init_rcu_head_on_stackasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(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)}(h-initialize on-stack rcu_head for debugobjectsh]h-initialize on-stack rcu_head for debugobjects}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chMhjtubj )}(hhh]j)}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubj2)}(hhh]h)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(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 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:404: ./kernel/rcu/update.chMhjtubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjtubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj'hMubj{)}(hdestroy_rcu_head_on_stackh]j)}(hdestroy_rcu_head_on_stackh]hdestroy_rcu_head_on_stack}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj'hMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hjh]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.destroy_rcu_head_on_stackasbuh1hhjRubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubah}(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*destroy on-stack rcu_head for debugobjectsh]h*destroy on-stack rcu_head for debugobjects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:404: ./kernel/rcu/update.chMhjubj )}(hhh]j)}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubj2)}(hhh]h)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubah}(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:404: ./kernel/rcu/update.chMhjubh)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMPubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMPubj{)}(hget_completed_synchronize_rcuh]j)}(hget_completed_synchronize_rcuh]hget_completed_synchronize_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMPubj)}(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&]jjuh1jhjhhhjhMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMPubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMPhjhhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMPhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jhhhjhNhNubj)}(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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMThj9ubj )}(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:404: ./kernel/rcu/update.chKhjXubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhj9ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMQhj9ubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKbubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKbubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhKbubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKbubj{)}(hget_completed_synchronize_srcuh]j)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKbubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKbhjhhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKbhj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhKfhj}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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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 hj}ubh)}(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:406: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKchj}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&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKuubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj/hKuubj{)}(hsame_state_synchronize_srcuh]j)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hKuubj)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j)}(hunsigned long oldstate1h](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)}(h oldstate1h]h oldstate1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(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&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj/hKuhjhhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKuhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hKuubeh}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKyhj-ubj )}(hhh](j)}(h3``unsigned long oldstate1`` First old-state value. h](j)}(h``unsigned long oldstate1``h]j)}(hjRh]hunsigned long oldstate1}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKvhjLubj2)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKvhjhubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjghKvhjIubj)}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKwhjubj2)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjIubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKyhj-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 }(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKxhj-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:406: ./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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj=hKubj)}(h(const struct srcu_struct *ssp)h]j)}(hconst struct srcu_struct *ssph](j)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jRsbc.srcu_read_lock_heldasbuh1hhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubah}(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?}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhKhj&ubj )}(hhh]j)}(hE``const struct srcu_struct *ssp`` The srcu_struct structure to check h](j)}(h!``const struct srcu_struct *ssp``h]j)}(hjKh]hconst struct srcu_struct *ssp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjEubj2)}(hhh]h)}(h"The srcu_struct structure to checkh]h"The srcu_struct structure to check}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjBubah}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj&ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj&ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj&ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj&ubeh}(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)}(hjh]hsrcu_dereference_check}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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&``srcu_dereference_check (p, ssp, c)``h]j)}(hjh]h"srcu_dereference_check (p, ssp, c)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj5ubah}(h]h ]h"]h$]h&]uh1jhjGhKhjhhubj)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjNubj )}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjsh]hp}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjmubj2)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhjjubj)}(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)}(hjh]hssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj2)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjjubj)}(h-``c`` condition to check for update-side use h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj2)}(hhh]h)}(h&condition to check for update-side useh]h&condition to check for update-side use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjjubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjNubh)}(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 }(hj7hhhNhNubj)}(h**c**h]hc}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh evaluates to 1. The }(hj7hhhNhNubj)}(h**c**h]hc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjNubeh}(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)}(hjh]hsrcu_dereference}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``srcu_dereference (p, ssp)``h]j)}(hjh]hsrcu_dereference (p, ssp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(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)}(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:406: ./include/linux/srcu.hhKhjubj )}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj2)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubj)}(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)}(hjMh]hssp}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjGubj2)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhj 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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubeh}(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)}(hjh]hsrcu_dereference_notrace}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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%``srcu_dereference_notrace (p, ssp)``h]j)}(hjh]h!srcu_dereference_notrace (p, ssp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj,hMhjhhubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj3ubj )}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjXh]hp}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjRubj2)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(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)}(hjh]hssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubj2)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1j hj3ubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hsrcu_read_lockh]j)}(hsrcu_read_lockh]hsrcu_read_lock}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.srcu_read_lockasbuh1hhj#ubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhMhjubj )}(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)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM hjubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(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().}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM hjubh)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubeh}(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)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM+ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjhM+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 srcu_read_lock_fastsbc.srcu_read_lock_fastasbuh1hhjvhhhjhM+ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjhM+ubh__percpu}(hjvhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjhM+ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhM+ubj{)}(hsrcu_read_lock_fasth]j)}(hjh]hsrcu_read_lock_fast}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjhM+ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]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 ]jc.srcu_read_lock_fastasbuh1hhj 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)}(hssph]hssp}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjhM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhM+ubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjhM+hjohhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM+hj hhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhM/hj ubj )}(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)}(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:406: ./include/linux/srcu.hhM,hj ubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM.hj ubh)}(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().}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM-hj ubh)}(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.}(hj(!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM1hj ubh)}(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().}(hj7!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM:hj ubh)}(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.}(hjF!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM?hj ubeh}(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)}(hjh]hstruct}(hju!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq!hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq!hhhj!hMQubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj!modnameN classnameNj] j` )}jc ]jf )}jY srcu_read_lock_fast_updownsbc.srcu_read_lock_fast_updownasbuh1hhjq!hhhj!hMQubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq!hhhj!hMQubh__percpu}(hjq!hhhNhNubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq!hhhj!hMQubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq!hhhj!hMQubj{)}(hsrcu_read_lock_fast_updownh]j)}(hj!h]hsrcu_read_lock_fast_updown}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjq!hhhj!hMQubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]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 ]j!c.srcu_read_lock_fast_updownasbuh1hhj!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)}(hssph]hssp}(hjX"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhjq!hhhj!hMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjm!hhhj!hMQubah}(h]jh!ah ](jjeh"]h$]h&]jj)jhuh1jhj!hMQhjj!hhubj)}(hhh]h)}(h8register a new reader for an SRCU-fast-updown structure.h]h8register a new reader for an SRCU-fast-updown structure.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQhj"hhubah}(h]h ]h"]h$]h&]uh1jhjj!hhhj!hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhMUhj"ubj )}(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)}(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:406: ./include/linux/srcu.hhMRhj"ubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMRhj"ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMRhj"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:406: ./include/linux/srcu.hhMThj"ubh)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMShj"ubh)}(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.}(hj##hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMXhj"ubh)}(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().}(hj2#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMahj"ubh)}(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.}(hjA#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMfhj"ubeh}(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)}(hjh]hstruct}(hjp#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl#hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj2)}(h h]h }(hj~#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl#hhhj}#hMubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY srcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhjl#hhhj}#hMubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl#hhhj}#hMubh__percpu}(hjl#hhhNhNubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl#hhhj}#hMubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl#hhhj}#hMubj{)}(hsrcu_down_read_fasth]j)}(hj#h]hsrcu_down_read_fast}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjl#hhhj}#hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]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 ]j#c.srcu_down_read_fastasbuh1hhj#ubj2)}(h h]h }(hj8$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hjF$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hssph]hssp}(hjS$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhjl#hhhj}#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjh#hhhj}#hMubah}(h]jc#ah ](jjeh"]h$]h&]jj)jhuh1jhj}#hMhje#hhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj}$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjz$hhubah}(h]h ]h"]h$]h&]uh1jhje#hhhj}#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhjhNhNubj)}(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_safe() apply.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:406: ./include/linux/srcu.hhMhj$ubj )}(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)}(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:406: ./include/linux/srcu.hhMhj$ubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj$ubh)}(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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj$ubh)}(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_safe() 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_safe() apply.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj$ubeh}(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}(hjM%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjI%hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj2)}(h h]h }(hj\%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjI%hhhj[%hMubj{)}(hsrcu_read_lock_nmisafeh]j)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hjn%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjI%hhhj[%hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]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 jp%sbc.srcu_read_lock_nmisafeasbuh1hhj%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)}(hssph]hssp}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhjI%hhhj[%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjE%hhhj[%hMubah}(h]j@%ah ](jjeh"]h$]h&]jj)jhuh1jhj[%hMhjB%hhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj &hhubah}(h]h ]h"]h$]h&]uh1jhjB%hhhj[%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%&jj%&jjjuh1jhhhjhNhNubj)}(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)}(hj/&h]h Parameters}(hj1&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-&ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj)&ubj )}(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)}(hjN&h]hstruct srcu_struct *ssp}(hjP&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL&ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjH&ubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjg&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc&hMhjd&ubah}(h]h ]h"]h$]h&]uh1j1hjH&ubeh}(h]h ]h"]h$]h&]uh1jhjc&hMhjE&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:406: ./include/linux/srcu.hhMhj)&ubh)}(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&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj)&ubh)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj)&ubeh}(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}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&hhhj&hMubj{)}(hsrcu_down_readh]j)}(hsrcu_down_readh]hsrcu_down_read}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj&hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]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}(hj8'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:'modnameN classnameNj] j` )}jc ]jf )}jY j'sbc.srcu_down_readasbuh1hhj'ubj2)}(h h]h }(hjX'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hjh]h*}(hjf'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hssph]hssp}(hjs'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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhMhj'ubj )}(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)}(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:406: ./include/linux/srcu.hhMhj'ubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj'ubh)}(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().}(hj/(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj'ubh)}(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.}(hj>(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj'ubh)}(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().}(hjM(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj'ubeh}(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|(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjx(hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjx(hhhj(hMubj{)}(hsrcu_read_unlockh]j)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjx(hhhj(hMubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]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_read_unlockasbuh1hhj(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)}(hssph]hssp}(hj)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&]uh1jhj')ubj2)}(h h]h }(hj9)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj')ubj)}(hidxh]hidx}(hjG)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj')ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhjx(hhhj(hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjt(hhhj(hMubah}(h]jo(ah ](jjeh"]h$]h&]jj)jhuh1jhj(hMhjq(hhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjq)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjn)hhubah}(h]h ]h"]h$]h&]uh1jhjq(hhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhMhj)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:406: ./include/linux/srcu.hhMhj)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)hMhj)ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj)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:406: ./include/linux/srcu.hhMhj)ubj2)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj)ubh)}(h(Exit an SRCU read-side critical section.h]h(Exit an SRCU read-side critical section.}(hj<*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj)ubeh}(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}(hjk*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjg*hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj2)}(h h]h }(hjz*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjg*hhhjy*hMubj{)}(hsrcu_read_unlock_fasth]j)}(hsrcu_read_unlock_fasth]hsrcu_read_unlock_fast}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjg*hhhjy*hMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]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_read_unlock_fastasbuh1hhj*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)}(hssph]hssp}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]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)}(hsrcu_ctrh]hsrcu_ctr}(hj8+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5+ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:+modnameN classnameNj] j` )}jc ]j*c.srcu_read_unlock_fastasbuh1hhj+ubj2)}(h h]h }(hjV+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubh__percpu}(hj+hhhNhNubj2)}(h h]h }(hjh+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hjh]h*}(hjv+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hscph]hscp}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhjg*hhhjy*hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjc*hhhjy*hMubah}(h]j^*ah ](jjeh"]h$]h&]jj)jhuh1jhjy*hMhj`*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:406: ./include/linux/srcu.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj`*hhhjy*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhMhj+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:406: ./include/linux/srcu.hhMhj+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,hMhj,ubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+ubj)}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). 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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj!,ubj2)}(hhh]h)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(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)}(hjb,h]h Description}(hjd,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`,ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj+ubh)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(hjx,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries]L(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}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,hhhj,hMubj{)}(hsrcu_read_unlock_fast_updownh]j)}(hsrcu_read_unlock_fast_updownh]hsrcu_read_unlock_fast_updown}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj,hMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]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_read_unlock_fast_updownasbuh1hhj,ubj2)}(h h]h }(hj"-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hj0-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hssph]hssp}(hj=-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hjV-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR-ubj2)}(h h]h }(hjc-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjR-ubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjt-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjv-modnameN classnameNj] j` )}jc ]j-c.srcu_read_unlock_fast_updownasbuh1hhjR-ubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjR-ubh__percpu}(hjR-hhhNhNubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjR-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR-ubj)}(hscph]hscp}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR-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;unregister a old reader from an SRCU-fast-updown structure.h]h;unregister a old reader from an SRCU-fast-updown structure.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhjhNhNubj)}(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)}(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:406: ./include/linux/srcu.hhMhj.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:406: ./include/linux/srcu.hhMhj$.ubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjC.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 srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast_updown(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(hjc.h]hstruct srcu_ctr __percpu *scp}(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:406: ./include/linux/srcu.hhMhj].ubj2)}(hhh]h)}(h=return value from corresponding srcu_read_lock_fast_updown().h]h=return value from corresponding srcu_read_lock_fast_updown().}(hj|.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx.hMhjy.ubah}(h]h ]h"]h$]h&]uh1j1hj].ubeh}(h]h ]h"]h$]h&]uh1jhjx.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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj.ubh)}(h4Exit an SRCU-fast-updown read-side critical section.h]h4Exit an SRCU-fast-updown read-side critical section.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj.ubeh}(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}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj.hMubj{)}(hsrcu_up_read_fasth]j)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj.hMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]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_read_fastasbuh1hhj/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)}(hssph]hssp}(hjy/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]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)}(hsrcu_ctrh]hsrcu_ctr}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/modnameN classnameNj] j` )}jc ]jZ/c.srcu_up_read_fastasbuh1hhj/ubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubh__percpu}(hj/hhhNhNubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hscph]hscp}(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)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj%0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj"0hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=0jj=0jjjuh1jhhhjhNhNubj)}(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)}(hjG0h]h Parameters}(hjI0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE0ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjA0ubj )}(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)}(hjf0h]hstruct srcu_struct *ssp}(hjh0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd0ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj`0ubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{0hMhj|0ubah}(h]h ]h"]h$]h&]uh1j1hj`0ubeh}(h]h ]h"]h$]h&]uh1jhj{0hMhj]0ubj)}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(hj0h]hstruct srcu_ctr __percpu *scp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj0ubj2)}(hhh]h)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj]0ubeh}(h]h ]h"]h$]h&]uh1j hjA0ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjA0ubh)}(hxExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read_fast().h]hxExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read_fast().}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjA0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %srcu_read_unlock_nmisafe (C function)c.srcu_read_unlock_nmisafehNtauh1hhjhhhNhNubj)}(hhh](j)}(h@void srcu_read_unlock_nmisafe (struct srcu_struct *ssp, int idx)h]j)}(h?void srcu_read_unlock_nmisafe(struct srcu_struct *ssp, int idx)h](j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM(ubj2)}(h h]h }(hj.1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhj-1hM(ubj{)}(hsrcu_read_unlock_nmisafeh]j)}(hsrcu_read_unlock_nmisafeh]hsrcu_read_unlock_nmisafe}(hj@1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhj-1hM(ubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj\1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX1ubj2)}(h h]h }(hji1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjX1ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjz1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|1modnameN classnameNj] j` )}jc ]jf )}jY jB1sbc.srcu_read_unlock_nmisafeasbuh1hhjX1ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjX1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX1ubj)}(hssph]hssp}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjT1ubj)}(hint idxh](j )}(hinth]hint}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hidxh]hidx}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjT1ubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhj-1hM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj-1hM(ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhj-1hM(hj1hhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM(hj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj-1hM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,2jj,2jjjuh1jhhhjhNhNubj)}(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)}(hj62h]h Parameters}(hj82hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj42ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM,hj02ubj )}(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)}(hjU2h]hstruct srcu_struct *ssp}(hjW2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS2ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM)hjO2ubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjn2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj2hM)hjk2ubah}(h]h ]h"]h$]h&]uh1j1hjO2ubeh}(h]h ]h"]h$]h&]uh1jhjj2hM)hjL2ubj)}(hF``int idx`` return value from corresponding srcu_read_lock_nmisafe(). h](j)}(h ``int idx``h]j)}(hj2h]hint idx}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM*hj2ubj2)}(hhh]h)}(h9return value from corresponding srcu_read_lock_nmisafe().h]h9return value from corresponding srcu_read_lock_nmisafe().}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM*hj2ubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM*hjL2ubeh}(h]h ]h"]h$]h&]uh1j hj02ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM,hj02ubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM+hj02ubeh}(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}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 3hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM@ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 3hhhj3hM@ubj{)}(h srcu_up_readh]j)}(h srcu_up_readh]h srcu_up_read}(hj/3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj 3hhhj3hM@ubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjK3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG3ubj2)}(h h]h }(hjX3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjG3ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hji3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjk3modnameN classnameNj] j` )}jc ]jf )}jY j13sbc.srcu_up_readasbuh1hhjG3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjG3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG3ubj)}(hssph]hssp}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC3ubj)}(hint idxh](j )}(hinth]hint}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hidxh]hidx}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC3ubeh}(h]h ]h"]h$]h&]jjuh1jhj 3hhhj3hM@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hM@ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hM@hj3hhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM@hj4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhjhNhNubj)}(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%4h]h Parameters}(hj'4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMDhj4ubj )}(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)}(hjD4h]hstruct srcu_struct *ssp}(hjF4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB4ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMAhj>4ubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj]4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY4hMAhjZ4ubah}(h]h ]h"]h$]h&]uh1j1hj>4ubeh}(h]h ]h"]h$]h&]uh1jhjY4hMAhj;4ubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hj}4h]hint idx}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{4ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMBhjw4ubj2)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMBhj4ubah}(h]h ]h"]h$]h&]uh1j1hjw4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMBhj;4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMDhj4ubh)}(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().}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMChj4ubeh}(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}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQubj2)}(h h]h }(hj 5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4hhhj 5hMQubj{)}(hsmp_mb__after_srcu_read_unlockh]j)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhj 5hMQubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj:5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj65ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj25ubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhj 5hMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj 5hMQubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jhj 5hMQhj4hhubj)}(hhh]h)}(h+ensure full ordering after srcu_read_unlockh]h+ensure full ordering after srcu_read_unlock}(hjd5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQhja5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj 5hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|5jj|5jjjuh1jhhhjhNhNubj)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMUhj5ubj )}(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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj5ubj2)}(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)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj5ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMRhj5ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMThj5ubeh}(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}(hj46hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj06hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM_ubj2)}(h h]h }(hjC6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj06hhhjB6hM_ubj{)}(hsmp_mb__after_srcu_read_lockh]j)}(hsmp_mb__after_srcu_read_lockh]hsmp_mb__after_srcu_read_lock}(hjU6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj06hhhjB6hM_ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjq6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjm6ubah}(h]h ]h"]h$]h&]noemphjjuh1jhji6ubah}(h]h ]h"]h$]h&]jjuh1jhj06hhhjB6hM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,6hhhjB6hM_ubah}(h]j'6ah ](jjeh"]h$]h&]jj)jhuh1jhjB6hM_hj)6hhubj)}(hhh]h)}(h)ensure full ordering after srcu_read_lockh]h)ensure full ordering after srcu_read_lock}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM_hj6hhubah}(h]h ]h"]h$]h&]uh1jhj)6hhhjB6hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhjhNhNubj)}(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)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMchj6ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj6h]hvoid}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj6ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubah}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj6ubh)}(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-7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM`hj6ubh)}(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<7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMbhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j init_srcu_struct (C function)c.init_srcu_structhNtauh1hhjhhhNhNubj)}(hhh](j)}(h.int init_srcu_struct (struct srcu_struct *ssp)h]j)}(h-int init_srcu_struct(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjk7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjg7hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM&ubj2)}(h h]h }(hjz7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjg7hhhjy7hM&ubj{)}(hinit_srcu_structh]j)}(hinit_srcu_structh]hinit_srcu_struct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjg7hhhjy7hM&ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY j7sbc.init_srcu_structasbuh1hhj7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hssph]hssp}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhjg7hhhjy7hM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjc7hhhjy7hM&ubah}(h]j^7ah ](jjeh"]h$]h&]jj)jhuh1jhjy7hM&hj`7hhubj)}(hhh]h)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hj+8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM&hj(8hhubah}(h]h ]h"]h$]h&]uh1jhj`7hhhjy7hM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjC8jjC8jjjuh1jhhhjhNhNubj)}(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)}(hjM8h]h Parameters}(hjO8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM*hjG8ubj )}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjl8h]hstruct srcu_struct *ssp}(hjn8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM'hjf8ubj2)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM'hj8ubah}(h]h ]h"]h$]h&]uh1j1hjf8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM'hjc8ubah}(h]h ]h"]h$]h&]uh1j hjG8ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM)hjG8ubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM(hjG8ubeh}(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}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM8ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8hhhj8hM8ubj{)}(hinit_srcu_struct_fasth]j)}(hinit_srcu_struct_fasth]hinit_srcu_struct_fast}(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhj8hM8ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj)9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%9ubj2)}(h h]h }(hj69hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%9ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjG9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjI9modnameN classnameNj] j` )}jc ]jf )}jY j9sbc.init_srcu_struct_fastasbuh1hhj%9ubj2)}(h h]h }(hjg9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%9ubj)}(hjh]h*}(hju9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%9ubj)}(hssph]hssp}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!9ubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hM8ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhj8hM8hj8hhubj)}(hhh]h)}(h,initialize a fast-reader sleep-RCU structureh]h,initialize a fast-reader sleep-RCU structure}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM8hj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhjhNhNubj)}(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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM<hj9ubj )}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj9h]hstruct srcu_struct *ssp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM9hj9ubj2)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM9hj:ubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhj:hM9hj9ubah}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM;hj9ubh)}(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.}(hj>:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM:hj9ubeh}(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}(hjm:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhji:hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMIubj2)}(h h]h }(hj|:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hji:hhhj{:hMIubj{)}(hinit_srcu_struct_fast_updownh]j)}(hinit_srcu_struct_fast_updownh]hinit_srcu_struct_fast_updown}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhji:hhhj{:hMIubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]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.init_srcu_struct_fast_updownasbuh1hhj: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)}(hssph]hssp}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubah}(h]h ]h"]h$]h&]jjuh1jhji:hhhj{:hMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhje:hhhj{:hMIubah}(h]j`:ah ](jjeh"]h$]h&]jj)jhuh1jhj{:hMIhjb:hhubj)}(hhh]h)}(h4initialize a fast-reader up/down sleep-RCU structureh]h4initialize a fast-reader up/down sleep-RCU structure}(hj-;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMIhj*;hhubah}(h]h ]h"]h$]h&]uh1jhjb:hhhj{:hMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjE;jjE;jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Use this function in place of DEFINE_SRCU_FAST_UPDOWN() and DEFINE_STATIC_SRCU_FAST_UPDOWN() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast_updown(), srcu_down_read_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)}(hjO;h]h Parameters}(hjQ;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMMhjI;ubj )}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjn;h]hstruct srcu_struct *ssp}(hjp;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl;ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMJhjh;ubj2)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMJhj;ubah}(h]h ]h"]h$]h&]uh1j1hjh;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMJhje;ubah}(h]h ]h"]h$]h&]uh1j hjI;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:408: ./kernel/rcu/srcutree.chMLhjI;ubh)}(hXUse this function in place of DEFINE_SRCU_FAST_UPDOWN() and DEFINE_STATIC_SRCU_FAST_UPDOWN() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast_updown(), srcu_down_read_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]hXUse this function in place of DEFINE_SRCU_FAST_UPDOWN() and DEFINE_STATIC_SRCU_FAST_UPDOWN() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast_updown(), srcu_down_read_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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMKhjI;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  srcu_readers_active (C function)c.srcu_readers_activehNtauh1hhjhhhNhNubj)}(hhh](j)}(h2bool srcu_readers_active (struct srcu_struct *ssp)h]j)}(h1bool srcu_readers_active(struct srcu_struct *ssp)h](j )}(hj8h]hbool}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMZubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;hhhj;hMZubj{)}(hsrcu_readers_activeh]j)}(hsrcu_readers_activeh]hsrcu_readers_active}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhj;hMZubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj*<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&<ubj2)}(h h]h }(hj7<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&<ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjH<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJ<modnameN classnameNj] j` )}jc ]jf )}jY j<sbc.srcu_readers_activeasbuh1hhj&<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)}(hssph]hssp}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"<ubah}(h]h ]h"]h$]h&]jjuh1jhj;hhhj;hMZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj;hMZubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jhj;hMZhj;hhubj)}(hhh]h)}(h6returns true if there are readers. and false otherwiseh]h6returns true if there are readers. and false otherwise}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMZhj<hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jhhhjhNhNubj)}(hX<**Parameters** ``struct srcu_struct *ssp`` which srcu_struct to count active readers (holding srcu_read_lock). **Description** Note that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.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:408: ./kernel/rcu/srcutree.chM^hj<ubj )}(hhh]j)}(h```struct srcu_struct *ssp`` which srcu_struct to count active readers (holding srcu_read_lock). 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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM\hj<ubj2)}(hhh]h)}(hCwhich srcu_struct to count active readers (holding srcu_read_lock).h]hCwhich srcu_struct to count active readers (holding srcu_read_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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM^hj<ubh)}(hNote that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.h]hNote that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.}(hj?=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM]hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  cleanup_srcu_struct (C function)c.cleanup_srcu_structhNtauh1hhjhhhNhNubj)}(hhh](j)}(h2void cleanup_srcu_struct (struct srcu_struct *ssp)h]j)}(h1void cleanup_srcu_struct(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hjn=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjj=hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hj}=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjj=hhhj|=hMubj{)}(hcleanup_srcu_structh]j)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjj=hhhj|=hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]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.cleanup_srcu_structasbuh1hhj=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)}(hssph]hssp}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(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!deconstruct a sleep-RCU structureh]h!deconstruct a sleep-RCU structure}(hj.>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj+>hhubah}(h]h ]h"]h$]h&]uh1jhjc=hhhj|=hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjF>jjF>jjjuh1jhhhjhNhNubj)}(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)}(hjP>h]h Parameters}(hjR>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN>ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjJ>ubj )}(hhh]j)}(h3``struct srcu_struct *ssp`` structure to clean up. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjo>h]hstruct srcu_struct *ssp}(hjq>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm>ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhji>ubj2)}(hhh]h)}(hstructure to clean up.h]hstructure to clean up.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hji>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjf>ubah}(h]h ]h"]h$]h&]uh1j hjJ>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:408: ./kernel/rcu/srcutree.chMhjJ>ubh)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjJ>ubeh}(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}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhj>hMubj{)}(h call_srcuh]j)}(h call_srcuh]h call_srcu}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj>hMubj)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]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 srcu_structh]h srcu_struct}(hjJ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjL?modnameN classnameNj] j` )}jc ]jf )}jY j?sb c.call_srcuasbuh1hhj(?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}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$?ubj)}(hstruct rcu_head *rhph](j)}(hjh]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}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf? c.call_srcuasbuh1hhj?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)}(hrhph]hrhp}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$?ubj)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@modnameN classnameNj] j` )}jc ]jf? c.call_srcuasbuh1hhj @ubj2)}(h h]h }(hj/@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj @ubj)}(hfunch]hfunc}(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:Queue a callback for invocation after an SRCU grace periodh]h:Queue a callback for invocation after an SRCU grace period}(hjg@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjd@hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1jhhhjhNhNubj)}(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)}(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:408: ./kernel/rcu/srcutree.chMhj@ubj )}(hhh](j)}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback 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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj@ubj2)}(hhh]h)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(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 rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j)}(h``struct rcu_head *rhp``h]j)}(hj@h]hstruct rcu_head *rhp}(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:408: ./kernel/rcu/srcutree.chMhj@ubj2)}(hhh]h)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(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``rcu_callback_t func`` function to be invoked after the SRCU grace period h](j)}(h``rcu_callback_t func``h]j)}(hjAh]hrcu_callback_t func}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjAubj2)}(hhh]h)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(hj3AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/AhMhj0Aubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj/AhMhj@ubeh}(h]h ]h"]h$]h&]uh1j hj@ubh)}(h**Description**h]j)}(hjUAh]h Description}(hjWAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSAubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj@ubh)}(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.}(hjkAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj@ubh)}(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.}(hjzAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj@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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj@ubeh}(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}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAhhhjAhMubj{)}(hsynchronize_srcu_expeditedh]j)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjAhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjBhhhNhNubah}(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 reftargetjBmodnameN classnameNj] j` )}jc ]jf )}jY jAsbc.synchronize_srcu_expeditedasbuh1hhjAubj2)}(h h]h }(hj3BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hjh]h*}(hjABhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hssph]hssp}(hjNBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubah}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhjAhMhjAhhubj)}(hhh]h)}(hBrute-force SRCU grace periodh]hBrute-force SRCU grace period}(hjxBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjuBhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jhhhjhNhNubj)}(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)}(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:408: ./kernel/rcu/srcutree.chMhjBubj )}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. 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:408: ./kernel/rcu/srcutree.chMhjBubj2)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(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:408: ./kernel/rcu/srcutree.chMhjBubh)}(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.}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjBubh)}(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().}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjBubeh}(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}(hjHChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDChhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjWChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDChhhjVChMubj{)}(hsynchronize_srcuh]j)}(hsynchronize_srcuh]hsynchronize_srcu}(hjiChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDChhhjVChMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubh)}(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 jkCsbc.synchronize_srcuasbuh1hhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hssph]hssp}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}Cubah}(h]h ]h"]h$]h&]jjuh1jhjDChhhjVChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@ChhhjVChMubah}(h]j;Cah ](jjeh"]h$]h&]jj)jhuh1jhjVChMhj=Chhubj)}(hhh]h)}(h9wait for prior SRCU read-side critical-section completionh]h9wait for prior SRCU read-side critical-section completion}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhj=ChhhjVChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Djj Djjjuh1jhhhjhNhNubj)}(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)}(hj*Dh]h Parameters}(hj,DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Dubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubj )}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjIDh]hstruct srcu_struct *ssp}(hjKDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjCDubj2)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjbDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^DhMhj_Dubah}(h]h ]h"]h$]h&]uh1j1hjCDubeh}(h]h ]h"]h$]h&]uh1jhj^DhMhj@Dubah}(h]h ]h"]h$]h&]uh1j hj$Dubh)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubh)}(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 - }(hjDhhhNhNubh)}(h:c:type:`ssp->sda `h]j)}(hjDh]hssp->sda}(hjDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjsspuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjDubhs->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDhMhj$Dubh)}(h/Can block; must be called from process context.h]h/Can block; must be called from process context.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubh)}(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().}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubh)}(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.}(hj&EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj$Dubeh}(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}(hjUEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQEhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM0ubj2)}(h h]h }(hjdEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQEhhhjcEhM0ubj )}(hlongh]hlong}(hjrEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQEhhhjcEhM0ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQEhhhjcEhM0ubj{)}(hget_state_synchronize_srcuh]j)}(hget_state_synchronize_srcuh]hget_state_synchronize_srcu}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQEhhhjcEhM0ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jf )}jY jEsbc.get_state_synchronize_srcuasbuh1hhjEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hssph]hssp}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubah}(h]h ]h"]h$]h&]jjuh1jhjQEhhhjcEhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMEhhhjcEhM0ubah}(h]jHEah ](jjeh"]h$]h&]jj)jhuh1jhjcEhM0hjJEhhubj)}(hhh]h)}(h%Provide an end-of-grace-period cookieh]h%Provide an end-of-grace-period cookie}(hj1FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM0hj.Fhhubah}(h]h ]h"]h$]h&]uh1jhjJEhhhjcEhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIFjjIFjjjuh1jhhhjhNhNubj)}(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)}(hjSFh]h Parameters}(hjUFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM4hjMFubj )}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjrFh]hstruct srcu_struct *ssp}(hjtFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM1hjlFubj2)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM1hjFubah}(h]h ]h"]h$]h&]uh1j1hjlFubeh}(h]h ]h"]h$]h&]uh1jhjFhM1hjiFubah}(h]h ]h"]h$]h&]uh1j hjMFubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM3hjMFubh)}(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().}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM2hjMFubeh}(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}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMCubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjGhMCubj )}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhhjGhMCubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjGhMCubj{)}(hstart_poll_synchronize_srcuh]j)}(hstart_poll_synchronize_srcuh]hstart_poll_synchronize_srcu}(hj/GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Gubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjGhMCubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjKGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGGubj2)}(h h]h }(hjXGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGGubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjiGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkGmodnameN classnameNj] j` )}jc ]jf )}jY j1Gsbc.start_poll_synchronize_srcuasbuh1hhjGGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGGubj)}(hssph]hssp}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCGubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjGhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjGhMCubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjGhMChjFhhubj)}(hhh]h)}(h%Provide cookie and start grace periodh]h%Provide cookie and start grace period}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMChjGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjGhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1jhhhjhNhNubj)}(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)}(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:408: ./kernel/rcu/srcutree.chMGhjGubj )}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjHh]hstruct srcu_struct *ssp}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Hubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMDhj Hubj2)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj(HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$HhMDhj%Hubah}(h]h ]h"]h$]h&]uh1j1hj Hubeh}(h]h ]h"]h$]h&]uh1jhj$HhMDhjHubah}(h]h ]h"]h$]h&]uh1j hjGubh)}(h**Description**h]j)}(hjJHh]h Description}(hjLHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHHubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMFhjGubh)}(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.}(hj`HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMEhjGubeh}(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}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMSubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHhhhjHhMSubj{)}(hpoll_state_synchronize_srcuh]j)}(hpoll_state_synchronize_srcuh]hpoll_state_synchronize_srcu}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjHhMSubj)}(h/(struct srcu_struct *ssp, unsigned long cookie)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]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 ]jf )}jY jHsbc.poll_state_synchronize_srcuasbuh1hhjHubj2)}(h h]h }(hj IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hssph]hssp}(hj$IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned long cookieh](j )}(hunsignedh]hunsigned}(hj=IhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9Iubj2)}(h h]h }(hjKIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9Iubj )}(hlongh]hlong}(hjYIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9Iubj2)}(h h]h }(hjgIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9Iubj)}(hcookieh]hcookie}(hjuIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhjHhMSubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jhjHhMShjHhhubj)}(hhh]h)}(h Has cookie's grace period ended?h]h"Has cookie’s grace period ended?}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMShjIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhjhNhNubj)}(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)}(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:408: ./kernel/rcu/srcutree.chMWhjIubj )}(hhh](j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. 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:408: ./kernel/rcu/srcutree.chMThjIubj2)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMThjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMThjIubj)}(hj``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). h](j)}(h``unsigned long cookie``h]j)}(hjJh]hunsigned long cookie}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMUhjJubj2)}(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().}(hj2JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.JhMUhj/Jubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhj.JhMUhjIubeh}(h]h ]h"]h$]h&]uh1j hjIubh)}(h**Description**h]j)}(hjTJh]h Description}(hjVJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRJubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMWhjIubh)}(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 }(hjjJhhhNhNubj)}(h**true**h]htrue}(hjrJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjJubhL if an SRCU grace period elapsed since the time that the cookie was created.}(hjjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMVhjIubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM[hjIubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMdhjIubeh}(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}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhjJhMubj{)}(h srcu_barrierh]j)}(h srcu_barrierh]h srcu_barrier}(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)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj$KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Kubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&KmodnameN classnameNj] j` )}jc ]jf )}jY jJsbc.srcu_barrierasbuh1hhjKubj2)}(h h]h }(hjDKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hjRKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hssph]hssp}(hj_KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhjJhMhjJhhubj)}(hhh]h)}(h8Wait until all in-flight call_srcu() callbacks complete.h]h8Wait until all in-flight call_srcu() callbacks complete.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhjhNhNubj)}(hc**Parameters** ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjKubj )}(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)}(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:408: ./kernel/rcu/srcutree.chMhjKubj2)}(hhh]h)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjKubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j hjKubeh}(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}(hj$LhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj LhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hj3LhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Lhhhj2LhMubj{)}(hsrcu_expedite_currenth]j)}(hsrcu_expedite_currenth]hsrcu_expedite_current}(hjELhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjALubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj Lhhhj2LhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjaLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Lubj2)}(h h]h }(hjnLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]Lubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Lubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jf )}jY jGLsbc.srcu_expedite_currentasbuh1hhj]Lubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]Lubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Lubj)}(hssph]hssp}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYLubah}(h]h ]h"]h$]h&]jjuh1jhj Lhhhj2LhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhj2LhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jhj2LhMhjLhhubj)}(hhh]h)}(h&Expedite the current SRCU grace periodh]h&Expedite the current SRCU grace period}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhj2LhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1jhhhjhNhNubj)}(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)}(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:408: ./kernel/rcu/srcutree.chMhjMubj )}(hhh]j)}(h5``struct srcu_struct *ssp`` srcu_struct to expedite. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj%Mh]hstruct srcu_struct *ssp}(hj'MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Mubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjMubj2)}(hhh]h)}(hsrcu_struct to expedite.h]hsrcu_struct to expedite.}(hj>MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:MhMhj;Mubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhj:MhMhjMubah}(h]h ]h"]h$]h&]uh1j hjMubh)}(h**Description**h]j)}(hj`Mh]h Description}(hjbMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Mubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjMubh)}(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.}(hjvMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjMubeh}(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}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhjMhMubj )}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMhhhjMhMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhjMhMubj{)}(hsrcu_batches_completedh]j)}(hsrcu_batches_completedh]hsrcu_batches_completed}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhjMhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hj NhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(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 jMsbc.srcu_batches_completedasbuh1hhjMubj2)}(h h]h }(hjah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjJNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hssph]hssp}(hjWNhhhNhNubah}(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)}(hreturn batches completed.h]hreturn batches completed.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj~Nhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhjhNhNubj)}(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)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjNubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct on which to report batch completion. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjNh]hstruct srcu_struct *ssp}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjNubj2)}(hhh]h)}(h0srcu_struct on which to report batch completion.h]h0srcu_struct on which to report batch completion.}(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)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjNubh)}(hReport the number of batches, correlated with, but not necessarily precisely the same as, the number of grace periods that have elapsed.h]hReport the number of batches, correlated with, but not necessarily precisely the same as, the number of grace periods that have elapsed.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_bl_del_rcu (C function)c.hlist_bl_del_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h/void hlist_bl_del_rcu (struct hlist_bl_node *n)h]j)}(h.void hlist_bl_del_rcu(struct hlist_bl_node *n)h](j )}(hvoidh]hvoid}(hjBOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>Ohhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK&ubj2)}(h h]h }(hjQOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>OhhhjPOhK&ubj{)}(hhlist_bl_del_rcuh]j)}(hhlist_bl_del_rcuh]hhlist_bl_del_rcu}(hjcOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Oubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>OhhhjPOhK&ubj)}(h(struct hlist_bl_node *n)h]j)}(hstruct hlist_bl_node *nh](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Oubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{Oubh)}(hhh]j)}(h hlist_bl_nodeh]h hlist_bl_node}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jeOsbc.hlist_bl_del_rcuasbuh1hhj{Oubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{Oubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Oubj)}(hjh]hn}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwOubah}(h]h ]h"]h$]h&]jjuh1jhj>OhhhjPOhK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:OhhhjPOhK&ubah}(h]j5Oah ](jjeh"]h$]h&]jj)jhuh1jhjPOhK&hj7Ohhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK&hjOhhubah}(h]h ]h"]h$]h&]uh1jhj7OhhhjPOhK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhjhNhNubj)}(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)}(hj#Ph]h Parameters}(hj%PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Pubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK*hjPubj )}(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)}(hjBPh]hstruct hlist_bl_node *n}(hjDPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Pubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK'hjah"]h$]h&]uh1j1hjPhhhjPhK?ubj{)}(hhlist_bl_add_head_rcuh]j)}(hhlist_bl_add_head_rcuh]hhlist_bl_add_head_rcu}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjPhK?ubj)}(h2(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j)}(hstruct hlist_bl_node *nh](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hj*QhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(h hlist_bl_nodeh]h hlist_bl_node}(hj;QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8Qubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=QmodnameN classnameNj] j` )}jc ]jf )}jY jQsbc.hlist_bl_add_head_rcuasbuh1hhjQubj2)}(h h]h }(hj[QhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjiQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hjh]hn}(hjvQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hstruct hlist_bl_head *hh](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(h hlist_bl_headh]h hlist_bl_head}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jWQc.hlist_bl_add_head_rcuasbuh1hhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hhh]hh}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhK?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhK?ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jhjPhK?hjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjPhK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhjhNhNubj)}(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)}(hj"Rh]h Parameters}(hj$RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Rubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKChjRubj )}(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)}(hjARh]hstruct hlist_bl_node *n}(hjCRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Rubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK@hj;Rubj2)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjZRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVRhK@hjWRubah}(h]h ]h"]h$]h&]uh1j1hj;Rubeh}(h]h ]h"]h$]h&]uh1jhjVRhK@hj8Rubj)}(h0``struct hlist_bl_head *h`` the list to add to. h](j)}(h``struct hlist_bl_head *h``h]j)}(hjzRh]hstruct hlist_bl_head *h}(hj|RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxRubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKAhjtRubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKAhjRubah}(h]h ]h"]h$]h&]uh1j1hjtRubeh}(h]h ]h"]h$]h&]uh1jhjRhKAhj8Rubeh}(h]h ]h"]h$]h&]uh1j hjRubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKChjRubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKChjRubh)}(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().}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKFhjRubeh}(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)}(hjSh]hhlist_bl_for_each_entry_rcu}(hj ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Subah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKbubah}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhj ShKbubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1jhj ShKbhjRhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjRhhhj ShKbubeh}(h]h ](jmacroeh"]h$]h&]jjjj9Sjj9Sjjjuh1jhhhjhNhNubh)}(h9``hlist_bl_for_each_entry_rcu (tpos, pos, head, member)``h]j)}(hj?Sh]h5hlist_bl_for_each_entry_rcu (tpos, pos, head, member)}(hjAShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Subah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./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}(hjYShhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKbhjUSubah}(h]h ]h"]h$]h&]uh1jhjgShKbhjhhubj)}(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)}(hjtSh]h Parameters}(hjvShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrSubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKfhjnSubj )}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjSh]htpos}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKchjSubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShKchjSubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjShKchjSubj)}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjSh]hpos}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKdhjSubj2)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hjShhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hjSh]hstruct hlist_bl_node}(hjShhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jj hlist_bl_nodeuh1hhjShKdhjSubh to use as a loop cursor.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShKdhjSubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjShKdhjSubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj(Th]hhead}(hj*ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Tubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKehj"Tubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjAThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ThKehj>Tubah}(h]h ]h"]h$]h&]uh1j1hj"Tubeh}(h]h ]h"]h$]h&]uh1jhj=ThKehjSubj)}(h;``member`` the name of the hlist_bl_node within the struct.h](j)}(h ``member``h]j)}(hjaTh]hmember}(hjcThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_Tubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKghj[Tubj2)}(hhh]h)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hjzThhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKfhjwTubah}(h]h ]h"]h$]h&]uh1j1hj[Tubeh}(h]h ]h"]h$]h&]uh1jhjvThKghjSubeh}(h]h ]h"]h$]h&]uh1j hjnSubeh}(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)}(hjTh]h$hlist_bl_for_each_entry_continue_rcu}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKpubah}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThKpubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjThKphjThhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjThhhjThKpubeh}(h]h ](jmacroeh"]h$]h&]jjjjTjjTjjjuh1jhhhjhNhNubh)}(h<``hlist_bl_for_each_entry_continue_rcu (tpos, pos, member)``h]j)}(hjTh]h8hlist_bl_for_each_entry_continue_rcu (tpos, pos, member)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./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}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKphjUubah}(h]h ]h"]h$]h&]uh1jhjUhKphjhhubj)}(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)}(hj&Uh]h Parameters}(hj(UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Uubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKthj Uubj )}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjEUh]htpos}(hjGUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCUubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKrhj?Uubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj^UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZUhKrhj[Uubah}(h]h ]h"]h$]h&]uh1j1hj?Uubeh}(h]h ]h"]h$]h&]uh1jhjZUhKrhj` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj~Uh]hpos}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Uubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKshjxUubj2)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hjUhhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hjUh]hstruct hlist_bl_node}(hjUhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jj hlist_bl_nodeuh1hhjUhKshjUubh to use as a loop cursor.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhKshjUubah}(h]h ]h"]h$]h&]uh1j1hjxUubeh}(h]h ]h"]h$]h&]uh1jhjUhKshj` to use as a loop cursor. ``head`` the head for your list.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK2hjVubj )}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjVh]hpos}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK/hjVubj2)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjWhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjWh]hstruct list_head}(hjWhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jj list_headuh1hhj WhK/hjWubh to use as a loop cursor.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj WhK/hj Wubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhj WhK/hjVubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hjRWh]hhead}(hjTWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK1hjLWubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjkWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hjhWubah}(h]h ]h"]h$]h&]uh1j1hjLWubeh}(h]h ]h"]h$]h&]uh1jhjgWhK1hjVubeh}(h]h ]h"]h$]h&]uh1j hjVubeh}(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)}(hjWh]h list_tail_rcu}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjWhK8ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jhjWhK8hjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjWhK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjWjjWjjjuh1jhhhjhNhNubh)}(h``list_tail_rcu (head)``h]j)}(hjWh]hlist_tail_rcu (head)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8hjWubah}(h]h ]h"]h$]h&]uh1jhj XhK8hjhhubj)}(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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKah"]h$]h&]uh1j1hjXhhhjXhKnubj{)}(h list_add_rcuh]j)}(h list_add_rcuh]h list_add_rcu}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjXhKnubj)}(h/(struct list_head *new, struct list_head *head)h](j)}(hstruct list_head *newh](j)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubh)}(hhh]j)}(h list_headh]h list_head}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.list_add_rcuasbuh1hhjXubj2)}(h h]h }(hj1YhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hj?YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hnewh]hnew}(hjLYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjeYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaYubj2)}(h h]h }(hjrYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaYubh)}(hhh]j)}(h list_headh]h list_head}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]j-Yc.list_add_rcuasbuh1hhjaYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaYubj)}(hheadh]hhead}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjXhKnubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjXhKnubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjXhKnhjXhhubj)}(hhh]h)}(h%add a new entry to rcu-protected listh]h%add a new entry to rcu-protected list}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKnhjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhKnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jhhhjhNhNubj)}(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)}(hjZh]h Parameters}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKrhjZubj )}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hj'Zh]hstruct list_head *new}(hj)ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Zubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKohj!Zubj2)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hj@ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjah"]h$]h&]uh1j1hjZhhhjZhKubj{)}(hlist_add_tail_rcuh]j)}(hlist_add_tail_rcuh]hlist_add_tail_rcu}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj [ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZhhhjZhKubj)}(h/(struct list_head *new, struct list_head *head)h](j)}(hstruct list_head *newh](j)}(hjh]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 list_headh]h list_head}(hjJ[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjL[modnameN classnameNj] j` )}jc ]jf )}jY j[sbc.list_add_tail_rcuasbuh1hhj([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)}(hnewh]hnew}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj([ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$[ubj)}(hstruct list_head *headh](j)}(hjh]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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf[c.list_add_tail_rcuasbuh1hhj[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)}(hheadh]hhead}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$[ubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjZhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjZhKubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1jhjZhKhjZhhubj)}(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:412: ./include/linux/rculist.hhKhj\hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjZhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7\jj7\jjjuh1jhhhjhNhNubj)}(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)}(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:412: ./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)}(hj`\h]hstruct list_head *new}(hjb\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^\ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjZ\ubj2)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hjy\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju\hKhjv\ubah}(h]h ]h"]h$]h&]uh1j1hjZ\ubeh}(h]h ]h"]h$]h&]uh1jhju\hKhjW\ubj)}(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:412: ./include/linux/rculist.hhKhj\ubj2)}(hhh]h)}(hlist head to add it beforeh]hlist head to add it before}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj\ubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjW\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:412: ./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:412: ./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:412: ./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}(hj(]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$]hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj2)}(h h]h }(hj7]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$]hhhj6]hKubj{)}(h list_del_rcuh]j)}(h list_del_rcuh]h list_del_rcu}(hjI]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$]hhhj6]hKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hjh]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 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 jK]sbc.list_del_rcuasbuh1hhja]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)}(hentryh]hentry}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]]ubah}(h]h ]h"]h$]h&]jjuh1jhj$]hhhj6]hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj ]hhhj6]hKubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhj6]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:412: ./include/linux/rculist.hhKhj]hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj6]hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1jhhhjhNhNubj)}(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)}(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:412: ./include/linux/rculist.hhKhj^ubj )}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hj)^h]hstruct list_head *entry}(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:412: ./include/linux/rculist.hhKhj#^ubj2)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjB^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**Note**h]j)}(hjd^h]hNote}(hjf^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj^ubh)}(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.}(hjz^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj^ubh)}(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:412: ./include/linux/rculist.hhKhj^ubh)}(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:412: ./include/linux/rculist.hhKhj^ubh)}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj^ubeh}(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}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhj^hKubj{)}(hlist_bidir_del_rcuh]j)}(hlist_bidir_del_rcuh]hlist_bidir_del_rcu}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhj^hKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hjh]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}(hj1_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj._ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3_modnameN classnameNj] j` )}jc ]jf )}jY j^sbc.list_bidir_del_rcuasbuh1hhj_ubj2)}(h h]h }(hjQ_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hjh]h*}(hj__hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hentryh]hentry}(hjl_hhhNhNubah}(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)}(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:412: ./include/linux/rculist.hhKhj_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhjhNhNubj)}(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)}(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:412: ./include/linux/rculist.hhKhj_ubj )}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hj_h]hstruct list_head *entry}(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:412: ./include/linux/rculist.hhKhj_ubj2)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj_ubh)}(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().}(hj(`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj_ubh)}(h**Note**h]j)}(hj9`h]hNote}(hj;`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj_ubh)}(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.}(hjO`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj_ubh)}(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().}(hj^`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj_ubh)}(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.}(hjm`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj_ubh)}(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.}(hj|`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj_ubeh}(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}(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`hhhj`hKubj{)}(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&]jjuh1jzhj`hhhj`hKubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hjh]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 hlist_nodeh]h hlist_node}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jf )}jY j`sbc.hlist_del_init_rcuasbuh1hhj`ubj2)}(h h]h }(hj&ahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hjh]h*}(hj4ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hjh]hn}(hjAahhhNhNubah}(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)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hjjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjgahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhjhNhNubj)}(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)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaubj )}(hhh]j)}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjah]hstruct hlist_node *n}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahKhjaubah}(h]h ]h"]h$]h&]uh1j hjaubh)}(h**Note**h]j)}(hjah]hNote}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaubh)}(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.}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaubh)}(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().}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaubeh}(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}(hjIbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEbhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj2)}(h h]h }(hjXbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEbhhhjWbhKubj{)}(hlist_replace_rcuh]j)}(hlist_replace_rcuh]hlist_replace_rcu}(hjjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEbhhhjWbhKubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(hhh]j)}(h list_headh]h list_head}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY jlbsbc.list_replace_rcuasbuh1hhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(holdh]hold}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~bubj)}(hstruct list_head *newh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(hhh]j)}(h list_headh]h list_head}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jbc.list_replace_rcuasbuh1hhjbubj2)}(h h]h }(hj4chhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjBchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hnewh]hnew}(hjOchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~bubeh}(h]h ]h"]h$]h&]jjuh1jhjEbhhhjWbhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAbhhhjWbhKubah}(h]jbhhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjychhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjvchhubah}(h]h ]h"]h$]h&]uh1jhj>bhhhjWbhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhjhNhNubj)}(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)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcubj )}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hjch]hstruct list_head *old}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcubj2)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhjchKhjcubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hjch]hstruct list_head *new}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhj dubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjcubeh}(h]h ]h"]h$]h&]uh1j hjcubh)}(h**Description**h]j)}(hj.dh]h Description}(hj0dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,dubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcubh)}(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 }(hjDdhhhNhNubj)}(h**old**h]hold}(hjLdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDdubh! entry will be replaced with the }(hjDdhhhNhNubj)}(h**new**h]hnew}(hj^dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDdubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjDdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcubh)}(h**Note**h]j)}(hjydh]hNote}(hj{dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwdubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcubh)}(h**old** should not be empty.h](j)}(h**old**h]hold}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh should not be empty.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcubeh}(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}(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjdhMubj{)}(hlist_splice_rcuh]j)}(hlist_splice_rcuh]hlist_splice_rcu}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjdhMubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(h list_headh]h list_head}(hj'ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$eubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj)emodnameN classnameNj] j` )}jc ]jf )}jY jdsbc.list_splice_rcuasbuh1hhjeubj2)}(h h]h }(hjGehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjUehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hlisth]hlist}(hjbehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj{ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjweubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjweubh)}(hhh]j)}(h list_headh]h list_head}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jCec.list_splice_rcuasbuh1hhjweubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjweubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjweubj)}(hheadh]hhead}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjweubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjdhMhjdhhubj)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jhhhjhNhNubj)}(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)}(hjfh]h Parameters}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjfubj )}(hhh](j)}(h@``struct list_head *list`` the non RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hj=fh]hstruct list_head *list}(hj?fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;fubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj7fubj2)}(hhh]h)}(h$the non RCU-protected list to spliceh]h$the non RCU-protected list to splice}(hjVfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRfhMhjSfubah}(h]h ]h"]h$]h&]uh1j1hj7fubeh}(h]h ]h"]h$]h&]uh1jhjRfhMhj4fubj)}(hR``struct list_head *head`` the place in the existing RCU-protected list to splice h](j)}(h``struct list_head *head``h]j)}(hjvfh]hstruct list_head *head}(hjxfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtfubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjpfubj2)}(hhh]h)}(h6the place in the existing RCU-protected list to spliceh]h6the place in the existing RCU-protected list to splice}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1j1hjpfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhj4fubeh}(h]h ]h"]h$]h&]uh1j hjfubh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjfubh)}(hZThe list pointed to by **head** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjfhhhNhNubj)}(h**head**h]hhead}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh; can be RCU-read traversed concurrently with this function.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjfubeh}(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}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjghhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM&ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjghhhjghM&ubj{)}(h__list_splice_init_rcuh]j)}(h__list_splice_init_rcuh]h__list_splice_init_rcu}(hj)ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%gubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjghhhjghM&ubj)}(h\(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjEghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAgubj2)}(h h]h }(hjRghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAgubh)}(hhh]j)}(h list_headh]h list_head}(hjcghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`gubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjegmodnameN classnameNj] j` )}jc ]jf )}jY j+gsbc.__list_splice_init_rcuasbuh1hhjAgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAgubj)}(hlisth]hlist}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=gubj)}(hstruct list_head *prevh](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubh)}(hhh]j)}(h list_headh]h list_head}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jgc.__list_splice_init_rcuasbuh1hhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hprevh]hprev}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=gubj)}(hstruct list_head *nexth](j)}(hjh]hstruct}(hj'hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hubj2)}(h h]h }(hj4hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#hubh)}(hhh]j)}(h list_headh]h list_head}(hjEhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGhmodnameN classnameNj] j` )}jc ]jgc.__list_splice_init_rcuasbuh1hhj#hubj2)}(h h]h }(hjchhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#hubj)}(hjh]h*}(hjqhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hubj)}(hnexth]hnext}(hj~hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=gubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hj;h]h(}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hsynch]hsync}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hj;h]h)}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hj;h]h(}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj )}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj)}(hj;h]h)}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=gubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghM&ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjghM&hjfhhubj)}(hhh]h)}(h1join an RCU-protected list into an existing list.h]h1join an RCU-protected list into an existing list.}(hj,ihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM&hj)ihhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjghM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDijjDijjjuh1jhhhjhNhNubj)}(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)}(hjNih]h Parameters}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM*hjHiubj )}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjmih]hstruct list_head *list}(hjoihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM'hjgiubj2)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM'hjiubah}(h]h ]h"]h$]h&]uh1j1hjgiubeh}(h]h ]h"]h$]h&]uh1jhjihM'hjdiubj)}(hK``struct list_head *prev`` points to the last element of the existing list h](j)}(h``struct list_head *prev``h]j)}(hjih]hstruct list_head *prev}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM(hjiubj2)}(hhh]h)}(h/points to the last element of the existing listh]h/points to the last element of the existing list}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM(hjiubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjihM(hjdiubj)}(hL``struct list_head *next`` points to the first element of the existing list h](j)}(h``struct list_head *next``h]j)}(hjih]hstruct list_head *next}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM)hjiubj2)}(hhh]h)}(h0points to the first element of the existing listh]h0points to the first element of the existing list}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM)hjiubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjihM)hjdiubj)}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j)}(h``void (*sync)(void)``h]j)}(hjjh]hvoid (*sync)(void)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM*hjjubj2)}(hhh]h)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hj1jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-jhM*hj.jubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhj-jhM*hjdiubeh}(h]h ]h"]h$]h&]uh1j hjHiubh)}(h**Description**h]j)}(hjSjh]h Description}(hjUjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM,hjHiubh)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjijhhhNhNubj)}(h**prev**h]hprev}(hjqjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjijubh and }(hjijhhhNhNubj)}(h**next**h]hnext}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjijubh; can be RCU-read traversed concurrently with this function.}(hjijhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM+hjHiubh)}(hNote that this function blocks.h]hNote that this function blocks.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM.hjHiubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM0hjHiubeh}(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}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMbubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhjjhMbubj{)}(hlist_splice_init_rcuh]j)}(hlist_splice_init_rcuh]hlist_splice_init_rcu}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhjjhMbubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hj$khhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubh)}(hhh]j)}(h list_headh]h list_head}(hj5khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2kubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7kmodnameN classnameNj] j` )}jc ]jf )}jY jjsbc.list_splice_init_rcuasbuh1hhjkubj2)}(h h]h }(hjUkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjckhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hlisth]hlist}(hjpkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubh)}(hhh]j)}(h list_headh]h list_head}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jQkc.list_splice_init_rcuasbuh1hhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hheadh]hhead}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hj;h]h(}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hj"lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hsynch]hsync}(hj/lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hj;h]h)}(hj=lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hj;h]h(}(hjJlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj )}(hvoidh]hvoid}(hjWlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj)}(hj;h]h)}(hjelhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMbubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjjhMbhjjhhubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMbhjlhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jhhhjhNhNubj)}(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)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMfhjlubj )}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjlh]hstruct list_head *list}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMdhjlubj2)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMdhjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMdhjlubj)}(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)}(hjmh]hstruct list_head *head}(hj mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMehjmubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjmhhhjmhMqubj{)}(hlist_splice_tail_init_rcuh]j)}(hlist_splice_tail_init_rcuh]hlist_splice_tail_init_rcu}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhjmhMqubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(hhh]j)}(h list_headh]h list_head}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmmodnameN classnameNj] j` )}jc ]jf )}jY jmsbc.list_splice_tail_init_rcuasbuh1hhjmubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hj$nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hlisth]hlist}(hj1nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjJnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFnubj2)}(h h]h }(hjWnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFnubh)}(hhh]j)}(h list_headh]h list_head}(hjhnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjenubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjnmodnameN classnameNj] j` )}jc ]jnc.list_splice_tail_init_rcuasbuh1hhjFnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFnubj)}(hheadh]hhead}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hj;h]h(}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hsynch]hsync}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hj;h]h)}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hj;h]h(}(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj )}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj)}(hj;h]h)}(hj&ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjmhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjmhMqubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjmhMqhjmhhubj)}(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.}(hjOohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMqhjLohhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgojjgojjjuh1jhhhjhNhNubj)}(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)}(hjqoh]h Parameters}(hjsohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjooubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMuhjkoubj )}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjoh]hstruct list_head *list}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMshjoubj2)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMshjoubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjohMshjoubj)}(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)}(hjoh]hstruct list_head *head}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMthjoubj2)}(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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjpubj )}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hjph]hptr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjpubj2)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjphhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hj qh]hstruct list_head}(hj qhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jj list_headuh1hhjphMhjpubh pointer.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjpubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjBqh]htype}(hjDqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@qubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjoptional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1j1hjyvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjuubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjuubh)}(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().}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjuubeh}(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)}(hjvh]hlist_for_each_entry_srcu}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjwhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjwhMhjvhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjvhhhjwhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj/wjj/wjjjuh1jhhhjhNhNubh)}(h6``list_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hj5wh]h2list_for_each_entry_srcu (pos, head, member, cond)}(hj7whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3wubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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}(hjOwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjKwubah}(h]h ]h"]h$]h&]uh1jhj]whMhjhhubj)}(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)}(hjjwh]h Parameters}(hjlwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjdwubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjwh]hpos}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjwh]hhead}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjwh]hmember}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjxubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjwubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hj4xh]hcond}(hj6xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2xubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj.xubj2)}(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.}(hjMxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIxhMhjJxubah}(h]h ]h"]h$]h&]uh1j1hj.xubeh}(h]h ]h"]h$]h&]uh1jhjIxhMhjwubeh}(h]h ]h"]h$]h&]uh1j hjdwubh)}(h**Description**h]j)}(hjoxh]h Description}(hjqxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmxubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjdwubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjdwubeh}(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)}(hjxh]hlist_entry_lockless}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjxhMhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjxjjxjjjuh1jhhhjhNhNubh)}(h+``list_entry_lockless (ptr, type, member)``h]j)}(hjxh]h'list_entry_lockless (ptr, type, member)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhhubj)}(hget the struct for this entry h]h)}(hget the struct for this entryh]hget the struct for this entry}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyhMhjhhubj)}(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)}(hjyh]h Parameters}(hj!yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubj )}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hj>yh]hptr}(hj@yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj` pointer.h](hthe }(hjWyhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjayh]hstruct list_head}(hjcyhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj_yubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jj list_headuh1hhjSyhMhjWyubh pointer.}(hjWyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjSyhMhjTyubah}(h]h ]h"]h$]h&]uh1j1hj8yubeh}(h]h ]h"]h$]h&]uh1jhjSyhMhj5yubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjyh]htype}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubj2)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj5yubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjyh]hmember}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj5yubeh}(h]h ]h"]h$]h&]uh1j hjyubh)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj zubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubh)}(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.}(hj$zhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubeh}(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)}(hjMzh]hlist_for_each_entry_lockless}(hjWzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOzhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjKzhhhjjzhMubah}(h]jFzah ](jjeh"]h$]h&]jj)jhuh1jhjjzhMhjHzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHzhhhjjzhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjzjjzjjjuh1jhhhjhNhNubh)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j)}(hjzh]h0list_for_each_entry_lockless (pos, head, member)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzhMhjhhubj)}(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)}(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:412: ./include/linux/rculist.hhM hjzubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjzh]hpos}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjzubj2)}(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&]uh1hhjzhMhjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubj)}(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:412: ./include/linux/rculist.hhMhj{ubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj/{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+{hMhj,{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj+{hMhjzubj)}(h:``member`` the name of the list_struct within the struct. h](j)}(h ``member``h]j)}(hjO{h]hmember}(hjQ{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM{ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjI{ubj2)}(hhh]h)}(h.the name of the list_struct within the struct.h]h.the name of the list_struct within the struct.}(hjh{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd{hMhje{ubah}(h]h ]h"]h$]h&]uh1j1hjI{ubeh}(h]h ]h"]h$]h&]uh1jhjd{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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjzubh)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjzubeh}(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}(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:412: ./include/linux/rculist.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{jjjuh1jhhhjhNhNubh)}(h8``list_for_each_entry_continue_rcu (pos, head, member)``h]j)}(hj|h]h4list_for_each_entry_continue_rcu (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:412: ./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:412: ./include/linux/rculist.hhMhj|ubah}(h]h ]h"]h$]h&]uh1jhj-|hMhjhhubj)}(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&]uh1jhj8|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj4|ubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjY|h]hpos}(hj[|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW|ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjS|ubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(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!``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:412: ./include/linux/rculist.hhMhj|ubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjP|ubj)}(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:412: ./include/linux/rculist.hhMhj|ubj2)}(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&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjP|ubeh}(h]h ]h"]h$]h&]uh1j hj4|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:412: ./include/linux/rculist.hhMhj4|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 }(hj}hhhNhNubjh)}(h*and*h]hand}(hj$}hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj}ubh in the list.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj4|ubh)}(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:412: ./include/linux/rculist.hhM#hj4|ubeh}(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)}(hjf}h]hlist_for_each_entry_from_rcu}(hjp}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjh}hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM.ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjd}hhhj}hM.ubah}(h]j_}ah ](jjeh"]h$]h&]jj)jhuh1jhj}hM.hja}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhja}hhhj}hM.ubeh}(h]h ](jmacroeh"]h$]h&]jjjj}jj}jjjuh1jhhhjhNhNubh)}(h4``list_for_each_entry_from_rcu (pos, head, member)``h]j)}(hj}h]h0list_for_each_entry_from_rcu (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:412: ./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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM.hj}ubah}(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)}(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:412: ./include/linux/rculist.hhM2hj}ubj )}(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:412: ./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.}(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!``head`` the head for your list. h](j)}(h``head``h]j)}(hj/~h]hhead}(hj1~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM0hj)~ubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjH~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD~hM0hjE~ubah}(h]h ]h"]h$]h&]uh1j1hj)~ubeh}(h]h ]h"]h$]h&]uh1jhjD~hM0hj}ubj)}(h8``member`` the name of the list_node within the struct. h](j)}(h ``member``h]j)}(hjh~h]hmember}(hjj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM1hjb~ubj2)}(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&]uh1hhj}~hM1hj~~ubah}(h]h ]h"]h$]h&]uh1j1hjb~ubeh}(h]h ]h"]h$]h&]uh1jhj}~hM1hj}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:412: ./include/linux/rculist.hhM3hj}ubh)}(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 }(hj~hhhNhNubjh)}(h*and*h]hand}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jghj~ubh in the list.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM2hj}ubh)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM9hj}ubeh}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMCubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMCubj{)}(h hlist_del_rcuh]j)}(h hlist_del_rcuh]h hlist_del_rcu}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMCubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf )}jY j,sbc.hlist_del_rcuasbuh1hhjBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMCubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jhjhMChj~hhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMChjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:412: ./include/linux/rculist.hhMGhjubj )}(hhh]j)}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hj h]hstruct hlist_node *n}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMDhjubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjDh]hNote}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMFhjubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMFhjubh)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJhjubh)}(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().}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMMhjubeh}(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:412: ./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&]uh1jhjĀubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM\ubj)}(h0(struct hlist_node *old, struct hlist_node *new)h](j)}(hstruct hlist_node *oldh](j)}(hjh]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 jʀsbc.hlist_replace_rcuasbuh1hhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj܀ubj)}(hstruct hlist_node *newh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jc.hlist_replace_rcuasbuh1hhjRubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(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)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjׁhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM\hjԁhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:412: ./include/linux/rculist.hhM`hjubj )}(hhh](j)}(h6``struct hlist_node *old`` the element to be replaced h](j)}(h``struct hlist_node *old``h]j)}(hjh]hstruct hlist_node *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM]hjubj2)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM]hj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hM]hjubj)}(h5``struct hlist_node *new`` the new element to insert h](j)}(h``struct hlist_node *new``h]j)}(hjQh]hstruct hlist_node *new}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM^hjKubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM`hjubh)}(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:412: ./include/linux/rculist.hhM_hjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMrubj{)}(hhlists_swap_heads_rcuh]j)}(hhlists_swap_heads_rcuh]hhlists_swap_heads_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMrubj)}(h3(struct hlist_head *left, struct hlist_head *right)h](j)}(hstruct hlist_head *lefth](j)}(hjh]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 hlist_headh]h hlist_head}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlists_swap_heads_rcuasbuh1hhj.ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hlefth]hleft}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct hlist_head *righth](j)}(hjh]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&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjămodnameN classnameNj] j` )}jc ]jlc.hlists_swap_heads_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrighth]hright}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMrubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMrhjhhubj)}(hhh]h)}(h'swap the lists the hlist heads point toh]h'swap the lists the hlist heads point to}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMrhj"hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMrubeh}(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)}(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:412: ./include/linux/rculist.hhMvhjAubj )}(hhh](j)}(h7``struct hlist_head *left`` The hlist head on the left h](j)}(h``struct hlist_head *left``h]j)}(hjfh]hstruct hlist_head *left}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMshj`ubj2)}(hhh]h)}(hThe hlist head on the lefth]hThe hlist head on the left}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMshj|ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMshj]ubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMthjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMthj]ubeh}(h]h ]h"]h$]h&]uh1j hjAubh)}(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:412: ./include/linux/rculist.hhMvhjAubj )}(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 [}(hjhhhNhNubj)}(h**left**h]hleft}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ][node1 ... ] and}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMuhjubj2)}(hhh]h)}(h[**right** ][node2 ... ]h](h[}(hjhhhNhNubj)}(h **right**h]hright}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ][node2 ... ]}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMvhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(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 [}(hjLhhhNhNubj)}(h**left**h]hleft}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh ][node2 ... ]}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMwhjHubj2)}(hhh]h)}(h[**right** ][node1 ... ]h](h[}(hjphhhNhNubj)}(h **right**h]hright}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh ][node1 ... ]}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMxhjmubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjlhMwhjubeh}(h]h ]h"]h$]h&]uh1j hjAubeh}(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}(hjÅhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj2)}(h h]h }(hj҅hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjхhMubj{)}(hhlist_add_head_rcuh]j)}(hhlist_add_head_rcuh]hhlist_add_head_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjхhMubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(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 reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_add_head_rcuasbuh1hhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_head *hh](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(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 ]j:c.hlist_add_head_rcuasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjQh]hh}(hjȆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(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]h ]h"]h$]h&]uh1jhjhhhjхhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:412: ./include/linux/rculist.hhMhjubj )}(hhh](j)}(h>``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hj#h]hstruct hlist_node *n}(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:412: ./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.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjVubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjubh)}(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:412: ./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. 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:412: ./include/linux/rculist.hhMhjubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hhlist_add_tail_rcuh]j)}(hhlist_add_tail_rcuh]hhlist_add_tail_rcu}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_add_tail_rcuasbuh1hhj$ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct hlist_head *hh](j)}(hjh]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 ]jbc.hlist_add_tail_rcuasbuh1hhjubj2)}(h h]h }(hjՈhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjQh]hh}(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]jއah ](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)}(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:412: ./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)}(hjKh]hstruct hlist_node *n}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjEubj2)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(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:412: ./include/linux/rculist.hhMhj~ubj2)}(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&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubeh}(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:412: ./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.}(hjՉhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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:412: ./include/linux/rculist.hhMhj&ubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj!hMubj{)}(hhlist_add_before_rcuh]j)}(hhlist_add_before_rcuh]hhlist_add_before_rcu}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj!hMubj)}(h/(struct hlist_node *n, struct hlist_node *next)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jf )}jY j6sbc.hlist_add_before_rcuasbuh1hhjLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hstruct hlist_node *nexth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjΊhhhNhNubah}(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 reftargetjmodnameN classnameNj] j` )}jc ]jc.hlist_add_before_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnexth]hnext}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(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]h ]h"]h$]h&]uh1jhjhhhj!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhjhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOubj )}(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)}(hjth]hstruct hlist_node *n}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjnubj2)}(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&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubj)}(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:412: ./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.}(hjƋhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj‹hMhjËubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj‹hMhjkubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOubeh}(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&]uh1jhj8hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8hhhjJhMubj{)}(hhlist_add_behind_rcuh]j)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhjJhMubj)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubh)}(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 j_sbc.hlist_add_behind_rcuasbuh1hhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjŌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hjh]hn}(hjҌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(hstruct hlist_node *prevh](j)}(hjh]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 reftargetj modnameN classnameNj] j` )}jc ]jc.hlist_add_behind_rcuasbuh1hhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprevh]hprev}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhjJhMhj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1jhhhjhNhNubj)}(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)}(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:412: ./include/linux/rculist.hhMhjxubj )}(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:412: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hO``struct hlist_node *prev`` the existing element to add the new element after. h](j)}(h``struct hlist_node *prev``h]j)}(hj֍h]hstruct hlist_node *prev}(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:412: ./include/linux/rculist.hhMhjЍubj2)}(hhh]h)}(h2the existing element to add the new element after.h]h2the existing element to add the new element after.}(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 hjxubh)}(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:412: ./include/linux/rculist.hhMhjxubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjxubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjxubeh}(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)}(hj_h]hhlist_for_each_entry_rcu}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj|hMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhj|hMhjZhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjZhhhj|hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h9``hlist_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjh]h5hlist_for_each_entry_rcu (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:412: ./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:412: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjÎhMhjhhubj)}(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)}(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:412: ./include/linux/rculist.hhMhjʎ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:412: ./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:412: ./include/linux/rculist.hhMhj"ubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjah]hmember}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj[ubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. 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:412: ./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.}(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:412: ./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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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)}(hjh]hhlist_for_each_entry_srcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM!ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hM!ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj1hM!hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj1hM!ubeh}(h]h ](jmacroeh"]h$]h&]jjjjJjjJjjjuh1jhhhjhNhNubh)}(h7``hlist_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hjPh]h3hlist_for_each_entry_srcu (pos, head, member, cond)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM!hjfubah}(h]h ]h"]h$]h&]uh1jhjxhM!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)}(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:412: ./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:412: ./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)}(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:412: ./include/linux/rculist.hhM#hjאubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1j1hjאubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjubj)}(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:412: ./include/linux/rculist.hhM$hjubj2)}(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+hM$hj,ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj+hM$hjubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hjOh]hcond}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM%hjIubj2)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM%hjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM%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:412: ./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:412: ./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}(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:412: ./include/linux/rculist.hhM6ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjǑhhhjhM6ubah}(h]j‘ah ](jjeh"]h$]h&]jj)jhuh1jhjhM6hjđhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjđhhhjhM6ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h8``hlist_for_each_entry_rcu_notrace (pos, head, member)``h]j)}(hjh]h4hlist_for_each_entry_rcu_notrace (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:412: ./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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM6hjubah}(h]h ]h"]h$]h&]uh1jhj-hM6hjhhubj)}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM:hj4ubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjYh]hpos}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM7hjSubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM7hjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM7hjPubj)}(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:412: ./include/linux/rculist.hhM8hjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjPubj)}(h9``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:412: ./include/linux/rculist.hhM9hjŒ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&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1j1hjŒubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjPubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM;hj4ubh)}(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:412: ./include/linux/rculist.hhM:hj4ubh)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM>hj4ubeh}(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)}(hjTh]hhlist_for_each_entry_rcu_bh}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjqhMJubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjqhMJhjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjqhMJubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h3``hlist_for_each_entry_rcu_bh (pos, head, member)``h]j)}(hjh]h/hlist_for_each_entry_rcu_bh (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:412: ./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:412: ./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)}(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:412: ./include/linux/rculist.hhMNhjubj )}(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:412: ./include/linux/rculist.hhMKhjޓ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&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1j1hjޓubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjۓubj)}(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:412: ./include/linux/rculist.hhMLhjubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMLhj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hMLhjۓubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjVh]hmember}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMMhjPubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMMhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMMhjۓ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:412: ./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:412: ./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)}(hjДh]h!hlist_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:412: ./include/linux/rculist.hhM[ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjΔhhhjhM[ubah}(h]jɔah ](jjeh"]h$]h&]jj)jhuh1jhjhM[hj˔hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj˔hhhjhM[ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h3``hlist_for_each_entry_continue_rcu (pos, member)``h]j)}(hj h]h/hlist_for_each_entry_continue_rcu (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM[hj"ubah}(h]h ]h"]h$]h&]uh1jhj4hM[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)}(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:412: ./include/linux/rculist.hhM_hj;ubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj`h]hpos}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM\hjZubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM\hjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM\hjWubj)}(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:412: ./include/linux/rculist.hhM^hjubj2)}(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:412: ./include/linux/rculist.hhM]hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjWubeh}(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)}(hjh]h$hlist_for_each_entry_continue_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:412: ./include/linux/rculist.hhMgubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMghjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMgubeh}(h]h ](jmacroeh"]h$]h&]jjjj#jj#jjjuh1jhhhjhNhNubh)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j)}(hj)h]h2hlist_for_each_entry_continue_rcu_bh (pos, 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:412: ./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}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMghj?ubah}(h]h ]h"]h$]h&]uh1jhjQhMghjhhubj)}(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)}(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:412: ./include/linux/rculist.hhMkhjXubj )}(hhh](j)}(h,``pos`` the type * 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhhjwubj2)}(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&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjtubj)}(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:412: ./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.}(hjϖhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMihj̖ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj˖hMjhjtubeh}(h]h ]h"]h$]h&]uh1j hjXubeh}(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)}(hj h]hhlist_for_each_entry_from_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:412: ./include/linux/rculist.hhMsubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMsubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj'hMshjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj'hMsubeh}(h]h ](jmacroeh"]h$]h&]jjjj@jj@jjjuh1jhhhjhNhNubh)}(h/``hlist_for_each_entry_from_rcu (pos, member)``h]j)}(hjFh]h+hlist_for_each_entry_from_rcu (pos, member)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./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}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMshj\ubah}(h]h ]h"]h$]h&]uh1jhjnhMshjhhubj)}(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)}(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:412: ./include/linux/rculist.hhMwhjuubj )}(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:412: ./include/linux/rculist.hhMthjubj2)}(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&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubj)}(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:412: ./include/linux/rculist.hhMvhj͗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:412: ./include/linux/rculist.hhMuhjubah}(h]h ]h"]h$]h&]uh1j1hj͗ubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubeh}(h]h ]h"]h$]h&]uh1j hjuubeh}(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}(hj-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)hhhj;hKubj{)}(hhlist_nulls_del_init_rcuh]j)}(hhlist_nulls_del_init_rcuh]hhlist_nulls_del_init_rcu}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj;hKubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(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 jPsbc.hlist_nulls_del_init_rcuasbuh1hhjfubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hjh]hn}(hjØhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubah}(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)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj )}(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)}(hj-h]hstruct hlist_nulls_node *n}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj'ubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhj$ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjhh]hNote}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(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:414: ./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:414: ./include/linux/rculist_nulls.hhKhjubeh}(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)}(hjřh]hhlist_nulls_first_rcu}(hjϙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˙ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjǙhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjÙhhhjhK*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 ``hlist_nulls_first_rcu (head)``h]j)}(hjh]hhlist_nulls_first_rcu (head)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK*hjubah}(h]h ]h"]h$]h&]uh1jhj)hK*hjhhubj)}(h0**Parameters** ``head`` the head of the list.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK.hj0ubj )}(hhh]j)}(h``head`` the head of the list.h](j)}(h``head``h]j)}(hjUh]hhead}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK0hjOubj2)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK+hjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhK0hjLubah}(h]h ]h"]h$]h&]uh1j hj0ubeh}(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:414: ./include/linux/rculist_nulls.hhK1ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjƚhK1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjƚhK1hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjƚhK1ubeh}(h]h ](jmacroeh"]h$]h&]jjjjߚjjߚjjjuh1jhhhjhNhNubh)}(h``hlist_nulls_next_rcu (node)``h]j)}(hjh]hhlist_nulls_next_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:414: ./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 }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK1hjubah}(h]h ]h"]h$]h&]uh1jhjhK1hjhhubj)}(h/**Parameters** ``node`` element of the 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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK5hj&ubj )}(hhh]j)}(h``node`` element of the list.h](j)}(h``node``h]j)}(hjKh]hnode}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK7hjEubj2)}(hhh]h)}(helement of the list.h]helement of the list.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK2hjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hK7hjBubah}(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_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:414: ./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&]jjjj՛jj՛jjjuh1jhhhjhNhNubh)}(h ``hlist_nulls_pprev_rcu (node)``h]j)}(hjۛh]hhlist_nulls_pprev_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:414: ./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 }(hjhhhNhNubj)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK8hjubah}(h]h ]h"]h$]h&]uh1jhjhK8hjhhubj)}(h/**Parameters** ``node`` element of the 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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj;ubj2)}(hhh]h)}(helement of the list.h]helement of the list.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK9hjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhK>hj8ubah}(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_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:414: ./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)}(hjh]hstruct}(hj؜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԜubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjԜubhd)}(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_del_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)}(hjh]hn}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԜubeh}(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)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK?hjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhjhNhNubj)}(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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKChjvubj )}(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:414: ./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 hjvubh)}(h**Note**h]j)}(hj֝h]hNote}(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:414: ./include/linux/rculist_nulls.hhKBhjvubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKBhjvubh)}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKFhjvubh)}(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().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKIhjvubeh}(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}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKXubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhjGhKXubj{)}(hhlist_nulls_add_head_rcuh]j)}(hhlist_nulls_add_head_rcuh]hhlist_nulls_add_head_rcu}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhjGhKXubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubh)}(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 j\sbc.hlist_nulls_add_head_rcuasbuh1hhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hjh]h*}(hjžhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hjh]hn}(hjϞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct hlist_nulls_head *hh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hhlist_nulls_headh]hhlist_nulls_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.hlist_nulls_add_head_rcuasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjQh]hh}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhKXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhKXubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jhjGhKXhj.hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj.hhhjGhKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhjhNhNubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK\hjtubj )}(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:414: ./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)}(hjҟh]hstruct hlist_nulls_head *h}(hjԟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjПubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKZhj̟ubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1j1hj̟ubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubeh}(h]h ]h"]h$]h&]uh1j hjtubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK\hjtubh)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK\hjtubh)}(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().}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK_hjtubeh}(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}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKwubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhjohKwubj{)}(hhlist_nulls_add_tail_rcuh]j)}(hhlist_nulls_add_tail_rcuh]hhlist_nulls_add_tail_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhjohKwubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hjh]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 }(hjܠhhhNhNubah}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hhlist_nulls_headh]hhlist_nulls_head}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/modnameN classnameNj] j` )}jc ]jؠc.hlist_nulls_add_tail_rcuasbuh1hhj ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjQh]hh}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohKwubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjohKwhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjohKwubeh}(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:414: ./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}(hjáhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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.}(hjڡhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj֡hKxhjסubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj֡hKxhjubj)}(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:414: ./include/linux/rculist_nulls.hhKyhjubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKyhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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().}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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:414: ./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)}(hjh]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)}(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_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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¢ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_node *newh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jc.hlist_nulls_replace_rcuasbuh1hhj4ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(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)}(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:414: ./include/linux/rculist_nulls.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѣjjѣjjjuh1jhhhjhNhNubj)}(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)}(hjۣh]h Parameters}(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:414: ./include/linux/rculist_nulls.hhKhjգubj )}(hhh](j)}(h<``struct hlist_nulls_node *old`` the element to be replaced h](j)}(h ``struct hlist_nulls_node *old``h]j)}(hjh]hstruct hlist_nulls_node *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.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)}(h;``struct hlist_nulls_node *new`` the new element to insert h](j)}(h ``struct hlist_nulls_node *new``h]j)}(hj3h]hstruct hlist_nulls_node *new}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj-ubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjIubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKhjubeh}(h]h ]h"]h$]h&]uh1j hjգubh)}(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:414: ./include/linux/rculist_nulls.hhKhjգubh)}(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:414: ./include/linux/rculist_nulls.hhKhjգubh)}(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:414: ./include/linux/rculist_nulls.hhKhjգubeh}(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}(hj¤hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj2)}(h h]h }(hjѤhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjФhKubj{)}(hhlist_nulls_replace_init_rcuh]j)}(hhlist_nulls_replace_init_rcuh]hhlist_nulls_replace_init_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߤubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjФhKubj)}(h<(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j)}(hstruct hlist_nulls_node *oldh](j)}(hjh]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_nulls_replace_init_rcuasbuh1hhjubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_node *newh](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(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 ]j9c.hlist_nulls_replace_init_rcuasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hnewh]hnew}(hjȥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjФhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjФhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjФhKhjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjФhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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)}(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:414: ./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)}(hj3h]hstruct hlist_nulls_node *old}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj-ubj2)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjIubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKhj*ubj)}(h;``struct hlist_nulls_node *new`` the new element to insert h](j)}(h ``struct hlist_nulls_node *new``h]j)}(hjlh]hstruct hlist_nulls_node *new}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjfubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(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:414: ./include/linux/rculist_nulls.hhKhjubh)}(h**Note**h]j)}(hjΦh]hNote}(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:414: ./include/linux/rculist_nulls.hhKhjubh)}(h**old** must be hashed.h](j)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be hashed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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_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)}(hj*h]hhlist_nulls_for_each_entry_rcu}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhjGhKubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jhjGhKhj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhjGhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1jhhhjhNhNubh)}(h<``hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)``h]j)}(hjfh]h8hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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:414: ./include/linux/rculist_nulls.hhKhj|ubah}(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:414: ./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:414: ./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.}(hjӧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϧhKhjЧubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjϧhKhjubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` 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&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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)}(hjh]hstruct hlist_nulls_node}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjhlist_nulls_nodeuh1hhjhKhj ubh to use as a loop cursor.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjOh]hhead}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjIubj2)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjubj)}(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:414: ./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)}(hjèh]h Description}(hjŨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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}(hj٨hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./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)}(hjh]hhlist_nulls_for_each_entry_safe}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.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&]jjjj8jj8jjjuh1jhhhjhNhNubh)}(h=``hlist_nulls_for_each_entry_safe (tpos, pos, head, member)``h]j)}(hj>h]h9hlist_nulls_for_each_entry_safe (tpos, pos, head, member)}(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:414: ./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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjTubah}(h]h ]h"]h$]h&]uh1jhjfhKhjhhubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjmubj )}(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:414: ./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}(hjͩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɩubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjũubj2)}(hhh]h)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hjhhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hjh]hstruct hlist_nulls_node}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj3< refdomainjreftypetype refexplicitrefwarnj] jjhlist_nulls_nodeuh1hhjhKhjubh to use as a loop cursor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjũubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hj'h]hhead}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj!ubj2)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(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>``member`` the name of the hlist_nulls_node within the struct.h](j)}(h ``member``h]j)}(hj`h]hmember}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjZubj2)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjubeh}(h]h ]h"]h$]h&]uh1j hjmubeh}(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:416: ./include/linux/rcu_sync.hhKubj2)}(h h]h }(hjȪhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjǪhKubj{)}(hrcu_sync_is_idleh]j)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hjڪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֪ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjǪhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]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 jܪsbc.rcu_sync_is_idleasbuh1hhjubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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-Are readers permitted to use their fastpaths?h]h-Are readers permitted to use their fastpaths?}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjǪhKubeh}(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:416: ./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:416: ./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}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./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&]uh1jhj6hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6hhhjHhKubj{)}(h rcu_sync_inith]j)}(h rcu_sync_inith]h rcu_sync_init}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhjHhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(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 j]sbc.rcu_sync_initasbuh1hhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjìhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hrsph]hrsp}(hjЬhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhKubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhjHhKhj/hhubj)}(hhh]h)}(h Initialize an rcu_sync structureh]h Initialize an rcu_sync structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hZ**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](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:418: ./kernel/rcu/sync.chKhjubj )}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj5ubj2)}(hhh]h)}(h/Pointer to rcu_sync structure to be initializedh]h/Pointer to rcu_sync structure to be initialized}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhj2ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(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:418: ./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)}(hjh]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_sync_funcasbuh1hhjέ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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjέubeh}(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}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK#hjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjhNhNubj)}(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)}(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:418: ./kernel/rcu/sync.chK'hjqubj )}(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:418: ./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 hjqubh)}(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:418: ./kernel/rcu/sync.chK&hjqubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK%hjqubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK)hjqubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK,hjqubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK0hjqubeh}(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}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK[ubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhjQhK[ubj{)}(hrcu_sync_enterh]j)}(hrcu_sync_enterh]hrcu_sync_enter}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhjQhK[ubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubh)}(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 jfsbc.rcu_sync_enterasbuh1hhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hj̯hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hrsph]hrsp}(hjٯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhK[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhK[ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1jhjQhK[hj8hhubj)}(hhh]h)}(hForce readers onto slowpathh]hForce readers onto slowpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK[hjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhK[ubeh}(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 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)}(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:418: ./kernel/rcu/sync.chK_hjubj )}(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)}(hjDh]hstruct rcu_sync *rsp}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK\hj>ubj2)}(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&]uh1hhjYhK\hjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhK\hj;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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK^hjubh)}(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:418: ./kernel/rcu/sync.chK]hjubh)}(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:418: ./kernel/rcu/sync.chKchjubeh}(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}(hjӰhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjϰhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjϰhhhjhKubj{)}(h rcu_sync_exith]j)}(h rcu_sync_exith]h rcu_sync_exit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjϰhhhjhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_sync_exitasbuh1hhj ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrsph]hrsp}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(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)}(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:418: ./kernel/rcu/sync.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjȰhhhjhKubeh}(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:418: ./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)}(hjԱh]hstruct rcu_sync *rsp}(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:418: ./kernel/rcu/sync.chKhjαubj2)}(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&]uh1j1hjαubeh}(h]h ]h"]h$]h&]uh1jhjhKhj˱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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./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}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhhhjbhKubj{)}(h rcu_sync_dtorh]j)}(h rcu_sync_dtorh]h rcu_sync_dtor}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjbhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]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 jwsbc.rcu_sync_dtorasbuh1hhjubj2)}(h h]h }(hjϲhhhNhNubah}(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&]jjuh1jhjPhhhjbhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhjbhKhjIhhubj)}(hhh]h)}(hClean up an rcu_sync structureh]hClean up an rcu_sync structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhjhNhNubj)}(hY**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj0ubj )}(hhh]j)}(hG``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](j)}(h``struct rcu_sync *rsp``h]j)}(hjUh]hstruct rcu_sync *rsp}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjOubj2)}(hhh]h)}(h.Pointer to rcu_sync structure to be cleaned uph]h.Pointer to rcu_sync structure to be cleaned up}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhjLubah}(h]h ]h"]h$]h&]uh1j hj0ubeh}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrcu_tasks_percpuh]j)}(hjh]hrcu_tasks_percpu}(hjϳhhhNhNubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj ubj7C)}(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; };}hj.sbah}(h]h ]h"]h$]h&]jjuh1j6ChW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj ubh)}(h **Members**h]j)}(hj?h]hMembers}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK/hj ubj )}(hhh](j)}(h``cblist`` Callback list. h](j)}(h ``cblist``h]j)}(hj^h]hcblist}(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:420: ./kernel/rcu/tasks.hhKhjXubj2)}(hhh]h)}(hCallback list.h]hCallback list.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubj)}(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:420: ./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&]uh1jhjhKhjUubj)}(h6``rtp_jiffies`` Jiffies counter value for statistics. h](j)}(h``rtp_jiffies``h]j)}(hjдh]h rtp_jiffies}(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:420: ./kernel/rcu/tasks.hhKhjʴubj2)}(hhh]h)}(h%Jiffies counter value for statistics.h]h%Jiffies counter value for statistics.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjʴubeh}(h]h ]h"]h$]h&]uh1jhjhKhjUubj)}(h8``rtp_n_lock_retries`` Rough lock-contention statistic. h](j)}(h``rtp_n_lock_retries``h]j)}(hj h]hrtp_n_lock_retries}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj2)}(hhh]h)}(h Rough lock-contention statistic.h]h Rough lock-contention statistic.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjUubj)}(h,``lazy_timer`` Timer to unlazify callbacks. h](j)}(h``lazy_timer``h]j)}(hjBh]h lazy_timer}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj<ubj2)}(hhh]h)}(hTimer to unlazify callbacks.h]hTimer to unlazify callbacks.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhjUubj)}(h;``urgent_gp`` Number of additional non-lazy grace periods. h](j)}(h ``urgent_gp``h]j)}(hj{h]h urgent_gp}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjuubj2)}(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&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhKhjUubj)}(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:420: ./kernel/rcu/tasks.hhK hjubj2)}(hhh]h)}(h"Work queue for invoking callbacks.h]h"Work queue for invoking callbacks.}(hj͵hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɵhK hjʵubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjɵhK hjUubj)}(h6``rtp_irq_work`` IRQ work queue for deferred wakeups. h](j)}(h``rtp_irq_work``h]j)}(hjh]h rtp_irq_work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK!hjubj2)}(hhh]h)}(h$IRQ work queue for deferred wakeups.h]h$IRQ work queue for deferred wakeups.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK!hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK!hjUubj)}(h7``barrier_q_head`` RCU callback for barrier operation. h](j)}(h``barrier_q_head``h]j)}(hj&h]hbarrier_q_head}(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:420: ./kernel/rcu/tasks.hhK"hj ubj2)}(hhh]h)}(h#RCU callback for barrier operation.h]h#RCU callback for barrier operation.}(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"hjUubj)}(h5``rtp_blkd_tasks`` List of tasks blocked as readers. h](j)}(h``rtp_blkd_tasks``h]j)}(hj_h]hrtp_blkd_tasks}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK#hjYubj2)}(hhh]h)}(h!List of tasks blocked as readers.h]h!List of tasks blocked as readers.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthK#hjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthK#hjUubj)}(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:420: ./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$hjUubj)}(h0``cpu`` CPU number corresponding to this entry. h](j)}(h``cpu``h]j)}(hjѶh]hcpu}(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:420: ./kernel/rcu/tasks.hhK%hj˶ubj2)}(hhh]h)}(h'CPU number corresponding to this entry.h]h'CPU number corresponding to this entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK%hjubah}(h]h ]h"]h$]h&]uh1j1hj˶ubeh}(h]h ]h"]h$]h&]uh1jhjhK%hjUubj)}(hG``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. h](j)}(h ``index``h]j)}(hj h]hindex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK&hjubj2)}(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:420: ./kernel/rcu/tasks.hhK:hjܷhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK-ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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; unsigned long n_ipis_fails; 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. ``n_ipis_fails`` Number of IPI-send failures. ``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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK>hjubj7C)}(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; unsigned long n_ipis_fails; 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; unsigned long n_ipis_fails; 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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j6ChW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK@hjubh)}(h **Members**h]j)}(hj-h]hMembers}(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:420: ./kernel/rcu/tasks.hhKehjubj )}(hhh](j)}(hJ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. h](j)}(h ``cbs_wait``h]j)}(hjLh]hcbs_wait}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKRCU wait allowing a new callback to get kthread’s attention.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjubj2)}(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.}(hj׸hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӸhK>hjԸubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjӸhK>hjCubj)}(hF``gp_state`` Grace period's most recent state transition (debugging). h](j)}(h ``gp_state``h]j)}(hjh]hgp_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK@hjubj2)}(hhh]h)}(h8Grace period's most recent state transition (debugging).h]h:Grace period’s most recent state transition (debugging).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK@hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hK@hjCubj)}(hB``gp_sleep`` Per-grace-period sleep to prevent CPU-bound looping. h](j)}(h ``gp_sleep``h]j)}(hj0h]hgp_sleep}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKAhj*ubj2)}(hhh]h)}(h4Per-grace-period sleep to prevent CPU-bound looping.h]h4Per-grace-period sleep to prevent CPU-bound looping.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKAhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKAhjCubj)}(h/``init_fract`` Initial backoff sleep interval. h](j)}(h``init_fract``h]j)}(hjih]h init_fract}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKBhjcubj2)}(hhh]h)}(hInitial backoff sleep interval.h]hInitial backoff sleep interval.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKBhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKBhjCubj)}(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:420: ./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}(hjùhhhNhNubah}(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&]uh1jhjhKChjCubj)}(h8``gp_start`` Most recent grace-period start in jiffies. h](j)}(h ``gp_start``h]j)}(hjh]hgp_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKDhjubj2)}(hhh]h)}(h*Most recent grace-period start in jiffies.h]h*Most recent grace-period start in jiffies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKDhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKDhjCubj)}(hM``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. h](j)}(h``tasks_gp_seq``h]j)}(hj&h]h tasks_gp_seq}(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:420: ./kernel/rcu/tasks.hhKEhj ubj2)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKEhj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKEhjCubj)}(hB``n_ipis`` Number of IPIs sent to encourage grace periods to end. h](j)}(h ``n_ipis``h]j)}(hj_h]hn_ipis}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKFhjYubj2)}(hhh]h)}(h6Number of IPIs sent to encourage grace periods to end.h]h6Number of IPIs sent to encourage grace periods to end.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKFhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthKFhjCubj)}(h.``n_ipis_fails`` Number of IPI-send failures. h](j)}(h``n_ipis_fails``h]j)}(hjh]h n_ipis_fails}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKGhjubj2)}(hhh]h)}(hNumber of IPI-send failures.h]hNumber of IPI-send failures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjCubj)}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j)}(h``kthread_ptr``h]j)}(hjѺh]h kthread_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:420: ./kernel/rcu/tasks.hhKHhj˺ubj2)}(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&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1j1hj˺ubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjCubj)}(hB``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. h](j)}(h``lazy_jiffies``h]j)}(hj h]h lazy_jiffies}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKIhjubj2)}(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&]uh1hhjhKIhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjCubj)}(h6``gp_func`` This flavor's grace-period-wait function. h](j)}(h ``gp_func``h]j)}(hjCh]hgp_func}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK?hj=ubj2)}(hhh]h)}(h)This flavor's grace-period-wait function.h]h+This flavor’s grace-period-wait function.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhK?hjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhK?hjCubj)}(hC``pregp_func`` This flavor's pre-grace-period function (optional). h](j)}(h``pregp_func``h]j)}(hj|h]h pregp_func}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKJhjvubj2)}(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&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjCubj)}(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:420: ./kernel/rcu/tasks.hhKKhjubj2)}(hhh]h)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hjλhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʻhKKhj˻ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjʻhKKhjCubj)}(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:420: ./kernel/rcu/tasks.hhKLhjubj2)}(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&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjCubj)}(hG``holdouts_func`` This flavor's holdout-list scan function (optional). h](j)}(h``holdouts_func``h]j)}(hj'h]h holdouts_func}(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:420: ./kernel/rcu/tasks.hhKMhj!ubj2)}(hhh]h)}(h4This flavor's holdout-list scan function (optional).h]h6This flavor’s holdout-list scan function (optional).}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKMhj=ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKMhjCubj)}(hE``postgp_func`` This flavor's post-grace-period function (optional). h](j)}(h``postgp_func``h]j)}(hj`h]h postgp_func}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKNhjZubj2)}(hhh]h)}(h4This flavor's post-grace-period function (optional).h]h6This flavor’s post-grace-period function (optional).}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKNhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKNhjCubj)}(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:420: ./kernel/rcu/tasks.hhKOhjubj2)}(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&]uh1hhjhKOhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjCubj)}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j)}(h``wait_state``h]j)}(hjҼh]h wait_state}(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:420: ./kernel/rcu/tasks.hhKPhj̼ubj2)}(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&]uh1hhjhKPhjubah}(h]h ]h"]h$]h&]uh1j1hj̼ubeh}(h]h ]h"]h$]h&]uh1jhjhKPhjCubj)}(h5``rtpcpu`` This flavor's rcu_tasks_percpu structure. h](j)}(h ``rtpcpu``h]j)}(hj h]hrtpcpu}(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:420: ./kernel/rcu/tasks.hhKQhjubj2)}(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 hKQhj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKQhjCubj)}(h^``rtpcp_array`` Array of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask. h](j)}(h``rtpcp_array``h]j)}(hjDh]h rtpcp_array}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKRhj>ubj2)}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKRhjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKRhjCubj)}(hO``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. h](j)}(h``percpu_enqueue_shift``h]j)}(hj}h]hpercpu_enqueue_shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKShjwubj2)}(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&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhKShjCubj)}(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:420: ./kernel/rcu/tasks.hhKThjubj2)}(hhh]h)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hjϽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˽hKThj̽ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj˽hKThjCubj)}(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:420: ./kernel/rcu/tasks.hhKUhjubj2)}(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&]uh1hhjhKUhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKUhjCubj)}(hZ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. h](j)}(h``percpu_dequeue_gpseq``h]j)}(hj(h]hpercpu_dequeue_gpseq}(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:420: ./kernel/rcu/tasks.hhKVhj"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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKVhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKVhjCubj)}(h2``barrier_q_mutex`` Serialize barrier operations. h](j)}(h``barrier_q_mutex``h]j)}(hjah]hbarrier_q_mutex}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKWhj[ubj2)}(hhh]h)}(hSerialize barrier operations.h]hSerialize barrier operations.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKWhjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKWhjCubj)}(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:420: ./kernel/rcu/tasks.hhKXhjubj2)}(hhh]h)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKXhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKXhjCubj)}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j)}(h``barrier_q_completion``h]j)}(hjӾh]hbarrier_q_completion}(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:420: ./kernel/rcu/tasks.hhKYhj;ubj2)}(hhh]h)}(hBarrier wait/wakeup mechanism.h]hBarrier wait/wakeup mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjCubj)}(h:``barrier_q_seq`` Sequence number for barrier operations. h](j)}(h``barrier_q_seq``h]j)}(hj h]h barrier_q_seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKZhjubj2)}(hhh]h)}(h'Sequence number for barrier operations.h]h'Sequence number for barrier operations.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKZhj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hKZhjCubj)}(h:``barrier_q_start`` Most recent barrier start in jiffies. h](j)}(h``barrier_q_start``h]j)}(hjEh]hbarrier_q_start}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK[hj?ubj2)}(hhh]h)}(h%Most recent barrier start in jiffies.h]h%Most recent barrier start in jiffies.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhK[hj[ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhK[hjCubj)}(h%``name`` This flavor's textual name. h](j)}(h``name``h]j)}(hj~h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK\hjxubj2)}(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&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjCubj)}(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:420: ./kernel/rcu/tasks.hhK\hjubj2)}(hhh]h)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hjпhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK]hjͿubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj̿hK\hjCubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(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&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhMubj{)}(hcall_rcu_tasksh]j)}(hcall_rcu_tasksh]hcall_rcu_tasks}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hjh]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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY j4sbc.call_rcu_tasksasbuh1hhjJubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hrhph]hrhp}(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_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&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h3Queue an RCU for invocation task-based grace periodh]h3Queue an RCU for invocation task-based grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhjhNhNubj)}(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 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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj5ubj )}(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)}(hjZh]hstruct rcu_head *rhp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjTubj2)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(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:420: ./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&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1j hj5ubh)}(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:420: ./kernel/rcu/tasks.hhMhj5ubh)}(hXgThe callback function will be invoked some time after a full grace period elapses, in other words after all currently executing RCU 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]hXgThe callback function will be invoked some time after a full grace period elapses, in other words after all currently executing RCU 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:420: ./kernel/rcu/tasks.hhMhj5ubh)}(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:420: ./kernel/rcu/tasks.hhMhj5ubeh}(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&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj0hMubj{)}(hsynchronize_rcu_tasksh]j)}(hsynchronize_rcu_tasksh]hsynchronize_rcu_tasks}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj0hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj0hMhjhhubj)}(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:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hMubeh}(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:420: ./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:420: ./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)}(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:420: ./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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./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}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjvhMubj{)}(hrcu_barrier_tasksh]j)}(hrcu_barrier_tasksh]hrcu_barrier_tasks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjvhMubj)}(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&]jjuh1jhjdhhhjvhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhjvhMhj]hhubj)}(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:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhMubeh}(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:420: ./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:420: ./kernel/rcu/tasks.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%hKhjubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./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:420: ./kernel/rcu/tasks.hhMgubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMgubj{)}(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&]jjuh1jzhjhhhjhMgubj)}(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&]jjuh1jhjhhhjhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMghjhhubj)}(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:420: ./kernel/rcu/tasks.hhMghjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMgubeh}(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 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)}(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:420: ./kernel/rcu/tasks.hhMkhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj8h]hvoid}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj2ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubah}(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:420: ./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 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 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:420: ./kernel/rcu/tasks.hhMhhjubh)}(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:420: ./kernel/rcu/tasks.hhMohjubh)}(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:420: ./kernel/rcu/tasks.hhMthjubeh}(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:422: ./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&]noemphjjuh1jhj ubah}(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}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhjhNhNubj)}(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)}(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:422: ./kernel/rcu/tree_stall.hhKhjYubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj~h]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:422: ./kernel/rcu/tree_stall.hhKhjxubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubah}(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:422: ./kernel/rcu/tree_stall.hhKhjYubh)}(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:422: ./kernel/rcu/tree_stall.hhKhjYubh)}(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:422: ./kernel/rcu/tree_stall.hhKhjYubeh}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMlubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhMlubj{)}(h!rcu_stall_chain_notifier_registerh]j)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMlubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY j0sb#c.rcu_stall_chain_notifier_registerasbuh1hhjFubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMlhjhhubj)}(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:422: ./kernel/rcu/tree_stall.hhMlhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMlubeh}(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:422: ./kernel/rcu/tree_stall.hhMphjubj )}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hj h]hstruct notifier_block *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:422: ./kernel/rcu/tree_stall.hhMmhjubj2)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMmhj#ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj"hMmhjubah}(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:422: ./kernel/rcu/tree_stall.hhMohjubh)}(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 }(hj^hhhNhNubj)}(h **action**h]haction}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh passed to a notifier will be }(hj^hhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh or friends. The }(hj^hhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMnhjubh)}(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:422: ./kernel/rcu/tree_stall.hhMshjubeh}(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:422: ./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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjAmodnameN classnameNj] j` )}jc ]jf )}jY jsb%c.rcu_stall_chain_notifier_unregisterasbuh1hhjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjzhhhNhNubah}(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 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:422: ./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:422: ./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:422: ./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)}(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:422: ./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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjubh)}(h0Returns zero on success, ``-ENOENT`` on failure.h](hReturns zero on success, }(hjDhhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh on failure.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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&]uh1jhj ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhK&ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhK&hjzhhubj)}(hhh]h)}(h6mark beginning of RCU-trace read-side critical sectionh]h6mark beginning of RCU-trace read-side critical section}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK&hj8hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jhhhjhNhNubj)}(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)}(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:424: ./include/linux/rcupdate_trace.hhK*hjWubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj|h]hvoid}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjvubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubah}(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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjWubh)}(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:424: ./include/linux/rcupdate_trace.hhK'hjWubh)}(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:424: ./include/linux/rcupdate_trace.hhK.hjWubeh}(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}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKBubj{)}(hrcu_read_unlock_tasks_traceh]j)}(hrcu_read_unlock_tasks_traceh]hrcu_read_unlock_tasks_trace}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKBubj)}(h(struct srcu_ctr __percpu *scp)h]j)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jf )}jY j.sbc.rcu_read_unlock_tasks_traceasbuh1hhjDubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh__percpu}(hjDhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hscph]hscp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKBhjhhubj)}(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:424: ./include/linux/rcupdate_trace.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKBubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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)}(hjh]hstruct srcu_ctr __percpu *scp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKChjubj2)}(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:424: ./include/linux/rcupdate_trace.hhKUhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhjhNhNubj)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKYhj0ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjUh]hvoid}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjOubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhjLubah}(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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhj0ubh)}(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:424: ./include/linux/rcupdate_trace.hhKVhj0ubh)}(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:424: ./include/linux/rcupdate_trace.hhK]hj0ubeh}(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:424: ./include/linux/rcupdate_trace.hhKpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKpubj{)}(hrcu_read_unlock_traceh]j)}(hrcu_read_unlock_traceh]hrcu_read_unlock_trace}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKpubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKphjhhubj)}(hhh]h)}(h0mark end of RCU-trace read-side critical sectionh]h0mark end of RCU-trace read-side critical section}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKphjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhjhNhNubj)}(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)}(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:424: ./include/linux/rcupdate_trace.hhKthjgubj )}(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:424: ./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 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:424: ./include/linux/rcupdate_trace.hhKhjgubh)}(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:424: ./include/linux/rcupdate_trace.hhKqhjgubh)}(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:424: ./include/linux/rcupdate_trace.hhKuhjgubeh}(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}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj)hKubj{)}(hcall_rcu_tasks_traceh]j)}(hcall_rcu_tasks_traceh]hcall_rcu_tasks_trace}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj)hKubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hjh]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.call_rcu_tasks_traceasbuh1hhjTubj2)}(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&]noemphjjuh1jhjPubj)}(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&]noemphjjuh1jhjPubeh}(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.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:424: ./include/linux/rcupdate_trace.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhjhNhNubj)}(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)}(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:424: ./include/linux/rcupdate_trace.hhKhj?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)}(hjdh]hstruct rcu_head *rhp}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhj^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&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj[ubj)}(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:424: ./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&]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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhj?ubh)}(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:424: ./include/linux/rcupdate_trace.hhKhj?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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhj?ubeh}(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}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj:hKubj{)}(hsynchronize_rcu_tasks_traceh]j)}(hsynchronize_rcu_tasks_traceh]hsynchronize_rcu_tasks_trace}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj:hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhj(hhhj:hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj:hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj:hKhj!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:424: ./include/linux/rcupdate_trace.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hKubeh}(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:424: ./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:424: ./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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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:424: ./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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnhhhjhKubj{)}(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&]jjuh1jzhjnhhhjhKubj)}(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&]jjuh1jhjnhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjhKubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjghhubj)}(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:424: ./include/linux/rcupdate_trace.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhKubeh}(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:424: ./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:424: ./include/linux/rcupdate_trace.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKhj0ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj/hKhjubah}(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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./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:424: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:424: ./include/linux/rcupdate_trace.hhKhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjBh]hvoid}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhj<ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhj9ubah}(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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjubh)}(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:424: ./include/linux/rcupdate_trace.hhKhjubeh}(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:426: ./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:426: ./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:426: ./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)}(hj-h]h Parameters}(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:426: ./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)}(hjLh]h...}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK(hjFubj2)}(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}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahK(hjbubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjahK(hjCubah}(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:426: ./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:426: ./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:426: ./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:426: ./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:428: ./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}(hj hhhNhNubah}(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}(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.rcuref_initasbuh1hhj#ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hrefh]href}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cnth](j )}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hcnth]hcnt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(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)}(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:428: ./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)}(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:428: ./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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubj)}(h>``unsigned int cnt`` The initial reference count typically '1'h](j)}(h``unsigned int cnt``h]j)}(hjZh]hunsigned int cnt}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjTubj2)}(hhh]h)}(h)The initial reference count typically '1'h]h-The initial reference count typically ‘1’}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjpubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjohKhjubeh}(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:428: ./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&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.rcuref_readasbuh1hhj ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrefh]href}(hjKhhhNhNubah}(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)}(h4Read the number of held reference counts of a rcurefh]h4Read the number of held reference counts of a rcuref}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjrhhubah}(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:428: ./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:428: ./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:428: ./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:428: ./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}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2hhhjChK0ubj{)}(hrcuref_is_deadh]j)}(hrcuref_is_deadh]hrcuref_is_dead}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhjChK0ubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.rcuref_is_deadasbuh1hhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhjChK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjChK0ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jhjChK0hj+hhubj)}(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:428: ./include/linux/rcuref.hhK0hjhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjChK0ubeh}(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:428: ./include/linux/rcuref.hhK4hjubj )}(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:428: ./include/linux/rcuref.hhK1hjubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hK1hj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hK1hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./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:428: ./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}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKBhj<hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhjhNhNubj)}(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)}(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:428: ./include/linux/rcuref.hhKFhj[ubj )}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKChjzubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKChjwubah}(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:428: ./include/linux/rcuref.hhKEhj[ubh)}(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:428: ./include/linux/rcuref.hhKDhj[ubh)}(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:428: ./include/linux/rcuref.hhKFhj[ubj)}(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:428: ./include/linux/rcuref.hhKKhjubah}(h]h ]h"]h$]h&]uh1jhjhKKhj[ubh)}(h **Return**h]j)}(hj h]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:428: ./include/linux/rcuref.hhKMhj[ubh)}(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:428: ./include/linux/rcuref.hhKKhj[ubeh}(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}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKyubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhj\hKyubj{)}(hrcuref_put_rcusafeh]j)}(hrcuref_put_rcusafeh]hrcuref_put_rcusafe}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhj\hKyubj)}(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 jqsbc.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&]jjuh1jhjKhhhj\hKyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj\hKyubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhj\hKyhjDhhubj)}(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:428: ./include/linux/rcuref.hhKyhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKyhjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj\hKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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}(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:428: ./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)}(hjFh]h rcuref_t *ref}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKzhj@ubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKzhj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKzhj=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:428: ./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:428: ./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:428: ./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:428: ./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:428: ./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:428: ./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:428: ./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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj"hKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jf )}jY j7sb c.rcuref_putasbuh1hhjMubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hrefh]href}(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]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:428: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"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:428: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./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!hKhjubah}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubh)}(h Can be invoked from any context.h]h Can be invoked from any context.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./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:428: ./include/linux/rcuref.hhKhj{ubh)}(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:428: ./include/linux/rcuref.hhKhj{ubeh}(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)}(hebool same_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h]j)}(hdbool same_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK3ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK3ubj{)}(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&]jjuh1jzhjhhhjhK3ubj)}(h@(struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h](j)}(hstruct rcu_gp_oldstate *rgosp1h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb!c.same_state_synchronize_rcu_fullasbuh1hhjubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrgosp1h]hrgosp1}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rcu_gp_oldstate *rgosp2h](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(hhh]j)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j9!c.same_state_synchronize_rcu_fullasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hrgosp2h]hrgosp2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK3hjhhubj)}(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:430: ./include/linux/rcutree.hhK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp1`` First old-state value. ``struct rcu_gp_oldstate *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_oldstate** 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_oldstate** structure is opaque so how did such a situation come to pass in the first place?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:430: ./include/linux/rcutree.hhK7hjubj )}(hhh](j)}(h:``struct rcu_gp_oldstate *rgosp1`` First old-state value. h](j)}(h"``struct rcu_gp_oldstate *rgosp1``h]j)}(hj3h]hstruct rcu_gp_oldstate *rgosp1}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK4hj-ubj2)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhK4hjIubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhK4hj*ubj)}(h;``struct rcu_gp_oldstate *rgosp2`` Second old-state value. h](j)}(h"``struct rcu_gp_oldstate *rgosp2``h]j)}(hjlh]hstruct rcu_gp_oldstate *rgosp2}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK5hjfubj2)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjhK5hj*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:430: ./include/linux/rcutree.hhK7hjubh)}(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 }(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:430: ./include/linux/rcutree.hhK6hjubh)}(hXUNote that equality is judged on a bitwise basis, so that an **rcu_gp_oldstate** 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_oldstate** structure is opaque so how did such a situation come to pass in the first place?h](hesrefids}j1<](j <j]>esnameids}(j?j<jjj@`j=`jjj{jxj j j!hjhj>j1<jojoj_{j\{jjjsjpj7j7jjjjjjj j j4j 4j7j7jpjpjpjpjjjjjjjjjjjjjjjjjjjjj5*j2*jjj (j (j-*j**j2j2jFjCjjjjj/j/jjj7j4j/j,u nametypes}(j?jj@`jj{j j!hj>joj_{jjsj7jjjj j4j7jpjpjjjjjjjjjjj5*jj (j-*j2jFjjj/jj7j/uh}(j<hjhj=`hj jjjjjj j j j jxj}jjjjjajfjjjTjYj j j=$jB$j&j&j(j(jX+j]+j-j-jt0jy0j3j3j5j5j8j8j9j9j=j=jR@jW@jCjCjIjIjLjLjNjNjePjjPj RjRj TjTjGWjLWjYZj^Zj]j]jjC`j``je`j5bj:bjEgjJgjijijjjjjoj oj5qj:qjtjtjvjvjVyj[yj{j{j}j}jjjjjσjԃjjjj jjj(j-jjj2j7jjjj jjjjjjjjjnjsjjjejjj`jej̪jѪjijnjj jjj$j)jjjjjjjjj׾jܾjjjPjUjjj<jAjjj.j3jjjjjjj9j>jXj]jjj|6$jjj"jjjjjjjjjxjj jj0j5jHjMj>jCjUjZjJjOj?jDj4j9jFjKjXj]jjjoj{jjjjjjjjjjjjjjjjhj j j j~jjjjjj j%j j j"%j'%j'j'j6*j;*j,j,jJ/jO/j 3j%3j*<j <jg>j]>j1<j>j?j?j!Cj&CjFjFjJjJjMjMjQjQjQVjVVjXjXjT[jY[j^j^j\_ja_jpajuajdjdjoj$hjAhjFhjqjjvjjRmjWmj\{jojojojpjpjYrj^rjcsjhsjtjtjvjvjwjxjyjyjjb{j{j{jjjwj|jpjjjj(j-jjjgjljjjjjUjZjjjjj7j~jjjjjEjJjjƠj[j`jjjjj&j+jjĨj;j@jrjwjDjIjSjXjAjFj>jCj,j1jojtjjjjjjj>jCjjjjjjjjjTjYjj!jjj+j0jjjjjjjjjj j&j+jjjjjjjtjyjjjPjUjjjVj[jjj6j;jjjjjjjjjvj{jjj j%j*j/jCjHjMjRjWj\jjjjj jj9j>j4 j9 j9 j> jS jX jjj 4jj,j1jjjjj0j5jjjjjjjjj!j!j%j%j&j&j(j(jG*jL*j+j+j-j -j.j.j/j/j82j=2j7j4j/4j44j5j5jpj7jpj7j7j7j8j9j~:j:j=j>jG@jL@jBjCjFjFjIJjNJjMjMjPjPj)Rj.RjSTjXTj}VjVjDYjIYj[j[j]j]j`j!`jXbj]bjejejgjgjljlj;nj@njjpjjpjqjqj+rj0rjsjsjetjjtjujujwjwjwjwjxjxjyjyjzjzj{j{j|j|j}j}j~j~jjjjjjjjjjjjj/j4jjj׈j܈jbjgjjjj jXj]jjjjjMjRjؔjݔjjjBjGj*j/jjjj"jojtjjjޢjjijnjjjjjjاjjjjjjjjj)j.jδjӴjXj]jjj7j<jojtjFjKjпjտj+j0jjj@jEjjjjjijnjtjyjjj1j6j\jajjjjjj"jjjjjjjjjjjjjjj2*jjjjjjjj (jj"j'jjjBjGjpjujjj0j5jjjjjjjjjIjNj'j,jjjjj j jjj$j)jjjFjKjjjcjhjTjYj~!j!jm$jr$j**j(j,(j1(j2j8*jU*jZ*j+j+ju-jz-j/j/j1j1j4j 4j5j5j(7j-7j8j8jH:jM:j;j;jh=jm=j>j>j@j@jBjBjjFjoFj?HjDHjJjJjMjMjQjQjZSj_Sj&Uj+UjXjXj]j]jHajMajgdjldj!fj&fjgjgj%jj*jj;lj@ljnjnjEqjJqj#sj(sjtjtjvjvjyj yj{{j{j}j}jjjjjjjjjjjjƈj3j8j[j`jjjijnjmjrjjj\jajjjjj"j'j$j)j9j>jjjdjij)j.jjjjjjjajfjHjMjjjjjjjjjjjjjQjVjjjjjUjZjKjPjDjIj=jBj3j8jjj1j6jjjjj jj[j`jjjTjYjjjjj.j3jXj]jjj j jg jl j j jijnjjjjjijnjjjjjjjjj j j#j#jH%jM%j&j&j(j(j*j*j9,j>,jt.jy.j/j/j2j2j'5j,5jb7jg7j9j9j=;jB;jM>jR>j]AjbAjCjCj9Fj>FjGjGjIjIjKjKjNj"NjOjOjRjRjUjUjWjWjiYjnYj"[j'[j^j^jbjbjdjdjyfj~fjhjhjjjjjaljfljmjmjojoj/qj4qjEsjJsjmujrujPxjUxjJ|jO|j~j ~jjjjjjjjjhjmjjjjj9j>jxj}jjjNjSjɛjΛjjj-j2jգjڣj&j+jۨjj;j@jj#jjjjjzjj9j>jfjkjjjjjLjQjjj jj>jCjOjTjjjgjljjj!j&jjj'j,jjjxj}jjjjjEjJj;j@jjjjjjjjjjjgjljjjjjjj&j+jjj5j:j j j j jjjAjFjjjCjHjjjAjFjjjjjojjjjj j j!j!j#j#j$j$j%j&jf*jk*j-j-jH1jM1jCj2j3j3j5j5j48j98j^:jc:j;j;j6?j;?jCjCjEjEj-Gj2GjHjHj JjJjKjKjMjMj@OjEOjPjPj^TjcTjVjVjWjWj:Zj?Zjd\ji\j^j^jajajcjcjejejfjfjijijxkj}kjmj mjnjnjCpjHpj[sj`sjujujvjwj;yj@yj{j{j}j}j~j~jjIjfjkj jjjjjjjjڇj߇jTjYjqjvjj jKjPjfjkjjjܕjjjŗj\jajjjOjTjϝjԝjujzjjjޢjjݥjjzjj:j?jj jjĬjjjʲjϲjUjZjfjkjjƸjBjGjûjȻjj$j{jjjjjjjjjjjjijnjvj{jjjxj}jjj(j-jjjjjjjjjjj:j?jjjjjjjj#jjjjjjjojxj}jjj6j;jjj j j j j j jjj/jj<jAjjjjjjjjj j jR#jW#j{%j%j(j(jn*js*j',j,,j-j-jj/j{0j0jS2jX2j3j3j^5jc5j7j7j9j9j_<jd<j=j=j?j?jPAjUAjCjCjEjEjHjHjQJjVJjLjLjMNjRNjuOjzOjPjPj-Rj2RjSjSj[Uj`UjXjXj[j[j]j]j`j!`jbjbjejej}hjhjjjjj-mj2mj$pj)pjsj sjvjvjxjxj{j{j~j~jjjjjjjʈjψjijnjjjj jjjjjjj͕jҕjIjNjcjhjjjj#jjjjãjɥjΥjjjjj0j5jjj4jj,jj-j2j:j?jjj#j(jfjkjjjĶjɶjsjxj1j6jMjRj1j6jjjwj|jjjjj'j,jjjojjjjjj j%j*j/j4j9j>jRjWjjjjj3j8j[j`jjjjjjjWj\jjjMjRjjjMjRjjjjjj#j j%jfjkjjjcjhjtjyjjj4j9jjj jjjjjjjjjjjj:j?jjj4j9jzjjjjj jjjjjjjjjjj j j# j( jK jP j j j jjjj jjjjjjjj"j'jjj}jjjjjjmjrjh!jm!jc#jh#j@%jE%j&j&jo(jt(j^*jc*j,j,j.j.j1j1j3j3j4j4j'6j,6j^7jc7j8j8j`:je:j;j;ja=jf=j>j>jAjAj;Cj@CjHEjMEjFjFjHjHjJjJjLjLjMjMj5Oj:OjPjPjRjSjTjTj_VjdVjWjWjXjXjZjZj]j ]j^j^j`j`jes citation_refs} autofootnotes]j>aautofootnote_refs](j <j]>esymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jrKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.