%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]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&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKhubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKhubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKhubj )}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKhubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKhubh desc_name)}(hsimple_strtoullh]h desc_sig_name)}(hsimple_strtoullh]hsimple_strtoull}(hjnhhhNhNubah}(h]h ]nah"]h$]h&]uh1jlhjhubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jfhjhhhjhKhubhdesc_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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjubjm)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **endph](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hendph]hendp}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKhubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKhubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhjhKhhhhhubh 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&]uh1jhhhhhjhKhubeh}(h]h ](cfunctioneh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1hhhhhhNhNubh 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}(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.chKihjubh definition)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKihjubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjBh]h char **endp}(hjDhhhNhNubah}(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.chKjhj<ubj)}(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&]uh1hhjWhKjhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKjhjubj)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKkhjuubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKkhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKkhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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](hsimple_strtoul (C function)c.simple_strtoulhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKwubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKwubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKwubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKwubjg)}(hsimple_strtoulh]jm)}(hsimple_strtoulh]hsimple_strtoul}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKwubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(h char **endph](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hendph]hendp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hbaseh]hbase}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKwhjhhubj)}(hhh]h)}(h$convert a string to an unsigned longh]h$convert a string to an unsigned long}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKwhj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhhhNhNubj)}(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{hj~ubj)}(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.chKxhjubj)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chKyhjubj)}(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&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKyhjubj)}(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.chKzhjubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKzhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKzhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chK|hj~ubh)}(h7This function has caveats. Please use kstrtoul instead.h]h7This function has caveats. Please use kstrtoul instead.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chK{hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsimple_strtol (C function)c.simple_strtolhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h simple_strtolh]jm)}(h simple_strtolh]h simple_strtol}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **endph](j )}(hcharh]hchar}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hendph]hendp}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]jjjjjjjjjuh1hhhhhhNhNubj)}(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)}(hj!h]hconst char *cp}(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.chKhjubj)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjZh]h char **endp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjTubj)}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohKhjubj)}(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.chKhjubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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](hsimple_strtoll (C function)c.simple_strtollhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKubj)}(h h]h }(hj" hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj! hKubj )}(hlongh]hlong}(hj0 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhj! hKubj)}(h h]h }(hj> hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj! hKubjg)}(hsimple_strtollh]jm)}(hsimple_strtollh]hsimple_strtoll}(hjP hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj! hKubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjl hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh ubj)}(h h]h }(hjy hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjh ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh ubjm)}(hcph]hcp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubj)}(h char **endph](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hendph]hendp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj& hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj4 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjB hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hbaseh]hbase}(hjP hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj! hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj! hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj! hKhj hhubj)}(hhh]h)}(h&convert a string to a signed long longh]h&convert a string to a signed long long}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjw hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj! hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(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 ubj)}(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&]uh1jhj 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 ubj)}(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&]uh1jhj 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)}(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.chKhj' ubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB hKhjC ubah}(h]h ]h"]h$]h&]uh1jhj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh h]h Description}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf 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](hvsnprintf (C function) c.vsnprintfhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM ubjg)}(h vsnprintfh]jm)}(h vsnprintfh]h vsnprintf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj 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 ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbufh]hbuf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj/ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj, ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetj1 modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jJ ASTIdentifier)}jE j sb c.vsnprintfasbuh1hhj( ubj)}(h h]h }(hjW hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj( ubjm)}(hsizeh]hsize}(hje hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj( ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubjm)}(hfmt_strh]hfmt_str}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jS c.vsnprintfasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hargsh]hargs}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhj 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}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj1 hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjL jjL jjjuh1hhhhhhNhNubj)}(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)}(hjV h]h Parameters}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP ubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hju h]h char *buf}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjo ubj)}(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&]uh1jhjo ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjl 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 ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjl 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 ubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hjl ubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hj h]h va_list args}(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 hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM hjl ubeh}(h]h ]h"]h$]h&]uh1jhjP ubh)}(h**Description**h]j)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP 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:}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjP 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 hjP 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 hjP ubh)}(hF**Please update the documentation in both places when making changes**h]j)}(hjh]hBPlease update the documentation in both places when making changes}(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# hjP 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 }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubht as return value (not including the trailing ‘0’), use vscnprintf(). If the return is greater than or equal to }(hjhhhNhNubj)}(h**size**h]hsize}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$, the resulting string is truncated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM% hjP 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().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM- hjP ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvscnprintf (C function) c.vscnprintfhNtauh1hhhhhhNhNubh)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmhhhjhM ubjg)}(h vscnprintfh]jm)}(h vscnprintfh]h vscnprintf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhjhM ubj)}(h7(char *buf, size_t size, const char *fmt, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.vscnprintfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hcharh]hchar}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hfmth]hfmt}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.vscnprintfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhM ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjfhhubj)}(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&]uh1jhjfhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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)}(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 hj ubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj1h]h char *buf}(hj3hhhNhNubah}(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+ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhM hj(ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hjjh]h size_t size}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjdubj)}(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&]uh1jhjdubeh}(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 hjubj)}(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&]uh1jhjubeh}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj(ubeh}(h]h ]h"]h$]h&]uh1jhj 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 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 }(hj-hhhNhNubj)}(h**buf**h]hbuf}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh) not including the trailing ‘0’. If }(hj-hhhNhNubj)}(h**size**h]hsize}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh is == 0 the function returns 0.}(hj-hhhNhNubeh}(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().}(hj`hhhNhNubah}(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.}(hjohhhNhNubah}(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](hsnprintf (C function) c.snprintfhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsnprintfh]jm)}(hsnprintfh]hsnprintf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h.(char *buf, size_t size, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jsb c.snprintfasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(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)jhuh1hhjhM 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&]jjjjjjjjjuh1hhhhhhNhNubj)}(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)}(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 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}(hj1hhhNhNubah}(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)ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM hj&ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hjhh]h size_t size}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjbubj)}(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&]uh1hhj}hM hj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM 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 hjubj)}(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&]uh1jhjubeh}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj&ubeh}(h]h ]h"]h$]h&]uh1jhj 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 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}(hj3hhhNhNubah}(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 ubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjLhhhNhNubah}(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](hscnprintf (C function) c.scnprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(hubj)}(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&]uh1hhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hj}h]hconst char *fmt}(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 hjwubj)}(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&]uh1jhjwubeh}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) not including the trailing ‘0’. If }(hjhhhNhNubj)}(h**size**h]hsize}(hj!hhhNhNubah}(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](hvsprintf (C function) c.vsprintfhNtauh1hhhhhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhM ubjg)}(hvsprintfh]jm)}(hvsprintfh]hvsprintf}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhM ubj)}(h*(char *buf, const char *fmt, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jR )}jE j}sb c.vsprintfasbuh1hhj2ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubjm)}(hargsh]hargs}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhM ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhM hjOhhubj)}(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&]uh1jhjOhhhjhhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``const char *fmt`` The 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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjDh]h va_list args}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj>ubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(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 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](hsprintf (C function) c.sprintfhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsprintfh]jm)}(hsprintfh]hsprintf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h!(char *buf, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hbufh]hbuf}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(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)jhuh1hhjhM 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&]jjjjjjjjjuh1hhhhhhNhNubj)}(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)}(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)}(hj:h]h char *buf}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj4ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj1ubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjsh]hconst char *fmt}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjmubj)}(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&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubj)}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 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 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](hvbin_printf (C function) c.vbin_printfhNtauh1hhhhhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM6 ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhj[hM6 ubjg)}(h vbin_printfh]jm)}(h vbin_printfh]h vbin_printf}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhj[hM6 ubj)}(h>(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](j)}(h u32 *bin_bufh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jpsb c.vbin_printfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbin_bufh]hbin_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.vbin_printfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hcharh]hchar}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hfmt_strh]hfmt_str}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]jm)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.vbin_printfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhj[hM6 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hM6 ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hM6 hjBhhubj)}(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&]uh1jhjBhhhj[hM6 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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)}(hj h]h u32 *bin_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.chM7 hjubj)}(hhh]h)}(h&The buffer to place args' binary valueh]h(The buffer to place args’ binary value}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM7 hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM7 hjubj)}(hI``size_t size`` The size of the buffer(by words(32bits), not characters) 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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM8 hjSubj)}(hhh]h)}(h8The size of the buffer(by words(32bits), not characters)h]h8The size of the buffer(by words(32bits), not characters)}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM8 hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM8 hjubj)}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9 hjubj)}(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: hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM: hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 }(hj hhhNhNubj)}(h``n``h]hn}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) is ignored, and its argument is skipped.}(hj 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.}(hj= 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)}(hjN h]hNOTE}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL 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 }(hjd hhhNhNubj)}(h**size**h]hsize}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd ubh7, the resulting bin_buf is NOT valid for bstr_printf().}(hjd 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](hbstr_printf (C function) c.bstr_printfhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM ubjg)}(h bstr_printfh]jm)}(h bstr_printfh]h bstr_printf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj 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 ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbufh]hbuf}(hj !hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj'!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)!modnameN classnameNjI jL )}jO ]jR )}jE j sb c.bstr_printfasbuh1hhj !ubj)}(h h]h }(hjG!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj !ubjm)}(hsizeh]hsize}(hjU!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj !ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hjn!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj!ubj)}(h h]h }(hj{!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj!ubj )}(hcharh]hchar}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj!ubjm)}(hfmt_strh]hfmt_str}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst u32 *bin_bufh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(hu32h]hu32}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jC! c.bstr_printfasbuh1hhj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hbin_bufh]hbin_buf}(hj""hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!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)jhuh1hhj 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}(hjL"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjI"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjd"jjd"jjjuh1hhhhhhNhNubj)}(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)}(hjn"h]h Parameters}(hjp"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjh"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"ubj)}(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&]uh1jhj"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"ubj)}(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&]uh1jhj"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"ubj)}(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&]uh1jhj"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)}(hj8#h]hconst u32 *bin_buf}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6#ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj2#ubj)}(hhh]h)}(h&Binary arguments for the format stringh]h&Binary arguments for the format string}(hjQ#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM#hM hjN#ubah}(h]h ]h"]h$]h&]uh1jhj2#ubeh}(h]h ]h"]h$]h&]uh1jhjM#hM hj"ubeh}(h]h ]h"]h$]h&]uh1jhjh"ubh)}(h**Description**h]j)}(hjs#h]h Description}(hju#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq#ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjh"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 hjh"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#ubj)}(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&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1jhjh"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 hjh"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvsscanf (C function) c.vsscanfhNtauh1hhhhhhNhNubh)}(hhh](j)}(h*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.hhKhj8*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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjW*ubj)}(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.}(hjv*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjs*ubah}(h]h ]h"]h$]h&]uh1jhjW*ubeh}(h]h ]h"]h$]h&]uh1jhjr*hKhjT*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*ubj)}(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&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjT*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*ubj)}(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&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjT*ubeh}(h]h ]h"]h$]h&]uh1jhj8*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.hhKhj8*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.}(hj"+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj8*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtol (C function) c.kstrtolhNtauh1hhhhhhNhNubh)}(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}(hjQ+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjM+hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK,ubj)}(h h]h }(hj`+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM+hhhj_+hK,ubjg)}(hkstrtolh]jm)}(hkstrtolh]hkstrtol}(hjr+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjM+hhhj_+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+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj )}(hcharh]hchar}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hjE)h]hs}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj )}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubjm)}(hbaseh]hbase}(hj",hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(h long *resh](j )}(hlongh]hlong}(hj;,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7,ubj)}(h h]h }(hjI,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7,ubj)}(hjh]h*}(hjW,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7,ubjm)}(hresh]hres}(hjd,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhjM+hhhj_+hK,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjI+hhhj_+hK,ubah}(h]jD+ah ](jjeh"]h$]h&]jj)jhuh1hhj_+hK,hjF+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&]uh1jhjF+hhhj_+hK,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhhhNhNubj)}(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,ubj)}(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&]uh1jhj,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-ubj)}(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.hhK0hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hK4hj,ubj)}(hF``long *res`` Where to write the result of the conversion on success. h](j)}(h ``long *res``h]j)}(hjC-h]h long *res}(hjE-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK5hj=-ubj)}(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&]uh1hhjX-hK5hjY-ubah}(h]h ]h"]h$]h&]uh1jhj=-ubeh}(h]h ]h"]h$]h&]uh1jhjX-hK5hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,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](hkstrtoull (C function) c.kstrtoullhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj-hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKuubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj-hKuubjg)}(h kstrtoullh]jm)}(h kstrtoullh]h kstrtoull}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-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-ubj)}(h h]h }(hj .hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj )}(hcharh]hchar}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj).hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj7.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hjE)h]hs}(hjD.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj\.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjX.ubj)}(h h]h }(hjj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjX.ubj )}(hinth]hint}(hjx.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjX.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjX.ubjm)}(hbaseh]hbase}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long long *resh](j )}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(hresh]hres}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.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)jhuh1hhj-hKuhj-hhubj)}(hhh]h)}(h)convert a string to an unsigned long longh]h)convert a string to an unsigned long long}(hj8/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKuhj5/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjP/jjP/jjjuh1hhhhhhNhNubj)}(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)}(hjZ/h]h Parameters}(hj\/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX/ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKyhjT/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)}(hjy/h]h const char *s}(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:24: ./lib/kstrtox.chKxhjs/ubj)}(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&]uh1jhjs/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKxhjp/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/ubj)}(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&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hK}hjp/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)}(hj/h]hunsigned long long *res}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chK~hj/ubj)}(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&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hK~hjp/ubeh}(h]h ]h"]h$]h&]uh1jhjT/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.chKhjT/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.}(hj>0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjT/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtoll (C function) c.kstrtollhNtauh1hhhhhhNhNubh)}(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}(hjm0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji0hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj)}(h h]h }(hj|0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji0hhhj{0hKubjg)}(hkstrtollh]jm)}(hkstrtollh]hkstrtoll}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhji0hhhj{0hKubj)}(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&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj )}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hjE)h]hs}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hinth]hint}(hj"1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj01hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hbaseh]hbase}(hj>1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hlong long *resh](j )}(hlongh]hlong}(hjW1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjS1ubj)}(h h]h }(hje1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS1ubj )}(hlongh]hlong}(hjs1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjS1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS1ubjm)}(hresh]hres}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhji0hhhj{0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhje0hhhj{0hKubah}(h]j`0ah ](jjeh"]h$]h&]jj)jhuh1hhj{0hKhjb0hhubj)}(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&]uh1jhjb0hhhj{0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhhhNhNubj)}(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}(hj 2hhhNhNubah}(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.chKhj2ubj)}(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 2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj1ubj)}(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)}(hjA2h]hunsigned int base}(hjC2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj;2ubj)}(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.}(hjZ2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjW2ubah}(h]h ]h"]h$]h&]uh1jhj;2ubeh}(h]h ]h"]h$]h&]uh1jhjV2hKhj1ubj)}(hK``long long *res`` Where to write the result of the conversion on success. h](j)}(h``long long *res``h]j)}(hj{2h]hlong long *res}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhju2ubj)}(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&]uh1jhju2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(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](hkstrtouint (C function) c.kstrtouinthNtauh1hhhhhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj)}(h h]h }(hj 3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj 3hKubjg)}(h kstrtouinth]jm)}(h kstrtouinth]h kstrtouint}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj 3hKubj)}(h5(const char *s, unsigned int base, unsigned int *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj83hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj43ubj)}(h h]h }(hjE3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj43ubj )}(hcharh]hchar}(hjS3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj43ubj)}(h h]h }(hja3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj43ubj)}(hjh]h*}(hjo3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj43ubjm)}(hjE)h]hs}(hj|3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj43ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj03ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hbaseh]hbase}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj03ubj)}(hunsigned int *resh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hresh]hres}(hj*4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj03ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj 3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj 3hKubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj 3hKhj2hhubj)}(hhh]h)}(h#convert a string to an unsigned inth]h#convert a string to an unsigned int}(hjT4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjQ4hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj 3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjl4jjl4jjjuh1hhhhhhNhNubj)}(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)}(hjv4h]h Parameters}(hjx4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt4ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjp4ubj)}(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.chKhj4ubj)}(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&]uh1jhj4ubeh}(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.chKhj4ubj)}(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&]uh1jhj4ubeh}(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)}(hj 5h]hunsigned int *res}(hj 5hhhNhNubah}(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.chKhj5ubj)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj"5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hKhj4ubeh}(h]h ]h"]h$]h&]uh1jhjp4ubh)}(h**Description**h]j)}(hjD5h]h Description}(hjF5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB5ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjp4ubh)}(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.}(hjZ5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjp4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrtoint (C function) c.kstrtointhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj5hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hKubjg)}(h kstrtointh]jm)}(h kstrtointh]h kstrtoint}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hKubj)}(h,(const char *s, unsigned int base, int *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj )}(hcharh]hchar}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hjE)h]hs}(hj 6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj"6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj06hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hinth]hint}(hj>6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjL6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hbaseh]hbase}(hjZ6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hint *resh](j )}(hinth]hint}(hjs6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjo6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjo6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo6ubjm)}(hresh]hres}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hKubah}(h]j|5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hKhj~5hhubj)}(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&]uh1jhj~5hhhj5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhhhNhNubj)}(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}(hj 7hhhNhNubah}(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.chKhj7ubj)}(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 7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubj)}(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)}(hjA7h]hunsigned int base}(hjC7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj;7ubj)}(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.}(hjZ7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjW7ubah}(h]h ]h"]h$]h&]uh1jhj;7ubeh}(h]h ]h"]h$]h&]uh1jhjV7hKhj6ubj)}(hE``int *res`` Where to write the result of the conversion on success. h](j)}(h ``int *res``h]j)}(hj{7h]hint *res}(hj}7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhju7ubj)}(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&]uh1jhju7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(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](hkstrtobool (C function) c.kstrtoboolhNtauh1hhhhhhNhNubh)}(hhh](j)}(h)int kstrtobool (const char *s, bool *res)h]j)}(h(int kstrtobool(const char *s, bool *res)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMSubj)}(h h]h }(hj 8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhj 8hMSubjg)}(h kstrtoboolh]jm)}(h kstrtoboolh]h kstrtobool}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj 8hMSubj)}(h(const char *s, bool *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj88hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj48ubj)}(h h]h }(hjE8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj48ubj )}(hcharh]hchar}(hjS8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj48ubj)}(h h]h }(hja8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj48ubj)}(hjh]h*}(hjo8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj48ubjm)}(hjE)h]hs}(hj|8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj48ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj08ubj)}(h bool *resh](j )}(hboolh]hbool}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hresh]hres}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj08ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj 8hMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj 8hMSubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj 8hMShj7hhubj)}(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&]uh1jhj7hhhj 8hMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhhhNhNubj)}(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)}(hj 9h]h Parameters}(hj 9hhhNhNubah}(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.chMThj"9ubj)}(hhh]h)}(h input stringh]h input string}(hjA9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=9hMThj>9ubah}(h]h ]h"]h$]h&]uh1jhj"9ubeh}(h]h ]h"]h$]h&]uh1jhj=9hMThj9ubj)}(h``bool *res`` result h](j)}(h ``bool *res``h]j)}(hja9h]h bool *res}(hjc9hhhNhNubah}(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.chMUhj[9ubj)}(hhh]h)}(hresulth]hresult}(hjz9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv9hMUhjw9ubah}(h]h ]h"]h$]h&]uh1jhj[9ubeh}(h]h ]h"]h$]h&]uh1jhjv9hMUhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(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](hstring_get_size (C function)c.string_get_sizehNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhj9hKubjg)}(hstring_get_sizeh]jm)}(hstring_get_sizeh]hstring_get_size}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhj9hKubj)}(hP(u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h](j)}(hu64 sizeh](h)}(hhh]jm)}(hu64h]hu64}(hj!:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#:modnameN classnameNjI jL )}jO ]jR )}jE j:sbc.string_get_sizeasbuh1hhj:ubj)}(h h]h }(hjA:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hsizeh]hsize}(hjO:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h u64 blk_sizeh](h)}(hhh]jm)}(hu64h]hu64}(hjk:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjm:modnameN classnameNjI jL )}jO ]j=:c.string_get_sizeasbuh1hhjd:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd:ubjm)}(hblk_sizeh]hblk_size}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd: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:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(henumh]henum}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hstring_size_unitsh]hstring_size_units}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]j=:c.string_get_sizeasbuh1hhj:ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hunitsh]hunits}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h char *bufh](j )}(hcharh]hchar}(hj/;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+;ubj)}(h h]h }(hj=;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+;ubj)}(hjh]h*}(hjK;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+;ubjm)}(hbufh]hbuf}(hjX;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hint lenh](j )}(hinth]hint}(hjq;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjm;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjm;ubjm)}(hlenh]hlen}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hKhj9hhubj)}(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&]uh1jhj9hhhj9hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhhhNhNubj)}(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;ubj)}(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&]uh1jhj;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)}(hj1<h]h u64 blk_size}(hj3<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj+<ubj)}(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)}(hjJ<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF<hKhjG<ubah}(h]h ]h"]h$]h&]uh1jhj+<ubeh}(h]h ]h"]h$]h&]uh1jhjF<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)}(hjj<h]h"const enum string_size_units units}(hjl<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjd<ubj)}(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&]uh1jhjd<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<ubj)}(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&]uh1jhj<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<ubj)}(hhh]h)}(hlength of bufferh]hlength of buffer}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;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. }(hj-=hhhNhNubj)}(h**buf**h]hbuf}(hj5=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-=ubhJ should have room for at least 9 bytes and will always be zero terminated.}(hj-=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).}(hjN=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](h!parse_int_array_user (C function)c.parse_int_array_userhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjy=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy=hhhj=hKubjg)}(hparse_int_array_userh]jm)}(hparse_int_array_userh]hparse_int_array_user}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjy=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=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj )}(hcharh]hchar}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh__user}(hj=hhhNhNubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hfromh]hfrom}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hj,>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.>modnameN classnameNjI jL )}jO ]jR )}jE j=sbc.parse_int_array_userasbuh1hhj%>ubj)}(h h]h }(hjL>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%>ubjm)}(hcounth]hcount}(hjZ>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h int **arrayh](j )}(hinth]hint}(hjs>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjo>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjo>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo>ubjm)}(harrayh]harray}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjy=hhhj=hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhju=hhhj=hKubah}(h]jp=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hKhjr=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&]uh1jhjr=hhhj=hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhhhNhNubj)}(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?ubj)}(hhh]h)}(h"The user space buffer to read fromh]h"The user space buffer to read from}(hj-?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)?hKhj*?ubah}(h]h ]h"]h$]h&]uh1jhj?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)}(hjM?h]h size_t count}(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:27: ./lib/string_helpers.chKhjG?ubj)}(hhh]h)}(h#The maximum number of bytes to readh]h#The maximum number of bytes to read}(hjf?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb?hKhjc?ubah}(h]h ]h"]h$]h&]uh1jhjG?ubeh}(h]h ]h"]h$]h&]uh1jhjb?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?ubj)}(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&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhj ?ubeh}(h]h ]h"]h$]h&]uh1jhj>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.}(h j?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](hstring_unescape (C function)c.string_unescapehNtauh1hhhhhhNhNubh)}(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}(hjK@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjG@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjZ@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG@hhhjY@hMubjg)}(hstring_unescapeh]jm)}(hstring_unescapeh]hstring_unescape}(hjl@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjG@hhhjY@hMubj)}(h7(char *src, char *dst, size_t size, unsigned int flags)h](j)}(h char *srch](j )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hsrch]hsrc}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h char *dsth](j )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hdsth]hdst}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE jn@sbc.string_unescapeasbuh1hhjAubj)}(h h]h }(hj/AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hsizeh]hsize}(hj=AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjVAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRAubj)}(h h]h }(hjdAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRAubj )}(hinth]hint}(hjrAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRAubjm)}(hflagsh]hflags}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRAubeh}(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)jhuh1hhjY@hMhj@@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&]uh1jhj@@hhhjY@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhhhNhNubj)}(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)}(hjAh]h char *src}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjAubj)}(hhh]h)}(hsource buffer (escaped)h]hsource buffer (escaped)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjAubj)}(h-``char *dst`` destination buffer (unescaped) h](j)}(h ``char *dst``h]j)}(hj2Bh]h char *dst}(hj4BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM hj,Bubj)}(hhh]h)}(hdestination buffer (unescaped)h]hdestination buffer (unescaped)}(hjKBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGBhM hjHBubah}(h]h ]h"]h$]h&]uh1jhj,Bubeh}(h]h ]h"]h$]h&]uh1jhjGBhM hjAubj)}(h>``size_t size`` size of the destination buffer (0 to unlimit) h](j)}(h``size_t size``h]j)}(hjkBh]h size_t size}(hjmBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM!hjeBubj)}(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&]uh1jhjeBubeh}(h]h ]h"]h$]h&]uh1jhjBhM!hjAubj)}(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"hjBubj)}(hhh]h)}(hcombination of the flags.h]hcombination of the flags.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM"hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM"hjAubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(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.}(hjBhhhNhNubah}(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:}(hjChhhNhNubah}(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}hj$Csbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM-hjAubh)}(h **Return**h]j)}(hj5Ch]hReturn}(hj7ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Cubah}(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.}(hjKChhhNhNubah}(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](hstring_escape_mem (C function)c.string_escape_memhNtauh1hhhhhhNhNubh)}(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}(hjzChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvChhhjChMubjg)}(hstring_escape_memh]jm)}(hstring_escape_memh]hstring_escape_mem}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvChhhjChMubj)}(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&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hcharh]hchar}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hsrch]hsrc}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t iszh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jR )}jE jCsbc.string_escape_memasbuh1hhjDubj)}(h h]h }(hj7DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hiszh]hisz}(hjEDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h char *dsth](j )}(hcharh]hchar}(hj^DhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZDubj)}(h h]h }(hjlDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZDubj)}(hjh]h*}(hjzDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZDubjm)}(hdsth]hdst}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t oszh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]j3Dc.string_escape_memasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hoszh]hosz}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hflagsh]hflags}(hj EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hconst char *onlyh](j)}(hjh]hconst}(hj9EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubj)}(h h]h }(hjFEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Eubj )}(hcharh]hchar}(hjTEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5Eubj)}(h h]h }(hjbEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Eubj)}(hjh]h*}(hjpEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Eubjm)}(honlyh]honly}(hj}EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhjvChhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrChhhjChMubah}(h]jmCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjoChhubj)}(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&]uh1jhjoChhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhhhNhNubj)}(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.chMhjEubj)}(hhh]h)}(hsource buffer (unescaped)h]hsource buffer (unescaped)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(h"``size_t isz`` source buffer size h](j)}(h``size_t isz``h]j)}(hj!Fh]h size_t isz}(hj#FhhhNhNubah}(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.chMhjFubj)}(hhh]h)}(hsource buffer sizeh]hsource buffer size}(hj:FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6FhMhj7Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj6FhMhjEubj)}(h+``char *dst`` destination buffer (escaped) h](j)}(h ``char *dst``h]j)}(hjZFh]h char *dst}(hj\FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjTFubj)}(hhh]h)}(hdestination buffer (escaped)h]hdestination buffer (escaped)}(hjsFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoFhMhjpFubah}(h]h ]h"]h$]h&]uh1jhjTFubeh}(h]h ]h"]h$]h&]uh1jhjoFhMhjEubj)}(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.chMhjFubj)}(hhh]h)}(hdestination buffer sizeh]hdestination buffer size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(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.chMhjFubj)}(hhh]h)}(hcombination of the flagsh]hcombination of the flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(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.chMhjFubj)}(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 }(hjGhhhNhNubj)}(h**only**h]honly}(hj&GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh? that would not normally be escaped by the classes selected in }(hjGhhhNhNubj)}(h **flags**h]hflags}(hj8GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh, they will be copied to }(hjGhhhNhNubj)}(h**dst**h]hdst}(hjJGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh unescaped.}(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&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjwGh]h Description}(hjyGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuGubah}(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.}(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)}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh. }(hjHhhhNhNubj)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh and }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hj2HhhhNhNubah}(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}(hjDHhhhNhNubah}(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:}(hjtHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjEubj#C)}(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&]jjuh1j"ChX/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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh, }(hjHhhhNhNubj)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh and }(hjHhhhNhNubj)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh6 have the higher priority than the rest of the flags (}(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hj#IhhhNhNubah}(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}(hj5IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh or }(hjHhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjGIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh:, because they cover most of the other character classes. }(hjHhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjYIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh can utilize }(hjHhhhNhNubj)}(h``ESCAPE_SPACE``h]h ESCAPE_SPACE}(hjkIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh or }(hjHhhhNhNubj)}(h``ESCAPE_SPECIAL``h]hESCAPE_SPECIAL}(hj}IhhhNhNubah}(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](hkasprintf_strarray (C function)c.kasprintf_strarrayhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhjIhMubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMubjg)}(hkasprintf_strarrayh]jm)}(hkasprintf_strarrayh]hkasprintf_strarray}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhjIhMubj)}(h)(gfp_t gfp, const char *prefix, size_t n)h](j)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj7JhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4Jubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9JmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.kasprintf_strarrayasbuh1hhj0Jubj)}(h h]h }(hjWJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0Jubjm)}(hgfph]hgfp}(hjeJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,Jubj)}(hconst char *prefixh](j)}(hjh]hconst}(hj~JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzJubj )}(hcharh]hchar}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzJubjm)}(hprefixh]hprefix}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,Jubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jSJc.kasprintf_strarrayasbuh1hhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hjyh]hn}(hj KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(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)jhuh1hhjIhMhjIhhubj)}(hhh]h)}(h-allocate and fill array of sequential stringsh]h-allocate and fill array of sequential strings}(hj3KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj0Khhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKKjjKKjjjuh1hhhhhhNhNubj)}(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)}(hjUKh]h Parameters}(hjWKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubj)}(hhh](j)}(h+``gfp_t gfp`` flags for the slab allocator h](j)}(h ``gfp_t gfp``h]j)}(hjtKh]h gfp_t gfp}(hjvKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjnKubj)}(hhh]h)}(hflags for the slab allocatorh]hflags for the slab allocator}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjnKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjkKubj)}(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.chMhjKubj)}(hhh]h)}(hprefix to be usedh]hprefix to be used}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjkKubj)}(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.chMhjKubj)}(hhh]h)}(h*amount of lines to be allocated and filledh]h*amount of lines to be allocated and filled}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjkKubeh}(h]h ]h"]h$]h&]uh1jhjOKubh)}(h**Description**h]j)}(hj!Lh]h Description}(hj#LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubh)}(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 }(hj7LhhhNhNubj)}(h**n**h]hn}(hj?LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Lubh strings using pattern “}(hj7LhhhNhNubj)}(h ``s-````zu``h]hs-````zu}(hjQLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Lubhp”, where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use.}(hj7LhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubh)}(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.}(hjjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjOKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfree_strarray (C function)c.kfree_strarrayhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLhhhjLhMubjg)}(hkfree_strarrayh]jm)}(hkfree_strarrayh]hkfree_strarray}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLhhhjLhMubj)}(h(char **array, size_t n)h](j)}(h char **arrayh](j )}(hcharh]hchar}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(harrayh]harray}(hj MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj(MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%Mubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*MmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.kfree_strarrayasbuh1hhj!Mubj)}(h h]h }(hjHMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!Mubjm)}(hjyh]hn}(hjVMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhjLhhubj)}(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.chMhj|Mhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhhhNhNubj)}(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.chMhjMubj)}(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&]uh1jhjMubeh}(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)}(hjMh]hsize_t n}(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.chMhjMubj)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hj4Nh]h Description}(hj6NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Nubah}(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 }(hjJNhhhNhNubj)}(h **array**h]harray}(hjRNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh and }(hjJNhhhNhNubj)}(h**n**h]hn}(hjdNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh == 0 as well as NULL }(hjJNhhhNhNubj)}(h **array**h]harray}(hjvNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh are valid use-cases. If }(hjJNhhhNhNubj)}(h **array**h]harray}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubh$ is NULL, the function does nothing.}(hjJNhhhNhNubeh}(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](hskip_spaces (C function) c.skip_spaceshNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMIubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNhhhjNhMIubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMIubjg)}(h skip_spacesh]jm)}(h skip_spacesh]h skip_spaces}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhjNhMIubj)}(h(const char *str)h]j)}(hconst char *strh](j)}(hjh]hconst}(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj )}(hcharh]hchar}(hj&OhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hj4OhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjBOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hstrh]hstr}(hjOOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjNhhhjNhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMIubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhMIhjNhhubj)}(hhh]h)}(h(Removes leading whitespace from **str**.h](h Removes leading whitespace from }(hjyOhhhNhNubj)}(h**str**h]hstr}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyOubh.}(hjyOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMIhjvOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1hhhhhhNhNubj)}(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.chMJhjOubj)}(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&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMJhjOubah}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjPh]h Description}(hj PhhhNhNubah}(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 }(hjPhhhNhNubj)}(h**str**h]hstr}(hj%PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh.}(hjPhhhNhNubeh}(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](hstrim (C function)c.strimhNtauh1hhhhhhNhNubh)}(hhh](j)}(hchar * strim (char *s)h]j)}(hchar *strim(char *s)h](j )}(hcharh]hchar}(hj^PhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMWubj)}(h h]h }(hjmPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZPhhhjlPhMWubj)}(hjh]h*}(hj{PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZPhhhjlPhMWubjg)}(hstrimh]jm)}(hstrimh]hstrim}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZPhhhjlPhMWubj)}(h (char *s)h]j)}(hchar *sh](j )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hjE)h]hs}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjZPhhhjlPhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVPhhhjlPhMWubah}(h]jQPah ](jjeh"]h$]h&]jj)jhuh1hhjlPhMWhjSPhhubj)}(hhh]h)}(h3Removes leading and trailing whitespace from **s**.h](h-Removes leading and trailing whitespace from }(hjPhhhNhNubj)}(h**s**h]hs}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMWhjPhhubah}(h]h ]h"]h$]h&]uh1jhjSPhhhjlPhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$Qjj$Qjjjuh1hhhhhhNhNubj)}(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)}(hj.Qh]h Parameters}(hj0QhhhNhNubah}(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[hj(Qubj)}(hhh]j)}(h'``char *s`` The string to be stripped. h](j)}(h ``char *s``h]j)}(hjMQh]hchar *s}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMXhjGQubj)}(hhh]h)}(hThe string to be stripped.h]hThe string to be stripped.}(hjfQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbQhMXhjcQubah}(h]h ]h"]h$]h&]uh1jhjGQubeh}(h]h ]h"]h$]h&]uh1jhjbQhMXhjDQubah}(h]h ]h"]h$]h&]uh1jhj(Qubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMZhj(Qubh)}(hNote that the first trailing whitespace is replaced with a ``NUL-terminator`` in the given string **s**. Returns a pointer to the first non-whitespace character in **s**.h](h;Note that the first trailing whitespace is replaced with a }(hjQhhhNhNubj)}(h``NUL-terminator``h]hNUL-terminator}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh in the given string }(hjQhhhNhNubj)}(h**s**h]hs}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh=. Returns a pointer to the first non-whitespace character in }(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.chMYhj(Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysfs_streq (C function) c.sysfs_streqhNtauh1hhhhhhNhNubh)}(hhh](j)}(h1bool sysfs_streq (const char *s1, const char *s2)h]j)}(h0bool sysfs_streq(const char *s1, const char *s2)h](j )}(hj8h]hbool}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMqubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQhhhjRhMqubjg)}(h sysfs_streqh]jm)}(h sysfs_streqh]h sysfs_streq}(hj#RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjRhMqubj)}(h (const char *s1, const char *s2)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hj?RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Rubj)}(h h]h }(hjLRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Rubj )}(hcharh]hchar}(hjZRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;Rubj)}(h h]h }(hjhRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Rubj)}(hjh]h*}(hjvRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Rubjm)}(hs1h]hs1}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Rubj)}(hconst char *s2h](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj )}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hs2h]hs2}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Rubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjRhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjRhMqubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjRhMqhjQhhubj)}(hhh]h)}(h9return true if strings are equal, modulo trailing newlineh]h9return true if strings are equal, modulo trailing newline}(hj ShhhNhNubah}(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&]uh1jhjQhhhjRhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"Sjj"Sjjjuh1hhhhhhNhNubj)}(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}(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:27: ./lib/string_helpers.chMuhj&Subj)}(hhh](j)}(h``const char *s1`` one string h](j)}(h``const char *s1``h]j)}(hjKSh]hconst char *s1}(hjMShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjISubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMrhjESubj)}(hhh]h)}(h one stringh]h one string}(hjdShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ShMrhjaSubah}(h]h ]h"]h$]h&]uh1jhjESubeh}(h]h ]h"]h$]h&]uh1jhj`ShMrhjBSubj)}(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.chMshj~Subj)}(hhh]h)}(hanother stringh]hanother string}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMshjSubah}(h]h ]h"]h$]h&]uh1jhj~Subeh}(h]h ]h"]h$]h&]uh1jhjShMshjBSubeh}(h]h ]h"]h$]h&]uh1jhj&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](hmatch_string (C function)c.match_stringhNtauh1hhhhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjThMubjg)}(h match_stringh]jm)}(h match_stringh]h match_string}(hj%ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!Tubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjThMubj)}(h8(const char *const *array, size_t n, const char *string)h](j)}(hconst char *const *arrayh](j)}(hjh]hconst}(hjAThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubj)}(h h]h }(hjNThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Tubj )}(hcharh]hchar}(hj\ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=Tubj)}(h h]h }(hjjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Tubj)}(hjh]h*}(hjxThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubj)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Tubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Tubjm)}(harrayh]harray}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Tubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jR )}jE j'Tsbc.match_stringasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hjyh]hn}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Tubj)}(hconst char *stringh](j)}(hjh]hconst}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Uubj )}(hcharh]hchar}(hj*UhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Uubj)}(h h]h }(hj8UhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Uubj)}(hjh]h*}(hjFUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubjm)}(hstringh]hstring}(hjSUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9Tubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjThMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjThMhjShhubj)}(hhh]h)}(h matches given string in an arrayh]h matches given string in an array}(hj}UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjzUhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhhhNhNubj)}(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.chMhjUubj)}(hhh]h)}(harray of stringsh]harray of strings}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(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)}(hjUh]hsize_t n}(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.chMhjUubj)}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj VhMhj Vubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhj VhMhjUubj)}(h,``const char *string`` string to match with h](j)}(h``const char *string``h]j)}(hj0Vh]hconst char *string}(hj2VhhhNhNubah}(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.chMhj*Vubj)}(hhh]h)}(hstring to match withh]hstring to match with}(hjIVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEVhMhjFVubah}(h]h ]h"]h$]h&]uh1jhj*Vubeh}(h]h ]h"]h$]h&]uh1jhjEVhMhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjkVh]h Description}(hjmVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiVubah}(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}(hjVhhhNhNubah}(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](h!__sysfs_match_string (C function)c.__sysfs_match_stringhNtauh1hhhhhhNhNubh)}(hhh](j)}(hOint __sysfs_match_string (const char * const *array, size_t n, const char *str)h]j)}(hMint __sysfs_match_string(const char *const *array, size_t n, const char *str)h](j )}(hinth]hint}(hj@WhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj= **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.hhKhjcubj)}(hhh]h)}(hpointer to destination of copyh]hpointer to destination of copy}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(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.hhKhjdubj)}(hhh]h)}(h/pointer to NUL-terminated source string to copyh]h/pointer to NUL-terminated source string to copy}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjcubj)}(h1``__kernel_size_t size`` bytes to write at **p** h](j)}(h``__kernel_size_t size``h]j)}(hj?dh]h__kernel_size_t size}(hjAdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=dubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj9dubj)}(hhh]h)}(hbytes to write at **p**h](hbytes to write at }(hjXdhhhNhNubj)}(h**p**h]hp}(hj`dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXdubeh}(h]h ]h"]h$]h&]uh1hhjTdhKhjUdubah}(h]h ]h"]h$]h&]uh1jhj9dubeh}(h]h ]h"]h$]h&]uh1jhjTdhKhjcubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(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}(hjdhhhNhNubah}(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}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh) < }(hjehhhNhNubj)}(h**size**h]hsize}(hj!ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh, following the copy of }(hjehhhNhNubj)}(h**q**h]hq}(hj3ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh(, trailing NUL bytes will be written to }(hjehhhNhNubj)}(h**p**h]hp}(hjEehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh until }(hjehhhNhNubj)}(h**size**h]hsize}(hjWehhhNhNubah}(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 }(hjpehhhNhNubj)}(h**q**h]hq}(hjxehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpeubh;, it cannot defend against writing unterminated results to }(hjpehhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpeubhs. Using strncpy() remains ambiguous and fragile. Instead, please choose an alternative, so that the expectation of }(hjpehhhNhNubj)}(h**p**h]hp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpeubh’s contents is unambiguous:}(hjpehhhNhNubeh}(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}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh needs to be:}(hjehhhNhNubeh}(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 }(hjfhhhNhNubj)}(h**size**h]hsize}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1hhj fhKhjfubah}(h]h ]h"]h$]h&]uh1jehjeubje)}(hhh]h)}(h not paddedh]h not padded}(hj9fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj fhKhj6fubah}(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}(hjdfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjafubah}(h]h ]h"]h$]h&]uh1jehj^fubje)}(hhh]h)}(h strscpy_pad()h]h strscpy_pad()}(hj|fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrfhKhjyfubah}(h]h ]h"]h$]h&]uh1jehj^fubje)}(hhh]h)}(h strscpy()h]h strscpy()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrfhKhjfubah}(h]h ]h"]h$]h&]uh1jehj^fubeh}(h]h ]h"]h$]h&]uh1jehj[fubje)}(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&]uh1jehj[fubeh}(h]h ]h"]h$]h&]uh1jYfhjeubeh}(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.}(hjghhhNhNubah}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrnlen (C function) c.strnlenhNtauh1hhj/`hhhNhNubh)}(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]jm)}(h__kernel_size_th]h__kernel_size_t}(hjAghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>gubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCgmodnameN classnameNjI jL )}jO ]jR )}jE strnlensb c.strnlenasbuh1hhj:ghhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubj)}(h h]h }(hjcghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ghhhjbghKubjg)}(hstrnlenh]jm)}(hj_gh]hstrnlen}(hjughhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:ghhhjbghKubj)}(h-(const char *const p, __kernel_size_t maxlen)h](j)}(hconst char *const ph](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj )}(hcharh]hchar}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hjh]hp}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h__kernel_size_t maxlenh](h)}(hhh]jm)}(h__kernel_size_th]h__kernel_size_t}(hj hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj hmodnameN classnameNjI jL )}jO ]j]g c.strnlenasbuh1hhjhubj)}(h h]h }(hj(hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hmaxlenh]hmaxlen}(hj6hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj:ghhhjbghKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6ghhhjbghKubah}(h]j1gah ](jjeh"]h$]h&]jj)jhuh1hhjbghKhj3ghhubj)}(hhh]h)}(h=Return bounded count of characters in a NUL-terminated stringh]h=Return bounded count of characters in a NUL-terminated string}(hj`hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj]hhhubah}(h]h ]h"]h$]h&]uh1jhj3ghhhjbghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxhjjxhjjjuh1hhhhj/`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.hhKhj|hubj)}(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.hhKhjhubj)}(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&]uh1jhjhubeh}(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.hhKhjhubj)}(hhh]h)}(h&maximum number of characters to count.h]h&maximum number of characters to count.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhKhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhKhjhubeh}(h]h ]h"]h$]h&]uh1jhj|hubh)}(h**Description**h]j)}(hjih]h Description}(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.hhKhj|hubh)}(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}(hj3ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+iubh# (NOT including the final NUL), or }(hj+ihhhNhNubj)}(h **maxlen**h]hmaxlen}(hjEihhhNhNubah}(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.hhKhj|hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrlen (C macro)c.strlenhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hstrlenh]j)}(hstrlenh]jg)}(hstrlenh]jm)}(hjxih]hstrlen}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~iubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzihhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjvihhhjihKubah}(h]jqiah ](jjeh"]h$]h&]jj)jhuh1hhjihKhjsihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjsihhhjihKubeh}(h]h ](jmacroeh"]h$]h&]jjjjijjijjjuh1hhhhj/`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.hhKhj/`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&]uh1jhjihKhj/`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}(hj jhhhNhNubah}(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.hhKhjjubj)}(hhh]h)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hj!jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhKhjiubah}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hjCjh]h Description}(hjEjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAjubah}(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 }(hjYjhhhNhNubj)}(h**p**h]hp}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYjubh is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen().}(hjYjhhhNhNubeh}(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 }(hjzjhhhNhNubj)}(h**p**h]hp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzjubh (NOT including the final NUL).}(hjzjhhhNhNubeh}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrlcat (C function) c.strlcathNtauh1hhj/`hhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jR )}jE strlcatsb c.strlcatasbuh1hhjjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjjhMMubjg)}(hstrlcath]jm)}(hjjh]hstrlcat}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjjhMMubj)}(h2(char *const p, const char *const q, size_t avail)h](j)}(h char *const ph](j )}(hcharh]hchar}(hj khhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj kubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj kubj)}(hjh]h*}(hj)khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(hjh]hconst}(hj6khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj)}(h h]h }(hjCkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj kubjm)}(hjh]hp}(hjQkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst char *const qh](j)}(hjh]hconst}(hjikhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjekubj)}(h h]h }(hjvkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjekubj )}(hcharh]hchar}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjekubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjekubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjekubj)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjekubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjekubjm)}(hjch]hq}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjekubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h size_t availh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jj c.strlcatasbuh1hhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(havailh]havail}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMMhjjhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hj9lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMMhj6lhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQljjQljjjuh1hhhhj/`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)}(hj[lh]h Parameters}(hj]lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYlubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMQhjUlubj)}(hhh](j)}(hE``char * const p`` pointer to ``NUL-terminated`` string to append to h](j)}(h``char * const p``h]j)}(hjzlh]hchar * const p}(hj|lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxlubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMOhjtlubj)}(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&]uh1jhjtlubeh}(h]h ]h"]h$]h&]uh1jhjlhMOhjqlubj)}(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.hhMPhjlubj)}(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&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMPhjqlubj)}(h2``size_t avail`` Maximum bytes available in **p** h](j)}(h``size_t avail``h]j)}(hjmh]h size_t avail}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMQhj mubj)}(hhh]h)}(h Maximum bytes available in **p**h](hMaximum bytes available in }(hj)mhhhNhNubj)}(h**p**h]hp}(hj1mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)mubeh}(h]h ]h"]h$]h&]uh1hhj%mhMQhj&mubah}(h]h ]h"]h$]h&]uh1jhj mubeh}(h]h ]h"]h$]h&]uh1jhj%mhMQhjqlubeh}(h]h ]h"]h$]h&]uh1jhjUlubh)}(h**Description**h]j)}(hjYmh]h Description}(hj[mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWmubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMShjUlubh)}(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 }(hjomhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjwmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh string }(hjomhhhNhNubj)}(h**q**h]hq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh after the }(hjomhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh string at }(hjomhhhNhNubj)}(h**p**h]hp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh, but will not write beyond }(hjomhhhNhNubj)}(h **avail**h]havail}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh3 bytes total, potentially truncating the copy from }(hjomhhhNhNubj)}(h**q**h]hq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh. }(hjomhhhNhNubj)}(h**p**h]hp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh will stay }(hjomhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh only if a }(hjomhhhNhNubj)}(h``NUL``h]hNUL}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh already existed within the }(hjomhhhNhNubj)}(h **avail**h]havail}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh bytes of }(hjomhhhNhNubj)}(h**p**h]hp}(hj+nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh3. If so, the resulting number of bytes copied from }(hjomhhhNhNubj)}(h**q**h]hq}(hj=nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh will be at most “}(hjomhhhNhNubj)}(h **avail**h]havail}(hjOnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh - strlen(}(hjomhhhNhNubj)}(h**p**h]hp}(hjanhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubh ) - 1”.}(hjomhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMRhjUlubh)}(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 }(hjznhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjznubh and }(hjznhhhNhNubj)}(h**q**h]hq}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjznubhm are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar.}(hjznhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMYhjUlubh)}(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^hjUlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrcat (C function)c.strcathNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjnhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjohMubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjohMubjg)}(hstrcath]jm)}(hstrcath]hstrcat}(hj.ohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*oubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjohMubj)}(h(char *const p, const char *q)h](j)}(h char *const ph](j )}(hcharh]hchar}(hjJohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFoubj)}(h h]h }(hjXohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFoubj)}(hjh]h*}(hjfohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFoubj)}(hjh]hconst}(hjsohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFoubjm)}(hjh]hp}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBoubj)}(h const char *qh](j)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hjch]hq}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBoubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjohMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjnhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjphhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+pjj+pjjjuh1hhhhj/`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)}(hj5ph]h Parameters}(hj7phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3pubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj/pubj)}(hhh](j)}(hA``char * const p`` pointer to NUL-terminated string to append to h](j)}(h``char * const p``h]j)}(hjTph]hchar * const p}(hjVphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRpubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjNpubj)}(hhh]h)}(h-pointer to NUL-terminated string to append toh]h-pointer to NUL-terminated string to append to}(hjmphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiphMhjjpubah}(h]h ]h"]h$]h&]uh1jhjNpubeh}(h]h ]h"]h$]h&]uh1jhjiphMhjKpubj)}(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.hhMhjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjKpubeh}(h]h ]h"]h$]h&]uh1jhj/pubh)}(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.hhMhj/pubh)}(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.hhMhj/pubh)}(hReturns **p**.h](hReturns }(hjphhhNhNubj)}(h**p**h]hp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj/pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrncat (C function) c.strncathNtauh1hhj/`hhhNhNubh)}(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}(hj.qhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*qhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj)}(h h]h }(hj=qhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*qhhhjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMubjg)}(hstrpbrkh]jm)}(hstrpbrkh]hstrpbrk}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hMubj)}(h (const char *cs, const char *ct)h](j)}(hconst char *csh](j)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hconst char *cth](j)}(hjh]hconst}(hjȌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjČubj)}(h h]h }(hjՌhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjČubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjČubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjČubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjČubjm)}(hcth]hct}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjČubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hMhjhhubj)}(hhh]h)}(h0Find the first occurrence of a set of charactersh]h0Find the first occurrence of a set of characters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1hhhhj/`hNhNubj)}(hq**Parameters** ``const char *cs`` The string to be searched ``const char *ct`` The characters to search forh](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjRubj)}(hhh](j)}(h-``const char *cs`` The string to be searched h](j)}(h``const char *cs``h]j)}(hjwh]hconst char *cs}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjqubj)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(h/``const char *ct`` The characters to search forh](j)}(h``const char *ct``h]j)}(hjh]hconst char *ct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjōhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrsep (C function)c.strsephNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h(char * strsep (char **s, const char *ct)h]j)}(h&char *strsep(char **s, const char *ct)h](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hstrseph]jm)}(hstrseph]hstrsep}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(char **s, const char *ct)h](j)}(hchar **sh](j )}(hcharh]hchar}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hconst char *cth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjˎhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjَhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcth]hct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hSplit a string into tokensh]hSplit a string into tokens}(hjhhhNhNubah}(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&]jjjj(jj(jjjuh1hhhhj/`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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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)}(hjQh]hchar **s}(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.chMhjKubj)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(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.chMhjubj)}(hhh]h)}(hThe characters to search forh]hThe characters to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjHubeh}(h]h ]h"]h$]h&]uh1jhj,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 }(hjۏhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۏubh3 to point after the token, ready for the next call.}(hjۏhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset (C function)c.memsethNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj'hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj9hMubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj9hMubjg)}(hmemseth]jm)}(hmemseth]hmemset}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj9hMubj)}(h(void *s, int c, size_t count)h](j)}(hvoid *sh](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hint ch](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjĐhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hc}(hjҐhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j[sbc.memsetasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj hhubj)}(hhh]h)}(h,Fill a region of memory with the given valueh]h,Fill a region of memory with the given value}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj/`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)}(hjgh]h Parameters}(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.chMhjaubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h)``int c`` The byte to fill the area with h](j)}(h ``int c``h]j)}(hjh]hint c}(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.chMhjubj)}(hhh]h)}(hThe byte to fill the area withh]hThe byte to fill the area with}(hjؑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԑhMhjՑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԑhMhj}ubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjaubh)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset16 (C function) c.memset16hNtauh1hhj/`hhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjhM#ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhM#ubjg)}(hmemset16h]jm)}(hmemset16h]hmemset16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjhM#ubj)}(h'(uint16_t *s, uint16_t v, size_t count)h](j)}(h uint16_t *sh](h)}(hhh]jm)}(huint16_th]huint16_t}(hjŒhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj’ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjǒmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memset16asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h uint16_t vh](h)}(hhh]jm)}(huint16_th]huint16_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.memset16asbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hvh]hv}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]j c.memset16asbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjhM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhM#ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hjmhhubj)}(hhh]h)}(h"Fill a memory area with a uint16_th]h"Fill a memory area with a uint16_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѓjjѓjjjuh1hhhhj/`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)}(hjۓh]h Parameters}(hjݓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٓubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM'hjՓubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM$hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h/``uint16_t v`` The value to fill the area with h](j)}(h``uint16_t v``h]j)}(hj3h]h uint16_t v}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM%hj-ubj)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM%hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM%hjubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjlh]h size_t count}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM&hjfubj)}(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&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubeh}(h]h ]h"]h$]h&]uh1jhjՓ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)}(hDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that **count** is the number of uint16_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that }(hjhhhNhNubj)}(h **count**h]hcount}(hjŔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is the number of uint16_ts to store, not the number of bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM'hjՓubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset32 (C function) c.memset32hNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM9ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM9ubjg)}(hmemset32h]jm)}(hmemset32h]hmemset32}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hM9ubj)}(h'(uint32_t *s, uint32_t v, size_t count)h](j)}(h uint32_t *sh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE j.sb c.memset32asbuh1hhjDubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h uint32_t vh](h)}(hhh]jm)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jg c.memset32asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjIh]hv}(hj͕hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jg c.memset32asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM9hjhhubj)}(hhh]h)}(h"Fill a memory area with a uint32_th]h"Fill a memory area with a uint32_t}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM9hj;hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhj/`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)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM=hjZubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM:hjyubj)}(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&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjvubj)}(h/``uint32_t v`` The value to fill the area with h](j)}(h``uint32_t v``h]j)}(hjh]h uint32_t v}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM;hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͖hM;hjvubj)}(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<hjubj)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(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.chM>hjZubh)}(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 }(hjBhhhNhNubj)}(h **count**h]hcount}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh> is the number of uint32_ts to store, not the number of bytes. }(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM=hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset64 (C function) c.memset64hNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMOubjg)}(hmemset64h]jm)}(hmemset64h]hmemset64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMOubj)}(h'(uint64_t *s, uint64_t v, size_t count)h](j)}(h uint64_t *sh](h)}(hhh]jm)}(huint64_th]huint64_t}(hjЗhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj͗ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjҗmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memset64asbuh1hhjɗubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjɗubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɗubjm)}(hjE)h]hs}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɗubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŗubj)}(h uint64_t vh](h)}(hhh]jm)}(huint64_th]huint64_t}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]j c.memset64asbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjIh]hv}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŗubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]j c.memset64asbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŗubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhMOubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMOhjxhhubj)}(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.chMOhjhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjۘjjۘjjjuh1hhhhj/`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.chMShjߘubj)}(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.chMPhjubj)}(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&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubj)}(h/``uint64_t v`` The value to fill the area with h](j)}(h``uint64_t v``h]j)}(hj=h]h uint64_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.chMQhj7ubj)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMQhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMQhjubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjvh]h size_t count}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMRhjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjubeh}(h]h ]h"]h$]h&]uh1jhjߘ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.chMThjߘubh)}(hDiffers from memset() in that it fills with a uint64_t instead of a byte. Remember that **count** is the number of uint64_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint64_t instead of a byte. Remember that }(hjǙhhhNhNubj)}(h **count**h]hcount}(hjϙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǙubh> is the number of uint64_ts to store, not the number of bytes.}(hjǙhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMShjߘubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemcpy (C function)c.memcpyhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMeubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMeubjg)}(hmemcpyh]jm)}(hmemcpyh]hmemcpy}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMeubj)}(h+(void *dest, const void *src, size_t count)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hdesth]hdest}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hconst void *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj˚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjؚhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j8sbc.memcpyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMehjhhubj)}(hhh]h)}(h"Copy one area of memory to anotherh]h"Copy one area of memory to another}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMehjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhj/`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)}(hjnh]h Parameters}(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.chMihjhubj)}(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.chMfhjubj)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chMghjubj)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hjߛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۛhMghjܛubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۛhMghjubj)}(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.chMhhjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMjhjhubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMihjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemmove (C function) c.memmovehNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj{hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhjhM{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhM{ubjg)}(hmemmoveh]jm)}(hmemmoveh]hmemmove}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhjhM{ubj)}(h+(void *dest, const void *src, size_t count)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hjɜhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjŜubj)}(h h]h }(hjלhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjŜubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŜubjm)}(hdesth]hdest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŜubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *srch](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memmoveasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhjhM{ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhM{ubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhM{hjthhubj)}(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{hjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhM{ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj۝jj۝jjjuh1hhhhj/`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.chMhjߝ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.chM|hjubj)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubj)}(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.chM}hj7ubj)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM}hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM}hjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjvh]h size_t count}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM~hjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubeh}(h]h ]h"]h$]h&]uh1jhjߝ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.chMhjߝubh)}(h8Unlike memcpy(), memmove() copes with overlapping areas.h]h8Unlike memcpy(), memmove() copes with overlapping areas.}(hjǞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjߝubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemcmp (C function)c.memcmphNtauh1hhj/`hhhNhNubh)}(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}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hmemcmph]jm)}(hmemcmph]hmemcmp}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h.(const void *cs, const void *ct, size_t count)h](j)}(hconst void *csh](j)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hconst void *cth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj˟hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjٟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcth]hct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j+sbc.memcmpasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(hCompare two areas of memoryh]hCompare two areas of memory}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhj/`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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjvubj)}(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.chMhjubj)}(hhh]h)}(hOne area of memoryh]hOne area of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``const void *ct`` Another area of memory h](j)}(h``const void *ct``h]j)}(hjԠh]hconst void *ct}(hj֠hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҠubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjΠubj)}(hhh]h)}(hAnother area of memoryh]hAnother area of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjΠ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.chMhjubj)}(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.chMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubeh}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbcmp (C function)c.bcmphNtauh1hhj/`hhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjuhMubjg)}(hbcmph]jm)}(hbcmph]hbcmp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjuhMubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj͡hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjۡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hah]ha}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *bh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbh]hb}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bcmpasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjuhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(hhh]h)}(h=returns 0 if and only if the buffers have identical contents.h]h=returns 0 if and only if the buffers have identical contents.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѢjjѢjjjuh1hhhhj/`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)}(hjۢh]h Parameters}(hjݢhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٢ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjբubj)}(hhh](j)}(h+``const void *a`` pointer to first buffer. h](j)}(h``const void *a``h]j)}(hjh]h const void *a}(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.chMhjubj)}(hhh]h)}(hpointer to first buffer.h]hpointer to first buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``const void *b`` pointer to second buffer. h](j)}(h``const void *b``h]j)}(hj3h]h const void *b}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj-ubj)}(hhh]h)}(hpointer to second buffer.h]hpointer to second buffer.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubj)}(h ``size_t len`` size of buffers. h](j)}(h``size_t len``h]j)}(hjlh]h size_t len}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjfubj)}(hhh]h)}(hsize of buffers.h]hsize of buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjբ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.chMhjբubh)}(hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.h]hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjբubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemscan (C function) c.memscanhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hmemscanh]jm)}(hmemscanh]hmemscan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h (void *addr, int c, size_t size)h](j)}(h void *addrh](j )}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(haddrh]haddr}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hint ch](j )}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hjh]hc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memscanasbuh1hhjubj)}(h h]h }(hjϤhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjݤhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(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&]jjjjjjjjjuh1hhhhj/`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.chMhj#ubj)}(hhh](j)}(h``void *addr`` The memory area h](j)}(h``void *addr``h]j)}(hjHh]h void *addr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjBubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(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.chMhj{ubj)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(h&``size_t size`` The size of the area. h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϥhMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj#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.chMhj#ubh)}(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 }(hj hhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, or 1 byte past the area if }(hj hhhNhNubj)}(h**c**h]hc}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is not found}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrstr (C function)c.strstrhNtauh1hhj/`hhhNhNubh)}(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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjlhMubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjlhMubjg)}(hstrstrh]jm)}(hstrstrh]hstrstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjlhMubj)}(h (const char *s1, const char *s2)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjæhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjѦhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjߦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs1h]hs1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs2h]hs2}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjShhubj)}(hhh]h)}(h7Find the first substring in a ``NUL`` terminated stringh](hFind the first substring in a }(hjshhhNhNubj)}(h``NUL``h]hNUL}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh terminated string}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۧhMhjubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrnstr (C function) c.strnstrhNtauh1hhj/`hhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghMubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjghMubjg)}(hstrnstrh]jm)}(hstrnstrh]hstrnstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghMubj)}(h,(const char *s1, const char *s2, size_t len)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj̨hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjڨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs1h]hs1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hs2h]hs2}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.strnstrasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjNhhubj)}(hhh]h)}(h3Find the first substring in a length-limited stringh]h3Find the first substring in a length-limited string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjЩjjЩjjjuh1hhhhj/`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)}(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 *s1`` The string to be searched h](j)}(h``const char *s1``h]j)}(hjh]hconst char *s1}(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.chMhjubj)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``const char *s2`` The string to search for h](j)}(h``const char *s2``h]j)}(hj2h]hconst char *s2}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj,ubj)}(hhh]h)}(hThe string to search forh]hThe string to search for}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(h9``size_t len`` the maximum number of characters to searchh](j)}(h``size_t len``h]j)}(hjkh]h size_t len}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjԩubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemchr (C function)c.memchrhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj)}(h h]h }(hjԪhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjӪhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjӪhMubjg)}(hmemchrh]jm)}(hmemchrh]hmemchr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjӪhMubj)}(h (const void *s, int c, size_t n)h](j)}(h const void *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hjE)h]hs}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hjh]hc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.memchrasbuh1hhjubj)}(h h]h }(hj«hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjЫhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjӪhMhjhhubj)}(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&]uh1jhjhhhjӪhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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)}(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 void *s`` The memory area h](j)}(h``const void *s``h]j)}(hj:h]h const void *s}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj1ubj)}(h!``int c`` The byte to search for h](j)}(h ``int c``h]j)}(hjsh]hint c}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjmubj)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhj1ubj)}(h#``size_t n`` The size of the area. h](j)}(h ``size_t n``h]j)}(hjh]hsize_t n}(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 hjubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjŬhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hj¬ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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}(hjhhhNhNubah}(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!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemchr_inv (C function) c.memchr_invhNtauh1hhj/`hhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM>ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjphM>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjphM>ubjg)}(h memchr_invh]jm)}(h memchr_invh]h memchr_inv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjphM>ubj)}(h((const void *start, int c, size_t bytes)h](j)}(hconst void *starth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjǭhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjխhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hc}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t bytesh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memchr_invasbuh1hhj9ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hbytesh]hbytes}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphM>ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphM>hjWhhubj)}(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&]uh1jhjWhhhjphM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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)}(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.chMBhjubj)}(hhh](j)}(h&``const void *start`` The memory area h](j)}(h``const void *start``h]j)}(hjٮh]hconst void *start}(hjۮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׮ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM?hjӮubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjӮubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjЮubj)}(h(``int c`` Find a character other than c 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.chM@hj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM@hjЮubj)}(h'``size_t bytes`` The size of the area. h](j)}(h``size_t bytes``h]j)}(hjKh]h size_t bytes}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMAhjEubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMAhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMAhjЮubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMChjubh)}(hqreturns the address of the first character other than **c**, or ``NULL`` if the whole buffer contains just **c**.h](h6returns the address of the first character other than }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# if the whole buffer contains just }(hjhhhNhNubj)}(h**c**h]hc}(hjȯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_array_user (C function)c.memdup_array_userhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(hmemdup_array_userh]jm)}(hmemdup_array_userh]hmemdup_array_user}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h/(const void __user *src, size_t n, size_t size)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh__user}(hjGhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.memdup_array_userasbuh1hhjubj)}(h h]h }(hjݰhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jٰc.memdup_array_userasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hduplicate array from user spaceh]hduplicate array from user space}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj/`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)}(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:39: ./include/linux/string.hhKhjxubj)}(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.hhKhjubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h-``size_t n`` number of array members to copy h](j)}(h ``size_t n``h]j)}(hjֱh]hsize_t n}(hjرhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԱubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjбubj)}(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&]uh1jhjбubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj ubj)}(hhh]h)}(hsize of one array memberh]hsize of one array member}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h **Return**h]j)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjxubh)}(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().}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmemdup_array_user (C function)c.vmemdup_array_userhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK+ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK+ubjg)}(hvmemdup_array_userh]jm)}(hvmemdup_array_userh]hvmemdup_array_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK+ubj)}(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ղubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjղubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjղubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjղubh__user}(hjղhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjղubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjղubjm)}(hsrch]hsrc}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjղubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѲubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.vmemdup_array_userasbuh1hhjDubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hjyh]hn}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѲubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jgc.vmemdup_array_userasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhK+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&]jjjjjjjjjuh1hhhhj/`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}(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.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}(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%ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hK,hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hK,hj"ubj)}(h-``size_t n`` number of array members to copy h](j)}(h ``size_t n``h]j)}(hjdh]hsize_t n}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK-hj^ubj)}(hhh]h)}(hnumber of array members to copyh]hnumber of array members to copy}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhK-hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhK-hj"ubj)}(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.hjubj)}(hhh]h)}(hsize of one array memberh]hsize of one array member}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK.hj"ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrscpy (C macro) c.strscpyhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hstrscpyh]j)}(hstrscpyh]jg)}(hstrscpyh]jm)}(hjh]hstrscpy}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK\ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hK\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hK\hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj4hK\ubeh}(h]h ](jmacroeh"]h$]h&]jjjjMjjMjjjuh1hhhhj/`hNhNubh)}(h``strscpy (dst, src, ...)``h]j)}(hjSh]hstrscpy (dst, src, ...)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK^hj/`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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK\hjiubah}(h]h ]h"]h$]h&]uh1jhj{hK\hj/`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]hjubj)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK]hjubj)}(h&``src`` Where to copy the string from h](j)}(h``src``h]j)}(hjh]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.hhK^hjڵubj)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK^hjubah}(h]h ]h"]h$]h&]uh1jhjڵubeh}(h]h ]h"]h$]h&]uh1jhjhK^hjubj)}(h.``...`` Size of destination buffer (optional) 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.hhK_hjubj)}(hhh]h)}(h%Size of destination buffer (optional)h]h%Size of destination buffer (optional)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hK_hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hK_hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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 }(hjjhhhNhNubj)}(h**src**h]hsrc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh1, or as much of it as fits, into the destination }(hjjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhR buffer. The behavior is undefined if the string buffers overlap. The destination }(hjjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh; buffer is always NUL terminated, unless it’s zero-sized.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK`hjubh)}(hThe size argument **...** is only required when **dst** is not an array, or when the copy needs to be smaller than sizeof(**dst**).h](hThe size argument }(hjhhhNhNubj)}(h**...**h]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is only required when }(hjhhhNhNubj)}(h**dst**h]hdst}(hjɶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC is not an array, or when the copy needs to be smaller than sizeof(}(hjhhhNhNubj)}(h**dst**h]hdst}(hj۶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (not including the trailing }(hjhhhNhNubj)}(h``NUL``h]hNUL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) or -E2BIG if }(hjhhhNhNubj)}(h**size**h]hsize}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0 or the copy from }(hjhhhNhNubj)}(h**src**h]hsrc}(hjAhhhNhNubah}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrscpy_pad (C macro) c.strscpy_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h strscpy_padh]j)}(h strscpy_padh]jg)}(h strscpy_padh]jm)}(hjth]h strscpy_pad}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h``strscpy_pad (dst, src, ...)``h]j)}(hjh]hstrscpy_pad (dst, src, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj/`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&]uh1jhjطhKhj/`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.hhKhj߷ubj)}(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.hhKhjubj)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h&``src`` Where to copy the string from h](j)}(h``src``h]j)}(hj=h]hsrc}(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.hhKhj7ubj)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjubj)}(h#``...`` Size of destination buffer h](j)}(h``...``h]j)}(hjvh]h...}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjpubj)}(hhh]h)}(hSize of destination bufferh]hSize of destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhj߷ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubh)}(hCopy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always ``NUL`` terminated, unless it's zero-sized.h](hCopy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always }(hjǸhhhNhNubj)}(h``NUL``h]hNUL}(hjϸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǸubh& terminated, unless it’s zero-sized.}(hjǸhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubh)}(hIf the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with ``NUL`` bytes.h](hsIf the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with }(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.hhKhj߷ubh)}(hFor full explanation of why you may want to consider using the 'strscpy' functions please see the function docstring for strscpy().h]hFor full explanation of why you may want to consider using the ‘strscpy’ functions please see the function docstring for strscpy().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj߷ubj)}(hhh](j)}(hEThe number of characters copied (not including the trailing ``NULs``)h]h)}(hj5h](hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh)}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj3ubah}(h]h ]h"]h$]h&]uh1jhj0ubj)}(h.-E2BIG if count is 0 or **src** was truncated.h]h)}(hj_h](h-E2BIG if count is 0 or }(hjahhhNhNubj)}(h**src**h]hsrc}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh was truncated.}(hjahhhNhNubeh}(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&]uh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjVhKhj߷ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmem_is_zero (C function) c.mem_is_zerohNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h*bool mem_is_zero (const void *s, size_t n)h]j)}(h)bool mem_is_zero(const void *s, size_t n)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(h mem_is_zeroh]jm)}(h mem_is_zeroh]h mem_is_zero}(hj͹hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɹubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(const void *s, size_t n)h](j)}(h const void *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t nh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jR )}jE jϹsb c.mem_is_zeroasbuh1hhjAubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hjyh]hn}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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)jhuh1hhjhM 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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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)}(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.hhM$hjubj)}(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&]uh1jhj޺ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjںubj)}(hhh]h)}(hThe memory areah]hThe memory area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjںubeh}(h]h ]h"]h$]h&]uh1jhjhM!hj׺ubj)}(h"``size_t n`` The size of the area 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.hhM"hjubj)}(hhh]h)}(hThe size of the areah]hThe size of the area}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM"hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM"hj׺ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM$hjubh)}(h&True if the area of memory is all 0's.h]h(True if the area of memory is all 0’s.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysfs_match_string (C macro)c.sysfs_match_stringhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hsysfs_match_stringh]j)}(hsysfs_match_stringh]jg)}(hsysfs_match_stringh]jm)}(hjh]hsysfs_match_string}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jmacroeh"]h$]h&]jjjjɻjjɻjjjuh1hhhhj/`hNhNubh)}(h``sysfs_match_string (_a, _s)``h]j)}(hjϻh]hsysfs_match_string (_a, _s)}(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.hhMLhj/`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&]uh1jhjhMJhj/`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)}(hj#h]h_a}(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.hhMKhjubj)}(hhh]h)}(harray of stringsh]harray of strings}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMKhjubj)}(h``_s`` string to match with h](j)}(h``_s``h]j)}(hj\h]h_s}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMLhjVubj)}(hhh]h)}(hstring to match withh]hstring to match with}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMLhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMLhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(hjhhhNhNubah}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemzero_explicit (C function)c.memzero_explicithNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM_ubjg)}(hmemzero_explicith]jm)}(hmemzero_explicith]hmemzero_explicit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM_ubj)}(h(void *s, size_t count)h](j)}(hvoid *sh](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hjE)h]hs}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.memzero_explicitasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(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)jhuh1hhjhM_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&]jjjj߽jj߽jjjuh1hhhhj/`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}(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.hhMahjubj)}(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&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjAh]h size_t count}(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.hhMbhj;ubj)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMbhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hj|h]hNote}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkbasename (C function) c.kbasenamehNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h)const char * kbasename (const char *path)h]j)}(h'const char *kbasename(const char *path)h](j)}(hjh]hconst}(hjоhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMsubj)}(h h]h }(hj޾hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̾hhhjݾhMsubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj̾hhhjݾhMsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̾hhhjݾhMsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̾hhhjݾhMsubjg)}(h kbasenameh]jm)}(h kbasenameh]h kbasename}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj̾hhhjݾhMsubj)}(h(const char *path)h]j)}(hconst char *pathh](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hpathh]hpath}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(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)jhuh1hhjݾhMshjž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žhhhjݾhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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.hhMwhjubj)}(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.hhMuhj޿ubj)}(hhh]h)}(h"path to extract the filename from.h]h"path to extract the filename from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhj޿ubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjۿubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(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.hhMwhjubh)}(h^Pointer to the filename portion inside **path**. If no '/' exists, returns **path** unchanged.h](h'Pointer to the filename portion inside }(hj5hhhNhNubj)}(h**path**h]hpath}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh . If no ‘/’ exists, returns }(hj5hhhNhNubj)}(h**path**h]hpath}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh unchanged.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrtomem_pad (C macro)c.strtomem_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h strtomem_padh]j)}(h strtomem_padh]jg)}(h strtomem_padh]jm)}(hjh]h strtomem_pad}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`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.hhMhj/`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&]uh1jhjhMhj/`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}(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.hhMhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj ubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hjKh]hsrc}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjEubj)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj ubj)}(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.hhMhj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 }(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrtomem (C macro) c.strtomemhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hstrtomemh]j)}(hstrtomemh]jg)}(hstrtomemh]jm)}(hjCh]hstrtomem}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhZ/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)jhuh1hhj`hMhj>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj`hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1hhhhj/`hNhNubh)}(h``strtomem (dest, src)``h]j)}(hjh]hstrtomem (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.hhMhj/`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&]uh1jhjhMhj/`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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``src`` Pointer to NUL-terminated string 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.hhMhjubj)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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().}(hj]hhhNhNubah}(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 }(hjlhhhNhNubj)}(h**dest**h]hdest}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh& is not an argument, as the length of }(hjlhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh& must be discoverable by the compiler.}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemtostr (C macro) c.memtostrhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hmemtostrh]j)}(hmemtostrh]jg)}(hmemtostrh]jm)}(hjh]hmemtostr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h``memtostr (dest, src)``h]j)}(hjh]hmemtostr (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.hhMhj/`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}(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&]uh1jhjhMhj/`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.hhMhj$ubj)}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjIh]hdest}(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.hhMhjCubj)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubj)}(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.hhMhj|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$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)}(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.hhMhj$ubh)}(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.hhMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemtostr_pad (C macro)c.memtostr_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h memtostr_padh]j)}(h memtostr_padh]jg)}(h memtostr_padh]jm)}(hj/h]h memtostr_pad}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjLhMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj*hhhjLhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjejjejjjuh1hhhhj/`hNhNubh)}(h``memtostr_pad (dest, src)``h]j)}(hjkh]hmemtostr_pad (dest, src)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`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&]uh1jhjhMhj/`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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(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&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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.}(hjIhhhNhNubah}(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 }(hjXhhhNhNubj)}(h**dest**h]hdest}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh and }(hjXhhhNhNubj)}(h**src**h]hsrc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh must be known at compile-time.}(hjXhhhNhNubeh}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset_after (C macro)c.memset_afterhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h memset_afterh]j)}(h memset_afterh]jg)}(h memset_afterh]jm)}(hjh]h memset_after}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`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.hhMhj/`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.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj hMhj/`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)}(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*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hj5h]hobj}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/ubj)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hjnh]hv}(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.hhMhjhubj)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(h=This is good for clearing padding following the given member.h]h=This is good for clearing padding following the given member.}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset_startat (C macro)c.memset_startathNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hmemset_startath]j)}(hmemset_startath]jg)}(hmemset_startath]jm)}(hj!h]hmemset_startat}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj>hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj>hM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj>hM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjWjjWjjjuh1hhhhj/`hNhNubh)}(h#``memset_startat (obj, v, member)``h]j)}(hj]h]hmemset_startat (obj, v, member)}(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/`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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjsubah}(h]h ]h"]h$]h&]uh1jhjhM hj/`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 hjubj)}(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&]uh1jhjubeh}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``member`` struct member to start writing at h](j)}(h ``member``h]j)}(hj#h]hmember}(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 hjubj)}(hhh]h)}(h!struct member to start writing ath]h!struct member to start writing at}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hjthhhNhNubah}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstr_has_prefix (C function)c.str_has_prefixhNtauh1hhj/`hhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE str_has_prefixsbc.str_has_prefixasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hstr_has_prefixh]jm)}(hjh]hstr_has_prefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj )}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]jjjjjjjjjuh1hhhhj/`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.hhMhjubj)}(hhh]h)}(hThe string to testh]hThe string to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``const char *prefix`` The string to see if **str** starts with h](j)}(h``const char *prefix``h]j)}(hj:h]hconst char *prefix}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj4ubj)}(hhh]h)}(h(The string to see if **str** starts withh](hThe string to see if }(hjShhhNhNubj)}(h**str**h]hstr}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh starts with}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh starts with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hj/hhhNhNubah}(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)}(hjLh](h0 if }(hjNhhhNhNubj)}(h**str**h]hstr}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh does not start with }(hjNhhhNhNubj)}(h **prefix**h]hprefix}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM&hjJubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjChM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrstarts (C function) c.strstartshNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM0ubjg)}(h strstartsh]jm)}(h strstartsh]h strstarts}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM0ubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj )}(hcharh]hchar}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM0hjhhubj)}(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&]jjjjjjjjjuh1hhhhj/`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)}(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.hhM4hjubj)}(hhh](j)}(h&``const char *str`` string to examine 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.hhM1hjubj)}(hhh]h)}(hstring to examineh]hstring to examine}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM1hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM1hj ubj)}(h+``const char *prefix`` prefix to look for. h](j)}(h``const char *prefix``h]j)}(hjMh]hconst char *prefix}(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.hhM2hjGubj)}(hhh]h)}(hprefix to look for.h]hprefix to look for.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM2hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM2hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrends (C function) c.strendshNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h2bool strends (const char *str, const char *suffix)h]j)}(h1bool strends(const char *str, const char *suffix)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM=ubjg)}(hstrendsh]jm)}(hstrendsh]hstrends}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM=ubj)}(h%(const char *str, const char *suffix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hcharh]hchar}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hstrh]hstr}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst char *suffixh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsuffixh]hsuffix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM=hjhhubj)}(hhh]h)}(h+Check if a string ends with another string.h]h+Check if a string ends with another string.}(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&]uh1jhjhhhjhM=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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)}(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.hhMAhjubj)}(hhh](j)}(hG``const char *str`` NULL-terminated string to check against **suffix** h](j)}(h``const char *str``h]j)}(hj9h]hconst char *str}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM>hj3ubj)}(hhh]h)}(h2NULL-terminated string to check against **suffix**h](h(NULL-terminated string to check against }(hjRhhhNhNubj)}(h **suffix**h]hsuffix}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1hhjNhM>hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhM>hj0ubj)}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM?hjzubj)}(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&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM?hj0ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMAhjubh)}(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}(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.hhMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrdup (C function) c.kstrduphNtauh1hhj/`hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hKKubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj@hKKubjg)}(hkstrduph]jm)}(hkstrduph]hkstrdup}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hKKubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jbsb c.kstrdupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj@hKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj@hKKubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hKKhj'hhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKhj0hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhj/`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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjOubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjth]h const char *s}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKLhjnubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjkubj)}(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.chKMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(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.chKOhjOubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrdup_const (C function)c.kstrdup_consthNtauh1hhj/`hhhNhNubh)}(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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj^hKYubj )}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhj^hKYubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj^hKYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj^hKYubjg)}(h kstrdup_consth]jm)}(h kstrdup_consth]h kstrdup_const}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj^hKYubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.kstrdup_constasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhj^hKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj^hKYubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj^hKYhjFhhubj)}(hhh]h)}(h0conditionally duplicate an existing const stringh]h0conditionally duplicate an existing const string}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYhjjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj^hKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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.chKZhjubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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[hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hj"h]hNote}(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)}(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().}(hj8hhhNhNubah}(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)}(hjIh]hReturn}(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.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.}(hj_hhhNhNubah}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrndup (C function) c.kstrnduphNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKmubjg)}(hkstrnduph]jm)}(hkstrnduph]hkstrndup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKmubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t maxh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE jsb c.kstrndupasbuh1hhj0ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubjm)}(hmaxh]hmax}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jS c.kstrndupasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKmhjhhubj)}(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&]jjjjjjjjjuh1hhhhj/`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)}(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.chKqhjubj)}(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.chKnhjubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKnhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKnhjubj)}(h5``size_t max`` read at most **max** chars from **s** h](j)}(h``size_t max``h]j)}(hjQh]h size_t max}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKohjKubj)}(hhh]h)}(h%read at most **max** chars from **s**h](h read at most }(hjjhhhNhNubj)}(h**max**h]hmax}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh chars from }(hjjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1hhjfhKohjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKohjubj)}(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.chKphjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKphjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(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.chKthjubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hj"hhhNhNubj)}(h**s**h]hs}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh or }(hj"hhhNhNubj)}(h``NULL``h]hNULL}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh in case of error}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemdup (C function) c.kmemduphNtauh1hhj/`hhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjhK}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhK}ubjg)}(hkmemduph]jm)}(hkmemduph]hkmemdup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjhK}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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsb c.kmemdupasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]j; c.kmemdupasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhK}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhK}ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhK}hjjhhubj)}(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&]uh1jhjjhhhjhK}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`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.chKhjubj)}(hhh]h)}(hmemory region to duplicateh]hmemory region to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h$``size_t len`` memory region length h](j)}(h``size_t len``h]j)}(hj9h]h size_t len}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj3ubj)}(hhh]h)}(hmemory region lengthh]hmemory region length}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhjubj)}(h``gfp_t gfp`` GFP mask to use h](j)}(h ``gfp_t gfp``h]j)}(hjrh]h gfp_t gfp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjlubj)}(hhh]h)}(hGFP mask to useh]hGFP mask to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(hjhhhNhNubah}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemdup_nul (C function) c.kmemdup_nulhNtauh1hhj/`hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj$hKubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hKubjg)}(h kmemdup_nulh]jm)}(h kmemdup_nulh]h kmemdup_nul}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$hKubj)}(h&(const char *s, size_t len, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hcharh]hchar}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jFsb c.kmemdup_nulasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.kmemdup_nulasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hKhj hhubj)}(hhh]h)}(h5Create a NUL-terminated string from unterminated datah]h5Create a NUL-terminated string from unterminated data}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj\hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhj/`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.chKhj{ubj)}(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.chKhjubj)}(hhh]h)}(hThe data to stringifyh]hThe data to stringify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chKhjubj)}(hhh]h)}(hThe size of the datah]hThe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(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.chKhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhjubeh}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h **Return**h]j)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj{ubh)}(hOnewly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](hnewly allocated copy of }(hjchhhNhNubj)}(h**s**h]hs}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh with NUL-termination or }(hjchhhNhNubj)}(h``NULL``h]hNULL}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh in case of error}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_user (C function) c.memdup_userhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(h memdup_userh]jm)}(h memdup_userh]h memdup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memdup_userasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]jjjjjjjjjuh1hhhhj/`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)}(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.chKhjubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjDh]h size_t len}(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.chKhj>ubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmemdup_user (C function)c.vmemdup_userhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(h vmemdup_userh]jm)}(h vmemdup_userh]h vmemdup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh__user}(hj hhhNhNubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hsrch]hsrc}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.vmemdup_userasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]jjjjjjjjjuh1hhhhj/`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&]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}(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.chKhjubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKhjubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjRh]h size_t len}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjLubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrndup_user (C function)c.strndup_userhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h strndup_userh]jm)}(h strndup_userh]h strndup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(const char __user *s, long n)h](j)}(hconst char __user *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hlong nh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]jjjjjjjjjuh1hhhhj/`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)}(hjh]hconst char __user *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.chMhj ubj)}(hhh]h)}(hThe string to duplicateh]hThe string to duplicate}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(hH``long n`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h ``long n``h]j)}(hjIh]hlong n}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjCubj)}(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&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_user_nul (C function)c.memdup_user_nulhNtauh1hhj/`hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM$ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM$ubjg)}(hmemdup_user_nulh]jm)}(hmemdup_user_nulh]hmemdup_user_nul}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM$ubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh__user}(hj!hhhNhNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hsrch]hsrc}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.memdup_user_nulasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM$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&]jjjjjjjjjuh1hhhhj/`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)}(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(hj ubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj0h]hconst void __user *src}(hj2hhhNhNubah}(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&hj*ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM&hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM&hj'ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjih]h size_t len}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM'hjcubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hM'hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM'hj'ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(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)hj ubh)}(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)hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`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](hset_bit (C function) c.set_bithNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj%hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hKubjg)}(hset_bith]jm)}(hset_bith]hset_bit}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hvolatile unsigned long *addrh](j)}(hvolatileh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hKhjhhubj)}(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.hhKhj#hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjhNhNubj)}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjBubj)}(hhh](j)}(h``long nr`` the bit to set h](j)}(h ``long nr``h]j)}(hjgh]hlong nr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjaubj)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj^ubj)}(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.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(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.hhKhjBubh)}(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.hhKhjBubh)}(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.hhKhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit (C function) c.clear_bithNtauh1hhjhhhNhNubh)}(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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhK!ubjg)}(h clear_bith]jm)}(h clear_bith]h clear_bit}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhK!ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhK!ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhK!hj6hhubj)}(hhh]h)}(hClears a bit in memoryh]hClears 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.hhK!hj:hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhjhNhNubj)}(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)}(hj_h]h Parameters}(hjahhhNhNubah}(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.hhK%hjYubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hj~h]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK"hjxubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjuubj)}(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#hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjuubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(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%hjYubh)}(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$hjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hchange_bit (C function) c.change_bithNtauh1hhjhhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhjEhK.ubjg)}(h change_bith]jm)}(h change_bith]h change_bit}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhjEhK.ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjEhK.ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhK.hj,hhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.hj0hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjOubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjth]hlong nr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK/hjnubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjkubj)}(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.hhK0hjubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(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.hhK2hjOubh)}(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.hhK1hjOubh)}(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}(hjhhhNhNubah}(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.hhK3hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_set_bit (C function)c.test_and_set_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h=bool test_and_set_bit (long nr, volatile unsigned long *addr)h]j)}(hubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj[hK>ubjg)}(htest_and_set_bith]jm)}(htest_and_set_bith]htest_and_set_bit}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhj[hK>ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhj[hK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj[hK>ubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhj[hK>hjChhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK>hjFhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj[hK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjhNhNubj)}(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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjeubj)}(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?hjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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@hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(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.hhKBhjeubh)}(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.hhKAhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_clear_bit (C function)c.test_and_clear_bithNtauh1hhjhhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhjPhKLubjg)}(htest_and_clear_bith]jm)}(htest_and_clear_bith]htest_and_clear_bit}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjPhKLubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjPhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjPhKLubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjPhKLhj8hhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear 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.hhKLhj;hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjPhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjhNhNubj)}(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)}(hj`h]h Parameters}(hjbhhhNhNubah}(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.hhKPhjZubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKMhjyubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjvubj)}(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.hhKNhjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(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.hhKPhjZubh)}(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.hhKOhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h test_and_change_bit (C function)c.test_and_change_bithNtauh1hhjhhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhjEhKZubjg)}(htest_and_change_bith]jm)}(htest_and_change_bith]htest_and_change_bit}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjEhKZubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhjEhKZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjEhKZubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjEhKZhj-hhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZhj0hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjEhKZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjOubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjth]hlong nr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK[hjnubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjkubj)}(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\hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(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^hjOubh)}(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]hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___set_bit (C function) c.___set_bithNtauh1hhjhhhNhNubh)}(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}(hj-hhhNhNubah}(h]h ]jah" ]h$]h&]uh1j hj)hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj;hKubjg)}(h ___set_bith]jm)}(h ___set_bith]h ___set_bit}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj;hKubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj;hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj;hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hKhj"hhubj)}(hhh]h)}(hSet a bit in memoryh]hSet a bit in memory}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjBhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhjhNhNubj)}(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)}(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:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjaubj)}(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.hhKhjubj)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubj)}(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.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjaubh)}(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.}(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.hhKhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___clear_bit (C function)c.___clear_bithNtauh1hhjhhhNhNubh)}(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}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhjMhK!ubjg)}(h ___clear_bith]jm)}(h ___clear_bith]h ___clear_bit}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhjMhK!ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhK!ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjMhK!hj4hhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjWhhhNhNubah}(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!hjThhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjhNhNubj)}(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)}(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:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjsubj)}(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"hjubj)}(hhh]h)}(hthe bit to clearh]hthe bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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#hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjsubh)}(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.}(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.hhK$hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___change_bit (C function)c.___change_bithNtauh1hhjhhhNhNubh)}(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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hK1ubjg)}(h ___change_bith]jm)}(h ___change_bith]h ___change_bit}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj_hK1ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhj_hK1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj_hK1ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hK1hjFhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1hjfhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hK1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhK2hjubj)}(hhh]h)}(hthe bit to changeh]hthe bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.hhK3hjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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.}(hj4hhhNhNubah}(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](h ___test_and_set_bit (C function)c.___test_and_set_bithNtauh1hhjhhhNhNubh)}(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}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjphKYubjg)}(h___test_and_set_bith]jm)}(h___test_and_set_bith]h___test_and_set_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjphKYubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjphKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjphKYubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjphKYhjXhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYhjwhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjphKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhKZhjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(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[hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK[hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK[hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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.}(hjEhhhNhNubah}(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](h"___test_and_clear_bit (C function)c.___test_and_clear_bithNtauh1hhjhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjphhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjphhhjhKhubjg)}(h___test_and_clear_bith]jm)}(h___test_and_clear_bith]h___test_and_clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhjhKhubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjhKhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhKhubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhKhhjihhubj)}(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&]uh1jhjihhhjhKhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhKihjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.hhKjhjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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.}(hjVhhhNhNubah}(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](h#___test_and_change_bit (C function)c.___test_and_change_bithNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKwubjg)}(h___test_and_change_bith]jm)}(h___test_and_change_bith]h___test_and_change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKwubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhKwubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhKwhjzhhubj)}(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&]uh1jhjzhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhKxhjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(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.hhKyhjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKyhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hKyhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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.}(hjghhhNhNubah}(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](h_test_bit (C function) c._test_bithNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h _test_bith]jm)}(h _test_bith]h _test_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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&]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.hhKhjubj)}(hhh]h)}(hbit number to testh]hbit number to test}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjBh]h"const volatile unsigned long *addr}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj<ubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(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.hhKhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h_test_bit_acquire (C function)c._test_bit_acquirehNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h_test_bit_acquireh]jm)}(h_test_bit_acquireh]h_test_bit_acquire}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hlongh]hlong}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%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)jhuh1hhjhKhjhhubj)}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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&]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.hhKhj ubj)}(hhh]h)}(hbit number to testh]hbit number to test}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjHh]h"const volatile unsigned long *addr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjBubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit_unlock (C function)c.clear_bit_unlockhNtauh1hhjhhhNhNubh)}(hhh](j)}(h=void clear_bit_unlock (long nr, volatile unsigned long *addr)h]j)}(hvoid __clear_bit_unlock(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h__clear_bit_unlockh]jm)}(h__clear_bit_unlockh]h__clear_bit_unlock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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 hjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]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!hjubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hK!hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hK!hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(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.}(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"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"test_and_set_bit_lock (C function)c.test_and_set_bit_lockhNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK/ubjg)}(htest_and_set_bit_lockh]jm)}(htest_and_set_bit_lockh]htest_and_set_bit_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK/ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhK/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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhK0hjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.hhK1hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hjThhhNhNubah}(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](h(xor_unlock_is_negative_byte (C function)c.xor_unlock_is_negative_bytehNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK>ubjg)}(hxor_unlock_is_negative_byteh]jm)}(hxor_unlock_is_negative_byteh]hxor_unlock_is_negative_byte}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK>ubj)}(h2(unsigned long mask, volatile unsigned long *addr)h](j)}(hunsigned long maskh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hunsignedh]hunsigned}(hj+ hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj9 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hjG hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjU hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjc hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(haddrh]haddr}(hjp hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhK>ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjxhhubj)}(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&]uh1jhjxhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(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 ubj)}(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&]uh1jhj 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 ubj)}(hhh]h)}(h6The address of the word containing the byte to change.h]h6The address of the word containing the byte to change.}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj) hKAhj* ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj) hKAhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjO h]h Description}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM 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 }(hje hhhNhNubj)}(h**addr**h]haddr}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje 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.}(hje 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 hhubj#C)}(hXb bitmap_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_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_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]hXb bitmap_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_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_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&]jjuh1j"ChZ/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.}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhKZhj 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.:}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKdhj hhubj#C)}(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)}hjT sbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKfhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__bitmap_shift_right (C function)c.__bitmap_shift_righthNtauh1hhj hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjx hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKRubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjx hhhj hKRubjg)}(h__bitmap_shift_righth]jm)}(h__bitmap_shift_righth]h__bitmap_shift_right}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjx hhhj hKRubj)}(hN(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdsth]hdst}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj$ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hunsignedh]hunsigned}(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj@ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj\ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hsrch]hsrc}(hjw hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned shifth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hshifth]hshift}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned nbitsh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hnbitsh]hnbits}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjx hhhj hKRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjt hhhj hKRubah}(h]jo ah ](jjeh"]h$]h&]jj)jhuh1hhj hKRhjq 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.chKRhj hhubah}(h]h ]h"]h$]h&]uh1jhjq hhhj hKRubeh}(h]h ](jfunctioneh"]h$]h&]jjjj# jj# jjjuh1hhhhj hNhNubj)}(hX}**Parameters** ``unsigned long *dst`` destination bitmap ``const unsigned long *src`` source bitmap ``unsigned shift`` shift by this many bits ``unsigned nbits`` bitmap size, in bits **Description** Shifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h](h)}(h**Parameters**h]j)}(hj- h]h Parameters}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKVhj' ubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjL h]hunsigned long *dst}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKShjF ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja hKShjb ubah}(h]h ]h"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]uh1jhja hKShjC 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.chKThj ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKThj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKThjC 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.chKUhj ubj)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKUhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKUhjC 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.chKVhj ubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKVhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKVhjC ubeh}(h]h ]h"]h$]h&]uh1jhj' ubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKXhj' 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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKWhj' ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __bitmap_shift_left (C function)c.__bitmap_shift_lefthNtauh1hhj hhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chK~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhK~ubjg)}(h__bitmap_shift_lefth]jm)}(h__bitmap_shift_lefth]h__bitmap_shift_left}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhK~ubj)}(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 ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int shifth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hshifth]hshift}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjhK~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhK~ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhK~hjlhhubj)}(hhh]h)}(h*logical left shift of the bits in a bitmaph]h*logical left 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.chK~hj;hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhK~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhj 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)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjZubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjyubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKhjvubj)}(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.chKhjubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjvubj)}(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.chKhjubj)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjvubj)}(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.chKhj$ubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjZubh)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_cut (C function) c.bitmap_cuthNtauh1hhj hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h bitmap_cuth]jm)}(h bitmap_cuth]h bitmap_cut}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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 ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdsth]hdst}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int firsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfirsth]hfirst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cuth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hcuth]hcut}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubjm)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\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)jhuh1hhjhKhjhhubj)}(hhh]h)}(hhhhNhNubah}(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.chKhj6ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjubj)}(h9``unsigned int first`` start bit of region to be removed h](j)}(h``unsigned int first``h]j)}(hjuh]hunsigned int first}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjoubj)}(hhh]h)}(h!start bit of region to be removedh]h!start bit of region to be removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``unsigned int cut`` number of bits to remove h](j)}(h``unsigned int cut``h]j)}(hjh]hunsigned int cut}(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.chKhjubj)}(hhh]h)}(hnumber of bits to removeh]hnumber of bits to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h,``unsigned int nbits`` bitmap size, in bits h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chKhjubh)}(hSet the n-th bit of **dst** iff the n-th bit of **src** is set and n is less than **first**, or the m-th bit of **src** is set for any m such that **first** <= n < nbits, and m = n + **cut**.h](hSet the n-th bit of }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh iff the n-th bit of }(hj8hhhNhNubj)}(h**src**h]hsrc}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh is set and n is less than }(hj8hhhNhNubj)}(h **first**h]hfirst}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, or the m-th bit of }(hj8hhhNhNubj)}(h**src**h]hsrc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh is set for any m such that }(hj8hhhNhNubj)}(h **first**h]hfirst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh <= n < nbits, and m = n + }(hj8hhhNhNubj)}(h**cut**h]hcut}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(h:In pictures, example for a big-endian 32-bit architecture:h]h:In pictures, example for a big-endian 32-bit architecture:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hThe **src** bitmap is::h](hThe }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bitmap is:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj#C)}(hX)31 63 | | 10000000 11000001 11110010 00010101 10000000 11000001 01110010 00010101 | | | | 16 14 0 32h]hX)31 63 | | 10000000 11000001 11110010 00010101 10000000 11000001 01110010 00010101 | | | | 16 14 0 32}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hTif **cut** is 3, and **first** is 14, bits 14-16 in **src** are cut and **dst** is::h](hif }(hjhhhNhNubj)}(h**cut**h]hcut}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 3, and }(hjhhhNhNubj)}(h **first**h]hfirst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 14, bits 14-16 in }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are cut and }(hjhhhNhNubj)}(h**dst**h]hdst}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj#C)}(hXK31 63 | | 10110000 00011000 00110010 00010101 00010000 00011000 00101110 01000010 | | | 14 (bit 17 0 32 from @src)h]hXK31 63 | | 10110000 00011000 00110010 00010101 00010000 00011000 00101110 01000010 | | | 14 (bit 17 0 32 from @src)}hjIsbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hBNote that **dst** and **src** might overlap partially or entirely.h](h Note that }(hjXhhhNhNubj)}(h**dst**h]hdst}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh and }(hjXhhhNhNubj)}(h**src**h]hsrc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh% might overlap partially or entirely.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hThis is implemented in the obvious way, with a shift and carry step for each moved bit. Optimisation is left as an exercise for the compiler.h]hThis is implemented in the obvious way, with a shift and carry step for each moved bit. Optimisation is left as an exercise for the compiler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+bitmap_find_next_zero_area_off (C function) c.bitmap_find_next_zero_area_offhNtauh1hhj hhhNhNubh)}(hhh](j)}(hunsigned long bitmap_find_next_zero_area_off (unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask, unsigned long align_offset)h]j)}(hunsigned long bitmap_find_next_zero_area_off(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask, unsigned long align_offset)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hbitmap_find_next_zero_area_offh]jm)}(hbitmap_find_next_zero_area_offh]hbitmap_find_next_zero_area_off}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(h align_maskh]h align_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long align_offseth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h align_offseth]h align_offset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhj 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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj3ubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjXh]hunsigned long *map}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjRubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(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.chMhjubj)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(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.chMhjubj)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hj<h]hunsigned long align_mask}(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.chMhj6ubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjOubj)}(h?``unsigned long align_offset`` Alignment offset for zero area. h](j)}(h``unsigned long align_offset``h]j)}(hju h]hunsigned long align_offset}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(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.chMhj3ubh)}(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.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_remap (C function)c.bitmap_remaphNtauh1hhj hhhNhNubh)}(hhh](j)}(hvoid bitmap_remap (unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h]j)}(hvoid bitmap_remap(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj'hMubjg)}(h bitmap_remaph]jm)}(h bitmap_remaph]h bitmap_remap}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj )}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnbitsh]hnbits}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhjhhubj)}(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.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj 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.chMhjubj)}(hhh]h)}(hremapped resulth]hremapped result}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hsubset to be remappedh]hsubset to be remapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hj4h]hconst unsigned long *old}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj.ubj)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjmh]hconst unsigned long *new}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjgubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" is mapped to the n-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hjhhhNhNubj)}(h**new**h]hnew}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is less than the weight of }(hjhhhNhNubj)}(h**old**h]hold}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh*, map the position of the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( to the position of the m-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, where m == n % w.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.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}(hjhhhNhNubah}(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 }(hj2 hhhNhNubj)}(h**src**h]hsrc}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubh, placing the result in }(hj2 hhhNhNubj)}(h**dst**h]hdst}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubh&, clearing any bits previously set in }(hj2 hhhNhNubj)}(h**dst**h]hdst}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubh.}(hj2 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 }(hjw hhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh has bits 4 through 7 set, and }(hjw hhhNhNubj)}(h**new**h]hnew}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw 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 }(hjw hhhNhNubj)}(h**src**h]hsrc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh8 comes into this routine with bits 1, 5 and 7 set, then }(hjw hhhNhNubj)}(h**dst**h]hdst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh) should leave with bits 1, 13 and 15 set.}(hjw 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](hbitmap_bitremap (C function)c.bitmap_bitremaphNtauh1hhj hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(hbitmap_bitremaph]jm)}(hbitmap_bitremaph]hbitmap_bitremap}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj !ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj 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 ]jah"]h$]h&]uh1j hj'!ubj)}(h h]h }(hj9!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'!ubjm)}(holdbith]holdbit}(hjG!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#!ubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hj`!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\!ubj)}(h h]h }(hjm!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\!ubj )}(hunsignedh]hunsigned}(hj{!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\!ubj )}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\!ubjm)}(holdh]hold}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#!ubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj,"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hnewh]hnew}(hj9"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#!ubj)}(hint bitsh](j )}(hinth]hint}(hjR"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjN"ubj)}(h h]h }(hj`"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN"ubjm)}(hbitsh]hbits}(hjn"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjN"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)jhuh1hhj 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"jjjuh1hhhhj 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"ubj)}(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&]uh1jhj"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 #ubj)}(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&]uh1jhj #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)}(hjK#h]hconst unsigned long *new}(hjM#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjE#ubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjd#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`#hMhja#ubah}(h]h ]h"]h$]h&]uh1jhjE#ubeh}(h]h ]h"]h$]h&]uh1jhj`#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~#ubj)}(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&]uh1jhj~#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"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}(hj%$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh is less than the weight of }(hj#hhhNhNubj)}(h**old**h]hold}(hj7$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh*, map the position of the n-th set bit in }(hj#hhhNhNubj)}(h**old**h]hold}(hjI$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh( to the position of the m-th set bit in }(hj#hhhNhNubj)}(h**new**h]hnew}(hj[$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 }(hjt$hhhNhNubj)}(h**old**h]hold}(hj|$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt$ubh- are mapped to themselves (the identity map).}(hjt$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"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.chMhj"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](hbitmap_from_arr32 (C function)c.bitmap_from_arr32hNtauh1hhj hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj%hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hj*%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj)%hMubjg)}(hbitmap_from_arr32h]jm)}(hbitmap_from_arr32h]hbitmap_from_arr32}(hj<%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj)%hMubj)}(h;(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjX%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT%ubj)}(h h]h }(hjf%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT%ubj )}(hlongh]hlong}(hjt%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT%ubjm)}(hbitmaph]hbitmap}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(hconst u32 *bufh](j)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hu32h]hu32}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE j>%sbc.bitmap_from_arr32asbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hbufh]hbuf}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj(&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$&ubj)}(h h]h }(hj6&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$&ubj )}(hinth]hint}(hjD&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$&ubj)}(h h]h }(hjR&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$&ubjm)}(hnbitsh]hnbits}(hj`&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$&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)jhuh1hhj)%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&jjjuh1hhhhj 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.chMhj&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&ubj)}(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&]uh1jhj&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.chMhj&ubj)}(hhh]h)}(h4array of u32 (in host byte order), the source bitmaph]h4array of u32 (in host byte order), the source bitmap}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj&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.chMhj7'ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjV'hhhNhNubj)}(h **bitmap**h]hbitmap}(hj^'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV'ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjS'ubah}(h]h ]h"]h$]h&]uh1jhj7'ubeh}(h]h ]h"]h$]h&]uh1jhjR'hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr32 (C function)c.bitmap_to_arr32hNtauh1hhj hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj'hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM,ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj'hM,ubjg)}(hbitmap_to_arr32h]jm)}(hbitmap_to_arr32h]hbitmap_to_arr32}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj'hM,ubj)}(h;(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu32 *bufh](h)}(hhh]jm)}(hu32h]hu32}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.bitmap_to_arr32asbuh1hhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hbufh]hbuf}(hj (hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hj9(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5(ubj)}(h h]h }(hjF(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5(ubj )}(hunsignedh]hunsigned}(hjT(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5(ubj)}(h h]h }(hjb(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5(ubj )}(hlongh]hlong}(hjp(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5(ubj)}(h h]h }(hj~(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5(ubjm)}(hbitmaph]hbitmap}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj )}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubjm)}(hnbitsh]hnbits}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(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)jhuh1hhj'hM,hj'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.chM,hj)hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,)jj,)jjjuh1hhhhj 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)}(hj6)h]h Parameters}(hj8)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4)ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM0hj0)ubj)}(hhh](j)}(h@``u32 *buf`` array of u32 (in host byte order), the dest bitmap h](j)}(h ``u32 *buf``h]j)}(hjU)h]hu32 *buf}(hjW)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM-hjO)ubj)}(hhh]h)}(h2array of u32 (in host byte order), the dest bitmaph]h2array of u32 (in host byte order), the dest bitmap}(hjn)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj)hM-hjk)ubah}(h]h ]h"]h$]h&]uh1jhjO)ubeh}(h]h ]h"]h$]h&]uh1jhjj)hM-hjL)ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj)h]hconst unsigned long *bitmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM.hj)ubj)}(hhh]h)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM.hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM.hjL)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.chM0hj)ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj)hhhNhNubj)}(h **bitmap**h]hbitmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM/hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM0hjL)ubeh}(h]h ]h"]h$]h&]uh1jhj0)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_arr64 (C function)c.bitmap_from_arr64hNtauh1hhj hhhNhNubh)}(hhh](j)}(hRvoid bitmap_from_arr64 (unsigned long *bitmap, const u64 *buf, unsigned int nbits)h]j)}(hQvoid bitmap_from_arr64(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj/*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+*hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMEubj)}(h h]h }(hj>*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+*hhhj=*hMEubjg)}(hbitmap_from_arr64h]jm)}(hbitmap_from_arr64h]hbitmap_from_arr64}(hjP*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+*hhhj=*hMEubj)}(h;(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjl*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjh*ubj)}(h h]h }(hjz*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh*ubj )}(hlongh]hlong}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjh*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh*ubjm)}(hbitmaph]hbitmap}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd*ubj)}(hconst u64 *bufh](j)}(hjh]hconst}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(hu64h]hu64}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]jR )}jE jR*sbc.bitmap_from_arr64asbuh1hhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hbufh]hbuf}(hj#+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd*ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj<+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8+ubj)}(h h]h }(hjJ+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8+ubj )}(hinth]hint}(hjX+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8+ubj)}(h h]h }(hjf+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8+ubjm)}(hnbitsh]hnbits}(hjt+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd*ubeh}(h]h ]h"]h$]h&]jjuh1jhj+*hhhj=*hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'*hhhj=*hMEubah}(h]j"*ah ](jjeh"]h$]h&]jj)jhuh1hhj=*hMEhj$*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.chMEhj+hhubah}(h]h ]h"]h$]h&]uh1jhj$*hhhj=*hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhj 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.chMIhj+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.chMFhj+ubj)}(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+hMFhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMFhj+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.chMGhj,ubj)}(hhh]h)}(h4array of u64 (in host byte order), the source bitmaph]h4array of u64 (in host byte order), the source bitmap}(hj1,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-,hMGhj.,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj-,hMGhj+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.chMIhjK,ubj)}(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.chMHhjg,ubah}(h]h ]h"]h$]h&]uh1jhjK,ubeh}(h]h ]h"]h$]h&]uh1jhjf,hMIhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr64 (C function)c.bitmap_to_arr64hNtauh1hhj hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj,hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMcubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj,hMcubjg)}(hbitmap_to_arr64h]jm)}(hbitmap_to_arr64h]hbitmap_to_arr64}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj,hMcubj)}(h;(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu64 *bufh](h)}(hhh]jm)}(hu64h]hu64}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE j,sbc.bitmap_to_arr64asbuh1hhj,ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hj'-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hbufh]hbuf}(hj4-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hjM-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI-ubj)}(h h]h }(hjZ-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI-ubj )}(hunsignedh]hunsigned}(hjh-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI-ubj)}(h h]h }(hjv-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI-ubj )}(hlongh]hlong}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI-ubjm)}(hbitmaph]hbitmap}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj )}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(hnbitsh]hnbits}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj,hMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hMcubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hMchj,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.chMchj%.hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@.jj@.jjjuh1hhhhj 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)}(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.chMghjD.ubj)}(hhh](j)}(h@``u64 *buf`` array of u64 (in host byte order), the dest bitmap h](j)}(h ``u64 *buf``h]j)}(hji.h]hu64 *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.chMdhjc.ubj)}(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~.hMdhj.ubah}(h]h ]h"]h$]h&]uh1jhjc.ubeh}(h]h ]h"]h$]h&]uh1jhj~.hMdhj`.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.chMehj.ubj)}(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.hMehj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMehj`.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.chMghj.ubj)}(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.chMfhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMghj`.ubeh}(h]h ]h"]h$]h&]uh1jhjD.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_pos_to_ord (C function)c.bitmap_pos_to_ordhNtauh1hhj hhhNhNubh)}(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}(hjC/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?/hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj)}(h h]h }(hjR/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?/hhhjQ/hMubjg)}(hbitmap_pos_to_ordh]jm)}(hbitmap_pos_to_ordh]hbitmap_pos_to_ord}(hjd/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?/hhhjQ/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|/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|/ubj )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|/ubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|/ubjm)}(hbufh]hbuf}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx/ubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj )}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj#0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(hposh]hpos}(hj10hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx/ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjJ0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjF0ubj)}(h h]h }(hjX0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjF0ubj )}(hinth]hint}(hjf0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjF0ubj)}(h h]h }(hjt0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjF0ubjm)}(hnbitsh]hnbits}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx/ubeh}(h]h ]h"]h$]h&]jjuh1jhj?/hhhjQ/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;/hhhjQ/hMubah}(h]j6/ah ](jjeh"]h$]h&]jj)jhuh1hhjQ/hMhj8/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&]uh1jhj8/hhhjQ/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj 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)}(hj0h]hconst unsigned long *buf}(hj0hhhNhNubah}(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.chMhj0ubj)}(hhh]h)}(hpointer to a bitmaph]hpointer to a bitmap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(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&]uh1jhj$1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj 1ubj)}(hhh]h)}(h4a bit position in **buf** (0 <= **pos** < **nbits**)h](ha bit position in }(hj?1hhhNhNubj)}(h**buf**h]hbuf}(hjG1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?1ubh (0 <= }(hj?1hhhNhNubj)}(h**pos**h]hpos}(hjY1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?1ubh < }(hj?1hhhNhNubj)}(h **nbits**h]hnbits}(hjk1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?1ubh)}(hj?1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;1hMhj<1ubah}(h]h ]h"]h$]h&]uh1jhj 1ubeh}(h]h ]h"]h$]h&]uh1jhj;1hMhj0ubj)}(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.chMhj1ubj)}(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&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(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 }(hj1hhhNhNubj)}(h**pos**h]hpos}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh in }(hj1hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh (of length }(hj1hhhNhNubj)}(h **nbits**h]hnbits}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhA) to the ordinal of which set bit it is. If it is not set or if }(hj1hhhNhNubj)}(h**pos**h]hpos}(hj22hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh( is not a valid bit position, map to -1.}(hj1hhhNhNubeh}(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 }(hjK2hhhNhNubj)}(h**buf**h]hbuf}(hjS2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh, then }(hjK2hhhNhNubj)}(h**pos**h]hpos}(hje2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubhL values 4 through 7 will get mapped to 0 through 3, respectively, and other }(hjK2hhhNhNubj)}(h**pos**h]hpos}(hjw2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh% values will get mapped to -1. When }(hjK2hhhNhNubj)}(h**pos**h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh" value 7 gets mapped to (returns) }(hjK2hhhNhNubj)}(h**ord**h]hord}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubhZ value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in }(hjK2hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh.}(hjK2hhhNhNubeh}(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](hbitmap_onto (C function) c.bitmap_ontohNtauh1hhj hhhNhNubh)}(hhh](j)}(hpvoid bitmap_onto (unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h]j)}(hovoid bitmap_onto(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM5ubj)}(h h]h }(hj(3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhj'3hM5ubjg)}(h bitmap_ontoh]jm)}(h bitmap_ontoh]h bitmap_onto}(hj:3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj63ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj'3hM5ubj)}(h_(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjV3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjR3ubj)}(h h]h }(hjd3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR3ubj )}(hlongh]hlong}(hjr3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjR3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR3ubjm)}(hdsth]hdst}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(horigh]horig}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubj)}(hconst unsigned long *relmaph](j)}(hjh]hconst}(hj-4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)4ubj)}(h h]h }(hj:4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)4ubj )}(hunsignedh]hunsigned}(hjH4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)4ubj)}(h h]h }(hjV4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)4ubj )}(hlongh]hlong}(hjd4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)4ubj)}(h h]h }(hjr4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)4ubjm)}(hrelmaph]hrelmap}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(hbitsh]hbits}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj'3hM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj'3hM5ubah}(h]j 3ah ](jjeh"]h$]h&]jj)jhuh1hhj'3hM5hj3hhubj)}(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.chM5hj5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj'3hM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 5jj 5jjjuh1hhhhj 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.chM9hj$5ubj)}(hhh](j)}(h3``unsigned long *dst`` resulting translated bitmap h](j)}(h``unsigned long *dst``h]j)}(hjI5h]hunsigned long *dst}(hjK5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM6hjC5ubj)}(hhh]h)}(hresulting translated bitmaph]hresulting translated bitmap}(hjb5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^5hM6hj_5ubah}(h]h ]h"]h$]h&]uh1jhjC5ubeh}(h]h ]h"]h$]h&]uh1jhj^5hM6hj@5ubj)}(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.chM7hj|5ubj)}(hhh]h)}(horiginal untranslated bitmaph]horiginal untranslated bitmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM7hj5ubah}(h]h ]h"]h$]h&]uh1jhj|5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM7hj@5ubj)}(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.chM8hj5ubj)}(hhh]h)}(h#bitmap relative to which translatedh]h#bitmap relative to which translated}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM8hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM8hj@5ubj)}(h>``unsigned int bits`` number of bits in each of these bitmaps h](j)}(h``unsigned int bits``h]j)}(hj5h]hunsigned int bits}(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.chM9hj5ubj)}(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&]uh1hhj 6hM9hj 6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj 6hM9hj@5ubeh}(h]h ]h"]h$]h&]uh1jhj$5ubh)}(h**Description**h]j)}(hj/6h]h Description}(hj16hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-6ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM;hj$5ubh)}(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 }(hjE6hhhNhNubj)}(h**dst**h]hdst}(hjM6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh3 iff there exists some m such that the n-th bit of }(hjE6hhhNhNubj)}(h **relmap**h]hrelmap}(hj_6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh is set, the m-th bit of }(hjE6hhhNhNubj)}(h**orig**h]horig}(hjq6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh is set, and the n-th bit of }(hjE6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh is also the m-th _set_ bit of }(hjE6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubhu. (If you understood the previous sentence the first time your read it, you’re overqualified for your current job.)}(hjE6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM:hj$5ubh)}(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}(hj6hhhNhNubah}(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.chM@hj$5ubh)}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh= are mapped nowhere. In particular, if for all bits m set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj17hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, m >= W, then }(hj7hhhNhNubj)}(h**dst**h]hdst}(hjC7hhhNhNubah}(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}(hjU7hhhNhNubah}(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}(hjg7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, for each bit (m) set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hjy7hhhNhNubah}(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.chMDhj$5ubj)}(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.chMghj7ubj)}(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.chMOhj7ubh)}(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 }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, it means turn on the bit in }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhJ corresponding to whatever is the first bit (if any) that is turned on in }(hj7hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhO. Since bit 0 was off in the above example, we leave off that bit (bit 30) in }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj.8hhhNhNubah}(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.chMShj7ubh)}(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 }(hjG8hhhNhNubj)}(h**orig**h]horig}(hjO8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubh8 (as in the above example), it means turn on the bit in }(hjG8hhhNhNubj)}(h**dst**h]hdst}(hja8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubhB corresponding to whatever is the second bit that is turned on in }(hjG8hhhNhNubj)}(h **relmap**h]hrelmap}(hjs8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubh. The second bit in }(hjG8hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubhO that was turned on in the above example was bit 31, so we turned on bit 31 in }(hjG8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubh.}(hjG8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMXhj7ubh)}(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.chM^hj7ubh)}(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 }(hj8hhhNhNubj)}(h**orig**h]horig}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, it means turn on the bit in }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhC corresponding to whatever is the twelfth bit that is turned on in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj!9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh?. In the above example, there were only ten bits turned on in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj39hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh% (30..39), so that bit 11 was set in }(hj8hhhNhNubj)}(h**orig**h]horig}(hjE9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh had no affect on }(hj8hhhNhNubj)}(h**dst**h]hdst}(hjW9hhhNhNubah}(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.chMchj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMghj7ubj)}(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.chMhj|9ubj)}(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.chMjhj9ubj#C)}(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&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMlhj9ubh)}(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.chMnhj9ubh)}(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.chMqhj9ubj#C)}(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);}hj9sbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMuhj9ubh)}(hXThen this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**):h](h-Then this table shows what various values of }(hj:hhhNhNubj)}(h**dst**h]hdst}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh would be, for various }(hj:hhhNhNubj)}(h**orig**h]horig}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh’s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the }(hj:hhhNhNubj)}(h**orig**h]horig}(hj-:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh" bitmap modulo ten (the weight of }(hj:hhhNhNubj)}(h **relmap**h]hrelmap}(hj?:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh):}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMzhj9ubj)}(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&]colwidthKuh1jehj_:ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj_:ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj_:ubjZf)}(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}(hj8;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj5;ubah}(h]h ]h"]h$]h&]uh1jehj2;ubje)}(hhh]h)}(hj:;h]h1}(hjP;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF;hMhjM;ubah}(h]h ]h"]h$]h&]uh1jehj2;ubje)}(hhh]h)}(h41h]h41}(hjf;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF;hMhjc;ubah}(h]h ]h"]h$]h&]uh1jehj2;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}(hj9<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj6<ubah}(h]h ]h"]h$]h&]uh1jehj3<ubje)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hjQ<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG<hMhjN<ubah}(h]h ]h"]h$]h&]uh1jehj3<ubje)}(hhh]h)}(h 41 43 48 61h]h 41 43 48 61}(hjh<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG<hMhje<ubah}(h]h ]h"]h$]h&]uh1jehj3<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.chMhj#=ubah}(h]h ]h"]h$]h&]uh1jehj =ubje)}(hhh]h)}(hj:h]h0}(hj>=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4=hMhj;=ubah}(h]h ]h"]h$]h&]uh1jehj =ubje)}(hhh]h)}(h40h]h40}(hjT=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4=hMhjQ=ubah}(h]h ]h"]h$]h&]uh1jehj =ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 0 11 22 33h]h 0 11 22 33}(hjt=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjq=ubah}(h]h ]h"]h$]h&]uh1jehjn=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&]uh1jehjn=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&]uh1jehjn=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&]uh1hhj >hMhj'>ubah}(h]h ]h"]h$]h&]uh1jehj >ubje)}(hhh]h)}(h41 42 74 [#f1]_h](h 41 42 74 }(hjA>hhhNhNubj <)}(h[#f1]_h]h1}(hjI>hhhNhNubah}(h]id2ah ]h"]h$]h&]j<Kj<j<j<j<uh1j <hjA>j <Kubeh}(h]h ]h"]h$]h&]uh1hhj >hMhj>>ubah}(h]h ]h"]h$]h&]uh1jehj >ubeh}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jYfhj_:ubeh}(h]h ]h"]h$]h&]colsKuh1jehj\:ubah}(h]h ]h"]h$]h&]uh1jehjX: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&]uh1jhj|9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj$5ubhfootnote)}(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]j<ah ]h"]f1ah$]h&](j<jS>ej<Kj<j<uh1j>hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj$5ubh)}(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.chMhj$5ubh)}(hIf (as explained above) the only set bits in **orig** are in positions m where m >= W, (where W is the weight of **relmap**) then **dst** will once again be returned empty.h](h-If (as explained above) the only set bits in }(hj?hhhNhNubj)}(h**orig**h]horig}(hj!?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh< are in positions m where m >= W, (where W is the weight of }(hj?hhhNhNubj)}(h **relmap**h]hrelmap}(hj3?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh) then }(hj?hhhNhNubj)}(h**dst**h]hdst}(hjE?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.chMhj$5ubh)}(h:All bits in **dst** not set by the above rule are cleared.h](h All bits in }(hj^?hhhNhNubj)}(h**dst**h]hdst}(hjf?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^?ubh' not set by the above rule are cleared.}(hj^?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj$5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_fold (C function) c.bitmap_foldhNtauh1hhj hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj?hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhj?hMubjg)}(h bitmap_foldh]jm)}(h bitmap_foldh]h bitmap_fold}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?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 ]jah"]h$]h&]uh1j hj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hdsth]hdst}(hj!@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj:@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6@ubj)}(h h]h }(hjG@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6@ubj )}(hunsignedh]hunsigned}(hjU@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6@ubj)}(h h]h }(hjc@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6@ubj )}(hlongh]hlong}(hjq@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6@ubjm)}(horigh]horig}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hunsigned int szh](j )}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj )}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hszh]hsz}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hinth]hint}(hj AhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hj.AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hnbitsh]hnbits}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjLDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hstarth]hstart}(hjZDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkCubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjsDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoDubj )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoDubjm)}(hnrh]hnr}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkCubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(h align_maskh]h align_mask}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkCubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhj(ChKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhj(ChKubah}(h]j Cah ](jjeh"]h$]h&]jj)jhuh1hhj(ChKhjChhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hj&EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhj#Ehhubah}(h]h ]h"]h$]h&]uh1jhjChhhj(ChKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>Ejj>Ejjjuh1hhhhj hNhNubj)}(hX%**Parameters** ``unsigned long *map`` The address to base the search on ``unsigned long size`` The bitmap size in bits ``unsigned long start`` The bitnumber to start searching at ``unsigned int nr`` The number of zeroed bits we're looking for ``unsigned long align_mask`` Alignment mask for zero area **Description** The **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required.h](h)}(h**Parameters**h]j)}(hjHEh]h Parameters}(hjJEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBEubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjgEh]hunsigned long *map}(hjiEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjaEubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|EhKhj}Eubah}(h]h ]h"]h$]h&]uh1jhjaEubeh}(h]h ]h"]h$]h&]uh1jhj|EhKhj^Eubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjEh]hunsigned long size}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubj)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj^Eubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hjEh]hunsigned long start}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubj)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj^Eubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hjFh]hunsigned int nr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhj Fubj)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hj+FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'FhKhj(Fubah}(h]h ]h"]h$]h&]uh1jhj Fubeh}(h]h ]h"]h$]h&]uh1jhj'FhKhj^Eubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjKFh]hunsigned long align_mask}(hjMFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEFubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjdFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`FhKhjaFubah}(h]h ]h"]h$]h&]uh1jhjEFubeh}(h]h ]h"]h$]h&]uh1jhj`FhKhj^Eubeh}(h]h ]h"]h$]h&]uh1jhjBEubh)}(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:84: ./include/linux/bitmap.hhKhjBEubh)}(hThe **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required.h](hThe }(hjFhhhNhNubj)}(h**align_mask**h]h align_mask}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A }(hjFhhhNhNubj)}(h**align_mask**h]h align_mask}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh% of 0 means no alignment is required.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_or_equal (C function)c.bitmap_or_equalhNtauh1hhj hhhNhNubh)}(hhh](j)}(hzbool bitmap_or_equal (const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h]j)}(hybool bitmap_or_equal(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j )}(hj8h]hbool}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjFhMubjg)}(hbitmap_or_equalh]jm)}(hbitmap_or_equalh]hbitmap_or_equal}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Gubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhMubj)}(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'Gubj)}(h h]h }(hj8GhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Gubj )}(hunsignedh]hunsigned}(hjFGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'Gubj)}(h h]h }(hjTGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Gubj )}(hlongh]hlong}(hjbGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'Gubj)}(h h]h }(hjpGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Gubj)}(hjh]h*}(hj~GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Gubjm)}(hsrc1h]hsrc1}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubj)}(hconst unsigned long *src2h](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj )}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hsrc2h]hsrc2}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubj)}(hconst unsigned long *src3h](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hj*HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hunsignedh]hunsigned}(hj8HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjFHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hlongh]hlong}(hjTHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjbHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjpHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hsrc3h]hsrc3}(hj}HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubjm)}(hnbitsh]hnbits}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhjFhhubj)}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``const unsigned long *src1`` Pointer to bitmap 1 ``const unsigned long *src2`` Pointer to bitmap 2 will be or'ed with bitmap 1 ``const unsigned long *src3`` Pointer to bitmap 3. Compare to the result of ***src1** | ***src2** ``unsigned int nbits`` number of bits in each of these bitmaps **Return** True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj)}(hhh](j)}(h2``const unsigned long *src1`` Pointer to bitmap 1 h](j)}(h``const unsigned long *src1``h]j)}(hj9Ih]hconst unsigned long *src1}(hj;IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Iubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj3Iubj)}(hhh]h)}(hPointer to bitmap 1h]hPointer to bitmap 1}(hjRIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNIhMhjOIubah}(h]h ]h"]h$]h&]uh1jhj3Iubeh}(h]h ]h"]h$]h&]uh1jhjNIhMhj0Iubj)}(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)}(hjrIh]hconst unsigned long *src2}(hjtIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjlIubj)}(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&]uh1jhjlIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj0Iubj)}(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.hhMhjIubj)}(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&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj0Iubj)}(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.hhMhjIubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj0Iubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h **Return**h]j)}(hj?Jh]hReturn}(hjAJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Jubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubh)}(h=True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h True if (}(hjUJhhhNhNubj)}(h ***src1**h]h*src1}(hj]JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUJubh | }(hjUJhhhNhNubj)}(h ***src2**h]h*src2}(hjoJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUJubh) == }(hjUJhhhNhNubj)}(h ***src3**h]h*src3}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUJubh, false otherwise}(hjUJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_scatter (C function)c.bitmap_scatterhNtauh1hhj hhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM$ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhjJhM$ubjg)}(hbitmap_scatterh]jm)}(hbitmap_scatterh]hbitmap_scatter}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhjJhM$ubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj )}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hj!KhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hj/KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hdsth]hdst}(hj 0000000001011010 0001001100010011 0000001100000010}(hjdNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM.hjLubh)}(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)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM2hjLubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM4hjLubj#C)}(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}hjNsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM6hjLubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMAhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_gather (C function)c.bitmap_gatherhNtauh1hhj hhhNhNubh)}(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}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMTubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjOhMTubjg)}(h bitmap_gatherh]jm)}(h bitmap_gatherh]h bitmap_gather}(hj&OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"Oubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjOhMTubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjBOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>Oubj)}(h h]h }(hjPOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>Oubj )}(hlongh]hlong}(hj^OhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>Oubj)}(h h]h }(hjlOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>Oubj)}(hjh]h*}(hjzOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Oubjm)}(hdsth]hdst}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj )}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj )}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hsrch]hsrc}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hj&PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hunsignedh]hunsigned}(hj4PhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjBPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjPPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hj^PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjlPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hmaskh]hmask}(hjyPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hnbitsh]hnbits}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjOhMTubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjOhMTubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjOhMThjNhhubj)}(hhh]h)}(h'Gather a bitmap according to given maskh]h'Gather a bitmap according to given mask}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMThjPhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjOhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Qjj Qjjjuh1hhhhj 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)}(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:84: ./include/linux/bitmap.hhMXhjQubj)}(hhh](j)}(h'``unsigned long *dst`` gathered bitmap h](j)}(h``unsigned long *dst``h]j)}(hj5Qh]hunsigned long *dst}(hj7QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Qubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMUhj/Qubj)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjNQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJQhMUhjKQubah}(h]h ]h"]h$]h&]uh1jhj/Qubeh}(h]h ]h"]h$]h&]uh1jhjJQhMUhj,Qubj)}(h.``const unsigned long *src`` scattered bitmap h](j)}(h``const unsigned long *src``h]j)}(hjnQh]hconst unsigned long *src}(hjpQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMVhjhQubj)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMVhjQubah}(h]h ]h"]h$]h&]uh1jhjhQubeh}(h]h ]h"]h$]h&]uh1jhjQhMVhj,Qubj)}(h]``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjQh]hconst unsigned long *mask}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWhjQubj)}(hhh]h)}(h>mask representing bits to extract from in the scattered bitmaph]h>mask representing bits to extract from in the scattered bitmap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMWhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMWhj,Qubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjQh]hunsigned int nbits}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMXhjQubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMXhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMXhj,Qubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMZhjQubh)}(h@Gathers bitmap with sparse bits according to the given **mask**.h](h7Gathers bitmap with sparse bits according to the given }(hj1RhhhNhNubj)}(h**mask**h]hmask}(hj9RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Rubh.}(hj1RhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMYhjQubh)}(h **Example**h]j)}(hjTRh]hExample}(hjVRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM[hjQubh)}(hKIf **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a.h](hIf }(hjjRhhhNhNubj)}(h**src**h]hsrc}(hjrRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjRubh bitmap = 0x0302, with }(hjjRhhhNhNubj)}(h**mask**h]hmask}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjRubh = 0x1313, }(hjjRhhhNhNubj)}(h**dst**h]hdst}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjRubh will be 0x001a.}(hjjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM\hjQubh)}(hOr in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010h](hOr in binary form }(hjRhhhNhNubj)}(h**src**h]hsrc}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh }(hjRhhhNhNubj)}(h**mask**h]hmask}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh }(hjRhhhNhNubj)}(h**dst**h]hdst}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh> 0000001100000010 0001001100010011 0000000000011010}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM^hjQubh)}(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)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMbhjQubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMdhjQubj#C)}(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}hjSsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMfhjQubh)}(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.}(hj!ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMphjQubh)}(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.}(hj0ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMthjQubh)}(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?ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMxhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"bitmap_release_region (C function)c.bitmap_release_regionhNtauh1hhj hhhNhNubh)}(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}(hjnShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjShhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj}ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjShhhj|ShMubjg)}(hbitmap_release_regionh]jm)}(hbitmap_release_regionh]hbitmap_release_region}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjShhhj|ShMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj )}(hlongh]hlong}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hbitmaph]hbitmap}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj )}(hinth]hint}(hj%ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hj3ThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hposh]hpos}(hjAThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h int orderh](j )}(hinth]hint}(hjZThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVTubj)}(h h]h }(hjhThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVTubjm)}(horderh]horder}(hjvThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjjShhhj|ShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfShhhj|ShMubah}(h]jaSah ](jjeh"]h$]h&]jj)jhuh1hhj|ShMhjcShhubj)}(hhh]h)}(hrelease allocated bitmap regionh]hrelease allocated bitmap region}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jhjcShhhj|ShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhj 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)}(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)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjTh]hunsigned long *bitmap}(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.hhMhjTubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubj)}(h8``unsigned int pos`` beginning of bit region to release h](j)}(h``unsigned int pos``h]j)}(hjUh]hunsigned int pos}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjUubj)}(hhh]h)}(h"beginning of bit region to releaseh]h"beginning of bit region to release}(hj3UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/UhMhj0Uubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhj/UhMhjTubj)}(hD``int order`` region size (log base 2 of number of bits) to release h](j)}(h ``int order``h]j)}(hjSUh]h int order}(hjUUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjMUubj)}(hhh]h)}(h5region size (log base 2 of number of bits) to releaseh]h5region size (log base 2 of number of bits) to release}(hjlUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhUhMhjiUubah}(h]h ]h"]h$]h&]uh1jhjMUubeh}(h]h ]h"]h$]h&]uh1jhjhUhMhjTubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]j)}(hjUh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(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).}(hjUhhhNhNubah}(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](h#bitmap_allocate_region (C function)c.bitmap_allocate_regionhNtauh1hhj hhhNhNubh)}(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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjUhMubjg)}(hbitmap_allocate_regionh]jm)}(hbitmap_allocate_regionh]hbitmap_allocate_region}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Vubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Vubj )}(hlongh]hlong}(hj,VhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Vubj)}(h h]h }(hj:VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Vubj)}(hjh]h*}(hjHVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Vubjm)}(hbitmaph]hbitmap}(hjUVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hjnVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjVubj)}(h h]h }(hj|VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjVubj )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjVubjm)}(hposh]hpos}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h int orderh](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(horderh]horder}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhjUhhubj)}(hhh]h)}(hallocate bitmap regionh]hallocate 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&]uh1jhjUhhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhj 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)}(hj'Wh]h Parameters}(hj)WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Wubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjFWh]hunsigned long *bitmap}(hjHWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj@Wubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hj_WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[WhMhj\Wubah}(h]h ]h"]h$]h&]uh1jhj@Wubeh}(h]h ]h"]h$]h&]uh1jhj[WhMhj=Wubj)}(h9``unsigned int pos`` beginning of bit region to allocate h](j)}(h``unsigned int pos``h]j)}(hjWh]hunsigned int pos}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Wubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjyWubj)}(hhh]h)}(h#beginning of bit region to allocateh]h#beginning of bit region to allocate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjyWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj=Wubj)}(hE``int order`` region size (log base 2 of number of bits) to allocate h](j)}(h ``int order``h]j)}(hjWh]h int order}(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.hhMhjWubj)}(hhh]h)}(h6region size (log base 2 of number of bits) to allocateh]h6region size (log base 2 of number of bits) to allocate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj=Wubeh}(h]h ]h"]h$]h&]uh1jhj!Wubh)}(h**Description**h]j)}(hjWh]h Description}(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.hhMhj!Wubh)}(h6Allocate (set bits in) a specified region of a bitmap.h]h6Allocate (set bits in) a specified region of a bitmap.}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubh)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubh)}(hU0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h0 on success, or }(hj0XhhhNhNubj)}(h ``-EBUSY``h]h-EBUSY}(hj8XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Xubh< if specified region wasn’t free (not all bits were zero).}(hj0XhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bitmap_find_free_region (C function)c.bitmap_find_free_regionhNtauh1hhj hhhNhNubh)}(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}(hjqXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmXhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmXhhhjXhMubjg)}(hbitmap_find_free_regionh]jm)}(hbitmap_find_free_regionh]hbitmap_find_free_region}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmXhhhjXhMubj)}(h5(unsigned long *bitmap, unsigned int bits, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj )}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hbitmaph]hbitmap}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hinth]hint}(hj(YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hj6YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hbitsh]hbits}(hjDYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h int orderh](j )}(hinth]hint}(hj]YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYYubj)}(h h]h }(hjkYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYYubjm)}(horderh]horder}(hjyYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjmXhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjiXhhhjXhMubah}(h]jdXah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhjfXhhubj)}(hhh]h)}(h$find a contiguous aligned mem regionh]h$find a contiguous aligned mem 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&]uh1jhjfXhhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhj 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)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjYh]hunsigned long *bitmap}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjYubj)}(h3``unsigned int bits`` number of bits in the bitmap h](j)}(h``unsigned int bits``h]j)}(hjZh]hunsigned int bits}(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.hhMhjZubj)}(hhh]h)}(hnumber of bits in the bitmaph]hnumber of bits in the bitmap}(hj6ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ZhMhj3Zubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj2ZhMhjYubj)}(hA``int order`` region size (log base 2 of number of bits) to find h](j)}(h ``int order``h]j)}(hjVZh]h int order}(hjXZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjPZubj)}(hhh]h)}(h2region size (log base 2 of number of bits) to findh]h2region size (log base 2 of number of bits) to find}(hjoZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkZhMhjlZubah}(h]h ]h"]h$]h&]uh1jhjPZubeh}(h]h ]h"]h$]h&]uh1jhjkZhMhjYubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(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.hhMhjYubh)}(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 }(hjZhhhNhNubj)}(h **bitmap**h]hbitmap}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh of }(hjZhhhNhNubj)}(h**bits**h]hbits}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubhU bits and allocate them (set them to one). Only consider regions of length a power (}(hjZhhhNhNubj)}(h **order**h]horder}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubhU) of two, aligned to that power of two, which makes the search algorithm much faster.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubh)}(h **Return**h]j)}(hjZh]hReturn}(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.hhMhjYubh)}(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.hhMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hBITMAP_FROM_U64 (C macro)c.BITMAP_FROM_U64hNtauh1hhj hhhNhNubh)}(hhh](j)}(hBITMAP_FROM_U64h]j)}(hBITMAP_FROM_U64h]jg)}(hBITMAP_FROM_U64h]jm)}(hj-[h]hBITMAP_FROM_U64}(hj7[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/[hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj+[hhhjJ[hMubah}(h]j&[ah ](jjeh"]h$]h&]jj)jhuh1hhjJ[hMhj([hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj([hhhjJ[hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjc[jjc[jjjuh1hhhhj hNhNubh)}(h``BITMAP_FROM_U64 (n)``h]j)}(hji[h]hBITMAP_FROM_U64 (n)}(hjk[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj hhubj)}(h7Represent u64 value in the format suitable for bitmap. h]h)}(h6Represent u64 value in the format suitable for bitmap.h]h6Represent u64 value in the format suitable for bitmap.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[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[ubj)}(hhh]h)}(h u64 valueh]h u64 value}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[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.hhMhj[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.hhMhj[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.}(hjJ\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](hbitmap_from_u64 (C function)c.bitmap_from_u64hNtauh1hhj hhhNhNubh)}(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}(hjy\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hju\hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhju\hhhj\hMubjg)}(hbitmap_from_u64h]jm)}(hbitmap_from_u64h]hbitmap_from_u64}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhju\hhhj\hMubj)}(h(unsigned long *dst, u64 mask)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hdsth]hdst}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hu64 maskh](h)}(hhh]jm)}(hu64h]hu64}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jR )}jE j\sbc.bitmap_from_u64asbuh1hhj]ubj)}(h h]h }(hj7]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hmaskh]hmask}(hjE]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhju\hhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjq\hhhj\hMubah}(h]jl\ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMhjn\hhubj)}(hhh]h)}(h Check and swap words within u64.h]h Check and swap words within u64.}(hjo]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjl]hhubah}(h]h ]h"]h$]h&]uh1jhjn\hhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj 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.hhMhj]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.hhMhj]ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]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.hhMhj]ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]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)}(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:^hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[*]``h]h(u32 *)(:c:type:`val`)[*]}(hjB^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:^ubh7 to read u64 mask, we will get the wrong word. That is }(hj:^hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[0]``h]h(u32 *)(:c:type:`val`)[0]}(hjT^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:^ubh@ gets the upper 32 bits, but we expect the lower 32-bits of u64.}(hj:^hhhNhNubeh}(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](hbitmap_read (C function) c.bitmap_readhNtauh1hhj hhhNhNubh)}(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^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhj^hMubj )}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhj^hMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhj^hMubjg)}(h bitmap_readh]jm)}(h bitmap_readh]h bitmap_read}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj^hMubj)}(hD(const unsigned long *map, unsigned long start, unsigned long nbits)h](j)}(hconst unsigned long *maph](j)}(hjh]hconst}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj+_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hj9_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hmaph]hmap}(hjF_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hj__hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[_ubj)}(h h]h }(hjm_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[_ubj )}(hlongh]hlong}(hj{_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[_ubjm)}(hstarth]hstart}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubjm)}(hnbitsh]hnbits}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_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)jhuh1hhj^hMhj^hhubj)}(hhh]h)}(h-read a value of n-bits from the memory regionh]h-read a value of n-bits from the memory 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&]uh1jhj^hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*`jj*`jjjuh1hhhhj 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)}(hj4`h]h Parameters}(hj6`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2`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)}(hA``const unsigned long *map`` address to the bitmap memory region h](j)}(h``const unsigned long *map``h]j)}(hjS`h]hconst unsigned long *map}(hjU`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjM`ubj)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hjl`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh`hMhji`ubah}(h]h ]h"]h$]h&]uh1jhjM`ubeh}(h]h ]h"]h$]h&]uh1jhjh`hMhjJ`ubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hj`h]hunsigned long start}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjJ`ubj)}(hL``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG h](j)}(h``unsigned long nbits``h]j)}(hj`h]hunsigned long nbits}(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`ubj)}(hhh]h)}(h3size of value in bits, nonzero, up to BITS_PER_LONGh]h3size of value in bits, nonzero, up to BITS_PER_LONG}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjJ`ubeh}(h]h ]h"]h$]h&]uh1jhj.`ubh)}(h **Return**h]j)}(hjah]hReturn}(hjahhhNhNubah}(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.`ubh)}(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 }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh bits located at the }(hjahhhNhNubj)}(h **start**h]hstart}(hj0ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh bit offset within the }(hjahhhNhNubj)}(h**map**h]hmap}(hjBahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh memory region. For }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjTahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh = 0 and }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjfahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh/ > BITS_PER_LONG the return value is undefined.}(hjahhhNhNubeh}(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](hbitmap_write (C function)c.bitmap_writehNtauh1hhj hhhNhNubh)}(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}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjahhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM!ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjahhhjahM!ubjg)}(h bitmap_writeh]jm)}(h bitmap_writeh]h bitmap_write}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhjahM!ubj)}(hS(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj )}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hmaph]hmap}(hj!bhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long valueh](j )}(hunsignedh]hunsigned}(hj:bhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6bubj)}(h h]h }(hjHbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6bubj )}(hlongh]hlong}(hjVbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6bubj)}(h h]h }(hjdbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6bubjm)}(hvalueh]hvalue}(hjrbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj )}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hstarth]hstart}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj )}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hnbitsh]hnbits}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(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)jhuh1hhjahM!hjahhubj)}(hhh]h)}(h(write n-bit value within a memory regionh]h(write n-bit value within a memory region}(hj>chhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM!hj;chhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVcjjVcjjjuh1hhhhj 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)}(hj`ch]h Parameters}(hjbchhhNhNubah}(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.hhM%hjZcubj)}(hhh](j)}(h;``unsigned long *map`` address to the bitmap memory region h](j)}(h``unsigned long *map``h]j)}(hjch]hunsigned long *map}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}cubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM"hjycubj)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM"hjcubah}(h]h ]h"]h$]h&]uh1jhjycubeh}(h]h ]h"]h$]h&]uh1jhjchM"hjvcubj)}(h9``unsigned long value`` value to write, clamped to nbits h](j)}(h``unsigned long value``h]j)}(hjch]hunsigned long value}(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.hhM#hjcubj)}(hhh]h)}(h value to write, clamped to nbitsh]h value to write, clamped to nbits}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM#hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM#hjvcubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hjch]hunsigned long start}(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.hhM$hjcubj)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM$hjdubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjdhM$hjvcubj)}(hM``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. h](j)}(h``unsigned long nbits``h]j)}(hj*dh]hunsigned long nbits}(hj,dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(dubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM%hj$dubj)}(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.}(hjCdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?dhM%hj@dubah}(h]h ]h"]h$]h&]uh1jhj$dubeh}(h]h ]h"]h$]h&]uh1jhj?dhM%hjvcubeh}(h]h ]h"]h$]h&]uh1jhjZcubh)}(h**Description**h]j)}(hjedh]h Description}(hjgdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM'hjZcubh)}(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 }(hj{dhhhNhNubj)}(h **nbits**h]hnbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{dubh+ calls of __assign_bit(), i.e. bits beyond }(hj{dhhhNhNubj)}(h **nbits**h]hnbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{dubh are ignored:}(hj{dhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM&hjZcubj)}(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++)}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM*hjdubj)}(hhh]h)}(h2__assign_bit(start + bit, bitmap, val & BIT(bit));h]h2__assign_bit(start + bit, bitmap, val & BIT(bit));}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM*hjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM*hjdubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM)hjZcubh)}(hIFor **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](hFor }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh == 0 and }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh) > BITS_PER_LONG no writes are performed.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM,hjZcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]bitmap-operationsah ]h"]bitmap operationsah$]h&]uh1hhjhhhhhK@ubh)}(hhh](h)}(hCommand-line Parsingh]hCommand-line Parsing}(hj7ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ehhhhhKXubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_option (C function) c.get_optionhNtauh1hhj4ehhhNhNubh)}(hhh](j)}(h&int get_option (char **str, int *pint)h]j)}(h%int get_option(char **str, int *pint)h](j )}(hinth]hint}(hj^ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZehhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$ubj)}(h h]h }(hjmehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZehhhjlehK$ubjg)}(h get_optionh]jm)}(h get_optionh]h get_option}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{eubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZehhhjlehK$ubj)}(h(char **str, int *pint)h](j)}(h char **strh](j )}(hcharh]hchar}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hstrh]hstr}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h int *pinth](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hpinth]hpint}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjZehhhjlehK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVehhhjlehK$ubah}(h]jQeah ](jjeh"]h$]h&]jj)jhuh1hhjlehK$hjSehhubj)}(hhh]h)}(h#Parse integer from an option stringh]h#Parse integer from an option string}(hj=fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$hj:fhhubah}(h]h ]h"]h$]h&]uh1jhjSehhhjlehK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUfjjUfjjjuh1hhhhj4ehNhNubj)}(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)}(hj_fh]h Parameters}(hjafhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]fubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjYfubj)}(hhh](j)}(h``char **str`` option string h](j)}(h``char **str``h]j)}(hj~fh]h char **str}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|fubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK%hjxfubj)}(hhh]h)}(h option stringh]h option string}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhK%hjfubah}(h]h ]h"]h$]h&]uh1jhjxfubeh}(h]h ]h"]h$]h&]uh1jhjfhK%hjufubj)}(hB``int *pint`` (optional output) integer value parsed from **str** h](j)}(h ``int *pint``h]j)}(hjfh]h int *pint}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK&hjfubj)}(hhh]h)}(h3(optional output) integer value parsed from **str**h](h,(optional output) integer value parsed from }(hjfhhhNhNubj)}(h**str**h]hstr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1hhjfhK&hjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhK&hjufubeh}(h]h ]h"]h$]h&]uh1jhjYfubh)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjYfubj)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK'hjgubh)}(hbWhen **pint** is NULL the function can be used as a validator of the current option in the string.h](hWhen }(hj)ghhhNhNubj)}(h**pint**h]hpint}(hj1ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)gubhU is NULL the function can be used as a validator of the current option in the string.}(hj)ghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK*hjgubh)}(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}(hjJghhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK-hjgubh)}(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.}(hjYghhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK3hjgubeh}(h]h ]h"]h$]h&]uh1jhj(ghK'hjYfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4ehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_options (C function) c.get_optionshNtauh1hhj4ehhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKSubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghKSubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghKSubjg)}(h get_optionsh]jm)}(h get_optionsh]h get_options}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghKSubj)}(h'(const char *str, int nints, int *ints)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj )}(hcharh]hchar}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hstrh]hstr}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h int nintsh](j )}(hinth]hint}(hj5hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hubj)}(h h]h }(hjChhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hubjm)}(hnintsh]hnints}(hjQhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h int *intsh](j )}(hinth]hint}(hjjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhubj)}(h h]h }(hjxhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhubjm)}(hintsh]hints}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghKSubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghKShjghhubj)}(hhh]h)}(h&Parse a string into a list of integersh]h&Parse a string into a list of integers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKShjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj4ehNhNubj)}(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)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjhubj)}(hhh](j)}(h(``const char *str`` String to be parsed h](j)}(h``const char *str``h]j)}(hjhh]hconst char *str}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKThjhubj)}(hhh]h)}(hString to be parsedh]hString to be parsed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKThjiubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjihKThjhubj)}(h$``int nints`` size of integer array h](j)}(h ``int nints``h]j)}(hj7ih]h int nints}(hj9ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5iubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKUhj1iubj)}(hhh]h)}(hsize of integer arrayh]hsize of integer array}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLihKUhjMiubah}(h]h ]h"]h$]h&]uh1jhj1iubeh}(h]h ]h"]h$]h&]uh1jhjLihKUhjhubj)}(hF``int *ints`` integer array (must have room for at least one element) h](j)}(h ``int *ints``h]j)}(hjpih]h int *ints}(hjrihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjniubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKVhjjiubj)}(hhh]h)}(h7integer array (must have room for at least one element)h]h7integer array (must have room for at least one element)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKVhjiubah}(h]h ]h"]h$]h&]uh1jhjjiubeh}(h]h ]h"]h$]h&]uh1jhjihKVhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(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.chKXhjhubj)}(hXThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string. When **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below. The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**. Return value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](h)}(hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.h]hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjiubh)}(hWhen **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below.h](hWhen }(hjihhhNhNubj)}(h **nints**h]hnints}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh- is 0, the function just validates the given }(hjihhhNhNubj)}(h**str**h]hstr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhA and returns the amount of parseable integers as described below.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK]hjiubh)}(h{The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**.h](hsThe first element is filled by the number of collected integers in the range. The rest is what was parsed from the }(hjjhhhNhNubj)}(h**str**h]hstr}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKahjiubh)}(hReturn value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](hkReturn value is the character in the string which caused the parse to end (typically a null terminator, if }(hj(jhhhNhNubj)}(h**str**h]hstr}(hj0jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(jubh is completely parseable).}(hj(jhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKdhjiubeh}(h]h ]h"]h$]h&]uh1jhjihKWhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4ehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemparse (C function) c.memparsehNtauh1hhj4ehhhNhNubh)}(hhh](j)}(hhjYqubh)}(hThe error code within **ptr**.h](hThe error code within }(hjqhhhNhNubj)}(h**ptr**h]hptr}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK=hjYqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hIS_ERR (C function)c.IS_ERRhNtauh1hhjlhhhNhNubh)}(hhh](j)}(h%bool IS_ERR (__force const void *ptr)h]j)}(h$bool IS_ERR(__force const void *ptr)h](j )}(hj8h]hbool}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj rhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKHubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj rhhhjrhKHubjg)}(hIS_ERRh]jm)}(hIS_ERRh]hIS_ERR}(hj0rhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,rubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj rhhhjrhKHubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjHrhhhNhNubj)}(h h]h }(hjPrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHrubj)}(hjh]hconst}(hj^rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHrubj)}(h h]h }(hjkrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHrubj )}(hvoidh]hvoid}(hjyrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHrubjm)}(hptrh]hptr}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDrubah}(h]h ]h"]h$]h&]jjuh1jhj rhhhjrhKHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhKHubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhKHhjrhhubj)}(hhh]h)}(hDetect an error pointer.h]hDetect an error pointer.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKHhjrhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhjlhNhNubj)}(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)}(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.hhKLhjrubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hj sh]h__force const void *ptr}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj subah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKIhjsubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hj&shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"shKIhj#subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj"shKIhjsubah}(h]h ]h"]h$]h&]uh1jhjrubh)}(h **Return**h]j)}(hjHsh]hReturn}(hjJshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKKhjrubh)}(h5true if **ptr** is an error pointer, false otherwise.h](htrue if }(hj^shhhNhNubj)}(h**ptr**h]hptr}(hjfshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^subh& is an error pointer, false otherwise.}(hj^shhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKJhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hIS_ERR_OR_NULL (C function)c.IS_ERR_OR_NULLhNtauh1hhjlhhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjshKUubjg)}(hIS_ERR_OR_NULLh]jm)}(hIS_ERR_OR_NULLh]hIS_ERR_OR_NULL}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjshKUubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjshhhNhNubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hj$thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hptrh]hptr}(hj1thhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjshhhjshKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjshKUubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshKUhjshhubj)}(hhh]h)}(h*Detect an error pointer or a null pointer.h]h*Detect an error pointer or a null pointer.}(hj[thhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUhjXthhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjstjjstjjjuh1hhhhjlhNhNubj)}(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)}(hj}th]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{tubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKYhjwtubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hjth]h__force const void *ptr}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKVhjtubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKVhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthKVhjtubah}(h]h ]h"]h$]h&]uh1jhjwtubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXhjwtubh)}(h8Like IS_ERR(), but also returns true for a null pointer.h]h8Like IS_ERR(), but also returns true for a null pointer.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKWhjwtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hERR_CAST (C function) c.ERR_CASThNtauh1hhjlhhhNhNubh)}(hhh](j)}(h)void * ERR_CAST (__force const void *ptr)h]j)}(h'void *ERR_CAST(__force const void *ptr)h](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`ubj)}(h h]h }(hj+uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhj*uhK`ubj)}(hjh]h*}(hj9uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhj*uhK`ubjg)}(hERR_CASTh]jm)}(hERR_CASTh]hERR_CAST}(hjJuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhj*uhK`ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjbuhhhNhNubj)}(h h]h }(hjjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbuubj)}(hjh]hconst}(hjxuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbuubj )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubjm)}(hptrh]hptr}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^uubah}(h]h ]h"]h$]h&]jjuh1jhjuhhhj*uhK`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhj*uhK`ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhj*uhK`hjuhhubj)}(hhh]h)}(h?Explicitly cast an error-valued pointer to another pointer typeh]h?Explicitly cast an error-valued pointer to another pointer type}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`hjuhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhj*uhK`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhjlhNhNubj)}(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)}(hjvh]h Parameters}(hj vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKdhjvubj)}(hhh]j)}(h1``__force const void *ptr`` The pointer to cast. h](j)}(h``__force const void *ptr``h]j)}(hj'vh]h__force const void *ptr}(hj)vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%vubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKahj!vubj)}(hhh]h)}(hThe pointer to cast.h]hThe pointer to cast.}(hj@vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hnumh]hnum}(hjLyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjymodnameN classnameNjI jL )}jO ]j:yc.sort_rasbuh1hhjayubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjayubjm)}(hsizeh]hsize}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjayubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hcmp_r_func_t cmp_funch](h)}(hhh]jm)}(h cmp_r_func_th]h cmp_r_func_t}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j:yc.sort_rasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hcmp_funch]hcmp_func}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hswap_r_func_t swap_funch](h)}(hhh]jm)}(h swap_r_func_th]h swap_r_func_t}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j:yc.sort_rasbuh1hhjyubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(h swap_funch]h swap_func}(hj$zhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hconst void *privh](j)}(hjh]hconst}(hj=zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9zubj)}(h h]h }(hjJzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9zubj )}(hvoidh]hvoid}(hjXzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9zubj)}(h h]h }(hjfzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9zubj)}(hjh]h*}(hjtzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9zubjm)}(hprivh]hpriv}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj)}(hhh]h)}(hsort an array of elementsh]hsort an array of elements}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhjrxhNhNubj)}(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)}(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:102: ./lib/sort.chMhjzubj)}(hhh](j)}(h'``void *base`` pointer to data to sort h](j)}(h``void *base``h]j)}(hjzh]h void *base}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzubj)}(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&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjzubj)}(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{ubj)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(hj>{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:{hMhj;{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj:{hMhjzubj)}(h%``size_t size`` size of each element 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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjX{ubj)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjw{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs{hMhjt{ubah}(h]h ]h"]h$]h&]uh1jhjX{ubeh}(h]h ]h"]h$]h&]uh1jhjs{hMhjzubj)}(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{ubj)}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjzubj)}(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{ubj)}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjzubj)}(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|ubj)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hj"|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjD|h]h Description}(hjF|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB|ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzubh)}(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.}(hjZ|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzubh)}(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.}(hji|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM"hjzubh)}(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.}(hjx|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM)hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsort_r_nonatomic (C function)c.sort_r_nonatomichNtauh1hhjrxhhhNhNubh)}(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}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM9ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhj|hM9ubjg)}(hsort_r_nonatomich]jm)}(hsort_r_nonatomich]hsort_r_nonatomic}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hM9ubj)}(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 ]jah"]h$]h&]uh1j hj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hbaseh]hbase}(hj }hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h size_t numh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj)}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+}modnameN classnameNjI jL )}jO ]jR )}jE j|sbc.sort_r_nonatomicasbuh1hhj"}ubj)}(h h]h }(hjI}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"}ubjm)}(hnumh]hnum}(hjW}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjs}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetju}modnameN classnameNjI jL )}jO ]jE}c.sort_r_nonatomicasbuh1hhjl}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjl}ubjm)}(hsizeh]hsize}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hcmp_r_func_t cmp_funch](h)}(hhh]jm)}(h cmp_r_func_th]h cmp_r_func_t}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jE}c.sort_r_nonatomicasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hcmp_funch]hcmp_func}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hswap_r_func_t swap_funch](h)}(hhh]jm)}(h swap_r_func_th]h swap_r_func_t}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jE}c.sort_r_nonatomicasbuh1hhj}ubj)}(h h]h }(hj!~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(h swap_funch]h swap_func}(hj/~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hconst void *privh](j)}(hjh]hconst}(hjH~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD~ubj)}(h h]h }(hjU~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjD~ubj )}(hvoidh]hvoid}(hjc~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjD~ubj)}(h h]h }(hjq~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjD~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD~ubjm)}(hprivh]hpriv}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjD~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hM9ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hM9hj|hhubj)}(hhh]h)}(h,sort an array of elements, with cond_reschedh]h,sort an array of elements, with cond_resched}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM9hj~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjrxhNhNubj)}(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)}(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.chM:hj~ubj)}(hhh]h)}(hpointer to data to sorth]hpointer to data to sort}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM:hj ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj hM:hj~ubj)}(h"``size_t num`` number of elements h](j)}(h``size_t num``h]j)}(hj0h]h size_t num}(hj2hhhNhNubah}(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*ubj)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM;hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM;hj~ubj)}(h%``size_t size`` size of each element h](j)}(h``size_t size``h]j)}(hjih]h size_t size}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM<hjcubj)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hM<hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM<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=hjubj)}(hhh]h)}(hpointer to comparison functionh]hpointer to comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hjh]hswap_r_func_t swap_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM>hjubj)}(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&]uh1jhjubeh}(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?hjubj)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM?hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM?hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(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().}(hjehhhNhNubah}(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&]uh1jhjrxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_sort (C function) c.list_sorthNtauh1hhjrxhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKcubjg)}(h list_sorth]jm)}(h list_sorth]h list_sort}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKcubj)}(h9(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j)}(h void *privh](j )}(hvoidh]hvoid}(hjрhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj̀ubj)}(h h]h }(hj߀hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̀ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̀ubjm)}(hprivh]hpriv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̀ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɀubj)}(hstruct list_head *headh](j)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h list_headh]h list_head}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE jsb c.list_sortasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɀubj)}(hlist_cmp_func_t cmph](h)}(hhh]jm)}(hlist_cmp_func_th]hlist_cmp_func_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jN c.list_sortasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmph]hcmp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɀubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKchjhhubj)}(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.chKchj܁hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrxhNhNubj)}(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.chKghjubj)}(hhh](j)}(hF``void *priv`` private data, opaque to list_sort(), passed to **cmp** h](j)}(h``void *priv``h]j)}(hj h]h void *priv}(hj"hhhNhNubah}(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.chKdhjubj)}(hhh]h)}(h6private data, opaque to list_sort(), passed to **cmp**h](h/private data, opaque to list_sort(), passed to }(hj9hhhNhNubj)}(h**cmp**h]hcmp}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1hhj5hKdhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKdhjubj)}(h,``struct list_head *head`` the list to sort h](j)}(h``struct list_head *head``h]j)}(hjgh]hstruct list_head *head}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKehjaubj)}(hhh]h)}(hthe list to sorth]hthe list to sort}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKehj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKehjubj)}(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.chKfhjubj)}(hhh]h)}(h the elements comparison functionh]h the elements comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chKhhjubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort after }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (”}(hjhhhNhNubj)}(h**a**h]ha}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh > }(hjhhhNhNubj)}(h**b**h]hb}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0” if you want an ascending sort), and <= 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort before }(hjhhhNhNubj)}(h**b**h]hb}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubhemphasis)}(h*or*h]hor}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubhq their original order should be preserved. It is always called with the element that came first in the input in }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL, and list_sort is a stable sort, so it is not necessary to distinguish the }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh < }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == }(hjhhhNhNubj)}(h**b**h]hb}(hjӃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKghjubh)}(hX&The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0.h](hThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh') must return the opposite sign of cmp(}(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**a**h]ha}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh). - Transitivity: if cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**b**h]hb}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0 and cmp(}(hjhhhNhNubj)}(h**b**h]hb}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**c**h]hc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0, then cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKnhjubh)}(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.chKuhjubh)}(h0A good way to write a multi-word comparison is::h]h/A good way to write a multi-word comparison is:}(hjЄhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK{hjubj#C)}(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&]jjuh1j"ChT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK}hjubh)}(hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.h]hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(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.chKhjubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hEach time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).h]hEach time we increment “count”, we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it's safe to merge away two lists of size 2^k.h]hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it’s safe to merge away two lists of size 2^k.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.h]hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.}(hj9hhhNhNubah}(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:}(hjHhhhNhNubah}(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)}(hj\h]hCThe state of bit k-1 (when k == 0, consider bit -1 always set), and}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjZubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(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)).}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjrubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjkhKhjubh)}(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&]uh1jhjrxhhhNhNubeh}(h]sortingah ]h"]sortingah$]h&]uh1hhjhhhhhKdubh)}(hhh](h)}(hText Searchingh]hText Searching}(hjЅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͅhhhhhKmubh)}(h INTRODUCTIONh]h INTRODUCTION}(hjޅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK hjͅhhubj)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user. h]h)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.h]hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjͅhhubh)}(h ARCHITECTUREh]h ARCHITECTURE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjͅhhubj#C)}(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%xj&xnonej'x}uh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjͅhhubh)}(hUSAGEh]hUSAGE}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK6hjͅhhubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK8hj5ubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKAhj5ubh)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKIhj5ubeh}(h]h ]h"]h$]h&]uh1jhjGhK8hjͅhhubh)}(h EXAMPLE::h]hEXAMPLE:}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKLhjͅhhubj#C)}(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);}hj{sbah}(h]h ]h"]h$]h&]jjuh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKNhjͅhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h textsearch_register (C function)c.textsearch_registerhNtauh1hhjͅhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(htextsearch_registerh]jm)}(htextsearch_registerh]htextsearch_register}(hjĆhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܆ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj܆ubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jƆsbc.textsearch_registerasbuh1hhj܆ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj܆ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܆ubjm)}(hopsh]hops}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj܆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)jhuh1hhjhKhjhhubj)}(hhh]h)}(hregister a textsearch moduleh]hregister a textsearch module}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhjͅhNhNubj)}(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)}(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)}(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.chKhjubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj߇h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݇ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(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.chKhjubh)}(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.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"textsearch_unregister (C function)c.textsearch_unregisterhNtauh1hhjͅhhhNhNubh)}(hhh](j)}(h.int textsearch_unregister (struct ts_ops *ops)h]j)}(h-int textsearch_unregister(struct ts_ops *ops)h](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjShKubjg)}(htextsearch_unregisterh]jm)}(htextsearch_unregisterh]htextsearch_unregister}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjShKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.textsearch_unregisterasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjΈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjm)}(hopsh]hops}(hjۈhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubah}(h]h ]h"]h$]h&]jjuh1jhjAhhhjShKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhjShKubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShKhj: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:hhhjShKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(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)}(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:114: ./lib/textsearch.chKhj!ubj)}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hjFh]hstruct ts_ops *ops}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj@ubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj!ubh)}(hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration.h](hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The }(hjhhhNhNubh)}(h :c:type:`ops`h]j)}(hjh]hops}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jL )}jO ]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&]uh1hhjÉhKhj!ubh)}(hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.h]hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.}(hjΉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_find_continuous (C function)c.textsearch_find_continuoushNtauh1hhjͅhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKubjg)}(htextsearch_find_continuoush]jm)}(htextsearch_find_continuoush]htextsearch_find_continuous}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKubj)}(hT(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE j<sbc.textsearch_find_continuousasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hstruct ts_state *stateh](j)}(hjh]hstruct}(hjȊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊubj)}(h h]h }(hjՊhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĊubh)}(hhh]jm)}(hts_stateh]hts_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.textsearch_find_continuousasbuh1hhjĊubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĊubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊubjm)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjĊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst void *datah](j)}(hjh]hconst}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj )}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hdatah]hdata}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hj͋hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjhhubj)}(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&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hX**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state ``const void *data`` data to search in ``unsigned int len`` length of data **Description** A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches. Returns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hj8h]hstruct ts_config *conf}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj2ubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjqh]hstruct ts_state *state}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjkubj)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubj)}(h'``const void *data`` data to search in h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hdata to search inh]hdata to search in}(hjÌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubj)}(h$``unsigned int len`` length of 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj݌ubj)}(hhh]h)}(hlength of datah]hlength of data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj݌ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]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: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.}(hj4hhhNhNubah}(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 }(hjChhhNhNubj)}(h ``UINT_MAX``h]hUINT_MAX}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh if no occurrence was found.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_prepare (C function)c.textsearch_preparehNtauh1hhjͅhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE textsearch_preparesbc.textsearch_prepareasbuh1hhjhhhjhKubj)}(h h]h }(hjčhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjҍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(htextsearch_prepareh]jm)}(hjh]htextsearch_prepare}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjߍubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(halgoh]halgo}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *patternh](j)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hpatternh]hpattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjƎhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjԎhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.textsearch_prepareasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubjm)}(hflagsh]hflags}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjyhhubj)}(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&]uh1jhjyhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(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ҏubj)}(hhh]h)}(hname of search algorithmh]hname of search algorithm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjҏubeh}(h]h ]h"]h$]h&]uh1jhjhKhjϏubj)}(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.chKhj ubj)}(hhh]h)}(h pattern datah]h pattern data}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjϏubj)}(h'``unsigned int len`` length of pattern h](j)}(h``unsigned int len``h]j)}(hjJh]hunsigned int len}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjDubj)}(hhh]h)}(hlength of patternh]hlength of pattern}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjϏubj)}(h#``gfp_t gfp_mask`` allocation mask 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj}ubj)}(hhh]h)}(hallocation maskh]hallocation mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjϏubj)}(h``int flags`` search flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(h search flagsh]h search flags}(hjՐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѐhKhjҐubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѐhKhjϏubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.}(hj hhhNhNubah}(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}(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)}(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.chMhj7ubj)}(hhh]h)}(hthe various search algorithms.h]hthe various search algorithms.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_destroy (C function)c.textsearch_destroyhNtauh1hhjͅhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM3ubjg)}(htextsearch_destroyh]jm)}(htextsearch_destroyh]htextsearch_destroy}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM3ubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjّhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՑubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՑubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_destroyasbuh1hhjՑubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՑubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՑubjm)}(hconfh]hconf}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjՑubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjёubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM3hjhhubj)}(hhh]h)}(hdestroy a search configurationh]hdestroy a search configuration}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3hjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhjͅhNhNubj)}(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)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM7hjxubj)}(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.chM4hjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(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.chM6hjxubh)}(hEReleases all references of the configuration and frees up the memory.h]hEReleases all references of the configuration and frees up the memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM5hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_next (C function)c.textsearch_nexthNtauh1hhjͅhhhNhNubh)}(hhh](j)}(hMunsigned int textsearch_next (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_next(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj+hK_ubj )}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj+hK_ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj+hK_ubjg)}(htextsearch_nexth]jm)}(htextsearch_nexth]htextsearch_next}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj+hK_ubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sbc.textsearch_nextasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hj“hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hconfh]hconf}(hjϓhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct ts_state *stateh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_stateh]hts_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.textsearch_nextasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstateh]hstate}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj+hK_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj+hK_hjhhubj)}(hhh]h)}(h continue searching for a patternh]h continue searching for a pattern}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_hjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hXy**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Continues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state. Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKchjubj)}(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`hjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjÔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjh]hstruct ts_state *state}(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.hhKahjݔubj)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKahjubah}(h]h ]h"]h$]h&]uh1jhjݔubeh}(h]h ]h"]h$]h&]uh1jhjhKahjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:117: ./include/linux/textsearch.hhKchjubh)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKbhjubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_find (C function)c.textsearch_findhNtauh1hhjͅhhhNhNubh)}(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}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjhKvubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhjhKvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjhKvubjg)}(htextsearch_findh]jm)}(htextsearch_findh]htextsearch_find}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjhKvubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(Chstruct ts_config *confh](j)}(hjh]hstruct}(hj˕hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǕubj)}(h h]h }(hjؕhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǕubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_findasbuh1hhjǕubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǕubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǕubjm)}(hconfh]hconf}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjǕubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjÕubj)}(hstruct ts_state *stateh](j)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubh)}(hhh]jm)}(hts_stateh]hts_state}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jc.textsearch_findasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjÕubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhKvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjhKvubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhKvhjghhubj)}(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&]uh1jhjghhhjhKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjj֖jj֖jjjuh1hhhhjͅhNhNubj)}(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)}(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.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.hhKwhjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hj8h]hstruct ts_state *state}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKxhj2ubj)}(hhh]h)}(h search stateh]h search state}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKxhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKxhjubeh}(h]h ]h"]h$]h&]uh1jhjږubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKzhjږubh)}(hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.h]hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKyhjږubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#textsearch_get_pattern (C function)c.textsearch_get_patternhNtauh1hhjͅhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hjǗhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjƗhKubj)}(hjh]h*}(hj՗hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjƗhKubjg)}(htextsearch_get_patternh]jm)}(htextsearch_get_patternh]htextsearch_get_pattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjƗhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_get_patternasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjƗhKhjhhubj)}(hhh]h)}(hreturn head of the patternh]hreturn head 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&]uh1jhjhhhjƗhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(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)}(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.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۘhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_get_pattern_len (C function)c.textsearch_get_pattern_lenhNtauh1hhjͅhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj.hKubj )}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj.hKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj.hKubjg)}(htextsearch_get_pattern_lenh]jm)}(htextsearch_get_pattern_lenh]htextsearch_get_pattern_len}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj.hKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j_sbc.textsearch_get_pattern_lenasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjřhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hconfh]hconf}(hjҙhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj.hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj.hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj.hKhjhhubj)}(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&]uh1jhjhhhj.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.hhKhj7ubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubeh}(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&]uh1hhjhhhhhKzubh)}(hhh](h)}(hArithmetic Overflow Checkingh]hArithmetic Overflow Checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_add_overflow (C macro)c.check_add_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_add_overflowh]j)}(hcheck_add_overflowh]jg)}(hcheck_add_overflowh]jm)}(hjÚh]hcheck_add_overflow}(hj͚hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɚubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjŚhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK3ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK3hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_add_overflow (a, b, d)``h]j)}(hjh]hcheck_add_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK5hjhhubj)}(h*Calculate addition with overflow checking h]h)}(h)Calculate addition with overflow checkingh]h)Calculate addition with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK3hjubah}(h]h ]h"]h$]h&]uh1jhj'hK3hjhhubj)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK7hj.ubj)}(hhh](j)}(h``a`` first addend h](j)}(h``a``h]j)}(hjSh]ha}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK4hjMubj)}(hhh]h)}(h first addendh]h first addend}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhK4hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhK4hjJubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK5hjubj)}(hhh]h)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjJubj)}(h``d`` pointer to store sum 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:127: ./include/linux/overflow.hhK6hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڛhK6hjJubeh}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK8hj.ubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK7hj.ubh)}(h_***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubhY holds the results of the attempted addition, 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.hhK9hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_add (C macro)c.wrapping_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_addh]j)}(h wrapping_addh]jg)}(h wrapping_addh]jm)}(hj\h]h wrapping_add}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKAubah}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjyhKAubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjyhKAhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjyhKAubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``wrapping_add (type, a, b)``h]j)}(hjh]hwrapping_add (type, a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKChjhhubj)}(h*Intentionally perform a wrapping addition h]h)}(h)Intentionally perform a wrapping additionh]h)Intentionally perform a wrapping addition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKAhjubah}(h]h ]h"]h$]h&]uh1jhjhKAhjhhubj)}(h**Parameters** ``type`` type for result of calculation ``a`` first addend ``b`` second addend **Description** Return the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hj͜h]h Parameters}(hjϜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˜ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKEhjǜubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKBhjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKBhjubj)}(h``a`` first addend 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.hhKChjubj)}(hhh]h)}(h first addendh]h first addend}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKChj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKChjubj)}(h``b`` second addend 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.hhKDhjXubj)}(hhh]h)}(h second addendh]h second addend}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKDhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKDhjubeh}(h]h ]h"]h$]h&]uh1jhjǜ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)}(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.hhKEhjǜubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_assign_add (C macro)c.wrapping_assign_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(hwrapping_assign_addh]j)}(hwrapping_assign_addh]jg)}(hwrapping_assign_addh]jm)}(hj؝h]hwrapping_assign_add}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjޝubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjڝhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKQubah}(h]h ]h"]h$]h&]jjjuh1jjjhj֝hhhjhKQubah}(h]jѝah ](jjeh"]h$]h&]jj)jhuh1hhjhKQhjӝhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjӝhhhjhKQubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKQhj*ubah}(h]h ]h"]h$]h&]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)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKUhjCubj)}(hhh](j)}(h#``var`` variable to be incremented h](j)}(h``var``h]j)}(hjhh]hvar}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKRhjbubj)}(hhh]h)}(hvariable to be incrementedh]hvariable to be incremented}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKRhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKRhj_ubj)}(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.hhKShjubj)}(hhh]h)}(h amount to addh]h amount to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKShj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(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.hhKUhjCubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 with wrap-around. Returns the resulting value of }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKThjCubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hj7hhhNhNubj)}(h**var**h]hvar}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKWhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_sub_overflow (C macro)c.check_sub_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_sub_overflowh]j)}(hcheck_sub_overflowh]jg)}(hcheck_sub_overflowh]jm)}(hjrh]hcheck_sub_overflow}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKaubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhKaubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhKahjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjmhhhjhKaubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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}(hjȟhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKahjğubah}(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)}(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.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.hhKbhjubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKchj5ubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjThhhNhNubj)}(h**a**h]ha}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1hhjPhKchjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKchjubj)}(h"``d`` pointer to store difference 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.hhKdhj|ubj)}(hhh]h)}(hpointer to store differenceh]hpointer to store difference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKdhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKdhjubeh}(h]h ]h"]h$]h&]uh1jhjݟ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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ holds the results of the attempted subtraction, 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.hhKghjݟubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_sub (C macro)c.wrapping_subhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_subh]j)}(h wrapping_subh]jg)}(h wrapping_subh]jm)}(hjh]h wrapping_sub}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj6hKoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hKohjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj6hKoubeh}(h]h ](jmacroeh"]h$]h&]jjjjOjjOjjjuh1hhhhjhNhNubh)}(h``wrapping_sub (type, a, b)``h]j)}(hjUh]hwrapping_sub (type, a, b)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(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}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKohjkubah}(h]h ]h"]h$]h&]uh1jhj}hKohjhhubj)}(hX**Parameters** ``type`` type for result of calculation ``a`` minuend; value to subtract from ``b`` subtrahend; value to subtract from **a** **Description** Return the potentially wrapped-around subtraction without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKshjubj)}(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.hhKphjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hj¡hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKphjubj)}(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.hhKqhjܡubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKqhjubah}(h]h ]h"]h$]h&]uh1jhjܡubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKrhjubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hj4hhhNhNubj)}(h**a**h]ha}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1hhj0hKrhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKrhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKthjubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKshjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_assign_sub (C macro)c.wrapping_assign_subhNtauh1hhjhhhNhNubh)}(hhh](j)}(hwrapping_assign_subh]j)}(hwrapping_assign_subh]jg)}(hwrapping_assign_subh]jm)}(hjh]hwrapping_assign_sub}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj٢jj٢jjjuh1hhhhjhNhNubh)}(h%``wrapping_assign_sub (var, offset)``h]j)}(hjߢh]h!wrapping_assign_sub (var, offset)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݢubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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)}(hj3h]hvar}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj-ubj)}(hhh]h)}(hvariable to be decrementedh]hvariable to be decremented}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKhj*ubj)}(h``offset`` amount to subtract h](j)}(h ``offset``h]j)}(hjlh]hoffset}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjfubj)}(hhh]h)}(hamount to subtracth]hamount to subtract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(hjţhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh by }(hjhhhNhNubj)}(h **offset**h]hoffset}(hjףhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 with wrap-around. Returns the resulting value of }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hjhhhNhNubj)}(h**var**h]hvar}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_mul_overflow (C macro)c.check_mul_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_mul_overflowh]j)}(hcheck_mul_overflowh]jg)}(hcheck_mul_overflowh]jm)}(hj=h]hcheck_mul_overflow}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjZhKubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjZhKhj8hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj8hhhjZhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjsjjsjjjuh1hhhhjhNhNubh)}(h ``check_mul_overflow (a, b, d)``h]j)}(hjyh]hcheck_mul_overflow (a, b, d)}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Calculate multiplication with overflow checking h]h)}(h/Calculate multiplication with overflow checkingh]h/Calculate multiplication with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``a`` first factor ``b`` second factor ``d`` pointer to store product **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h``a`` first factor h](j)}(h``a``h]j)}(hjͤh]ha}(hjϤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjˤubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjǤubj)}(hhh]h)}(h first factorh]h first factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjǤubeh}(h]h ]h"]h$]h&]uh1jhjhKhjĤubj)}(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.hhKhjubj)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjĤubj)}(h``d`` pointer to store product h](j)}(h``d``h]j)}(hj?h]hd}(hjAhhhNhNubah}(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.hhKhj9ubj)}(hhh]h)}(hpointer to store producth]hpointer to store product}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKhjĤubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjzh]h Description}(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.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](hwrapping_mul (C macro)c.wrapping_mulhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_mulh]j)}(h wrapping_mulh]jg)}(h wrapping_mulh]jm)}(hj֥h]h wrapping_mul}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjܥubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjإhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjԥhhhjhKubah}(h]jϥah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjѥhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjѥhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubh)}(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}(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)}(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)}(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:127: ./include/linux/overflow.hhKhjAubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjfh]htype}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj`ubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKhj]ubj)}(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.hhKhjubj)}(hhh]h)}(h first factorh]h first factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj]ubj)}(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Ҧubj)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjҦubeh}(h]h ]h"]h$]h&]uh1jhjhKhj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(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.hhKhjAubh)}(huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.h]huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_shl_overflow (C macro)c.check_shl_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_shl_overflowh]j)}(hcheck_shl_overflowh]jg)}(hcheck_shl_overflowh]jm)}(hjRh]hcheck_shl_overflow}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjohKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjohKhjMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjMhhhjohKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_shl_overflow (a, s, d)``h]j)}(hjh]hcheck_shl_overflow (a, s, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h2Calculate a left-shifted value and check overflow h]h)}(h1Calculate a left-shifted value and check overflowh]h1Calculate a left-shifted value and check overflow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``a`` Value to be shifted ``s`` How many bits left to shift ``d`` Pointer to where to store the result **Description** Computes ***d** = (**a** << **s**) Returns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions: - '**a** << **s**' causes bits to be lost when stored in ***d**. - '**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0. - '**a**' is negative. - '**a** << **s**' sets the sign bit, if any, in '***d**'. '***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h)}(h**Parameters**h]j)}(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.hhKhjubj)}(hhh](j)}(h``a`` Value to be shifted 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.hhKhjܧubj)}(hhh]h)}(hValue to be shiftedh]hValue to be shifted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjܧubeh}(h]h ]h"]h$]h&]uh1jhjhKhj٧ubj)}(h"``s`` How many bits left to shift h](j)}(h``s``h]j)}(hjh]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hHow many bits left to shifth]hHow many bits left to shift}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj٧ubj)}(h+``d`` Pointer to where to store the result h](j)}(h``d``h]j)}(hjTh]hd}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjNubj)}(hhh]h)}(h$Pointer to where to store the resulth]h$Pointer to where to store the result}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhj٧ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h"Computes ***d** = (**a** << **s**)h](h Computes }(hjhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh = (}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjѨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hpReturns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions:h](hReturns true if ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh&’ cannot hold the result or when ‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-’ doesn’t make sense. Example conditions:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h>'**a** << **s**' causes bits to be lost when stored in ***d**.h]h)}(hj4h](h‘}(hj6hhhNhNubj)}(h**a**h]ha}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh << }(hj6hhhNhNubj)}(h**s**h]hs}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh*’ causes bits to be lost when stored in }(hj6hhhNhNubj)}(h***d**h]h*d}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj2ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h]h)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h](h‘}(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA’ is garbage (e.g. negative) or so large that the result of ‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’ is guaranteed to be 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h'**a**' is negative.h]h)}(hjѩh](h‘}(hjөhhhNhNubj)}(h**a**h]ha}(hjکhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjөubh’ is negative.}(hjөhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjϩubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h9'**a** << **s**' sets the sign bit, if any, in '***d**'. h]h)}(h8'**a** << **s**' sets the sign bit, if any, in '***d**'.h](h‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%’ sets the sign bit, if any, in ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjyhKhjubh)}(hp'***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h‘}(hjNhhhNhNubj)}(h***d**h]h*d}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubho’ will hold the results of the attempted shift, but is not considered “safe for use” if true is returned.}(hjNhhhNhNubeh}(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](hoverflows_type (C macro)c.overflows_typehNtauh1hhjhhhNhNubh)}(hhh](j)}(hoverflows_typeh]j)}(hoverflows_typeh]jg)}(hoverflows_typeh]jm)}(hjh]hoverflows_type}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``overflows_type (n, T)``h]j)}(hjŪh]hoverflows_type (n, T)}(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)}(hIhelper for checking the overflows between value, variables, or data type h]h)}(hHhelper for checking the overflows between value, variables, or data typeh]hHhelper for checking the overflows between value, variables, or data type}(hjߪhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj۪ubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``n`` source constant value or variable to be checked ``T`` destination variable or data type proposed to store **x** **Description** Compares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression. **Return** true if overflow can occur, false otherwise.9h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h6``n`` source constant value or variable to be checked h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(h/source constant value or variable to be checkedh]h/source constant value or variable to be checked}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKhjubj)}(h@``T`` destination variable or data type proposed to store **x** h](j)}(h``T``h]j)}(hjRh]hT}(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.hhKhjLubj)}(hhh]h)}(h9destination variable or data type proposed to store **x**h](h4destination variable or data type proposed to store }(hjkhhhNhNubj)}(h**x**h]hx}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hCompares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression.h](h Compares the }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhO expression for whether or not it can safely fit in the storage of the type in }(hjhhhNhNubj)}(h**T**h]hT}(hj˫hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**x**h]hx}(hjݫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**T**h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can have different types. If }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK is a constant expression, this will also resolve to a constant expression.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h,true if overflow can occur, false otherwise.h]h,true if overflow can occur, false otherwise.}(hj2hhhNhNubah}(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](hrange_overflows (C macro)c.range_overflowshNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_overflowsh]j)}(hrange_overflowsh]jg)}(hrange_overflowsh]jm)}(hj[h]hrange_overflows}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjxhKubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjxhKhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjxhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h&``range_overflows (start, size, max)``h]j)}(hjh]h"range_overflows (start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h"Check if a range is out of bounds h]h)}(h!Check if a range is out of boundsh]h!Check if a range is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** A strict check to determine if the range [**start**, **start** + **size**) is invalid with respect to the allowable range [0, **max**). Any range starting at or beyond **max** is considered an overflow, even if **size** is 0. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hj̬h]h Parameters}(hjάhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʬubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬubj)}(hhh](j)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hj$h]hsize}(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.hhKhjubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hj]h]hmax}(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.hhKhjWubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjubeh}(h]h ]h"]h$]h&]uh1jhjƬ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.hhKhjƬubh)}(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}(hjȭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**size**h]hsize}(hjڭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5) is invalid with respect to the allowable range [0, }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh#). Any range starting at or beyond }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ is considered an overflow, even if }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬ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:127: ./include/linux/overflow.hhKhjƬubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_overflows_t (C macro)c.range_overflows_thNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_overflows_th]j)}(hrange_overflows_th]jg)}(hrange_overflows_th]jm)}(hjjh]hrange_overflows_t}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjehhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h.``range_overflows_t (type, start, size, max)``h]j)}(hjh]h*range_overflows_t (type, start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h"Check if a range is out of bounds h]h)}(h!Check if a range is out of boundsh]h!Check if a range is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjήhMhjhhubj)}(hX**Parameters** ``type`` Data type to use. ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Same as range_overflows() but forcing the parameters to **type**. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hjۮh]h Parameters}(hjݮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٮubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjծubj)}(hhh](j)}(h``type`` Data type to use. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hData type to use.h]hData type to use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hj3h]hstart}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj-ubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjlh]hsize}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjfubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.hhMhjubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjծubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޯubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjծubh)}(hASame as range_overflows() but forcing the parameters to **type**.h](h8Same as range_overflows() but forcing the parameters to }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjծubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjծubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjծubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_end_overflows (C macro)c.range_end_overflowshNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_end_overflowsh]j)}(hrange_end_overflowsh]jg)}(hrange_end_overflowsh]jm)}(hjXh]hrange_end_overflows}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjuhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhjuhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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)}(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``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj߰ubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hj!h]hsize}(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.hhMhjubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj߰ubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjZh]hmax}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjTubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhj߰ubeh}(h]h ]h"]h$]h&]uh1jhjð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)}(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}(hjűhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ) exceeds }(hjhhhNhNubj)}(h**max**h]hmax}(hjױhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@. Unlike range_overflows(), a zero-sized range at the boundary (}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB) is not considered an overflow. Useful for iterator-style checks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubh)}(h*true if the endpoint exceeds the boundary.h]h*true if the endpoint exceeds the boundary.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_end_overflows_t (C macro)c.range_end_overflows_thNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_end_overflows_th]j)}(hrange_end_overflows_th]jg)}(hrange_end_overflows_th]jm)}(hjUh]hrange_end_overflows_t}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM$ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjrhM$ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjrhM$hjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhM$ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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)}(hjƲh]h Parameters}(hjȲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIJubah}(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)}(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%hj߲ubj)}(hhh]h)}(hData type to use.h]hData type to use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhj߲ubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjܲubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(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.hhM&hjubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM&hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM&hjܲubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjWh]hsize}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM'hjQubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM'hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM'hjܲubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjh]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM(hjubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjܲubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhM*hjubh)}(hESame as range_end_overflows() but forcing the parameters to **type**.h](hhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj`hM2ubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1hhhhjhNhNubh)}(h``castable_to_type (n, T)``h]j)}(hjh]hcastable_to_type (n, T)}(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.hhM4hjhhubj)}(h8like __same_type(), but also allows for casted literals h]h)}(h7like __same_type(), but also allows for casted literalsh]h7like __same_type(), but also allows for casted literals}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM2hjubah}(h]h ]h"]h$]h&]uh1jhjhM2hjhhubj)}(hXH**Parameters** ``n`` variable or constant value ``T`` variable or data type **Description** Unlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument's type, it returns true. Otherwise, this falls back to __same_type().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.hhM6hjubj)}(hhh](j)}(h!``n`` variable or constant value h](j)}(h``n``h]j)}(hjӴh]hn}(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.hhM4hjʹubj)}(hhh]h)}(hvariable or constant valueh]hvariable or constant value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjʹubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjʴubj)}(h``T`` variable or data type h](j)}(h``T``h]j)}(hj h]hT}(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.hhM5hjubj)}(hhh]h)}(hvariable or data typeh]hvariable or data type}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM5hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hM5hjʴubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:127: ./include/linux/overflow.hhM7hjubh)}(hUnlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument's type, it returns true. Otherwise, this falls back to __same_type().h]hUnlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument’s type, it returns true. Otherwise, this falls back to __same_type().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsize_mul (C function) c.size_mulhNtauh1hhjhhhNhNubh)}(hhh](j)}(h0size_t size_mul (size_t factor1, size_t factor2)h]j)}(h/size_t size_mul(size_t factor1, size_t factor2)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE size_mulsb c.size_mulasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMBubjg)}(hsize_mulh]jm)}(hjh]hsize_mul}(hjõhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMBubj)}(h (size_t factor1, size_t factor2)h](j)}(hsize_t factor1h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj޵ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.size_mulasbuh1hhjڵubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjڵubjm)}(hfactor1h]hfactor1}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڵubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjֵubj)}(hsize_t factor2h](h)}(hhh]jm)}(hsize_th]hsize_t}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]j c.size_mulasbuh1hhj"ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubjm)}(hfactor2h]hfactor2}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(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)jhuh1hhjhMBhjhhubj)}(hhh]h)}(h;Calculate size_t multiplication with saturation at SIZE_MAXh]h;Calculate size_t multiplication 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.hhMBhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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}(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.hhMChjubj)}(hhh]h)}(h first factorh]h first factor}(hjٶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjնhMChjֶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.hhMDhjubj)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj4h]hReturn}(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.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 }(hjJhhhNhNubj)}(h **factor1**h]hfactor1}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh * }(hjJhhhNhNubj)}(h **factor2**h]hfactor2}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh, 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.}(hjJhhhNhNubeh}(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](hsize_add (C function) c.size_addhNtauh1hhjhhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE size_addsb c.size_addasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMUubj)}(h h]h }(hj·hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMUubjg)}(hsize_addh]jm)}(hjh]hsize_add}(hjԷhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjзubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMUubj)}(h (size_t addend1, size_t addend2)h](j)}(hsize_t addend1h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.size_addasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(haddend1h]haddend1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t addend2h](h)}(hhh]jm)}(hsize_th]hsize_t}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]j c.size_addasbuh1hhj3ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(haddend2h]haddend2}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMUhjhhubj)}(hhh]h)}(h5Calculate size_t addition with saturation at SIZE_MAXh]h5Calculate size_t addition with saturation at SIZE_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMUhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t addend1`` first addend ``size_t addend2`` second addend **Return** calculate **addend1** + **addend2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMYhjubj)}(hhh](j)}(h ``size_t addend1`` first addend h](j)}(h``size_t addend1``h]j)}(hjѸh]hsize_t addend1}(hjӸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϸubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMVhj˸ubj)}(hhh]h)}(h first addendh]h first addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMVhjubah}(h]h ]h"]h$]h&]uh1jhj˸ubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjȸubj)}(h!``size_t addend2`` second addend h](j)}(h``size_t addend2``h]j)}(hj h]hsize_t addend2}(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.hhMWhjubj)}(hhh]h)}(h second addendh]h second addend}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjȸubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjEh]hReturn}(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.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 }(hj[hhhNhNubj)}(h **addend1**h]haddend1}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh + }(hj[hhhNhNubj)}(h **addend2**h]haddend2}(hjuhhhNhNubah}(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.hhMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsize_sub (C function) c.size_subhNtauh1hhjhhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE size_subsb c.size_subasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhubj)}(h h]h }(hjӹhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjҹhMhubjg)}(hsize_subh]jm)}(hjϹh]hsize_sub}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjҹhMhubj)}(h#(size_t minuend, size_t subtrahend)h](j)}(hsize_t minuendh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j͹ c.size_subasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hminuendh]hminuend}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subtrahendh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]j͹ c.size_subasbuh1hhjDubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(h subtrahendh]h subtrahend}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(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)jhuh1hhjҹ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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.hhMlhjubj)}(hhh](j)}(h*``size_t minuend`` value to subtract from h](j)}(h``size_t minuend``h]j)}(hjh]hsize_t minuend}(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.hhMihjܺubj)}(hhh]h)}(hvalue to subtract fromh]hvalue to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjܺubeh}(h]h ]h"]h$]h&]uh1jhjhMihjٺubj)}(h9``size_t subtrahend`` value to subtract from **minuend** h](j)}(h``size_t subtrahend``h]j)}(hjh]hsize_t subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMjhjubj)}(hhh]h)}(h"value to subtract from **minuend**h](hvalue to subtract from }(hj4hhhNhNubj)}(h **minuend**h]hminuend}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1hhj0hMjhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMjhjٺubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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 }(hjzhhhNhNubj)}(h **minuend**h]hminuend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh - }(hjzhhhNhNubj)}(h**subtrahend**h]h subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhX, 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.}(hjzhhhNhNubeh}(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](harray_size (C macro) c.array_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h array_sizeh]j)}(h array_sizeh]jg)}(h array_sizeh]jm)}(hjǻh]h array_size}(hjѻhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjͻubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjɻhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM~ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjŻhhhjhM~ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM~hj»hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj»hhhjhM~ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``array_size (a, b)``h]j)}(hjh]harray_size (a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h'Calculate size of 2-dimensional array. h]h)}(h&Calculate size of 2-dimensional array.h]h&Calculate size of 2-dimensional array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM~hjubah}(h]h ]h"]h$]h&]uh1jhj+hM~hjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two **Description** Calculates size of 2-dimensional array: **a** * **b**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubj)}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjWh]ha}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjQubj)}(hhh]h)}(h dimension oneh]h dimension one}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h dimension twoh]h dimension two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(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.hhMhj2ubh)}(h6Calculates size of 2-dimensional array: **a** * **b**.h](h(Calculates size of 2-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubh)}(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.hhMhj2ubh)}(hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.h]hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](harray3_size (C macro) c.array3_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h array3_sizeh]j)}(h array3_sizeh]jg)}(h array3_sizeh]jm)}(hjUh]h array3_size}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjrhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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)}(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.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.hhMhj߽ubj)}(hhh]h)}(h dimension oneh]h dimension one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj߽ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjܽubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjh]hb}(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.hhMhjubj)}(hhh]h)}(h dimension twoh]h dimension two}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjܽubj)}(h``c`` dimension three h](j)}(h``c``h]j)}(hjWh]hc}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjQubj)}(hhh]h)}(hdimension threeh]hdimension three}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjܽubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(hj¾hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }hjsbj)}(h**c**h]hc}(hjԾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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](hflex_array_size (C macro)c.flex_array_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(hflex_array_sizeh]j)}(hflex_array_sizeh]jg)}(hflex_array_sizeh]jm)}(hj.h]hflex_array_size}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjKhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj)hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj)hhhjKhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjdjjdjjjuh1hhhhjhNhNubh)}(h&``flex_array_size (p, member, count)``h]j)}(hjjh]h"flex_array_size (p, member, count)}(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.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.}(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)}(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.hhMhjubj)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hj׿hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӿhMhjԿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӿhMhjubj)}(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.hhMhjubj)}(hhh]h)}(h"Name of the flexible array member.h]h"Name of the flexible array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hj0h]hcount}(hj2hhhNhNubah}(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*ubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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 }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh number of }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# elements, at the end of structure }(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.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](hstruct_size (C macro) c.struct_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_sizeh]j)}(h struct_sizeh]jg)}(h struct_sizeh]jm)}(hjh]h struct_size}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj 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)jhuh1hhj$hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj$hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj=jj=jjjuh1hhhhjhNhNubh)}(h"``struct_size (p, member, count)``h]j)}(hjCh]hstruct_size (p, member, count)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjYubah}(h]h ]h"]h$]h&]uh1jhjkhMhjhhubj)}(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)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubj)}(hhh](j)}(h ``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.hhMhjubj)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.hhMhjubj)}(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&]uh1jhjubeh}(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.hhMhjubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjrubh)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubh)}(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 }(hjZhhhNhNubj)}(h**p**h]hp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh followed by an array of }(hjZhhhNhNubj)}(h **count**h]hcount}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh number of }(hjZhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh elements.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubh)}(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.hhMhjrubh)}(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.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_size_t (C macro)c.struct_size_thNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_size_th]j)}(h struct_size_th]jg)}(h struct_size_th]jm)}(hjh]h struct_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h'``struct_size_t (type, member, count)``h]j)}(hjh]h#struct_size_t (type, member, count)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h9Calculate size of structure with trailing flexible array h]h)}(h8Calculate size of structure with trailing flexible arrayh]h8Calculate size of structure with trailing flexible array}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubah}(h]h ]h"]h$]h&]uh1jhjDhMhjhhubj)}(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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubj)}(hhh](j)}(h``type`` structure type name. h](j)}(h``type``h]j)}(hjph]htype}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjjubj)}(hhh]h)}(hstructure type name.h]hstructure type name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubh)}(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.hhMhjKubh)}(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 }(hj3hhhNhNubj)}(h**type**h]htype}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh followed by an array of }(hj3hhhNhNubj)}(h **count**h]hcount}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh number of }(hj3hhhNhNubj)}(h **member**h]hmember}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type }(hj3hhhNhNubj)}(h**type**h]htype}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubh)}(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.hhMhjKubh)}(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.hhMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_offset (C macro)c.struct_offsethNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_offseth]j)}(h struct_offseth]jg)}(h struct_offseth]jm)}(hjh]h struct_offset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``struct_offset (p, member)``h]j)}(hjh]hstruct_offset (p, member)}(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.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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj/hMhjhhubj)}(hX**Parameters** ``p`` Pointer to the struct ``member`` Name of the member to get the offset of **Description** Calculates the offset of a particular **member** of the structure pointed to by **p**. **Return** number of bytes to the location of **member**.h](h)}(h**Parameters**h]j)}(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.hhMhj6ubj)}(hhh](j)}(h``p`` Pointer to the struct 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:127: ./include/linux/overflow.hhMhjUubj)}(hhh]h)}(hPointer to the structh]hPointer to the struct}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(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.hhMhj6ubh)}(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.hhMhj6ubh)}(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.hhMhj6ubh)}(h.number of bytes to the location of **member**.h](h#number of bytes to the location of }(hj0hhhNhNubj)}(h **member**h]hmember}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__DEFINE_FLEX (C macro)c.__DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(h __DEFINE_FLEXh]j)}(h __DEFINE_FLEXh]jg)}(h __DEFINE_FLEXh]jm)}(hjkh]h __DEFINE_FLEX}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hj4h]hname}(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.hhMhj.ubj)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjmh]hmember}(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.hhMhjgubj)}(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&]uh1jhjgubeh}(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)}(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.hhMhjubj)}(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)}(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:127: ./include/linux/overflow.hhMhjzubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(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.hhMhjubj)}(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&]uh1jhjubeh}(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.hhMhj ubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(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)}(hjJh]hcount}(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.hhMhjDubj)}(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.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_FLEX (C macro) c.DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(h DEFINE_FLEXh]j)}(h DEFINE_FLEXh]jg)}(h DEFINE_FLEXh]jm)}(hjBh]h DEFINE_FLEX}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj_hMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhj=hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj=hhhj_hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjxjjxjjjuh1hhhhjhNhNubh)}(h4``DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)``h]j)}(hj~h]h0DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, 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.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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.hhM hjubj)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h%``MEMBER`` Name of the array member. h](j)}(h ``MEMBER``h]j)}(hjDh]hMEMBER}(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.hhM hj>ubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjubj)}(h-``COUNTER`` Name of the __counted_by member. h](j)}(h ``COUNTER``h]j)}(hj}h]hCOUNTER}(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 hjwubj)}(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&]uh1jhjwubeh}(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.hhMhjubj)}(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}(hj!hhhNhNubah}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) to get compile-time size of }(hjhhhNhNubj)}(h**NAME**h]hNAME}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjhhhNhNubj)}(h**name**h]hname}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **member**h]hmember}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2) to get compile-time number of elements in array }(hjhhhNhNubj)}(h **member**h]hmember}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hSTACK_FLEX_ARRAY_SIZE (C macro)c.STACK_FLEX_ARRAY_SIZEhNtauh1hhjhhhNhNubh)}(hhh](j)}(hSTACK_FLEX_ARRAY_SIZEh]j)}(hSTACK_FLEX_ARRAY_SIZEh]jg)}(hSTACK_FLEX_ARRAY_SIZEh]jm)}(hjh]hSTACK_FLEX_ARRAY_SIZE}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj$hMhjhhubj)}(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)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj+ubj)}(hhh](j)}(hI``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). h](j)}(h``name``h]j)}(hjPh]hname}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjJubj)}(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().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubj)}(h#``array`` Name of the array member.h](j)}(h ``array``h]j)}(hjh]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htypeof_flex_counter (C macro)c.typeof_flex_counterhNtauh1hhjhhhNhNubh)}(hhh](j)}(htypeof_flex_counterh]j)}(htypeof_flex_counterh]jg)}(htypeof_flex_counterh]jm)}(hjh]htypeof_flex_counter}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhM&hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``typeof_flex_counter (FAM)``h]j)}(hjh]htypeof_flex_counter (FAM)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM(hjhhubj)}(hfReturn the type of the counter variable of a given flexible array member annotated by __counted_by(). h]h)}(heReturn the type of the counter variable of a given flexible array member annotated by __counted_by().h]heReturn the type of the counter variable of a given flexible array member annotated by __counted_by().}(hj3hhhNhNubah}(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&]uh1jhjAhM&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)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*hjHubj)}(hhh]j)}(hA``FAM`` Instance of flexible array member within a given struct. h](j)}(h``FAM``h]j)}(hjmh]hFAM}(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(hjgubj)}(hhh]h)}(h8Instance of flexible array member within a given struct.h]h8Instance of flexible array member within a given struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjdubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(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*hjHubh)}(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*hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%overflows_flex_counter_type (C macro)c.overflows_flex_counter_typehNtauh1hhjhhhNhNubh)}(hhh](j)}(hoverflows_flex_counter_typeh]j)}(hoverflows_flex_counter_typeh]jg)}(hoverflows_flex_counter_typeh]jm)}(hjh]hoverflows_flex_counter_type}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhM2hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM2ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h2``overflows_flex_counter_type (TYPE, FAM, COUNT)``h]j)}(hj#h]h.overflows_flex_counter_type (TYPE, FAM, COUNT)}(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.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.hhM2hj9ubah}(h]h ]h"]h$]h&]uh1jhjKhM2hjhhubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM6hjRubj)}(hhh](j)}(h7``TYPE`` Type of the struct that contains the **FAM**. h](j)}(h``TYPE``h]j)}(hjwh]hTYPE}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM5hjqubj)}(hhh]h)}(h-Type of the struct that contains the **FAM**.h](h%Type of the struct that contains the }(hjhhhNhNubj)}(h**FAM**h]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjnubj)}(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.hhM6hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjnubj)}(hO``COUNT`` Value to check against the __counted_by annotated **FAM**'s counter. h](j)}(h ``COUNT``h]j)}(hj h]hCOUNT}(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.hhM7hjubj)}(hhh]h)}(hDValue to check against the __counted_by annotated **FAM**'s counter.h](h2Value to check against the __counted_by annotated }(hj&hhhNhNubj)}(h**FAM**h]hFAM}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh ’s counter.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj"hM7hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hM7hjnubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h **Return**h]j)}(hjZh]hReturn}(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.hhM9hjRubh)}(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 }(hjphhhNhNubj)}(h **COUNT**h]hCOUNT}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh can be represented in the }(hjphhhNhNubj)}(h**FAM**h]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh’s counter. When }(hjphhhNhNubj)}(h**FAM**h]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh; is not annotated with __counted_by(), always returns true.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM9hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__set_flex_counter (C macro)c.__set_flex_counterhNtauh1hhjhhhNhNubh)}(hhh](j)}(h__set_flex_counterh]j)}(h__set_flex_counterh]jg)}(h__set_flex_counterh]jm)}(hjh]h__set_flex_counter}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhM@hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM@ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h#``__set_flex_counter (FAM, COUNT)``h]j)}(hj h]h__set_flex_counter (FAM, COUNT)}(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.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().}(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&]uh1jhj3hM@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)}(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: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)}(hj_h]hFAM}(hjahhhNhNubah}(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.hhMBhjYubj)}(hhh]h)}(h8Instance of flexible array member within a given struct.h]h8Instance of flexible array member within a given struct.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMBhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMBhjVubj)}(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.hhMChjubj)}(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}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ’s counter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjVubeh}(h]h ]h"]h$]h&]uh1jhj: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&]uh1hhjhhhhhK}ubh)}(hhh](h)}(h CRC Functionsh]h CRC Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc4 (C function)c.crc4hNtauh1hhjhhhNhNubh)}(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]jm)}(huint8_th]huint8_t}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE crc4sbc.crc4asbuh1hhj?hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhjghKubjg)}(hcrc4h]jm)}(hjdh]hcrc4}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjghKubj)}(h!(uint8_t c, uint64_t x, int bits)h](j)}(h uint8_t ch](h)}(hhh]jm)}(huint8_th]huint8_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jbc.crc4asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h uint64_t xh](h)}(hhh]jm)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jbc.crc4asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hxh]hx}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint bitsh](j )}(hinth]hint}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hbitsh]hbits}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjghKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjghKubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjghKhj8hhubj)}(hhh]h)}(h#calculate the 4-bit crc of a value.h]h#calculate the 4-bit crc of a value.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjghhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX<**Parameters** ``uint8_t c`` starting crc4 ``uint64_t x`` value to checksum ``int bits`` number of bits in **x** to checksum **Description** Returns the crc4 value of **x**, using polynomial 0b10111. The **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj)}(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.chKhjubj)}(hhh]h)}(h starting crc4h]h starting crc4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chKhjubj)}(hhh]h)}(hvalue to checksumh]hvalue to checksum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h1``int bits`` number of bits in **x** to checksum h](j)}(h ``int bits``h]j)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj)}(hhh]h)}(h#number of bits in **x** to checksumh](hnumber of bits in }(hj6hhhNhNubj)}(h**x**h]hx}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh to checksum}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubh)}(h:Returns the crc4 value of **x**, using polynomial 0b10111.h](hReturns the crc4 value of }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, using polynomial 0b10111.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubh)}(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.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc7_be (C function) c.crc7_behNtauh1hhjhhhNhNubh)}(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]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc7_besb c.crc7_beasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK5ubjg)}(hcrc7_beh]jm)}(hjh]hcrc7_be}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK5ubj)}(h&(u8 crc, const u8 *buffer, size_t len)h](j)}(hu8 crch](h)}(hhh]jm)}(hu8h]hu8}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]j c.crc7_beasbuh1hhjBubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubjm)}(hcrch]hcrc}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc7_beasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc7_beasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhK5hjhhubj)}(hhh]h)}(h#update the CRC7 for the data bufferh]h#update the CRC7 for the data buffer}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5hjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjhNhNubj)}(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)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjsubj)}(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.chK6hjubj)}(hhh]h)}(hprevious CRC7 valueh]hprevious CRC7 value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chK7hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubj)}(h-``size_t len`` number of bytes in the buffer 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK8hjubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK8hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h **Context**h]j)}(hjEh]hContext}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjsubh)}(hanyh]hany}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjsubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK;hjsubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_msb (C function)c.crc8_populate_msbhNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hcrc8_populate_msbh]jm)}(hcrc8_populate_msbh]hcrc8_populate_msb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.crc8_populate_msbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h[h]h[}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]j c.crc8_populate_msbasbuh1hhjubj)}(h]h]h]}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]jm)}(hu8h]hu8}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]j c.crc8_populate_msbasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubjm)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhj ubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(hjHh]h u8 polynomial}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjBubj)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_lsb (C function)c.crc8_populate_lsbhNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK/ubjg)}(hcrc8_populate_lsbh]jm)}(hcrc8_populate_lsbh]hcrc8_populate_lsb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK/ubj)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.crc8_populate_lsbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hj/h]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jc.crc8_populate_lsbasbuh1hhjubj)}(hj^h]h]}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]jm)}(hu8h]hu8}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jc.crc8_populate_lsbasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`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)jhuh1hhjhK/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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chK1hjubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(hj7h]h u8 polynomial}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK3hj1ubj)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK2hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8 (C function)c.crc8hNtauh1hhjhhhNhNubh)}(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]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc8sbc.crc8asbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKDubjg)}(hcrc8h]jm)}(hjh]hcrc8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKDubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hj/h]h[}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjubj)}(hj^h]h]}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *pdatah](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hpdatah]hpdata}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t nbytesh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnbytesh]hnbytes}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu8 crch](h)}(hhh]jm)}(hu8h]hu8}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hcrch]hcrc}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKDhjhhubj)}(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&]uh1jhjhhhjhKDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chKFhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubj)}(h,``const u8 *pdata`` pointer to data buffer. h](j)}(h``const u8 *pdata``h]j)}(hj h]hconst u8 *pdata}(hjhhhNhNubah}(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.chKGhjubj)}(hhh]h)}(hpointer to data buffer.h]hpointer to data buffer.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKGhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hKGhjubj)}(h2``size_t nbytes`` number of bytes in data buffer. h](j)}(h``size_t nbytes``h]j)}(hjEh]h size_t nbytes}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKHhj?ubj)}(hhh]h)}(hnumber of bytes in data buffer.h]hnumber of bytes in data buffer.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKHhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKHhjubj)}(h(``u8 crc`` previous returned crc8 value.h](j)}(h ``u8 crc``h]j)}(hj~h]hu8 crc}(hjhhhNhNubah}(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.chKJhjxubj)}(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&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc16 (C function)c.crc16hNtauh1hhjhhhNhNubh)}(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]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc16sbc.crc16asbuh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK0ubjg)}(hcrc16h]jm)}(hjh]hcrc16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK0ubj)}(h"(u16 crc, const u8 *p, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jc.crc16asbuh1hhj&ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(hcrch]hcrc}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(h const u8 *ph](j)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc16asbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc16asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK0hjhhubj)}(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.chK0hj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1hhhhjhNhNubj)}(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)}(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:142: ./lib/crc/crc16.chK4hjVubj)}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hj{h]hu16 crc}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK1hjuubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjrubj)}(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.chK2hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjrubj)}(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.chK3hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(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:142: ./lib/crc/crc16.chK5hjVubh)}(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.chK4hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_ccitt (C function) c.crc_ccitthNtauh1hhjhhhNhNubh)}(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]jm)}(hu16h]hu16}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE crc_ccittsb c.crc_ccittasbuh1hhjihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjihhhjhK3ubjg)}(h crc_ccitth]jm)}(hjh]h crc_ccitt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhjhK3ubj)}(h'(u16 crc, u8 const *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc_ccittasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu8 const *bufferh](h)}(hhh]jm)}(hu8h]hu8}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.crc_ccittasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufferh]hbuffer}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]j c.crc_ccittasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjhK3ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhjhK3hjbhhubj)}(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&]uh1jhjbhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chK5hj ubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hK5hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hK5hjubj)}(h"``u8 const *buffer`` data pointer h](j)}(h``u8 const *buffer``h]j)}(hjJh]hu8 const *buffer}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK6hjDubj)}(hhh]h)}(h data pointerh]h data pointer}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hK6hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hK6hjubj)}(h,``size_t len`` number of bytes in the bufferh](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:145: ./lib/crc/crc-ccitt.chK8hj}ubj)}(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&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_itu_t (C function) c.crc_itu_thNtauh1hhjhhhNhNubh)}(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]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc_itu_tsb c.crc_itu_tasbuh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK2ubjg)}(h crc_itu_th]jm)}(hjh]h crc_itu_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK2ubj)}(h'(u16 crc, const u8 *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]j c.crc_itu_tasbuh1hhj+ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubjm)}(hcrch]hcrc}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc_itu_tasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc_itu_tasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK2ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK2hjhhubj)}(hhh]h)}(h)Compute the CRC-ITU-T for the data bufferh]h)Compute the CRC-ITU-T for the data buffer}(hj@hhhNhNubah}(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&]jjjjXjjXjjjuh1hhhhjhNhNubj)}(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)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hj\ubj)}(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:148: ./lib/crc/crc-itu-t.chK4hj{ubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjxubj)}(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.chK5hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjxubj)}(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.chK6hjubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjxubeh}(h]h ]h"]h$]h&]uh1jhj\ubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK8hj\ubh)}(hReturns the updated CRC valueh]hReturns the updated CRC value}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK7hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_le (C function) c.crc32_lehNtauh1hhjhhhNhNubh)}(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]jm)}(hu32h]hu32}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jR )}jE crc32_lesb c.crc32_leasbuh1hhjohhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjhK ubjg)}(hcrc32_leh]jm)}(hjh]hcrc32_le}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjhK ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc32_leasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hjh]hp}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]j c.crc32_leasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhK ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhK hjhhhubj)}(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&]uh1jhjhhhhjhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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 hjubj)}(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&]uh1jhjubeh}(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 hj7ubj)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhK hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhK hjubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjvh]h size_t len}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjh]h&Bit order: Least-significant-bit-first}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Polynomial in integer form: 0xedb88320 h]h)}(h&Polynomial in integer form: 0xedb88320h]h&Polynomial in integer form: 0xedb88320}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhj5ubah}(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 }(hjThhhNhNubjx)}(h*not*h]hnot}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjTubh 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.}(hjThhhNhNubeh}(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().}(hjuhhhNhNubah}(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)}(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.hhKhjubh)}(h Any contexth]h Any context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(hThe new CRC valueh]hThe new CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_be (C function) c.crc32_behNtauh1hhjhhhNhNubh)}(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]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc32_besb c.crc32_beasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK(ubjg)}(hcrc32_beh]jm)}(hjh]hcrc32_be}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK(ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]jm)}(hu32h]hu32}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]j c.crc32_beasbuh1hhj@ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hcrch]hcrc}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc32_beasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhK(hjhhubj)}(hhh]h)}(h.Compute most-significant-bit-first IEEE CRC-32h]h.Compute most-significant-bit-first IEEE CRC-32}(hjAhhhNhNubah}(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&]jjjjYjjYjjjuh1hhhhjhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK,hj]ubj)}(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*hj|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhK*hjyubj)}(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+hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK+hjyubj)}(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,hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK,hjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK.hj]ubh)}(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 }(hjFhhhNhNubjx)}(h*most-significant-bit-first*h]hmost-significant-bit-first}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjFubh 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:}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK-hj]ubj)}(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 +}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK2hjqubj)}(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.hhK3hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjnubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(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&]uh1jhjgubj)}(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&]uh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjhK2hj]ubh)}(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.hhK7hj]ubh)}(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.hhK8hj]ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK:hj]ubh)}(hThe new CRC valueh]hThe new CRC value}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK9hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32c (C function)c.crc32chNtauh1hhjhhhNhNubh)}(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]jm)}(hu32h]hu32}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jR )}jE crc32csbc.crc32casbuh1hhjOhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK>ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjwhK>ubjg)}(hcrc32ch]jm)}(hjth]hcrc32c}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjwhK>ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jrc.crc32casbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jrc.crc32casbuh1hhjEubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hlenh]hlen}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjwhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjwhK>ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjwhK>hjHhhubj)}(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&]uh1jhjHhhhjwhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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@hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKAhjubj)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKAhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKAhjubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjVh]h size_t len}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKBhjPubj)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKBhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKBhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhKFhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjh]h&Bit order: Least-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Polynomial in integer form: 0x82f63b78 h]h)}(h&Polynomial in integer form: 0x82f63b78h]h&Polynomial in integer form: 0x82f63b78}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.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 }(hj4hhhNhNubjx)}(h*not*h]hnot}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj4ubh 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.}(hj4hhhNhNubeh}(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)}(hjWh]hContext}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(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}(hjmhhhNhNubah}(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)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKQhjubh)}(hThe new CRC valueh]hThe new CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_be (C function) c.crc64_behNtauh1hhjhhhNhNubh)}(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]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc64_besb c.crc64_beasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hcrc64_beh]jm)}(hjh]hcrc64_be}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc64_beasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h const void *ph](j)}(hjh]hconst}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc64_beasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhKhjhhubj)}(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&]jjjj*jj*jjjuh1hhhhjhNhNubj)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hj.ubj)}(hhh](j)}(h``u64 crc`` seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally. h](j)}(h ``u64 crc``h]j)}(hjSh]hu64 crc}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjMubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhK hjJubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjJubj)}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjJubeh}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_nvme (C function) c.crc64_nvmehNtauh1hhjhhhNhNubh)}(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]jm)}(hu64h]hu64}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE crc64_nvmesb c.crc64_nvmeasbuh1hhj*hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhjRhKubjg)}(h crc64_nvmeh]jm)}(hjOh]h crc64_nvme}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhjRhKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jM c.crc64_nvmeasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]jM c.crc64_nvmeasbuh1hhj ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hlenh]hlen}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhjRhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhjRhKubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhjRhKhj#hhubj)}(hhh]h)}(hCalculate CRC64-NVMEh]hCalculate CRC64-NVME}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjzhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhjRhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhKhjubj)}(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&]uh1jhjubeh}(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.hhKhjubj)}(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&]uh1hhj hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h&``size_t len`` length of buffer **p** h](j)}(h``size_t len``h]j)}(hj1h]h size_t len}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhj+ubj)}(hhh]h)}(hlength of buffer **p**h](hlength of buffer }(hjJhhhNhNubj)}(h**p**h]hp}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1hhjFhKhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(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, }(hjhhhNhNubjx)}(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&]uh1jwhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] crc-functionsah ]h"] crc functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hBase 2 log and power Functionsh]hBase 2 log and power Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_power_of_2 (C function)c.is_power_of_2hNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK%ubjg)}(h is_power_of_2h]jm)}(h is_power_of_2h]h is_power_of_2}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK%ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj )}(hlongh]hlong}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubjm)}(hjyh]hn}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(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)jhuh1hhjhK%hjhhubj)}(hhh]h)}(h"check if a value is a power of twoh]h"check if a value is a power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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&hjubj)}(hhh]h)}(hthe value to checkh]hthe value to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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 }(hjhhhNhNubjx)}(h*not*h]hnot}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubh considered a power of two.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK'hjubh)}(h **Return**h]j)}(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 }(hjRhhhNhNubj)}(h**n**h]hn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh" is a power of 2, otherwise false.}(hjRhhhNhNubeh}(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](h!__roundup_pow_of_two (C function)c.__roundup_pow_of_twohNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK3ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK3ubjg)}(h__roundup_pow_of_twoh]jm)}(h__roundup_pow_of_twoh]h__roundup_pow_of_two}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK3ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK3hjhhubj)}(hhh]h)}(h round up to nearest power of twoh]h round up to nearest power of two}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3hjJhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhjhNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK7hjiubj)}(hhh]j)}(h%``unsigned long n`` value to round uph](j)}(h``unsigned long n``h]j)}(hjh]hunsigned long n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK9hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK9hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__rounddown_pow_of_two (C function)c.__rounddown_pow_of_twohNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK=ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK=ubjg)}(h__rounddown_pow_of_twoh]jm)}(h__rounddown_pow_of_twoh]h__rounddown_pow_of_two}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK=ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj )}(hlongh]hlong}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubjm)}(hjyh]hn}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK=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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhKChjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hconst_ilog2 (C macro) c.const_ilog2hNtauh1hhjhhhNhNubh)}(hhh](j)}(h const_ilog2h]j)}(h const_ilog2h]jg)}(h const_ilog2h]jm)}(hj7h]h const_ilog2}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjThKGubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjThKGhj2hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj2hhhjThKGubeh}(h]h ](jmacroeh"]h$]h&]jjjjmjjmjjjuh1hhhhjhNhNubh)}(h``const_ilog2 (n)``h]j)}(hjsh]hconst_ilog2 (n)}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKIhjhhubj)}(h9log base 2 of 32-bit or a 64-bit constant unsigned value h]h)}(h8log base 2 of 32-bit or a 64-bit constant unsigned valueh]h8log base 2 of 32-bit or a 64-bit constant unsigned value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGhjubah}(h]h ]h"]h$]h&]uh1jhjhKGhjhhubj)}(h**Parameters** ``n`` parameter **Description** Use this where sparse expects a true constant expression, e.g. for array indices.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKKhjubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKHhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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](hilog2 (C macro)c.ilog2hNtauh1hhjhhhNhNubh)}(hhh](j)}(hilog2h]j)}(hilog2h]jg)}(hilog2h]jm)}(hjAh]hilog2}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj^hKubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj^hKhj<hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj<hhhj^hKubeh}(h]h ](jmacroeh"]h$]h&]jjjjwjjwjjjuh1hhhhjhNhNubh)}(h ``ilog2 (n)``h]j)}(hj}h]h ilog2 (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.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.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.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}(hj"hhhNhNubah}(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)}(hj1hhhNhNubah}(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](hroundup_pow_of_two (C macro)c.roundup_pow_of_twohNtauh1hhjhhhNhNubh)}(hhh](j)}(hroundup_pow_of_twoh]j)}(hroundup_pow_of_twoh]jg)}(hroundup_pow_of_twoh]jm)}(hjZh]hroundup_pow_of_two}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjwhKubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjwhKhjUhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjUhhhjwhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hround the given value 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](hrounddown_pow_of_two (C macro)c.rounddown_pow_of_twohNtauh1hhjhhhNhNubh)}(hhh](j)}(hrounddown_pow_of_twoh]j)}(hrounddown_pow_of_twoh]jg)}(hrounddown_pow_of_twoh]jm)}(hjdh]hrounddown_pow_of_two}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjhKubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj_hhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah]hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant data}(hjEhhhNhNubah}(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](horder_base_2 (C macro)c.order_base_2hNtauh1hhjhhhNhNubh)}(hhh](j)}(h order_base_2h]j&)}(h order_base_2h]jg)}(h order_base_2h]jm)}(hjnh]h order_base_2}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhKubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(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:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjRubj)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjeubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjOubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbits_per (C macro) c.bits_perhNtauh1hhjhhhNhNubh)}(hhh](j)}(hbits_perh]j)}(hbits_perh]jg)}(hbits_perh]jm)}(hjh]hbits_per}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/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)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(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)}(hj3h]hn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj-ubj)}(hhh]h)}(h parameterh]h parameter}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(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.}(hjhhhNhNubah}(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](h"max_pow_of_two_factor (C function)c.max_pow_of_two_factorhNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hmax_pow_of_two_factorh]jm)}(hmax_pow_of_two_factorh]hmax_pow_of_two_factor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(unsigned int n)h]j)}(hunsigned int nh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h return highest power-of-2 factorh]h return highest power-of-2 factor}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhMhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubh)}(hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.h]hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]base-2-log-and-power-functionsah ]h"]base 2 log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hInteger log and power Functionsh]hInteger log and power Functions}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog2 (C function) c.intlog2hNtauh1hhj,hhhNhNubh)}(hhh](j)}(h unsigned int intlog2 (u32 value)h]j)}(hunsigned int intlog2(u32 value)h](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjdhKubj )}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhjdhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjdhKubjg)}(hintlog2h]jm)}(hintlog2h]hintlog2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjdhKubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.intlog2asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhKubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhKhjKhhubj)}(hhh]h)}(h?computes log2 of a value; the result is shifted left by 24 bitsh]h?computes log2 of a value; the result is shifted left by 24 bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhj,hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog2(value) = intlog2(value * 2^x) - x * 2^24 Some usecase examples: intlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 **Return** log2(value) * 2^24h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj&ubj)}(hhh]j)}(h'``u32 value`` The value (must be != 0) h](j)}(h ``u32 value``h]j)}(hjKh]h u32 value}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjEubj)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjBubah}(h]h ]h"]h$]h&]uh1jhj&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:164: ./include/linux/int_log.hhKhj&ubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj&ubj)}(h1intlog2(value) = intlog2(value * 2^x) - x * 2^24 h]h)}(h0intlog2(value) = intlog2(value * 2^x) - x * 2^24h]h0intlog2(value) = intlog2(value * 2^x) - x * 2^24}(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&]uh1jhjhKhj&ubh)}(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.hhKhj&ubj)}(hintlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 h](h)}(h'intlog2(8) will give 3 << 24 = 3 * 2^24h]h'intlog2(8) will give 3 << 24 = 3 * 2^24}(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&]uh1jhjhKhj&ubh)}(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:164: ./include/linux/int_log.hhKhj&ubh)}(hlog2(value) * 2^24h]hlog2(value) * 2^24}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog10 (C function) c.intlog10hNtauh1hhj,hhhNhNubh)}(hhh](j)}(h!unsigned int intlog10 (u32 value)h]j)}(h unsigned int intlog10(u32 value)h](j )}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hK$ubj )}(hinth]hint}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhj_hK$ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hK$ubjg)}(hintlog10h]jm)}(hintlog10h]hintlog10}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj_hK$ubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.intlog10asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhj_hK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj_hK$ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hK$hjFhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$hjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj,hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog10(value) = intlog10(value * 10^x) - x * 2^24 An usecase example: intlog10(1000) will give 3 << 24 = 3 * 2^24 due to the implementation intlog10(1000) might be not exactly 3 * 2^24 look at intlog2 for similar examples **Return** log10(value) * 2^24h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK(hj!ubj)}(hhh]j)}(h'``u32 value`` The value (must be != 0) h](j)}(h ``u32 value``h]j)}(hjFh]h u32 value}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK&hj@ubj)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hK&hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hK&hj=ubah}(h]h ]h"]h$]h&]uh1jhj!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: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:}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK)hjubah}(h]h ]h"]h$]h&]uh1jhjhK)hj!ubh)}(hAn usecase example:h]hAn usecase example:}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK-hjubah}(h]h ]h"]h$]h&]uh1jhjhK-hjubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK/hjubeh}(h]h ]h"]h$]h&]uh1jhjhK-hj!ubh)}(h$look at intlog2 for similar examplesh]h$look at intlog2 for similar examples}(hjhhhNhNubah}(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)}(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.hhK3hj!ubh)}(hlog10(value) * 2^24h]hlog10(value) * 2^24}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK4hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_pow (C function) c.int_powhNtauh1hhj,hhhNhNubh)}(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]jm)}(hu64h]hu64}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jR )}jE int_powsb c.int_powasbuh1hhjRhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjzhK ubjg)}(hint_powh]jm)}(hjwh]hint_pow}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjzhK ubj)}(h(u64 base, unsigned int exp)h](j)}(hu64 baseh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]ju c.int_powasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int exph](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hexph]hexp}(hj( hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjzhK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjzhK ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjzhK hjKhhubj)}(hhh]h)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK hjO hhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjzhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj jjj jjjuh1hhhhj,hNhNubj)}(h**Parameters** ``u64 base`` base which will be raised to the given power ``unsigned int exp`` power to be raised to **Description** Computes: pow(base, exp), i.e. **base** raised to the **exp** powerh](h)}(h**Parameters**h]j)}(hjt h]h Parameters}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjn 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 ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h+``unsigned int exp`` power to be raised to h](j)}(h``unsigned int exp``h]j)}(hj h]hunsigned int exp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubeh}(h]h ]h"]h$]h&]uh1jhjn 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.chKhjn 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}(hj7 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.chKhjn ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt (C function) c.int_sqrthNtauh1hhj,hhhNhNubh)}(hhh](j)}(h(unsigned long int_sqrt (unsigned long x)h]j)}(h'unsigned long int_sqrt(unsigned long x)h](j )}(hunsignedh]hunsigned}(hjp hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjl hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjl hhhj~ hKubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjl hhhj~ hKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjl hhhj~ hKubjg)}(hint_sqrth]jm)}(hint_sqrth]hint_sqrt}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjl hhhj~ hKubj)}(h(unsigned long x)h]j)}(hunsigned long xh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hj h]hx}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjl hhhj~ hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjh hhhj~ hKubah}(h]jc ah ](jjeh"]h$]h&]jj)jhuh1hhj~ hKhje hhubj)}(hhh]h)}(h computes the integer square rooth]h computes the integer square root}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhj' hhubah}(h]h ]h"]h$]h&]uh1jhje hhhj~ hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjB jjB jjjuh1hhhhj,hNhNubj)}(hw**Parameters** ``unsigned long x`` integer of which to calculate the sqrt **Description** Computes: floor(sqrt(x))h](h)}(h**Parameters**h]j)}(hjL h]h Parameters}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjF ubj)}(hhh]j)}(h;``unsigned long x`` integer of which to calculate the sqrt h](j)}(h``unsigned long x``h]j)}(hjk h]hunsigned long x}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhje ubj)}(hhh]h)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhje ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjb ubah}(h]h ]h"]h$]h&]uh1jhjF 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:169: ./lib/math/int_sqrt.chKhjF ubh)}(hComputes: floor(sqrt(x))h]hComputes: floor(sqrt(x))}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjF ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt64 (C function) c.int_sqrt64hNtauh1hhj,hhhNhNubh)}(hhh](j)}(hu32 int_sqrt64 (u64 x)h]j)}(hu32 int_sqrt64(u64 x)h](h)}(hhh]jm)}(hu32h]hu32}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE int_sqrt64sb c.int_sqrt64asbuh1hhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hK-ubjg)}(h int_sqrt64h]jm)}(hj h]h int_sqrt64}(hj" hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hK-ubj)}(h(u64 x)h]j)}(hu64 xh](h)}(hhh]jm)}(hu64h]hu64}(hj@ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj= ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjB modnameN classnameNjI jL )}jO ]j  c.int_sqrt64asbuh1hhj9 ubj)}(h h]h }(hj^ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9 ubjm)}(hj h]hx}(hjl hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9 ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5 ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hK-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hK-ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hK-hj hhubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hK-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj,hNhNubj)}(hH**Parameters** ``u64 x`` 64bit integer of which to calculate the sqrth](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.chK1hj ubj)}(hhh]j)}(h6``u64 x`` 64bit integer of which to calculate the sqrth](j)}(h ``u64 x``h]j)}(hj h]hu64 x}(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:169: ./lib/math/int_sqrt.chK3hj ubj)}(hhh]h)}(h,64bit integer of which to calculate the sqrth]h,64bit integer of which to calculate the sqrt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK/hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK3hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj,hhhNhNubeh}(h]integer-log-and-power-functionsah ]h"]integer log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hDivision Functionsh]hDivision Functions}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdo_div (C macro)c.do_divhNtauh1hhj hhhNhNubh)}(hhh](j)}(hdo_divh]j)}(hdo_divh]jg)}(hdo_divh]jm)}(hjC h]hdo_div}(hjM hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjE hhh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjA hhhj` hK ubah}(h]j< ah ](jjeh"]h$]h&]jj)jhuh1hhj` hK hj> hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj> hhhj` hK ubeh}(h]h ](jmacroeh"]h$]h&]jjjjy jjy jjjuh1hhhhj hNhNubh)}(h``do_div (n, base)``h]j)}(hj h]hdo_div (n, base)}(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:175: ./include/asm-generic/div64.hhK"hj hhubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK hj ubah}(h]h ]h"]h$]h&]uh1jhj hK hj hhubj)}(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)}(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:175: ./include/asm-generic/div64.hhK$hj ubj)}(hhh](j)}(h*``n`` uint64_t dividend (will be updated) h](j)}(h``n``h]j)}(hj h]hn}(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:175: ./include/asm-generic/div64.hhK!hj ubj)}(hhh]h)}(h#uint64_t dividend (will be updated)h]h#uint64_t dividend (will be updated)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK!hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK!hj ubj)}(h``base`` uint32_t divisor h](j)}(h``base``h]j)}(hj h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK"hjubj)}(hhh]h)}(huint32_t divisorh]huint32_t divisor}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hK"hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hK"hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(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:175: ./include/asm-generic/div64.hhK$hj ubh)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hj]hhhNhNubj)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh }(hj]hhhNhNubj)}(h``n = n / base;``h]h n = n / base;}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK#hj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK'hj ubh)}(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(hj ubh)}(h**NOTE**h]j)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hj ubh)}(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*hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64_rem (C function) c.div_u64_remhNtauh1hhj hhhNhNubh)}(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]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE div_u64_remsb c.div_u64_remasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj0hKubjg)}(h div_u64_remh]jm)}(hj-h]h div_u64_rem}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj0hKubj)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]j+ c.div_u64_remasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h u32 divisorh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j+ c.div_u64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hu32 *remainderh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j+ c.div_u64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h remainderh]h remainder}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hKhjhhubj)}(hhh]h)}(h7unsigned 64bit divide with 32bit divisor with remainderh]h7unsigned 64bit divide with 32bit divisor with remainder}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhj hNhNubj)}(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)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjpubj)}(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.hhKhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hjh]h u32 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h7``u32 *remainder`` pointer to unsigned 32bit remainder h](j)}(h``u32 *remainder``h]j)}(hjh]hu32 *remainder}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh]h)}(h#pointer to unsigned 32bit remainderh]h#pointer to unsigned 32bit remainder}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(h **Return**h]j)}(hjBh]hReturn}(hjDhhhNhNubah}(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.hhKhjpubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjXhhhNhNubj)}(h``*remainder``h]h *remainder}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh!, then returns dividend / divisor}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjpubh)}(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:178: ./include/linux/math64.hhKhjpubh)}(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.hhKhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64_rem (C function) c.div_s64_remhNtauh1hhj hhhNhNubh)}(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]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE div_s64_remsb c.div_s64_remasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK!ubjg)}(h div_s64_remh]jm)}(hjh]h div_s64_rem}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK!ubj)}(h+(s64 dividend, s32 divisor, s32 *remainder)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.div_s64_remasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h s32 divisorh](h)}(hhh]jm)}(hs32h]hs32}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]j c.div_s64_remasbuh1hhjVubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hs32 *remainderh](h)}(hhh]jm)}(hs32h]hs32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.div_s64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h remainderh]h remainder}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhK!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&]jjjj jj jjjuh1hhhhj hNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor ``s32 *remainder`` pointer to signed 32bit remainder **Return** sets ``*remainder``, then returns dividend / divisorh](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK%hj$ubj)}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjIh]h s64 dividend}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK"hjCubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hK"hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hK"hj@ubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hjh]h s32 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK#hj|ubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhK#hj@ubj)}(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$hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hj@ubeh}(h]h ]h"]h$]h&]uh1jhj$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:178: ./include/linux/math64.hhK&hj$ubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hj hhhNhNubj)}(h``*remainder``h]h *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh!, then returns dividend / divisor}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK&hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_u64_rem (C function)c.div64_u64_remhNtauh1hhj hhhNhNubh)}(hhh](j)}(h=u64 div64_u64_rem (u64 dividend, u64 divisor, u64 *remainder)h]j)}(hhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hK>hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hK>hjubj)}(h'``u64 divisor`` unsigned 64bit divisor h](j)}(h``u64 divisor``h]j)}(hjGh]h u64 divisor}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK?hjAubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hK?hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hK?hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_s64 (C function) c.div64_s64hNtauh1hhj hhhNhNubh)}(hhh](j)}(h)s64 div64_s64 (s64 dividend, s64 divisor)h]j)}(h(s64 div64_s64(s64 dividend, s64 divisor)h](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE div64_s64sb c.div64_s64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKIubjg)}(h div64_s64h]jm)}(hjh]h div64_s64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKIubj)}(h(s64 dividend, s64 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.div64_s64asbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s64 divisorh](h)}(hhh]jm)}(hs64h]hs64}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]j c.div64_s64asbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKIhjhhubj)}(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&]jjjjjjjjjuh1hhhhj hNhNubj)}(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.hhKJhjubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubj)}(h%``s64 divisor`` signed 64bit divisor h](j)}(h``s64 divisor``h]j)}(hj4h]h s64 divisor}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKKhj.ubj)}(hhh]h)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjoh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(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}(hjhhhNhNubah}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64 (C function) c.div_u64hNtauh1hhj hhhNhNubh)}(hhh](j)}(h'u64 div_u64 (u64 dividend, u32 divisor)h]j)}(h&u64 div_u64(u64 dividend, u32 divisor)h](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE div_u64sb c.div_u64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKtubjg)}(hdiv_u64h]jm)}(hjh]hdiv_u64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKtubj)}(h(u64 dividend, u32 divisor)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.div_u64asbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 divisorh](h)}(hhh]jm)}(hu32h]hu32}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]j c.div_u64asbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hdivisorh]hdivisor}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKthjhhubj)}(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&]jjjjjjjjjuh1hhhhj hNhNubj)}(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.hhKuhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKuhjubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hj!h]h u32 divisor}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKvhjubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKvhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hKvhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjrhhhNhNubah}(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)}(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)}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64 (C function) c.div_s64hNtauh1hhj hhhNhNubh)}(hhh](j)}(h's64 div_s64 (s64 dividend, s32 divisor)h]j)}(h&s64 div_s64(s64 dividend, s32 divisor)h](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE div_s64sb c.div_s64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hdiv_s64h]jm)}(hjh]hdiv_s64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(s64 dividend, s32 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.div_s64asbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s32 divisorh](h)}(hhh]jm)}(hs32h]hs32}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]j c.div_s64asbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^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)jhuh1hhjhKhjhhubj)}(hhh]h)}(h&signed 64bit divide with 32bit divisorh]h&signed 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.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit 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.hhKhjubj)}(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.hhKhjubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hj5h]h s32 divisor}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj/ubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjph]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubh)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mul_u64_add_u64_div_u64 (C function)c.mul_u64_add_u64_div_u64hNtauh1hhj hhhNhNubh)}(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]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE mul_u64_add_u64_div_u64sbc.mul_u64_add_u64_div_u64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM)ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM)ubjg)}(hmul_u64_add_u64_div_u64h]jm)}(hjh]hmul_u64_add_u64_div_u64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM)ubj)}(h(u64 a, u64 b, u64 c, u64 d)h](j)}(hu64 ah](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]ha}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 bh](h)}(hhh]jm)}(hu64h]hu64}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hjGh]hb}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 ch](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 dh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdh]hd}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM)hjhhubj)}(hhh]h)}(h(unsigned 64bit multiply, add, and divideh]h(unsigned 64bit multiply, add, and divide}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM)hj2 hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM jjM jjjuh1hhhhj hNhNubj)}(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)}(hjW h]h Parameters}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM-hjQ ubj)}(hhh](j)}(h,``u64 a`` first unsigned 64bit multiplicand h](j)}(h ``u64 a``h]j)}(hjv h]hu64 a}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM*hjp ubj)}(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&]uh1jhjp ubeh}(h]h ]h"]h$]h&]uh1jhj hM*hjm 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 ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM+hjm 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 ubj)}(hhh]h)}(hunsigned 64bit addendh]hunsigned 64bit addend}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM,hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM,hjm 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!ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj:!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6!hM-hj7!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj6!hM-hjm ubeh}(h]h ]h"]h$]h&]uh1jhjQ ubh)}(h**Description**h]j)}(hj\!h]h Description}(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.hhM/hjQ 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 }(hjr!hhhNhNubj)}(h**d**h]hd}(hjz!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr!ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hjr!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM.hjQ 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.hhM3hjQ 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.hhM4hjQ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmul_u64_u64_div_u64 (C macro)c.mul_u64_u64_div_u64hNtauh1hhj hhhNhNubh)}(hhh](j)}(hmul_u64_u64_div_u64h]j)}(hmul_u64_u64_div_u64h]jg)}(hmul_u64_u64_div_u64h]jm)}(hj"h]hmul_u64_u64_div_u64}(hj""hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM9ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj5"hM9ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj5"hM9hj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhj5"hM9ubeh}(h]h ](jmacroeh"]h$]h&]jjjjN"jjN"jjjuh1hhhhj hNhNubh)}(h!``mul_u64_u64_div_u64 (a, b, d)``h]j)}(hjT"h]hmul_u64_u64_div_u64 (a, b, d)}(hjV"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR"ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM;hj hhubj)}(h#unsigned 64bit multiply and divide h]h)}(h"unsigned 64bit multiply and divideh]h"unsigned 64bit multiply and divide}(hjn"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM9hjj"ubah}(h]h ]h"]h$]h&]uh1jhj|"hM9hj hhubj)}(hX**Parameters** ``a`` first unsigned 64bit multiplicand ``b`` second unsigned 64bit multiplicand ``d`` unsigned 64bit divisor **Description** Multiply two 64bit values together to generate a 128bit product and then divide by a third value. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow. **Return** **a** * **b** / **d**h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM=hj"ubj)}(hhh](j)}(h(``a`` first unsigned 64bit multiplicand h](j)}(h``a``h]j)}(hj"h]ha}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM:hj"ubj)}(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&]uh1jhj"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"ubj)}(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&]uh1jhj"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#ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj3#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/#hM<hj0#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj/#hM<hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubh)}(h**Description**h]j)}(hjU#h]h Description}(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>hj"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 }(hjk#hhhNhNubj)}(h**d**h]hd}(hjs#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk#ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hjk#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM=hj"ubh)}(h **Return**h]j)}(hj#h]hReturn}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMBhj"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.hhMChj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mul_u64_u64_div_u64_roundup (C macro)c.mul_u64_u64_div_u64_rounduphNtauh1hhj hhhNhNubh)}(hhh](j)}(hmul_u64_u64_div_u64_rounduph]j)}(hmul_u64_u64_div_u64_rounduph]jg)}(hmul_u64_u64_div_u64_rounduph]jm)}(hj#h]hmul_u64_u64_div_u64_roundup}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#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)jhuh1hhj$hMHhj#hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj#hhhj$hMHubeh}(h]h ](jmacroeh"]h$]h&]jjjj1$jj1$jjjuh1hhhhj hNhNubh)}(h)``mul_u64_u64_div_u64_roundup (a, b, d)``h]j)}(hj7$h]h%mul_u64_u64_div_u64_roundup (a, b, d)}(hj9$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5$ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMJhj hhubj)}(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}(hjQ$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMHhjM$ubah}(h]h ]h"]h$]h&]uh1jhj_$hMHhj hhubj)}(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)}(hjl$h]h Parameters}(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.hhMLhjf$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.hhMIhj$ubj)}(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&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMIhj$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$ubj)}(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&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMJhj$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$ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMKhj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj%hMKhj$ubeh}(h]h ]h"]h$]h&]uh1jhjf$ubh)}(h**Description**h]j)}(hj8%h]h Description}(hj:%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6%ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMMhjf$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 }(hjN%hhhNhNubj)}(h**d**h]hd}(hjV%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN%ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hjN%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMLhjf$ubh)}(h **Return**h]j)}(hjq%h]hReturn}(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:178: ./include/linux/math64.hhMQhjf$ubh)}(h#(**a** * **b** + **d** - 1) / **d**h](h(}(hj%hhhNhNubj)}(h**a**h]ha}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh * }(hj%hhhNhNubj)}(h**b**h]hb}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh + }(hj%hhhNhNubj)}(h**d**h]hd}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh - 1) / }(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.hhMRhjf$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV64_U64_ROUND_UP (C macro)c.DIV64_U64_ROUND_UPhNtauh1hhj hhhNhNubh)}(hhh](j)}(hDIV64_U64_ROUND_UPh]j)}(hDIV64_U64_ROUND_UPh]jg)}(hDIV64_U64_ROUND_UPh]jm)}(hj%h]hDIV64_U64_ROUND_UP}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%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)jhuh1hhj&hMYhj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhj&hMYubeh}(h]h ](jmacroeh"]h$]h&]jjjj*&jj*&jjjuh1hhhhj hNhNubh)}(h``DIV64_U64_ROUND_UP (ll, d)``h]j)}(hj0&h]hDIV64_U64_ROUND_UP (ll, d)}(hj2&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.&ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM[hj hhubj)}(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}(hjJ&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMYhjF&ubah}(h]h ]h"]h$]h&]uh1jhjX&hMYhj hhubj)}(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)}(hje&h]h Parameters}(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]hj_&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.hhMZhj~&ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMZhj&ubah}(h]h ]h"]h$]h&]uh1jhj~&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMZhj{&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&ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM[hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM[hj{&ubeh}(h]h ]h"]h$]h&]uh1jhj_&ubh)}(h**Description**h]j)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM]hj_&ubh)}(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\hj_&ubh)}(h **Return**h]j)}(hj'h]hReturn}(hj!'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM_hj_&ubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hj5'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM`hj_&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_UP (C macro)c.DIV_U64_ROUND_UPhNtauh1hhj hhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_UPh]j)}(hDIV_U64_ROUND_UPh]jg)}(hDIV_U64_ROUND_UPh]jm)}(hj^'h]hDIV_U64_ROUND_UP}(hjh'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`'hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMfubah}(h]h ]h"]h$]h&]jjjuh1jjjhj\'hhhj{'hMfubah}(h]jW'ah ](jjeh"]h$]h&]jj)jhuh1hhj{'hMfhjY'hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjY'hhhj{'hMfubeh}(h]h ](jmacroeh"]h$]h&]jjjj'jj'jjjuh1hhhhj hNhNubh)}(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.hhMhhj hhubj)}(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'hMfhj hhubj)}(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'ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMghj(ubah}(h]h ]h"]h$]h&]uh1jhj'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!(ubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj@(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<(hMhhj=(ubah}(h]h ]h"]h$]h&]uh1jhj!(ubeh}(h]h ]h"]h$]h&]uh1jhj<(hMhhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hjb(h]h Description}(hjd(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`(ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.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.}(hjx(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)}(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.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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!DIV64_U64_ROUND_CLOSEST (C macro)c.DIV64_U64_ROUND_CLOSESThNtauh1hhj hhhNhNubh)}(hhh](j)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hDIV64_U64_ROUND_CLOSESTh]jg)}(hDIV64_U64_ROUND_CLOSESTh]jm)}(hj(h]hDIV64_U64_ROUND_CLOSEST}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(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)jhuh1hhj(hMshj(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMsubeh}(h]h ](jmacroeh"]h$]h&]jjjj(jj(jjjuh1hhhhj hNhNubh)}(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.hhMuhj hhubj)}(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,)hMshj hhubj)}(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)}(hj9)h]h Parameters}(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:178: ./include/linux/math64.hhMwhj3)ubj)}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hjX)h]hdividend}(hjZ)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV)ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMthjR)ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjq)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm)hMthjn)ubah}(h]h ]h"]h$]h&]uh1jhjR)ubeh}(h]h ]h"]h$]h&]uh1jhjm)hMthjO)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)ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMuhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMuhjO)ubeh}(h]h ]h"]h$]h&]uh1jhj3)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.hhMwhj3)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.hhMvhj3)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.hhMyhj3)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.hhMzhj3)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_CLOSEST (C macro)c.DIV_U64_ROUND_CLOSESThNtauh1hhj hhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_CLOSESTh]j)}(hDIV_U64_ROUND_CLOSESTh]jg)}(hDIV_U64_ROUND_CLOSESTh]jm)}(hj2*h]hDIV_U64_ROUND_CLOSEST}(hj<*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4*hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj0*hhhjO*hMubah}(h]j+*ah ](jjeh"]h$]h&]jj)jhuh1hhjO*hMhj-*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-*hhhjO*hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjh*jjh*jjjuh1hhhhj hNhNubh)}(h-``DIV_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hjn*h]h)DIV_U64_ROUND_CLOSEST (dividend, divisor)}(hjp*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj hhubj)}(hDunsigned 64bit divide with 32bit divisor rounded to nearest integer h]h)}(hCunsigned 64bit divide with 32bit divisor rounded to nearest integerh]hCunsigned 64bit divide with 32bit divisor rounded to nearest integer}(hj*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*hMhj hhubj)}(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*ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*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*ubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]j)}(hj6+h]h Description}(hj8+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4+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.}(hjL+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}(hjs+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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_S64_ROUND_CLOSEST (C macro)c.DIV_S64_ROUND_CLOSESThNtauh1hhj hhhNhNubh)}(hhh](j)}(hDIV_S64_ROUND_CLOSESTh]j)}(hDIV_S64_ROUND_CLOSESTh]jg)}(hDIV_S64_ROUND_CLOSESTh]jm)}(hj+h]hDIV_S64_ROUND_CLOSEST}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+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)jhuh1hhj+hMhj+hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj+hhhj+hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj+jj+jjjuh1hhhhj hNhNubh)}(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.hhMhj hhubj)}(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,hMhj hhubj)}(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&,ubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA,hMhjB,ubah}(h]h ]h"]h$]h&]uh1jhj&,ubeh}(h]h ]h"]h$]h&]uh1jhjA,hMhj#,ubj)}(h!``divisor`` signed 32bit divisor h](j)}(h ``divisor``h]j)}(hje,h]hdivisor}(hjg,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc,ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj_,ubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hj~,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz,hMhj{,ubah}(h]h ]h"]h$]h&]uh1jhj_,ubeh}(h]h ]h"]h$]h&]uh1jhjz,hMhj#,ubeh}(h]h ]h"]h$]h&]uh1jhj,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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hroundup_u64 (C function) c.roundup_u64hNtauh1hhj hhhNhNubh)}(hhh](j)}(hu64 roundup_u64 (u64 x, u32 y)h]j)}(hu64 roundup_u64(u64 x, u32 y)h](h)}(hhh]jm)}(hu64h]hu64}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj -ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE roundup_u64sb c.roundup_u64asbuh1hhj-hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubj)}(h h]h }(hj1-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj0-hMubjg)}(h roundup_u64h]jm)}(hj--h]h roundup_u64}(hjC-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj0-hMubj)}(h(u64 x, u32 y)h](j)}(hu64 xh](h)}(hhh]jm)}(hu64h]hu64}(hja-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjc-modnameN classnameNjI jL )}jO ]j+- c.roundup_u64asbuh1hhjZ-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZ-ubjm)}(hj h]hx}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZ-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV-ubj)}(hu32 yh](h)}(hhh]jm)}(hu32h]hu32}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]j+- c.roundup_u64asbuh1hhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(hyh]hy}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV-ubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj0-hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj0-hMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj0-hMhj-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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj-hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj0-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhj hNhNubj)}(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)}(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``u64 x`` the value to up h](j)}(h ``u64 x``h]j)}(hj?.h]hu64 x}(hjA.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj9.ubj)}(hhh]h)}(hthe value to uph]hthe value to up}(hjX.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT.hMhjU.ubah}(h]h ]h"]h$]h&]uh1jhj9.ubeh}(h]h ]h"]h$]h&]uh1jhjT.hMhj6.ubj)}(h(``u32 y`` 32bit multiple to round up to h](j)}(h ``u32 y``h]j)}(hjx.h]hu32 y}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjr.ubj)}(hhh]h)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjr.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj6.ubeh}(h]h ]h"]h$]h&]uh1jhj.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)}(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 }(hj.hhhNhNubj)}(h**x**h]hx}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh to the next multiple of }(hj.hhhNhNubj)}(h**y**h]hy}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh . For 32bit }(hj.hhhNhNubj)}(h**x**h]hx}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh? values, see roundup and the faster round_up() for powers of 2.}(hj.hhhNhNubeh}(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)}(hrounded up value.h]hrounded up value.}(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&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hgcd (C function)c.gcdhNtauh1hhj hhhNhNubh)}(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}(hjU/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQ/hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.ubj)}(h h]h }(hjd/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ/hhhjc/hK.ubj )}(hlongh]hlong}(hjr/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQ/hhhjc/hK.ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ/hhhjc/hK.ubjg)}(hgcdh]jm)}(hgcdh]hgcd}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQ/hhhjc/hK.ubj)}(h"(unsigned long a, unsigned long b)h](j)}(hunsigned long ah](j )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(hjh]ha}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hunsigned long bh](j )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj 0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj )}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj(0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(hjGh]hb}(hj60hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjQ/hhhjc/hK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM/hhhjc/hK.ubah}(h]jH/ah ](jjeh"]h$]h&]jj)jhuh1hhjc/hK.hjJ/hhubj)}(hhh]h)}(hDcalculate and return the greatest common divisor of 2 unsigned longsh]hDcalculate and return the greatest common divisor of 2 unsigned longs}(hj_0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.hj\0hhubah}(h]h ]h"]h$]h&]uh1jhjJ/hhhjc/hK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjw0jjw0jjjuh1hhhhj hNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK2hj{0ubj)}(hhh](j)}(h ``unsigned long a`` first value h](j)}(h``unsigned long a``h]j)}(hj0h]hunsigned long a}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK/hj0ubj)}(hhh]h)}(h first valueh]h first value}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hK/hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hK/hj0ubj)}(h ``unsigned long b`` second valueh](j)}(h``unsigned long b``h]j)}(hj0h]hunsigned long b}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK1hj0ubj)}(hhh]h)}(h second valueh]h second value}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK0hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hK1hj0ubeh}(h]h ]h"]h$]h&]uh1jhj{0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]division-functionsah ]h"]division functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h UUID/GUIDh]h UUID/GUID}(hj%1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"1hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!generate_random_uuid (C function)c.generate_random_uuidhNtauh1hhj"1hhhNhNubh)}(hhh](j)}(h2void generate_random_uuid (unsigned char uuid[16])h]j)}(h1void generate_random_uuid(unsigned char uuid[16])h](j )}(hvoidh]hvoid}(hjL1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjH1hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKubj)}(h h]h }(hj[1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjH1hhhjZ1hKubjg)}(hgenerate_random_uuidh]jm)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hjm1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjH1hhhjZ1hKubj)}(h(unsigned char uuid[16])h]j)}(hunsigned char uuid[16]h](j )}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(huuidh]huuid}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubj)}(hj/h]h[}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubhdesc_sig_literal_number)}(h16h]h16}(hj1hhhNhNubah}(h]h ]mah"]h$]h&]uh1j1hj1ubj)}(hj^h]h]}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhjH1hhhjZ1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjD1hhhjZ1hKubah}(h]j?1ah ](jjeh"]h$]h&]jj)jhuh1hhjZ1hKhjA1hhubj)}(hhh]h)}(hgenerate a random UUIDh]hgenerate a random UUID}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj2hhubah}(h]h ]h"]h$]h&]uh1jhjA1hhhjZ1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.2jj.2jjjuh1hhhhj"1hNhNubj)}(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)}(hj82h]h Parameters}(hj:2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj62ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj22ubj)}(hhh]j)}(h;``unsigned char uuid[16]`` where to put the generated UUID h](j)}(h``unsigned char uuid[16]``h]j)}(hjW2h]hunsigned char uuid[16]}(hjY2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU2ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhjQ2ubj)}(hhh]h)}(hwhere to put the generated UUIDh]hwhere to put the generated UUID}(hjp2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl2hKhjm2ubah}(h]h ]h"]h$]h&]uh1jhjQ2ubeh}(h]h ]h"]h$]h&]uh1jhjl2hKhjN2ubah}(h]h ]h"]h$]h&]uh1jhj22ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj22ubh)}(hRandom UUID interfaceh]hRandom UUID interface}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj22ubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj22ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj"1hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huuid_is_valid (C function)c.uuid_is_validhNtauh1hhj"1hhhNhNubh)}(hhh](j)}(h%bool uuid_is_valid (const char *uuid)h]j)}(h$bool uuid_is_valid(const char *uuid)h](j )}(hj8h]hbool}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKNubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hKNubjg)}(h uuid_is_validh]jm)}(h uuid_is_validh]h uuid_is_valid}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hKNubj)}(h(const char *uuid)h]j)}(hconst char *uuidh](j)}(hjh]hconst}(hj"3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj/3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hcharh]hchar}(hj=3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hjK3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjY3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(huuidh]huuid}(hjf3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hKNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hKNubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hKNhj2hhubj)}(hhh]h)}(h checks if a UUID string is validh]h checks if a UUID string is valid}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKNhj3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hKNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhj"1hNhNubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKRhj3ubj)}(hhh]j)}(h*``const char *uuid`` UUID string to check h](j)}(h``const char *uuid``h]j)}(hj3h]hconst char *uuid}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKOhj3ubj)}(hhh]h)}(hUUID string to checkh]hUUID string to check}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKOhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKOhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hj 4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 4ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKQhj3ubj)}(hhh]j)}(h[It checks if the UUID string is following the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx h](j)}(h5It checks if the UUID string is following the format:h]h5It checks if the UUID string is following the format:}(hj)4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKRhj%4ubj)}(hhh]h)}(h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxh]h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}(hj;4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj74hKRhj84ubah}(h]h ]h"]h$]h&]uh1jhj%4ubeh}(h]h ]h"]h$]h&]uh1jhj74hKRhj"4ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(hwhere x is a hex digit.h]hwhere x is a hex digit.}(hj[4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKThj3ubh)}(h **Return**h]j)}(hjl4h]hReturn}(hjn4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj4ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKVhj3ubh)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKWhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj"1hhhNhNubeh}(h] uuid-guidah ]h"] uuid/guidah$]h&]uh1hhjhhhhhKubeh}(h]crc-and-math-functions-in-linuxah ]h"]crc and math functions in linuxah$]h&]uh1hhhhhhhhKzubh)}(hhh](h)}(hKernel IPC facilitiesh]hKernel IPC facilities}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hhhhhKubh)}(hhh](h)}(h IPC utilitiesh]h IPC utilities}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init (C function) c.ipc_inithNtauh1hhj4hhhNhNubh)}(hhh](j)}(hint ipc_init (void)h]j)}(hint ipc_init(void)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhj4hKQubjg)}(hipc_inith]jm)}(hipc_inith]hipc_init}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhj4hKQubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj 5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhj4hKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj4hKQubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hKQhj4hhubj)}(hhh]h)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hjJ5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQhjG5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjb5jjb5jjjuh1hhhhj4hNhNubj)}(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)}(hjl5h]h Parameters}(hjn5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj5ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhjf5ubj)}(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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj5ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1jhjf5ubh)}(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:196: ./ipc/util.chKhjf5ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKRhjf5ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhjf5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init_ids (C function)c.ipc_init_idshNtauh1hhj4hhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmubj)}(h h]h }(hj)6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj(6hKmubjg)}(h ipc_init_idsh]jm)}(h ipc_init_idsh]h ipc_init_ids}(hj;6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj76ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj(6hKmubj)}(h(struct ipc_ids *ids)h]j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjW6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6ubj)}(h h]h }(hjd6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS6ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hju6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjw6modnameN classnameNjI jL )}jO ]jR )}jE j=6sbc.ipc_init_idsasbuh1hhjS6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6ubjm)}(hidsh]hids}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO6ubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhj(6hKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj(6hKmubah}(h]j 6ah ](jjeh"]h$]h&]jj)jhuh1hhj(6hKmhj6hhubj)}(hhh]h)}(hinitialise ipc identifiersh]hinitialise ipc identifiers}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmhj6hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj(6hKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhj4hNhNubj)}(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)}(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:196: ./ipc/util.chKqhj6ubj)}(hhh]j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj7h]hstruct ipc_ids *ids}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKnhj7ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj47hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj07hKnhj17ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj07hKnhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hjV7h]h Description}(hjX7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT7ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKphj6ubh)}(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.}(hjl7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKohj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$ipc_init_proc_interface (C function)c.ipc_init_proc_interfacehNtauh1hhj4hhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhj7hKubjg)}(hipc_init_proc_interfaceh]jm)}(hipc_init_proc_interfaceh]hipc_init_proc_interface}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj7hKubj)}(hU(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j)}(hconst char *pathh](j)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj )}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hpathh]hpath}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hconst char *headerh](j)}(hjh]hconst}(hj58hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj18ubj)}(h h]h }(hjB8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj18ubj )}(hcharh]hchar}(hjP8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj18ubj)}(h h]h }(hj^8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj18ubj)}(hjh]h*}(hjl8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj18ubjm)}(hheaderh]hheader}(hjy8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj18ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hint idsh](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubjm)}(hidsh]hids}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(h$int (*show)(struct seq_file*, void*)h](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(h(h]h(}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hshowh]hshow}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubj)}(h)h]h)}(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hj8h]h(}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hjh]hstruct}(hj'9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj49hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hseq_fileh]hseq_file}(hjE9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjG9modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.ipc_init_proc_interfaceasbuh1hhj8ubj)}(hjh]h*}(hje9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h,h]h,}(hjr9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj )}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hj9h]h)}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hKubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj7hKhj7hhubj)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj9hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj4hNhNubj)}(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)}(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.chKhj9ubj)}(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 :ubj)}(hhh]h)}(hPath in procfsh]hPath in procfs}(hj,:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(:hKhj):ubah}(h]h ]h"]h$]h&]uh1jhj :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)}(hjL:h]hconst char *header}(hjN:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ:ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjF:ubj)}(hhh]h)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hje:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja:hKhjb:ubah}(h]h ]h"]h$]h&]uh1jhjF:ubeh}(h]h ]h"]h$]h&]uh1jhja:hKhj :ubj)}(h%``int ids`` ipc id table to iterate. h](j)}(h ``int ids``h]j)}(hj:h]hint 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:ubj)}(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&]uh1jhj: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:ubj)}(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&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhj :ubeh}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_findkey (C function) c.ipc_findkeyhNtauh1hhj4hhhNhNubh)}(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.chKubj)}(h h]h }(hj&;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhj%;hKubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj7;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9;modnameN classnameNjI jL )}jO ]jR )}jE ipc_findkeysb c.ipc_findkeyasbuh1hhj;hhhj%;hKubj)}(h h]h }(hjX;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhj%;hKubj)}(hjh]h*}(hjf;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj%;hKubjg)}(h ipc_findkeyh]jm)}(hjU;h]h ipc_findkey}(hjw;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;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;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jS; c.ipc_findkeyasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hidsh]hids}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h key_t keyh](h)}(hhh]jm)}(hkey_th]hkey_t}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jS; c.ipc_findkeyasbuh1hhj;ubj)}(h h]h }(hj#<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubjm)}(hkeyh]hkey}(hj1<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;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)jhuh1hhj%;hKhj ;hhubj)}(hhh]h)}(h#find a key in an ipc identifier seth]h#find a key in an ipc identifier set}(hj[<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjX<hhubah}(h]h ]h"]h$]h&]uh1jhj ;hhhj%;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjs<jjs<jjjuh1hhhhj4hNhNubj)}(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)}(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.chKhjw<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<ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<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<ubj)}(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&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj<ubeh}(h]h ]h"]h$]h&]uh1jhjw<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.chKhjw<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.chKhjw<ubh)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hj5=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjw<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_addid (C function) c.ipc_addidhNtauh1hhj4hhhNhNubh)}(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}(hjd=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`=hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjs=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`=hhhjr=hMubjg)}(h ipc_addidh]jm)}(h ipc_addidh]h ipc_addid}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`=hhhjr=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=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jR )}jE j=sb c.ipc_addidasbuh1hhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hidsh]hids}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hstruct kern_ipc_perm *newh](j)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj >hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj1>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3>modnameN classnameNjI jL )}jO ]j= c.ipc_addidasbuh1hhj>ubj)}(h h]h }(hjO>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj]>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hnewh]hnew}(hjj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h int limith](j )}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubjm)}(hlimith]hlimit}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhj`=hhhjr=hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\=hhhjr=hMubah}(h]jW=ah ](jjeh"]h$]h&]jj)jhuh1hhjr=hMhjY=hhubj)}(hhh]h)}(hadd an ipc identifierh]hadd an ipc identifier}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhjY=hhhjr=hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhj4hNhNubj)}(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)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj>ubj)}(hhh](j)}(h+``struct ipc_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.chM hj?ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj#?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM hj ?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM hj?ubj)}(h5``struct kern_ipc_perm *new`` new ipc permission set h](j)}(h``struct kern_ipc_perm *new``h]j)}(hjC?h]hstruct kern_ipc_perm *new}(hjE?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA?ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj=?ubj)}(hhh]h)}(hnew ipc permission seth]hnew ipc permission set}(hj\?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX?hM hjY?ubah}(h]h ]h"]h$]h&]uh1jhj=?ubeh}(h]h ]h"]h$]h&]uh1jhjX?hM hj?ubj)}(h/``int limit`` limit for the number of used ids h](j)}(h ``int limit``h]j)}(hj|?h]h int limit}(hj~?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz?ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjv?ubj)}(hhh]h)}(h limit for the number of used idsh]h limit for the number of used ids}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM hj?ubah}(h]h ]h"]h$]h&]uh1jhjv?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM hj?ubeh}(h]h ]h"]h$]h&]uh1jhj>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)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj>ubh)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj>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.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_new (C function) c.ipcget_newhNtauh1hhj4hhhNhNubh)}(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@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJubj)}(h h]h }(hj)@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhj(@hMJubjg)}(h ipcget_newh]jm)}(h ipcget_newh]h ipcget_new}(hj;@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhj(@hMJubj)}(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}(hjW@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS@ubj)}(h h]h }(hjd@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS@ubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hju@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjw@modnameN classnameNjI jL )}jO ]jR )}jE j=@sb c.ipcget_newasbuh1hhjS@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS@ubjm)}(hnsh]hns}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO@ubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]j@ c.ipcget_newasbuh1hhj@ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hidsh]hids}(hj AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO@ubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj9AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Aubj)}(h h]h }(hjFAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Aubj)}(hjh]hstruct}(hjTAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Aubj)}(h h]h }(hjaAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Aubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hjrAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtAmodnameN classnameNjI jL )}jO ]j@ c.ipcget_newasbuh1hhj5Aubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5Aubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Aubjm)}(hopsh]hops}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO@ubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]j@ c.ipcget_newasbuh1hhjAubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hparamsh]hparams}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO@ubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhj(@hMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj(@hMJubah}(h]j @ah ](jjeh"]h$]h&]jj)jhuh1hhj(@hMJhj@hhubj)}(hhh]h)}(hcreate a new ipc objecth]hcreate a new ipc object}(hjEBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJhjBBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj(@hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]Bjj]Bjjjuh1hhhhj4hNhNubj)}(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)}(hjgBh]h Parameters}(hjiBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeBubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhjaBubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjBh]hstruct ipc_namespace *ns}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMKhjBubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMKhj}Bubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjBh]hstruct ipc_ids *ids}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMLhjBubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMLhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMLhj}Bubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjBh]hconst struct ipc_ops *ops}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMMhjBubj)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ChMMhjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj ChMMhj}Bubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj1Ch]hstruct ipc_params *params}(hj3ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Cubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhj+Cubj)}(hhh]h)}(hits parametersh]hits parameters}(hjJChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFChMNhjGCubah}(h]h ]h"]h$]h&]uh1jhj+Cubeh}(h]h ]h"]h$]h&]uh1jhjFChMNhj}Bubeh}(h]h ]h"]h$]h&]uh1jhjaBubh)}(h**Description**h]j)}(hjlCh]h Description}(hjnChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjCubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMPhjaBubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMOhjaBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_check_perms (C function)c.ipc_check_permshNtauh1hhj4hhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjChM_ubjg)}(hipc_check_permsh]jm)}(hipc_check_permsh]hipc_check_perms}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjChM_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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hj DhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Dubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jR )}jE jCsbc.ipc_check_permsasbuh1hhjCubj)}(h h]h }(hj,DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hj:DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hnsh]hns}(hjGDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hj`DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Dubj)}(h h]h }(hjmDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\Dubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj~DhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{Dubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]j(Dc.ipc_check_permsasbuh1hhj\Dubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Dubjm)}(hipcph]hipcp}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj EmodnameN classnameNjI jL )}jO ]j(Dc.ipc_check_permsasbuh1hhjDubj)}(h h]h }(hj'EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hj5EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hopsh]hops}(hjBEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hj[EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWEubj)}(h h]h }(hjhEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWEubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hjyEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{EmodnameN classnameNjI jL )}jO ]j(Dc.ipc_check_permsasbuh1hhjWEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWEubjm)}(hparamsh]hparams}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWEubeh}(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)jhuh1hhjChM_hjChhubj)}(hhh]h)}(h0check security and permissions for an ipc objecth]h0check security and permissions for an ipc object}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_hjEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj4hNhNubj)}(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)}(hjEh]h Parameters}(hjFhhhNhNubah}(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.chMchjEubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjFh]hstruct ipc_namespace *ns}(hjFhhhNhNubah}(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.chM`hjFubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj6FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2FhM`hj3Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj2FhM`hjFubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjVFh]hstruct kern_ipc_perm *ipcp}(hjXFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTFubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMahjPFubj)}(hhh]h)}(hipc permission seth]hipc permission set}(hjoFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkFhMahjlFubah}(h]h ]h"]h$]h&]uh1jhjPFubeh}(h]h ]h"]h$]h&]uh1jhjkFhMahjFubj)}(hB``const struct ipc_ops *ops`` the actual security routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjFh]hconst struct ipc_ops *ops}(hjFhhhNhNubah}(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.chMbhjFubj)}(hhh]h)}(h#the actual security routine to callh]h#the actual security routine to call}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMbhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMbhjFubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hjFh]hstruct ipc_params *params}(hjFhhhNhNubah}(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.chMchjFubj)}(hhh]h)}(hits parametersh]hits parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMchjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMchjFubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMehjEubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMdhjEubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hj(GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhhjEubh)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hj7GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_public (C function)c.ipcget_publichNtauh1hhj4hhhNhNubh)}(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}(hjfGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbGhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjuGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbGhhhjtGhMubjg)}(h ipcget_publich]jm)}(h ipcget_publich]h ipcget_public}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbGhhhjtGhMubj)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.ipcget_publicasbuh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hnsh]hns}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hj"HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj3HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0Hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5HmodnameN classnameNjI jL )}jO ]jGc.ipcget_publicasbuh1hhjHubj)}(h h]h }(hjQHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hj_HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hidsh]hids}(hjlHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jGc.ipcget_publicasbuh1hhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hopsh]hops}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Iubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Iubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj.IhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+Iubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0ImodnameN classnameNjI jL )}jO ]jGc.ipcget_publicasbuh1hhj Iubj)}(h h]h }(hjLIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Iubj)}(hjh]h*}(hjZIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Iubjm)}(hparamsh]hparams}(hjgIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjbGhhhjtGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^GhhhjtGhMubah}(h]jYGah ](jjeh"]h$]h&]jj)jhuh1hhjtGhMhj[Ghhubj)}(hhh]h)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjIhhubah}(h]h ]h"]h$]h&]uh1jhj[GhhhjtGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj4hNhNubj)}(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)}(hjIh]h Parameters}(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.chMhjIubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjIh]hstruct ipc_namespace *ns}(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.chMhjIubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjIubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj Jh]hstruct ipc_ids *ids}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Jubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjJubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj$JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj JhMhj!Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj JhMhjIubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjDJh]hconst struct ipc_ops *ops}(hjFJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBJubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj>Jubj)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hj]JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYJhMhjZJubah}(h]h ]h"]h$]h&]uh1jhj>Jubeh}(h]h ]h"]h$]h&]uh1jhjYJhMhjIubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj}Jh]hstruct ipc_params *params}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Jubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjwJubj)}(hhh]h)}(hits parametersh]hits parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjwJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjIubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjJh]h Description}(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.chMhjIubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjIubh)}(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.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhj4hhhNhNubh)}(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}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhjKhMubjg)}(hipc_kht_removeh]jm)}(hipc_kht_removeh]hipc_kht_remove}(hj-KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)Kubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhjKhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjIKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEKubj)}(h h]h }(hjVKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEKubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjgKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjiKmodnameN classnameNjI jL )}jO ]jR )}jE j/Ksbc.ipc_kht_removeasbuh1hhjEKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEKubjm)}(hidsh]hids}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAKubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jKc.ipc_kht_removeasbuh1hhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hipcph]hipcp}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAKubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhjKhhubj)}(hhh]h)}(h$remove an ipc from the key hashtableh]h$remove an ipc from the key hashtable}(hjmax_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)}(hjMNh]h Parameters}(hjONhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjGNubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjlNh]hstruct ipc_ids *ids}(hjnNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjfNubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjfNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjcNubj)}(h;``int limit`` known upper limit for highest assigned index h](j)}(h ``int limit``h]j)}(hjNh]h int limit}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjNubj)}(hhh]h)}(h,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjcNubeh}(h]h ]h"]h$]h&]uh1jhjGNubh)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjGNubh)}(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 }(hjNhhhNhNubj)}(h**ids**h]hids}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh. 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.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjGNubh)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjGNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_rmid (C function) c.ipc_rmidhNtauh1hhj4hhhNhNubh)}(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}(hjFOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBOhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjUOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBOhhhjTOhMubjg)}(hipc_rmidh]jm)}(hipc_rmidh]hipc_rmid}(hjgOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBOhhhjTOhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE jiOsb c.ipc_rmidasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hidsh]hids}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{Oubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]jO c.ipc_rmidasbuh1hhjOubj)}(h h]h }(hj1PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hj?PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hipcph]hipcp}(hjLPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{Oubeh}(h]h ]h"]h$]h&]jjuh1jhjBOhhhjTOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>OhhhjTOhMubah}(h]j9Oah ](jjeh"]h$]h&]jj)jhuh1hhjTOhMhj;Ohhubj)}(hhh]h)}(hremove an ipc identifierh]hremove an ipc identifier}(hjvPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjsPhhubah}(h]h ]h"]h$]h&]uh1jhj;OhhhjTOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhj4hNhNubj)}(hX(**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjPh]hstruct ipc_ids *ids}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(hV``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjPh]hstruct kern_ipc_perm *ipcp}(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.chMhjPubj)}(hhh]h)}(h6ipc perm structure containing the identifier to removeh]h6ipc perm structure containing the identifier to remove}(hj QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjPubeh}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hj+Qh]h Description}(hj-QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Qubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubh)}(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.}(hjAQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ipc_set_key_private (C function)c.ipc_set_key_privatehNtauh1hhj4hhhNhNubh)}(hhh](j)}(hJvoid ipc_set_key_private (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]j)}(hIvoid ipc_set_key_private(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hjpQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlQhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlQhhhj~QhMubjg)}(hipc_set_key_privateh]jm)}(hipc_set_key_privateh]hipc_set_key_private}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlQhhhj~QhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jR )}jE jQsbc.ipc_set_key_privateasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hidsh]hids}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hj,RhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj=RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:Rubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?RmodnameN classnameNjI jL )}jO ]jQc.ipc_set_key_privateasbuh1hhjRubj)}(h h]h }(hj[RhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjiRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hipcph]hipcp}(hjvRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjlQhhhj~QhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhQhhhj~QhMubah}(h]jcQah ](jjeh"]h$]h&]jj)jhuh1hhj~QhMhjeQhhubj)}(hhh]h)}(h0switch the key of an existing ipc to IPC_PRIVATEh]h0switch the key of an existing ipc to IPC_PRIVATE}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjeQhhhj~QhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1hhhhj4hNhNubj)}(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)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjRh]hstruct ipc_ids *ids}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjRubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjSh]hstruct kern_ipc_perm *ipcp}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjSubj)}(hhh]h)}(h/ipc perm structure containing the key to modifyh]h/ipc perm structure containing the key to modify}(hj3ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ShMhj0Subah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhj/ShMhjRubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hjUSh]h Description}(hjWShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSSubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hjkShhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcperms (C function) c.ipcpermshNtauh1hhj4hhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjShhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjShhhjShMubjg)}(hipcpermsh]jm)}(hipcpermsh]hipcperms}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhjShMubj)}(hB(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct ipc_namespace *nsh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE jSsb c.ipcpermsasbuh1hhjSubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hj#ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hnsh]hns}(hj0ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjIThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjETubj)}(h h]h }(hjVThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjETubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjgThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjiTmodnameN classnameNjI jL )}jO ]jT c.ipcpermsasbuh1hhjETubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjETubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjETubjm)}(hipcph]hipcp}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjETubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h short flagh](j )}(hshorth]hshort}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hflagh]hflag}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjShMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjShMhjShhubj)}(hhh]h)}(hcheck ipc permissionsh]hcheck ipc permissions}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhj4hNhNubj)}(hXH**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``short flag`` desired permission set **Description** Check user, group, other permissions for access to ipc resources. return 0 if allowed **flag** will most probably be 0 or ``S_...UGO`` from h](h)}(h**Parameters**h]j)}(hj!Uh]h Parameters}(hj#UhhhNhNubah}(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.chM#hjUubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj@Uh]hstruct ipc_namespace *ns}(hjBUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Uubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj:Uubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjYUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUUhM hjVUubah}(h]h ]h"]h$]h&]uh1jhj:Uubeh}(h]h ]h"]h$]h&]uh1jhjUUhM hj7Uubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjyUh]hstruct kern_ipc_perm *ipcp}(hj{UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwUubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM!hjsUubj)}(hhh]h)}(hipc permission seth]hipc permission set}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM!hjUubah}(h]h ]h"]h$]h&]uh1jhjsUubeh}(h]h ]h"]h$]h&]uh1jhjUhM!hj7Uubj)}(h&``short flag`` desired permission set h](j)}(h``short flag``h]j)}(hjUh]h short flag}(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.chM"hjUubj)}(hhh]h)}(hdesired permission seth]hdesired permission set}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM"hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM"hj7Uubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjUh]h Description}(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.chM$hjUubh)}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hjUubh)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh will most probably be 0 or }(hjVhhhNhNubj)}(h ``S_...UGO``h]hS_...UGO}(hj(VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh from }(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM&hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kernel_to_ipc64_perm (C function)c.kernel_to_ipc64_permhNtauh1hhj4hhhNhNubh)}(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}(hjaVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]VhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDubj)}(h h]h }(hjpVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]VhhhjoVhMDubjg)}(hkernel_to_ipc64_permh]jm)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~Vubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]VhhhjoVhMDubj)}(h2(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j)}(hstruct kern_ipc_perm *inh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jR )}jE jVsbc.kernel_to_ipc64_permasbuh1hhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hinh]hin}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hstruct ipc64_perm *outh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Wubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hj.WhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+Wubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0WmodnameN classnameNjI jL )}jO ]jVc.kernel_to_ipc64_permasbuh1hhj Wubj)}(h h]h }(hjLWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Wubj)}(hjh]h*}(hjZWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Wubjm)}(houth]hout}(hjgWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhj]VhhhjoVhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYVhhhjoVhMDubah}(h]jTVah ](jjeh"]h$]h&]jj)jhuh1hhjoVhMDhjVVhhubj)}(hhh]h)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDhjWhhubah}(h]h ]h"]h$]h&]uh1jhjVVhhhjoVhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhj4hNhNubj)}(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)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjWubj)}(hhh](j)}(h0``struct kern_ipc_perm *in`` kernel permissions h](j)}(h``struct kern_ipc_perm *in``h]j)}(hjWh]hstruct kern_ipc_perm *in}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMEhjWubj)}(hhh]h)}(hkernel permissionsh]hkernel permissions}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMEhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMEhjWubj)}(h5``struct ipc64_perm *out`` new style ipc permissions h](j)}(h``struct ipc64_perm *out``h]j)}(hj Xh]hstruct ipc64_perm *out}(hj XhhhNhNubah}(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.chMFhjXubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hj$XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj XhMFhj!Xubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhj XhMFhjWubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(h**Description**h]j)}(hjFXh]h Description}(hjHXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDXubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjWubh)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hj\XhhhNhNubj)}(h**in**h]hin}(hjdXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\XubhD into a set of permissions descriptions for returning to userspace (}(hj\XhhhNhNubj)}(h**out**h]hout}(hjvXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Xubh).}(hj\XhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMGhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#ipc64_perm_to_ipc_perm (C function)c.ipc64_perm_to_ipc_permhNtauh1hhj4hhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjXhMWubjg)}(hipc64_perm_to_ipc_permh]jm)}(hipc64_perm_to_ipc_permh]hipc64_perm_to_ipc_perm}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjXhMWubj)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hj YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj YmodnameN classnameNjI jL )}jO ]jR )}jE jXsbc.ipc64_perm_to_ipc_permasbuh1hhjXubj)}(h h]h }(hj*YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hj8YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hinh]hin}(hjEYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hstruct ipc_perm *outh](j)}(hjh]hstruct}(hj^YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZYubj)}(h h]h }(hjkYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZYubh)}(hhh]jm)}(hipc_permh]hipc_perm}(hj|YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~YmodnameN classnameNjI jL )}jO ]j&Yc.ipc64_perm_to_ipc_permasbuh1hhjZYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZYubjm)}(houth]hout}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjXhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjXhMWubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjXhMWhjXhhubj)}(hhh]h)}(h"convert new ipc permissions to oldh]h"convert new ipc permissions to old}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWhjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhj4hNhNubj)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hjYubj)}(hhh](j)}(h4``struct ipc64_perm *in`` new style ipc permissions h](j)}(h``struct ipc64_perm *in``h]j)}(hj Zh]hstruct ipc64_perm *in}(hj"ZhhhNhNubah}(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.chMXhjZubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hj9ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ZhMXhj6Zubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj5ZhMXhjZubj)}(h3``struct ipc_perm *out`` old style ipc permissions h](j)}(h``struct ipc_perm *out``h]j)}(hjYZh]hstruct ipc_perm *out}(hj[ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWZubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMYhjSZubj)}(hhh]h)}(hold style ipc permissionsh]hold style ipc permissions}(hjrZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnZhMYhjoZubah}(h]h ]h"]h$]h&]uh1jhjSZubeh}(h]h ]h"]h$]h&]uh1jhjnZhMYhjZubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hjZh]h Description}(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.chM[hjYubh)}(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 }(hjZhhhNhNubj)}(h**in**h]hin}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh3 into a compatibility object and store it into the }(hjZhhhNhNubj)}(h**out**h]hout}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh pointer.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMZhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"ipc_obtain_object_idr (C function)c.ipc_obtain_object_idrhNtauh1hhj4hhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjubj)}(h h]h }(hj [hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhj [hMjubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jR )}jE ipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhjZhhhj [hMjubj)}(h h]h }(hj=[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhj [hMjubj)}(hjh]h*}(hjK[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhj [hMjubjg)}(hipc_obtain_object_idrh]jm)}(hj:[h]hipc_obtain_object_idr}(hj\[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhj [hMjubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjw[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs[ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]j8[c.ipc_obtain_object_idrasbuh1hhjs[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs[ubjm)}(hidsh]hids}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo[ubj)}(hint idh](j )}(hinth]hint}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubjm)}(hidh]hid}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo[ubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhj [hMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhj [hMjubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj [hMjhjZhhubj)}(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&]uh1jhjZhhhj [hMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjE\jjE\jjjuh1hhhhj4hNhNubj)}(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)}(hjO\h]h Parameters}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM\ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhjI\ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjn\h]hstruct ipc_ids *ids}(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:196: ./ipc/util.chMlhjh\ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMlhj\ubah}(h]h ]h"]h$]h&]uh1jhjh\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMlhje\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\ubj)}(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&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMmhje\ubeh}(h]h ]h"]h$]h&]uh1jhjI\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.chMohjI\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\hhhNhNubjx)}(h*not*h]hnot}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj\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.chMnhjI\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$ipc_obtain_object_check (C function)c.ipc_obtain_object_checkhNtauh1hhj4hhhNhNubh)}(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}(hj9]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5]hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjG]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5]hhhjF]hMubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjX]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjU]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZ]modnameN classnameNjI jL )}jO ]jR )}jE ipc_obtain_object_checksbc.ipc_obtain_object_checkasbuh1hhj5]hhhjF]hMubj)}(h h]h }(hjy]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5]hhhjF]hMubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5]hhhjF]hMubjg)}(hipc_obtain_object_checkh]jm)}(hjv]h]hipc_obtain_object_check}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5]hhhjF]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]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jt]c.ipc_obtain_object_checkasbuh1hhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hidsh]hids}(hj ^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hint idh](j )}(hinth]hint}(hj#^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj1^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubjm)}(hidh]hid}(hj?^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj5]hhhjF]hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1]hhhjF]hMubah}(h]j,]ah ](jjeh"]h$]h&]jj)jhuh1hhjF]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.}(hji^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjf^hhubah}(h]h ]h"]h$]h&]uh1jhj.]hhhjF]hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1hhhhj4hNhNubj)}(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}(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.chMhj^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.chMhj^ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj^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.chMhj^ubj)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^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.chMhj^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 }(hj4_hhhNhNubjx)}(h*not*h]hnot}(hj<_hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj4_ubh locked on exit.}(hj4_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget (C function)c.ipcgethNtauh1hhj4hhhNhNubh)}(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}(hju_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq_hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq_hhhj_hMubjg)}(hipcgeth]jm)}(hipcgeth]hipcget}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjq_hhhj_hMubj)}(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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]jR )}jE j_sbc.ipcgetasbuh1hhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjm)}(hnsh]hns}(hj `hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hj$`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj `ubj)}(h h]h }(hj1`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj `ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjB`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjD`modnameN classnameNjI jL )}jO ]j_c.ipcgetasbuh1hhj `ubj)}(h h]h }(hj``hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj `ubj)}(hjh]h*}(hjn`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj `ubjm)}(hidsh]hids}(hj{`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj `ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`modnameN classnameNjI jL )}jO ]j_c.ipcgetasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hopsh]hops}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hj,ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj=ahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?amodnameN classnameNjI jL )}jO ]j_c.ipcgetasbuh1hhjaubj)}(h h]h }(hj[ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjiahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hparamsh]hparams}(hjvahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhjq_hhhj_hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjm_hhhj_hMubah}(h]jh_ah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhjj_hhubj)}(hhh]h)}(hCommon sys_*get() codeh]hCommon sys_*get() code}(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&]uh1jhjj_hhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj4hNhNubj)}(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)}(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.chMhjaubj)}(hhh](j)}(h'``struct ipc_namespace *ns`` namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjah]hstruct ipc_namespace *ns}(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.chMhjaubj)}(hhh]h)}(h namespaceh]h namespace}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjbh]hstruct ipc_ids *ids}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjbubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj3bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/bhMhj0bubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj/bhMhjaubj)}(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)}(hjSbh]hconst struct ipc_ops *ops}(hjUbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQbubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjMbubj)}(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}(hjlbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjibubah}(h]h ]h"]h$]h&]uh1jhjMbubeh}(h]h ]h"]h$]h&]uh1jhjhbhMhjaubj)}(hP``struct ipc_params *params`` the parameters needed by the previous operations. h](j)}(h``struct ipc_params *params``h]j)}(hjbh]hstruct ipc_params *params}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjbubj)}(hhh]h)}(h1the parameters needed by the previous operations.h]h1the parameters needed by the previous operations.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(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.chMhjaubh)}(hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().h]hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().}(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&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_update_perm (C function)c.ipc_update_permhNtauh1hhj4hhhNhNubh)}(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}(hj chhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj chhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj chhhjchMubjg)}(hipc_update_permh]jm)}(hipc_update_permh]hipc_update_perm}(hj.chhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*cubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj chhhjchMubj)}(h2(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hjh]hstruct}(hjJchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFcubj)}(h h]h }(hjWchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFcubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hjhchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjecubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjcmodnameN classnameNjI jL )}jO ]jR )}jE j0csbc.ipc_update_permasbuh1hhjFcubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFcubjm)}(hinh]hin}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBcubj)}(hstruct kern_ipc_perm *outh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]jcc.ipc_update_permasbuh1hhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(houth]hout}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBcubeh}(h]h ]h"]h$]h&]jjuh1jhj chhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjchMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjchMhjchhubj)}(hhh]h)}(h'update the permissions of an ipc objecth]h'update the permissions of an ipc object}(hj=dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj:dhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUdjjUdjjjuh1hhhhj4hNhNubj)}(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)}(hj_dh]h Parameters}(hjadhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]dubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYdubj)}(hhh](j)}(h9``struct ipc64_perm *in`` the permission given as input. h](j)}(h``struct ipc64_perm *in``h]j)}(hj~dh]hstruct ipc64_perm *in}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|dubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjxdubj)}(hhh]h)}(hthe permission given as input.h]hthe permission given as input.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjxdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjudubj)}(h?``struct kern_ipc_perm *out`` the permission of the ipc to set.h](j)}(h``struct kern_ipc_perm *out``h]j)}(hjdh]hstruct kern_ipc_perm *out}(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.chMhjdubj)}(hhh]h)}(h!the permission of the ipc to set.h]h!the permission of the ipc to set.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjudubeh}(h]h ]h"]h$]h&]uh1jhjYdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ipcctl_obtain_check (C function)c.ipcctl_obtain_checkhNtauh1hhj4hhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ehhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ehhhjehMubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj0ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-eubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2emodnameN classnameNjI jL )}jO ]jR )}jE ipcctl_obtain_checksbc.ipcctl_obtain_checkasbuh1hhj ehhhjehMubj)}(h h]h }(hjQehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ehhhjehMubj)}(hjh]h*}(hj_ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ehhhjehMubjg)}(hipcctl_obtain_checkh]jm)}(hjNeh]hipcctl_obtain_check}(hjpehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjleubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj ehhhjehMubj)}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jLec.ipcctl_obtain_checkasbuh1hhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hnsh]hns}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jLec.ipcctl_obtain_checkasbuh1hhjeubj)}(h h]h }(hj7fhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjEfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hidsh]hids}(hjRfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hint idh](j )}(hinth]hint}(hjkfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgfubj)}(h h]h }(hjyfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgfubjm)}(hidh]hid}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hint cmdh](j )}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hcmdh]hcmd}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hstruct ipc64_perm *permh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jLec.ipcctl_obtain_checkasbuh1hhjfubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hpermh]hperm}(hj,ghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hint extra_permh](j )}(hinth]hint}(hjEghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAgubj)}(h h]h }(hjSghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAgubjm)}(h extra_permh]h extra_perm}(hjaghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj ehhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj ehhhjehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehMhjehhubj)}(hhh]h)}(h,retrieve an ipc object and check permissionsh]h,retrieve an ipc object and check permissions}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhj4hNhNubj)}(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)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjgh]hstruct ipc_namespace *ns}(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.chMhjgubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubj)}(hC``struct ipc_ids *ids`` the table of ids where to look for the ipc h](j)}(h``struct ipc_ids *ids``h]j)}(hjhh]hstruct ipc_ids *ids}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgubj)}(hhh]h)}(h*the table of ids where to look for the ipch]h*the table of ids where to look for the ipc}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjgubj)}(h)``int id`` the id of the ipc to retrieve h](j)}(h ``int id``h]j)}(hj>hh]hint id}(hj@hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj``int extra_perm`` one extra permission parameter used by msq h](j)}(h``int extra_perm``h]j)}(hjhh]hint extra_perm}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhubj)}(hhh]h)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]j)}(hj$ih]h Description}(hj&ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"iubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgubh)}(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:ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgubj)}(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:}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjLiubj)}(hhh]j)}(hhh](j)}(h>retrieves the ipc object with the given id in the given table.h]h)}(hjgih]h>retrieves the ipc object with the given id in the given table.}(hjiihhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjeiubah}(h]h ]h"]h$]h&]uh1jhjbiubj)}(hDperforms some audit and permission check, depending on the given cmdh]h)}(hjih]hDperforms some audit and permission check, depending on the given cmd}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj}iubah}(h]h ]h"]h$]h&]uh1jhjbiubj)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjiubah}(h]h ]h"]h$]h&]uh1jhjbiubeh}(h]h ]h"]h$]h&]jjuh1jhjvihMhj_iubah}(h]h ]h"]h$]h&]uh1jhjLiubeh}(h]h ]h"]h$]h&]uh1jhj^ihMhjIiubah}(h]h ]h"]h$]h&]uh1jhjgubh)}(h6Call holding the both the rwsem and the rcu read lock.h]h6Call holding the both the rwsem and the rcu read lock.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_parse_version (C function)c.ipc_parse_versionhNtauh1hhj4hhhNhNubh)}(hhh](j)}(h int ipc_parse_version (int *cmd)h]j)}(hint ipc_parse_version(int *cmd)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjihhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjihhhjjhMubjg)}(hipc_parse_versionh]jm)}(hipc_parse_versionh]hipc_parse_version}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhjjhMubj)}(h (int *cmd)h]j)}(hint *cmdh](j )}(hinth]hint}(hj2jhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.jubj)}(h h]h }(hj@jhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.jubj)}(hjh]h*}(hjNjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.jubjm)}(hcmdh]hcmd}(hj[jhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*jubah}(h]h ]h"]h$]h&]jjuh1jhjihhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjihhubj)}(hhh]h)}(hipc call versionh]hipc call version}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhj4hNhNubj)}(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)}(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 ``int *cmd`` pointer to command h](j)}(h ``int *cmd``h]j)}(hjjh]hint *cmd}(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.chMhjjubj)}(hhh]h)}(hpointer to commandh]hpointer to command}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubh)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(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.chMhjjubh)}(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 }(hjkhhhNhNubj)}(h**cmd**h]hcmd}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubhQ value is turned from an encoding command and version into just the command code.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhj4hhhNhNubh)}(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}(hjXkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTkhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjfkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTkhhhjekhMubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjwkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjykmodnameN classnameNjI jL )}jO ]jR )}jE sysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhjTkhhhjekhMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTkhhhjekhMubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTkhhhjekhMubjg)}(hsysvipc_find_ipch]jm)}(hjkh]hsysvipc_find_ipc}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjTkhhhjekhMubj)}(h"(struct ipc_ids *ids, loff_t *pos)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jkc.sysvipc_find_ipcasbuh1hhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hidsh]hids}(hj)lhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h loff_t *posh](h)}(hhh]jm)}(hloff_th]hloff_t}(hjElhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGlmodnameN classnameNjI jL )}jO ]jkc.sysvipc_find_ipcasbuh1hhj>lubj)}(h h]h }(hjclhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>lubj)}(hjh]h*}(hjqlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>lubjm)}(hposh]hpos}(hj~lhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjTkhhhjekhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPkhhhjekhMubah}(h]jKkah ](jjeh"]h$]h&]jj)jhuh1hhjekhMhjMkhhubj)}(hhh]h)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjMkhhhjekhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhj4hNhNubj)}(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)}(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_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.chMhjlubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(h"``loff_t *pos`` expected position h](j)}(h``loff_t *pos``h]j)}(hj"mh]h loff_t *pos}(hj$mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj mubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjmubj)}(hhh]h)}(hexpected positionh]hexpected position}(hj;mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7mhMhj8mubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhj7mhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(h**Description**h]j)}(hj]mh]h Description}(hj_mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[mubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjlubh)}(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 }(hjsmhhhNhNubj)}(h**pos**h]hpos}(hj{mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsmubh+. If there is no ipc structure at position }(hjsmhhhNhNubj)}(h**pos**h]hpos}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsmubh, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and }(hjsmhhhNhNubj)}(h**pos**h]hpos}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsmubhb is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), }(hjsmhhhNhNubj)}(h**pos**h]hpos}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsmubh is not modified.}(hjsmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjlubh)}(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.}(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&]uh1jhj4hhhNhNubeh}(h] ipc-utilitiesah ]h"] ipc utilitiesah$]h&]uh1hhj4hhhhhKubeh}(h]kernel-ipc-facilitiesah ]h"]kernel ipc facilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h FIFO Bufferh]h FIFO Buffer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hDECLARE_KFIFO_PTRh]j)}(hDECLARE_KFIFO_PTRh]jg)}(hDECLARE_KFIFO_PTRh]jm)}(hj%nh]hDECLARE_KFIFO_PTR}(hj/nhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+nubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'nhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhj#nhhhjBnhKoubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjBnhKohj nhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj nhhhjBnhKoubeh}(h]h ](jmacroeh"]h$]h&]jjjj[njj[njjjuh1hhhhjnhNhNubh)}(h"``DECLARE_KFIFO_PTR (fifo, type)``h]j)}(hjanh]hDECLARE_KFIFO_PTR (fifo, type)}(hjcnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_nubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhjnhhubj)}(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}(hj{nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKohjwnubah}(h]h ]h"]h$]h&]uh1jhjnhKohjnhhubj)}(hZ**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elementsh](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:205: ./include/linux/kfifo.hhKshjnubj)}(hhh](j)}(h#``fifo`` name of the declared fifo h](j)}(h``fifo``h]j)}(hjnh]hfifo}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKphjnubj)}(hhh]h)}(hname of the declared fifoh]hname of the declared fifo}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKphjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhKphjnubj)}(h"``type`` type of the fifo elementsh](j)}(h``type``h]j)}(hjnh]htype}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKrhjnubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhjoubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjohKrhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDECLARE_KFIFO (C macro)c.DECLARE_KFIFOhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h DECLARE_KFIFOh]j)}(h DECLARE_KFIFOh]jg)}(h DECLARE_KFIFOh]jm)}(hjBoh]h DECLARE_KFIFO}(hjLohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDohhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKvubah}(h]h ]h"]h$]h&]jjjuh1jjjhj@ohhhj_ohKvubah}(h]j;oah ](jjeh"]h$]h&]jj)jhuh1hhj_ohKvhj=ohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj=ohhhj_ohKvubeh}(h]h ](jmacroeh"]h$]h&]jjjjxojjxojjjuh1hhhhjnhNhNubh)}(h$``DECLARE_KFIFO (fifo, type, size)``h]j)}(hj~oh]h DECLARE_KFIFO (fifo, type, size)}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|oubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKxhjnhhubj)}(hmacro to declare a fifo object h]h)}(hmacro to declare a fifo objecth]hmacro to declare a fifo object}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKvhjoubah}(h]h ]h"]h$]h&]uh1jhjohKvhjnhhubj)}(h**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elements ``size`` the number of elements in the fifo, this must be a power of 2h](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:205: ./include/linux/kfifo.hhKzhjoubj)}(hhh](j)}(h#``fifo`` name of the declared fifo h](j)}(h``fifo``h]j)}(hjoh]hfifo}(hjohhhNhNubah}(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.hhKwhjoubj)}(hhh]h)}(hname of the declared fifoh]hname of the declared fifo}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohKwhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKwhjoubj)}(h#``type`` type of the fifo elements h](j)}(h``type``h]j)}(hj ph]htype}(hj phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj pubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKxhjpubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hj$phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj phKxhj!pubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhj phKxhjoubj)}(hF``size`` the number of elements in the fifo, this must be a power of 2h](j)}(h``size``h]j)}(hjDph]hsize}(hjFphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKzhj>pubj)}(hhh]h)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hj]phhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKyhjZpubah}(h]h ]h"]h$]h&]uh1jhj>pubeh}(h]h ]h"]h$]h&]uh1jhjYphKzhjoubeh}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hINIT_KFIFO (C macro) c.INIT_KFIFOhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h INIT_KFIFOh]j)}(h INIT_KFIFOh]jg)}(h INIT_KFIFOh]jm)}(hjph]h INIT_KFIFO}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhK~ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphK~ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphK~hjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjphK~ubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhjnhNhNubh)}(h``INIT_KFIFO (fifo)``h]j)}(hjph]hINIT_KFIFO (fifo)}(hjphhhNhNubah}(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.hhKhjnhhubj)}(h,Initialize a fifo declared by DECLARE_KFIFO h]h)}(h+Initialize a fifo declared by DECLARE_KFIFOh]h+Initialize a fifo declared by DECLARE_KFIFO}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhK~hjpubah}(h]h ]h"]h$]h&]uh1jhjphK~hjnhhubj)}(h=**Parameters** ``fifo`` name of the declared fifo datatypeh](h)}(h**Parameters**h]j)}(hj qh]h Parameters}(hj qhhhNhNubah}(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.hhKhjqubj)}(hhh]j)}(h+``fifo`` name of the declared fifo datatypeh](j)}(h``fifo``h]j)}(hj(qh]hfifo}(hj*qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&qubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj"qubj)}(hhh]h)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hjAqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj>qubah}(h]h ]h"]h$]h&]uh1jhj"qubeh}(h]h ]h"]h$]h&]uh1jhj=qhKhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_KFIFO (C macro)c.DEFINE_KFIFOhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h DEFINE_KFIFOh]j)}(h DEFINE_KFIFOh]jg)}(h DEFINE_KFIFOh]jm)}(hj|qh]h DEFINE_KFIFO}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~qhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjzqhhhjqhKubah}(h]juqah ](jjeh"]h$]h&]jj)jhuh1hhjqhKhjwqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwqhhhjqhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjqjjqjjjuh1hhhhjnhNhNubh)}(h#``DEFINE_KFIFO (fifo, type, size)``h]j)}(hjqh]hDEFINE_KFIFO (fifo, type, size)}(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.hhKhjnhhubj)}(h¯o to define and initialize a fifo h]h)}(h%macro to define and initialize a fifoh]h%macro to define and initialize a fifo}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjqubah}(h]h ]h"]h$]h&]uh1jhjqhKhjnhhubj)}(h**Parameters** ``fifo`` name of the declared fifo datatype ``type`` type of the fifo elements ``size`` the number of elements in the fifo, this must be a power of 2 **Note** the macro can be used for global and local fifo data type variables.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjqubj)}(hhh](j)}(h,``fifo`` name of the declared fifo datatype h](j)}(h``fifo``h]j)}(hj rh]hfifo}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjrubj)}(hhh]h)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hj%rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!rhKhj"rubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhj!rhKhjrubj)}(h#``type`` type of the fifo elements h](j)}(h``type``h]j)}(hjErh]htype}(hjGrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCrubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj?rubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hj^rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZrhKhj[rubah}(h]h ]h"]h$]h&]uh1jhj?rubeh}(h]h ]h"]h$]h&]uh1jhjZrhKhjrubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hj~rh]hsize}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|rubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjxrubj)}(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}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKhjrubah}(h]h ]h"]h$]h&]uh1jhjxrubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjrubeh}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Note**h]j)}(hjrh]hNote}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjqubh)}(hDthe macro can be used for global and local fifo data type variables.h]hDthe macro can be used for global and local fifo data type variables.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_initialized (C macro)c.kfifo_initializedhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_initializedh]j)}(hkfifo_initializedh]jg)}(hkfifo_initializedh]jm)}(hjrh]hkfifo_initialized}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjshKubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjshKhjrhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjrhhhjshKubeh}(h]h ](jmacroeh"]h$]h&]jjjj.sjj.sjjjuh1hhhhjnhNhNubh)}(h``kfifo_initialized (fifo)``h]j)}(hj4sh]hkfifo_initialized (fifo)}(hj6shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2subah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjnhhubj)}(h!Check if the fifo is initialized h]h)}(h Check if the fifo is initializedh]h Check if the fifo is initialized}(hjNshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjJsubah}(h]h ]h"]h$]h&]uh1jhj\shKhjnhhubj)}(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)}(hjish]h Parameters}(hjkshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgsubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjcsubj)}(hhh]j)}(h&``fifo`` address of the fifo to check h](j)}(h``fifo``h]j)}(hjsh]hfifo}(hjshhhNhNubah}(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.hhKhjsubj)}(hhh]h)}(haddress of the fifo to checkh]haddress of the fifo to check}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshKhjsubah}(h]h ]h"]h$]h&]uh1jhjcsubh)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(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.hhKhjcsubh)}(h[Return ``true`` if fifo is initialized, otherwise ``false``. Assumes the fifo was 0 before.h](hReturn }(hjshhhNhNubj)}(h``true``h]htrue}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh# if fifo is initialized, otherwise }(hjshhhNhNubj)}(h ``false``h]hfalse}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh . Assumes the fifo was 0 before.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjcsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_esize (C macro) c.kfifo_esizehNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_esizeh]j)}(h kfifo_esizeh]jg)}(h kfifo_esizeh]jm)}(hj&th]h kfifo_esize}(hj0thhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,tubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(thhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj$thhhjCthKubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjCthKhj!thhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj!thhhjCthKubeh}(h]h ](jmacroeh"]h$]h&]jjjj\tjj\tjjjuh1hhhhjnhNhNubh)}(h``kfifo_esize (fifo)``h]j)}(hjbth]hkfifo_esize (fifo)}(hjdthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`tubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjnhhubj)}(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}(hj|thhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjxtubah}(h]h ]h"]h$]h&]uh1jhjthKhjnhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](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:205: ./include/linux/kfifo.hhKhjtubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjth]hfifo}(hjthhhNhNubah}(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.hhKhjtubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthKhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_recsize (C macro)c.kfifo_recsizehNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_recsizeh]j)}(h kfifo_recsizeh]jg)}(h kfifo_recsizeh]jm)}(hj uh]h kfifo_recsize}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj uhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhj'uhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhj'uhKhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhj'uhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj@ujj@ujjjuh1hhhhjnhNhNubh)}(h``kfifo_recsize (fifo)``h]j)}(hjFuh]hkfifo_recsize (fifo)}(hjHuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjnhhubj)}(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}(hj`uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj\uubah}(h]h ]h"]h$]h&]uh1jhjnuhKhjnhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj{uh]h Parameters}(hj}uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjuuubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjuh]hfifo}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjuubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_size (C macro) c.kfifo_sizehNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_sizeh]j)}(h kfifo_sizeh]jg)}(h kfifo_sizeh]jm)}(hjuh]h kfifo_size}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhj vhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhj vhKhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhj vhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj$vjj$vjjjuh1hhhhjnhNhNubh)}(h``kfifo_size (fifo)``h]j)}(hj*vh]hkfifo_size (fifo)}(hj,vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(vubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjnhhubj)}(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}(hjDvhhhNhNubah}(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&]uh1jhjRvhKhjnhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj_vh]h Parameters}(hjavhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]vubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjYvubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hj~vh]hfifo}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|vubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjxvubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjvubah}(h]h ]h"]h$]h&]uh1jhjxvubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjuvubah}(h]h ]h"]h$]h&]uh1jhjYvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_reset (C macro) c.kfifo_resethNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_reseth]j)}(h kfifo_reseth]jg)}(h kfifo_reseth]jm)}(hjvh]h kfifo_reset}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjvhKubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjvhKhjvhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjvhhhjvhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjwjjwjjjuh1hhhhjnhNhNubh)}(h``kfifo_reset (fifo)``h]j)}(hjwh]hkfifo_reset (fifo)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj wubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjnhhubj)}(h removes the entire fifo content h]h)}(hremoves the entire fifo contenth]hremoves the entire fifo content}(hj(whhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj$wubah}(h]h ]h"]h$]h&]uh1jhj6whKhjnhhubj)}(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)}(hjCwh]h Parameters}(hjEwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj=wubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjbwh]hfifo}(hjdwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`wubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj\wubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj{whhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwwhKhjxwubah}(h]h ]h"]h$]h&]uh1jhj\wubeh}(h]h ]h"]h$]h&]uh1jhjwwhKhjYwubah}(h]h ]h"]h$]h&]uh1jhj=wubh)}(h**Note**h]j)}(hjwh]hNote}(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.hhKhj=wubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj=wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_reset_out (C macro)c.kfifo_reset_outhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_reset_outh]j)}(hkfifo_reset_outh]jg)}(hkfifo_reset_outh]jm)}(hjwh]hkfifo_reset_out}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjwhKhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhjwhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjxjjxjjjuh1hhhhjnhNhNubh)}(h``kfifo_reset_out (fifo)``h]j)}(hjxh]hkfifo_reset_out (fifo)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjnhhubj)}(hskip fifo content h]h)}(hskip fifo contenth]hskip fifo content}(hj2xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj.xubah}(h]h ]h"]h$]h&]uh1jhj@xhKhjnhhubj)}(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)}(hjMxh]h Parameters}(hjOxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKxubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjGxubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjlxh]hfifo}(hjnxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjfxubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhKhjxubah}(h]h ]h"]h$]h&]uh1jhjfxubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjcxubah}(h]h ]h"]h$]h&]uh1jhjGxubh)}(h**Note**h]j)}(hjxh]hNote}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjGxubh)}(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().}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjGxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_len (C macro) c.kfifo_lenhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_lenh]j)}(h kfifo_lenh]jg)}(h kfifo_lenh]jm)}(hjxh]h kfifo_len}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjyhKubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjyhKhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjyhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1hhhhjnhNhNubh)}(h``kfifo_len (fifo)``h]j)}(hj"yh]hkfifo_len (fifo)}(hj$yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj yubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjnhhubj)}(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}(hjreturns 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{hKhjnhhubj)}(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}(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.hhMhj8{ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjW{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS{hMhjT{ubah}(h]h ]h"]h$]h&]uh1jhj8{ubeh}(h]h ]h"]h$]h&]uh1jhjS{hMhj5{ubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjw{h]hlock}(hjy{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjq{ubj)}(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&]uh1jhjq{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj5{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhjnhhhNhNubh)}(hhh](j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jg)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jm)}(hj{h]h#kfifo_is_empty_spinlocked_noirqsave}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{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)jhuh1hhj{hMhj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj|jj|jjjuh1hhhhjnhNhNubh)}(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.hhMhjnhhubj)}(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}(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/|hMhjnhhubj)}(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.hhMhj6|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&]uh1jhjY|ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjU|ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjt|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp|hMhjq|ubah}(h]h ]h"]h$]h&]uh1jhjU|ubeh}(h]h ]h"]h$]h&]uh1jhjp|hMhjR|ubj)}(h(``lock`` spinlock to be used for lockingh](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|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjR|ubeh}(h]h ]h"]h$]h&]uh1jhj6|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_is_full (C macro)c.kfifo_is_fullhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_is_fullh]j)}(h kfifo_is_fullh]jg)}(h kfifo_is_fullh]jm)}(hj|h]h kfifo_is_full}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|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)jhuh1hhj}hMhj|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj|hhhj}hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj}jj}jjjuh1hhhhjnhNhNubh)}(h``kfifo_is_full (fifo)``h]j)}(hj$}h]hkfifo_is_full (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.hhM hjnhhubj)}(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&]uh1jhjL}hMhjnhhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjY}h]h Parameters}(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:205: ./include/linux/kfifo.hhM"hjS}ubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjx}h]hfifo}(hjz}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM$hjr}ubj)}(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.hhMhj}ubah}(h]h ]h"]h$]h&]uh1jhjr}ubeh}(h]h ]h"]h$]h&]uh1jhj}hM$hjo}ubah}(h]h ]h"]h$]h&]uh1jhjS}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_avail (C macro) c.kfifo_availhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_availh]j)}(h kfifo_availh]jg)}(h kfifo_availh]jm)}(hj}h]h kfifo_avail}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}hM(ubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hM(hj}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}hhhj}hM(ubeh}(h]h ](jmacroeh"]h$]h&]jjjj~jj~jjjuh1hhhhjnhNhNubh)}(h``kfifo_avail (fifo)``h]j)}(hj~h]hkfifo_avail (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.hhM*hjnhhubj)}(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}(hj"~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(hj~ubah}(h]h ]h"]h$]h&]uh1jhj0~hM(hjnhhubj)}(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,hj7~ubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](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.hhM.hjV~ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hju~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM)hjr~ubah}(h]h ]h"]h$]h&]uh1jhjV~ubeh}(h]h ]h"]h$]h&]uh1jhjq~hM.hjS~ubah}(h]h ]h"]h$]h&]uh1jhj7~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_skip_count (C macro)c.kfifo_skip_counthNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_skip_counth]j)}(hkfifo_skip_counth]jg)}(hkfifo_skip_counth]jm)}(hj~h]hkfifo_skip_count}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhj~hM8ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj~hM8hj~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj~hhhj~hM8ubeh}(h]h ](jmacroeh"]h$]h&]jjjj~jj~jjjuh1hhhhjnhNhNubh)}(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:hjnhhubj)}(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&]uh1jhjhM8hjnhhubj)}(h\**Parameters** ``fifo`` address of the fifo to be used ``count`` count of data to skiph](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj@h]hfifo}(hjBhhhNhNubah}(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:ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM9hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM9hj7ubj)}(h``count`` count of data to skiph](j)}(h ``count``h]j)}(hjyh]hcount}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjsubj)}(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&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM;hj7ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_skip (C macro) c.kfifo_skiphNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_skiph]j)}(h kfifo_skiph]jg)}(h kfifo_skiph]jm)}(hjh]h kfifo_skip}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMGubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(h``kfifo_skip (fifo)``h]j)}(hj h]hkfifo_skip (fifo)}(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.hhMIhjnhhubj)}(hskip output data h]h)}(hskip output datah]hskip output data}(hj#hhhNhNubah}(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&]uh1jhj1hMGhjnhhubj)}(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.hhMKhj8ubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](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.hhMMhjWubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMHhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_peek_lenh]j)}(hkfifo_peek_lenh]jg)}(hkfifo_peek_lenh]jm)}(hjh]hkfifo_peek_len}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj΀hMMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj΀hMMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj΀hMMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(h``kfifo_peek_len (fifo)``h]j)}(hjh]hkfifo_peek_len (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.hhMOhjnhhubj)}(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&]uh1jhjhMMhjnhhubj)}(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)}(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.hhMQhjubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjAh]hfifo}(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.hhMNhj;ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMNhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMNhj8ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMPhjubh)}(hJThis function returns the size of the next fifo record in number of bytes.h]hJThis function returns the size of the next fifo record in number of bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_alloc (C macro) c.kfifo_allochNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_alloch]j)}(h kfifo_alloch]jg)}(h kfifo_alloch]jm)}(hjh]h kfifo_alloc}(hjŁhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhj؁hM^hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj؁hM^ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(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`hjnhhubj)}(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^hj ubah}(h]h ]h"]h$]h&]uh1jhjhM^hjnhhubj)}(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)}(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.hhMbhj&ubj)}(hhh](j)}(h``fifo`` pointer to the fifo 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.hhM_hjEubj)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM_hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM_hjBubj)}(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.hhM`hj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjBubj)}(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.hhMahjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj҂hMahjBubeh}(h]h ]h"]h$]h&]uh1jhj&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.hhMchj&ubh)}(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.hhMbhj&ubh)}(hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h]hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMdhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_alloc_node (C macro)c.kfifo_alloc_nodehNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_alloc_nodeh]j)}(hkfifo_alloc_nodeh]jg)}(hkfifo_alloc_nodeh]jm)}(hjFh]hkfifo_alloc_node}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuubah}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjchMuubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjchMuhjAhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjAhhhjchMuubeh}(h]h ](jmacroeh"]h$]h&]jjjj|jj|jjjuh1hhhhjnhNhNubh)}(h1``kfifo_alloc_node (fifo, size, gfp_mask, node)``h]j)}(hjh]h-kfifo_alloc_node (fifo, size, gfp_mask, node)}(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.hhMwhjnhhubj)}(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&]uh1jhjhMuhjnhhubj)}(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.hhMvhjЃubj)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjЃubeh}(h]h ]h"]h$]h&]uh1jhjhMvhj̓ubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMwhj ubj)}(hhh]h)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMwhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMwhj̓ubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hjHh]hgfp_mask}(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.hhMxhjBubj)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMxhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMxhj̓ubj)}(h)``node`` NUMA node to allocate memory on h](j)}(h``node``h]j)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhj{ubj)}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMyhj̓ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.}(hjhhhNhNubah}(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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_free (C macro) c.kfifo_freehNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_freeh]j)}(h kfifo_freeh]jg)}(h kfifo_freeh]jm)}(hj h]h kfifo_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj 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)jhuh1hhj'hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj@jj@jjjuh1hhhhjnhNhNubh)}(h``kfifo_free (fifo)``h]j)}(hjFh]hkfifo_free (fifo)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnhhubj)}(hfrees the fifo h]h)}(hfrees the fifoh]hfrees the fifo}(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&]uh1jhjnhMhjnhhubj)}(h/**Parameters** ``fifo`` the fifo to be freedh](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.hhMhjuubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_init (C macro) c.kfifo_inithNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_inith]j)}(h kfifo_inith]jg)}(h kfifo_inith]jm)}(hjh]h kfifo_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhj hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj$jj$jjjuh1hhhhjnhNhNubh)}(h#``kfifo_init (fifo, buffer, size)``h]j)}(hj*h]hkfifo_init (fifo, buffer, size)}(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.hhMhjnhhubj)}(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}(hjDhhhNhNubah}(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&]uh1jhjRhMhjnhhubj)}(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)}(hj_h]h Parameters}(hjahhhNhNubah}(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.hhMhjYubj)}(hhh](j)}(h'``fifo`` the fifo to assign the buffer h](j)}(h``fifo``h]j)}(hj~h]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjxubj)}(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&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(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.hhMhjubj)}(hhh]h)}(h"the preallocated buffer to be usedh]h"the preallocated buffer to be used}(hjІhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̆hMhj͆ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̆hMhjuubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(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.hhMhjYubh)}(h:This macro initializes a fifo using a preallocated buffer.h]h:This macro initializes a fifo using a preallocated buffer.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjYubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_put (C macro) c.kfifo_puthNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_puth]j)}(h kfifo_puth]jg)}(h kfifo_puth]jm)}(hjyh]h kfifo_put}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(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.hhMhjnhhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(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݇hMhjnhhubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj h]hfifo}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``val`` the data to be added h](j)}(h``val``h]j)}(hjBh]hval}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj<ubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(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.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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_get (C macro) c.kfifo_gethNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_geth]j)}(h kfifo_geth]jg)}(h kfifo_geth]jm)}(hjˈh]h kfifo_get}(hjՈhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjшubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj͈hhhZ/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)jhuh1hhjhMhjƈhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjƈhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(h``kfifo_get (fifo, val)``h]j)}(hjh]hkfifo_get (fifo, val)}(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.hhMhjnhhubj)}(hget data from the fifo h]h)}(hget data from the fifoh]hget data from the fifo}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj/hMhjnhhubj)}(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.hhMhj6ubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(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.hhMhj6ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj6ubh)}(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.hhMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_peek (C macro) c.kfifo_peekhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_peekh]j)}(h kfifo_peekh]jg)}(h kfifo_peekh]jm)}(hjh]h kfifo_peek}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhj:hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj:hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjSjjSjjjuh1hhhhjnhNhNubh)}(h``kfifo_peek (fifo, val)``h]j)}(hjYh]hkfifo_peek (fifo, val)}(hj[hhhNhNubah}(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.hhMhjnhhubj)}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubah}(h]h ]h"]h$]h&]uh1jhjhMhjnhhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``val`` address where to store the data **Description** This reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŠhMhjubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(hj7hhhNhNubah}(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.}(hjFhhhNhNubah}(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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_in (C macro) c.kfifo_inhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_inh]j)}(hkfifo_inh]jg)}(hkfifo_inh]jm)}(hjoh]hkfifo_in}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(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!hjnhhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(hjŋhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjӋhMhjnhhubj)}(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)}(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.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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hj8h]hbuf}(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.hhM!hj2ubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM!hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM!hjubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjqh]hn}(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.hhM"hjkubj)}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubeh}(h]h ]h"]h$]h&]uh1jhjڋ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.}(hjŒhhhNhNubah}(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.}(hjьhhhNhNubah}(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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_in_spinlocked (C macro)c.kfifo_in_spinlockedhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_in_spinlockedh]j)}(hkfifo_in_spinlockedh]jg)}(hkfifo_in_spinlockedh]jm)}(hjh]hkfifo_in_spinlocked}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhjhM7hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jmacroeh"]h$]h&]jjjj0jj0jjjuh1hhhhjnhNhNubh)}(h,``kfifo_in_spinlocked (fifo, buf, n, lock)``h]j)}(hj6h]h(kfifo_in_spinlocked (fifo, buf, n, lock)}(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.hhM9hjnhhubj)}(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}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7hjLubah}(h]h ]h"]h$]h&]uh1jhj^hM7hjnhhubj)}(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)}(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.hhM;hjeubj)}(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.hhM8hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjÍh]hbuf}(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.hhM9hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj؍hM9hjubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hj5h]hlock}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hj/ubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM;hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM;hjubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjph]h Description}(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.hhM=hjeubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'kfifo_in_spinlocked_noirqsave (C macro)c.kfifo_in_spinlocked_noirqsavehNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hkfifo_in_spinlocked_noirqsaveh]jg)}(hkfifo_in_spinlocked_noirqsaveh]jm)}(hjh]hkfifo_in_spinlocked_noirqsave}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj̎hMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj̎hMKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj̎hMKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(h6``kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hjh]h2kfifo_in_spinlocked_noirqsave (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.hhMMhjnhhubj)}(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&]uh1jhjhMKhjnhhubj)}(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)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj?h]hfifo}(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.hhMMhj9ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMMhj6ubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjxh]hbuf}(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.hhMNhjrubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMNhj6ubj)}(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.hhMOhjubj)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjʏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƏhMOhjǏubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƏhMOhj6ubj)}(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.hhMPhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhj6ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMRhjubh)}(hrThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn't disable interrupts.h]htThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out (C macro) c.kfifo_outhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_outh]j)}(h kfifo_outh]jg)}(h kfifo_outh]jm)}(hjdh]h kfifo_out}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMcubah}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjhMcubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjhMchj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj_hhhjhMcubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(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.hhMehjnhhubj)}(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&]uh1jhjȐhMchjnhhubj)}(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.hhMghjϐ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.hhMdhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMdhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMdhjubj)}(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.hhMehj'ubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMehjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMehjubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjfh]hn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfhj`ubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMfhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMfhjubeh}(h]h ]h"]h$]h&]uh1jhjϐ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.hhMhhjϐubh)}(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.hhMghjϐubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjƑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjϐubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]jg)}(hkfifo_out_spinlockedh]jm)}(hjh]hkfifo_out_spinlocked}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhj hM}hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hM}ubeh}(h]h ](jmacroeh"]h$]h&]jjjj%jj%jjjuh1hhhhjnhNhNubh)}(h-``kfifo_out_spinlocked (fifo, buf, n, lock)``h]j)}(hj+h]h)kfifo_out_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.hhMhjnhhubj)}(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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM}hjAubah}(h]h ]h"]h$]h&]uh1jhjShM}hjnhhubj)}(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)}(hj`h]h Parameters}(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.hhMhjZubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM~hjyubj)}(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&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjvubj)}(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.hhMhjubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjђhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj͒hMhjΒubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͒hMhjvubj)}(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.hhMhjubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(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$ubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjZubh)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(kfifo_out_spinlocked_noirqsave (C macro) c.kfifo_out_spinlocked_noirqsavehNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hkfifo_out_spinlocked_noirqsaveh]jg)}(hkfifo_out_spinlocked_noirqsaveh]jm)}(hjh]hkfifo_out_spinlocked_noirqsave}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjړjjړjjjuh1hhhhjnhNhNubh)}(h7``kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hjh]h3kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)}(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.hhMhjnhhubj)}(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&]uh1jhjhMhjnhhubj)}(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)}(hj4h]hfifo}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj.ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjmh]hbuf}(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.hhMhjgubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjߔh]hlock}(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ٔubj)}(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&]uh1jhjٔubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(huThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn't disable interrupts.h]hwThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hj0hhhNhNubah}(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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_from_userh]j)}(hkfifo_from_userh]jg)}(hkfifo_from_userh]jm)}(hjYh]hkfifo_from_user}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjvhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjvhMhjThhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjThhhjvhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(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.hhMhjnhhubj)}(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&]uh1jhjhMhjnhhubj)}(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)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``from`` pointer to the data to be added h](j)}(h``from``h]j)}(hj"h]hfrom}(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.hhMhjubj)}(hhh]h)}(hpointer to the data to be addedh]hpointer to the data to be added}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h+``len`` the length of the data to be added h](j)}(h``len``h]j)}(hj[h]hlen}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjUubj)}(hhh]h)}(h"the length of the data to be addedh]h"the length of the data to be added}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjĕ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:205: ./include/linux/kfifo.hhMhjĕubh)}(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 }(hjhhhNhNubj)}(h**len**h]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from the }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhG into the fifo, depending of the available space 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.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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhjnhhhNhNubh)}(hhh](j)}(h kfifo_to_userh]j)}(h kfifo_to_userh]jg)}(h kfifo_to_userh]jm)}(hjAh]h kfifo_to_user}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhZ/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)jhuh1hhj^hMhj<hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj<hhhj^hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjwjjwjjjuh1hhhhjnhNhNubh)}(h)``kfifo_to_user (fifo, to, len, copied)``h]j)}(hj}h]h%kfifo_to_user (fifo, to, len, copied)}(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.hhMhjnhhubj)}(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&]uh1jhjhMhjnhhubj)}(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)}(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˗ubj)}(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&]uh1jhj˗ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȗubj)}(h%``to`` where the data must be copied h](j)}(h``to``h]j)}(hj h]hto}(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.hhMhjubj)}(hhh]h)}(hwhere the data must be copiedh]hwhere the data must be copied}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȗubj)}(h+``len`` the size of the destination buffer h](j)}(h``len``h]j)}(hjCh]hlen}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj=ubj)}(hhh]h)}(h"the size of the destination bufferh]h"the size of the destination buffer}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjȗubj)}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j)}(h ``copied``h]j)}(hj|h]hcopied}(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.hhMhjvubj)}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȗubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 }(hj͘hhhNhNubj)}(h**len**h]hlen}(hj՘hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͘ubh bytes from the fifo into the }(hj͘hhhNhNubj)}(h**to**h]hto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͘ubh buffer 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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_dma_in_prepare_mappedh]j)}(hkfifo_dma_in_prepare_mappedh]jg)}(hkfifo_dma_in_prepare_mappedh]jm)}(hj)h]hkfifo_dma_in_prepare_mapped}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhjFhMubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhj$hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj$hhhjFhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj_jj_jjjuh1hhhhjnhNhNubh)}(h<``kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjeh]h8kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnhhubj)}(h"setup a scatterlist for DMA input h]h)}(h!setup a scatterlist for DMA inputh]h!setup a scatterlist for DMA input}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj{ubah}(h]h ]h"]h$]h&]uh1jhjhMhjnhhubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjΙhMhjubj)}(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.hhMhjubj)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``nents`` number of entries in the scatterlist array h](j)}(h ``nents``h]j)}(hj+h]hnents}(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%ubj)}(hhh]h)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjdh]hlen}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj^ubj)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]jg)}(hkfifo_dma_in_finishh]jm)}(hj4h]hkfifo_dma_in_finish}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjQhMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/hhhjQhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjjjuh1hhhhjnhNhNubh)}(h#``kfifo_dma_in_finish (fifo, len)``h]j)}(hjph]hkfifo_dma_in_finish (fifo, len)}(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.hhMhjnhhubj)}(hfinish a DMA IN operation h]h)}(hfinish a DMA IN operationh]hfinish a DMA IN operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjnhhubj)}(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)}(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.hhMhjubj)}(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&]uh1jhjubeh}(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.hhMhjubj)}(hhh]h)}(hnumber of bytes to receivedh]hnumber of bytes to received}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(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.}(hjNhhhNhNubah}(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.}(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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_dma_out_prepare_mappedh]j)}(hkfifo_dma_out_prepare_mappedh]jg)}(hkfifo_dma_out_prepare_mappedh]jm)}(hjh]hkfifo_dma_out_prepare_mapped}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(h=``kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjœh]h9kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)}(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.hhMhjnhhubj)}(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&]uh1jhjhMhjnhhubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj ubj)}(h)``sgl`` pointer to the scatterlist array h](j)}(h``sgl``h]j)}(hjOh]hsgl}(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.hhMhjIubj)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhj ubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjh]hlen}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj֝hMhj ubj)}(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 hjubj)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hjhhhNhNubj)}(h**sgl**h]hsgl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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](hhjnhhubj)}(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<hjnhhubj)}(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)}(hj3h]hfifo}(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.hhM=hj-ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM=hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM=hj*ubj)}(h$``len`` number of bytes transferred h](j)}(h``len``h]j)}(hjlh]hlen}(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>hjfubj)}(hhh]h)}(hnumber of bytes transferredh]hnumber of bytes transferred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM>hj*ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.}(hj̟hhhNhNubah}(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&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_peek (C macro)c.kfifo_out_peekhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_out_peekh]j)}(hkfifo_out_peekh]jg)}(hkfifo_out_peekh]jm)}(hjh]hkfifo_out_peek}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMLubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMLhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMLubeh}(h]h ](jmacroeh"]h$]h&]jjjj+jj+jjjuh1hhhhjnhNhNubh)}(h!``kfifo_out_peek (fifo, buf, n)``h]j)}(hj1h]hkfifo_out_peek (fifo, buf, n)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjnhhubj)}(hgets some data from the fifo h]h)}(hgets some data from the fifoh]hgets some data from the fifo}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMLhjGubah}(h]h ]h"]h$]h&]uh1jhjYhMLhjnhhubj)}(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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhj`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.hhMMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhj|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.hhMNhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӠhMNhj|ubj)}(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.hhMOhjubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMOhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMOhj|ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhj`ubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhj`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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMShj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear (C macro)c.kfifo_out_linearhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_out_linearh]j)}(hkfifo_out_linearh]jg)}(hkfifo_out_linearh]jm)}(hjh]hkfifo_out_linear}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfubah}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhMfubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhMfhj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhjhMfubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjnhNhNubh)}(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.hhMhhjnhhubj)}(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&]uh1jhjhMfhjnhhubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjubj)}(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.hhMghj ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMghj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMghjubj)}(h?``tail`` pointer to an unsigned int to store the value of tail h](j)}(h``tail``h]j)}(hjIh]htail}(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.hhMhhjCubj)}(hhh]h)}(h5pointer to an unsigned int to store the value of tailh]h5pointer to an unsigned int to store the value of tail}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMihj|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMkhjubh)}(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}(hjhhhNhNubah}(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.hhMjhjubh)}(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.hhMqhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhjnhhhNhNubh)}(hhh](j)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]jg)}(hkfifo_out_linear_ptrh]jm)}(hj/h]hkfifo_out_linear_ptr}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjLhMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj*hhhjLhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjejjejjjuh1hhhhjnhNhNubh)}(h'``kfifo_out_linear_ptr (fifo, ptr, n)``h]j)}(hjkh]h#kfifo_out_linear_ptr (fifo, ptr, n)}(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.hhMhjnhhubj)}(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}(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&]uh1jhjhMhjnhhubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(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.hhMhjubj)}(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&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hj1h]hn}(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.hhMhj+ubj)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMhjubh)}(hXVSimilarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of **ptr** with count returned).h](hX9Similarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with count returned).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(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&]uh1jhjnhhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhjmhhhhhKubeh}(h] fifo-bufferah ]h"] fifo bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hrelay interface supporth]hrelay interface support}(hj̤hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɤhhhhhKubh)}(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&]uh1hhhhKhjɤhhubh)}(hhh](h)}(hrelay interfaceh]hrelay interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_buf_full (C function)c.relay_buf_fullhNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKubjg)}(hrelay_buf_fullh]jm)}(hrelay_buf_fullh]hrelay_buf_full}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]jR )}jE j5sbc.relay_buf_fullasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjhhubj)}(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.chKhjϥhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.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:218: ./kernel/relay.chKhj ubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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:218: ./kernel/relay.chKhjubj)}(h-Returns 1 if the buffer is full, 0 otherwise.h]h)}(hjfh]h-Returns 1 if the buffer is full, 0 otherwise.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjdubah}(h]h ]h"]h$]h&]uh1jhjuhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_reset (C function) c.relay_resethNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM:ubjg)}(h relay_reseth]jm)}(h relay_reseth]h relay_reset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM:ubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hj٦hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjզubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjզubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.relay_resetasbuh1hhjզubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjզubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjզubjm)}(hchanh]hchan}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjզubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѦubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM:hjhhubj)}(hhh]h)}(hreset the channelh]hreset the channel}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM:hjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhjhNhNubj)}(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)}(hj~h]h Parameters}(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.chM>hjxubj)}(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;hjubj)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(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=hjxubj)}(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<hjubh)}(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@hjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_open (C function) c.relay_openhNtauh1hhjhhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhjChMubh)}(hhh]jm)}(hrchanh]hrchan}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE relay_opensb c.relay_openasbuh1hhj2hhhjChMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhjChMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjChMubjg)}(h relay_openh]jm)}(hjsh]h relay_open}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhjChMubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj˨hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj٨hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h base_filenameh]h base_filename}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jq c.relay_openasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hparenth]hparent}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subbuf_sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jq c.relay_openasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(h subbuf_sizeh]h subbuf_size}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t n_subbufsh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjȩhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjũubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjʩmodnameN classnameNjI jL )}jO ]jq c.relay_openasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h n_subbufsh]h n_subbufs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct rchan_callbacks *cbh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hrchan_callbacksh]hrchan_callbacks}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jq c.relay_openasbuh1hhj ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hcbh]hcb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid *private_datah](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h private_datah]h private_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjChMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjChMhj+hhubj)}(hhh]h)}(hcreate a new relay channelh]hcreate a new relay 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+hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hj h]h Parameters}(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.chMhjubj)}(hhh](j)}(h;``const char *base_filename`` base name of files to create h](j)}(h``const char *base_filename``h]j)}(hj,h]hconst char *base_filename}(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&ubj)}(hhh]h)}(hbase name of files to createh]hbase name of files to create}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj#ubj)}(h\``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer h](j)}(h``struct dentry *parent``h]j)}(hjeh]hstruct dentry *parent}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj_ubj)}(hhh]h)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hj~hhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh for root directory or buffer}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj#ubj)}(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.chMhjubj)}(hhh]h)}(hsize of sub-buffersh]hsize of sub-buffers}(hjɫhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjūhMhjƫubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjūhMhj#ubj)}(h+``size_t n_subbufs`` number of sub-buffers h](j)}(h``size_t n_subbufs``h]j)}(hjh]hsize_t n_subbufs}(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.chMhjubj)}(hhh]h)}(hnumber of sub-buffersh]hnumber of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#ubj)}(h?``const struct rchan_callbacks *cb`` client callback functions h](j)}(h$``const struct rchan_callbacks *cb``h]j)}(hj"h]h const struct rchan_callbacks *cb}(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.chMhjubj)}(hhh]h)}(hclient callback functionsh]hclient callback functions}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj#ubj)}(h)``void *private_data`` user-defined data h](j)}(h``void *private_data``h]j)}(hj[h]hvoid *private_data}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjUubj)}(hhh]h)}(huser-defined datah]huser-defined data}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 }(hjѬhhhNhNubj)}(h ``S_IRUSR``h]hS_IRUSR}(hj٬hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѬubh.}(hjѬhhhNhNubeh}(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&]uh1jhjЬhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h relay_switch_subbuf (C function)c.relay_switch_subbufhNtauh1hhjhhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_switch_subbufsbc.relay_switch_subbufasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM!ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj<hM!ubjg)}(hrelay_switch_subbufh]jm)}(hj9h]hrelay_switch_subbuf}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj<hM!ubj)}(h&(struct rchan_buf *buf, size_t length)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j7c.relay_switch_subbufasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(h size_t lengthh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjݭhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڭubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj߭modnameN classnameNjI jL )}jO ]j7c.relay_switch_subbufasbuh1hhj֭ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj֭ubjm)}(hlengthh]hlength}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj֭ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj<hM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj<hM!ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj<hM!hj hhubj)}(hhh]h)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM!hj0hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj<hM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM%hjOubj)}(hhh](j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjth]hstruct rchan_buf *buf}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM"hjnubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjkubj)}(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#hjubj)}(hhh]h)}(hsize of current eventh]hsize of current event}(hjƮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj®hM#hjîubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj®hM#hjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(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.chM%hjOubj)}(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$hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#relay_subbufs_consumed (C function)c.relay_subbufs_consumedhNtauh1hhjhhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMcubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjThMcubjg)}(hrelay_subbufs_consumedh]jm)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjThMcubj)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jisbc.relay_subbufs_consumedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjϯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hchanh]hchan}(hjܯhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hunsigned int cpuh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcpuh]hcpu}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hsize_t subbufs_consumedh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jc.relay_subbufs_consumedasbuh1hhjBubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubjm)}(hsubbufs_consumedh]hsubbufs_consumed}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThMcubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThMchj;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;hhhjThMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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}(hjðhhhNhNubah}(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)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjްubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMdhjڰubj)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjڰubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjװubj)}(hJ``unsigned int cpu`` the cpu associated with the channel buffer to update h](j)}(h``unsigned int cpu``h]j)}(hjh]hunsigned int cpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMehjubj)}(hhh]h)}(h4the cpu associated with the channel buffer to updateh]h4the cpu associated with the channel buffer to update}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMehj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMehjװubj)}(hP``size_t subbufs_consumed`` number of sub-buffers to add to current buf's count h](j)}(h``size_t subbufs_consumed``h]j)}(hjRh]hsize_t subbufs_consumed}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMfhjLubj)}(hhh]h)}(h3number of sub-buffers to add to current buf's counth]h5number of sub-buffers to add to current buf’s count}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMfhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMfhjװubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_close (C function) c.relay_closehNtauh1hhjhhhNhNubh)}(hhh](j)}(h%void relay_close (struct rchan *chan)h]j)}(h$void relay_close(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h relay_closeh]jm)}(h relay_closeh]h relay_close}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hrchanh]hrchan}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.relay_closeasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$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)jhuh1hhjhMhjhhubj)}(hhh]h)}(hclose the channelh]hclose the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjòjjòjjjuh1hhhhjhNhNubj)}(h}**Parameters** ``struct rchan *chan`` the channel **Description** Closes all channel buffers and frees the channel.h](h)}(h**Parameters**h]j)}(hjͲh]h Parameters}(hjϲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˲ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjDzubj)}(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.chMhjubj)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjDzubh)}(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.chMhjDzubj)}(h1Closes all channel buffers and frees the channel.h]h)}(hj?h]h1Closes all channel buffers and frees the channel.}(hjAhhhNhNubah}(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&]uh1jhjNhMhjDzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_flush (C function) c.relay_flushhNtauh1hhjhhhNhNubh)}(hhh](j)}(h%void relay_flush (struct rchan *chan)h]j)}(h$void relay_flush(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjhMubjg)}(h relay_flushh]jm)}(h relay_flushh]h relay_flush}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjhMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrchanh]hrchan}(hjгhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjͳubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjҳmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.relay_flushasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hchanh]hchan}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjjhhubj)}(hhh]h)}(hclose the channelh]hclose the channel}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan *chan`` the channel **Description** Flushes all channel buffers, i.e. forces buffer switch.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjQubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjvh]hstruct rchan *chan}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjpubj)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(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.chMhjQubj)}(h7Flushes all channel buffers, i.e. forces buffer switch.h]h)}(hjɴh]h7Flushes all channel buffers, i.e. forces buffer switch.}(hj˴hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjǴubah}(h]h ]h"]h$]h&]uh1jhjشhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#relay_mmap_prepare_buf (C function)c.relay_mmap_prepare_bufhNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKJubjg)}(hrelay_mmap_prepare_bufh]jm)}(hrelay_mmap_prepare_bufh]hrelay_mmap_prepare_buf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKJubj)}(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&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]jR )}jE j"sbc.relay_mmap_prepare_bufasbuh1hhj8ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(hstruct vm_area_desc *desch](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h vm_area_desch]h vm_area_desc}(hj̵hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɵubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjεmodnameN classnameNjI jL )}jO ]jvc.relay_mmap_prepare_bufasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKJhjhhubj)}(hhh]j)}(hhh]j)}(h,mmap channel buffer to process address spaceh]h)}(hj4h]h,mmap channel buffer to process address space}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKJhj2ubah}(h]h ]h"]h$]h&]uh1jhj/hhhjChNubah}(h]h ]h"]h$]h&]jjuh1jhjChKJhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhjhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKNhj]ubj)}(hhh](j)}(h3``struct rchan_buf *buf`` the relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(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.chKKhj|ubj)}(hhh]h)}(hthe relay channel bufferh]hthe relay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKKhjyubj)}(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.chKLhjubj)}(hhh]h)}(hdescribing what to maph]hdescribing what to map}(hjԶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjжhKLhjѶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjжhKLhjyubeh}(h]h ]h"]h$]h&]uh1jhj]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.chKNhj]ubj)}(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.chKMhj ubh)}(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.chKOhj ubeh}(h]h ]h"]h$]h&]uh1jhjhKMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_alloc_buf (C function)c.relay_alloc_bufhNtauh1hhjhhhNhNubh)}(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]jm)}(h__poll_th]h__poll_t}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_pollsbc.relay_file_pollasbuh1hhjJhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhjrhMubjg)}(hrelay_file_pollh]jm)}(hjoh]hrelay_file_poll}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhjrhMubj)}(h%(struct file *filp, poll_table *wait)h](j)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jmc.relay_file_pollasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hpoll_table *waith](h)}(hhh]jm)}(h poll_tableh]h poll_table}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jmc.relay_file_pollasbuh1hhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hwaith]hwait}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhjrhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjrhMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjChhubj)}(hhh]h)}(hpoll file op for relay filesh]hpoll file op for relay files}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjChhhjrhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chMhjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chMhjubj)}(hhh]h)}(h poll tableh]h poll table}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hPoll implemention.h]h)}(hjCh]hPoll implemention.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjAubah}(h]h ]h"]h$]h&]uh1jhjRhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_file_release (C function)c.relay_file_releasehNtauh1hhjhhhNhNubh)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhMubjg)}(hrelay_file_releaseh]jm)}(hrelay_file_releaseh]hrelay_file_release}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.relay_file_releaseasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct file *filph](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hfileh]hfile}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jc.relay_file_releaseasbuh1hhj$ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjnhhubj)}(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&]uh1jhjnhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chMhjubj)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.chMhjubj)}(hhh]h)}(hthe fileh]hthe file}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjtubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)relay_file_read_subbuf_avail (C function)c.relay_file_read_subbuf_availhNtauh1hhjhhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_subbuf_availsbc.relay_file_read_subbuf_availasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMpubjg)}(hrelay_file_read_subbuf_availh]jm)}(hjh]hrelay_file_read_subbuf_avail}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMpubj)}(h((size_t read_pos, struct rchan_buf *buf)h](j)}(hsize_t read_posh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_file_read_subbuf_availasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hread_posh]hread_pos}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jc.relay_file_read_subbuf_availasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMphjhhubj)}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hj h]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.chMqhjubj)}(hhh]h)}(hfile read positionh]hfile read position}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubj)}(h.``struct rchan_buf *buf`` relay channel bufferh](j)}(h``struct rchan_buf *buf``h]j)}(hjBh]hstruct rchan_buf *buf}(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.chMshj<ubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMrhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMshjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&relay_file_read_start_pos (C function)c.relay_file_read_start_poshNtauh1hhjhhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_start_possbc.relay_file_read_start_posasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrelay_file_read_start_posh]jm)}(hjh]hrelay_file_read_start_pos}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_file_read_start_posasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h%find the first available byte to readh]h%find the first available byte to read}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer **Description** If the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]j)}(h/``struct rchan_buf *buf`` relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(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.chMhjubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h]h)}(hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h]hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$relay_file_read_end_pos (C function)c.relay_file_read_end_poshNtauh1hhjhhhNhNubh)}(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]jm)}(hsize_th]hsize_t}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_end_possbc.relay_file_read_end_posasbuh1hhj6hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj^hMubjg)}(hrelay_file_read_end_posh]jm)}(hj[h]hrelay_file_read_end_pos}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj^hMubj)}(h6(struct rchan_buf *buf, size_t read_pos, size_t count)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jYc.relay_file_read_end_posasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t read_posh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jYc.relay_file_read_end_posasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hread_posh]hread_pos}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]jm)}(hsize_th]hsize_t}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jYc.relay_file_read_end_posasbuh1hhj@ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hcounth]hcount}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj^hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMhj/hhubj)}(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&]uh1jhj/hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chMhjubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(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.chMhjubj)}(hhh]h)}(hfile read positionh]hfile read position}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h+``size_t count`` number of bytes to be readh](j)}(h``size_t count``h]j)}(hjPh]h size_t count}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjJubj)}(hhh]h)}(hnumber of bytes to be readh]hnumber of bytes to be read}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]relay-interfaceah ]h"]relay interfaceah$]h&]uh1hhjɤhhhhhKubeh}(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](h__request_module (C function)c.__request_modulehNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKuubjg)}(h__request_moduleh]jm)}(h__request_moduleh]h__request_module}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKuubj)}(h!(bool wait, const char *fmt, ...)h](j)}(h bool waith](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hwaith]hwait}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj )}(hcharh]hchar}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(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)jhuh1hhjhKuhjhhubj)}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chKvhjubj)}(hhh]h)}(h+wait (or not) for the operation to completeh]h+wait (or not) for the operation to complete}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKvhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKvhj ubj)}(hJ``const char *fmt`` printf style format string for the name of the module h](j)}(h``const char *fmt``h]j)}(hjMh]hconst char *fmt}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKwhjGubj)}(hhh]h)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKwhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKwhj ubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjh]h...}(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.chKxhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:}(hj$hhhNhNubah}(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&]uh1jhj7ubj)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK$hjRubah}(h]h ]h"]h$]h&]uh1jhj7ubj)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK)hjkubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]jiH loweralphajkHhjlHj9uh1jGhj3ubah}(h]h ]h"]h$]h&]uh1jhjKhK#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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiHjjHjkHhjlHj9uh1jGhjubah}(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:}(hjIhhhNhNubah}(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}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKVhj_ubah}(h]h ]h"]h$]h&]uh1jhj\ubj)}(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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKZhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]jiHjjkHhjlHj9uh1jGhjXubah}(h]h ]h"]h$]h&]uh1jhjqhKVhjhhubh)}(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}(hjhhhNhNubah}(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&]jjuh1jhj-hKjhjubah}(h]h ]h"]h$]h&]uh1jhj-hKjhjhhubh)}(hPThe following debugfs counters are available to inspect module loading failures:h]hPThe following debugfs counters are available to inspect module loading failures:}(hj@hhhNhNubah}(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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKrhjZubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKthjsubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]h)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKvhjubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(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&]uh1jhjWubj)}(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&]refdocj< refdomainjreftypetype refexplicitrefwarnjI 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&]uh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjlhKrhjSubj)}(hX(* module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present h]j)}(hhh](j)}(h,module_sig_check() - module signature checksh]h)}(hjh]h,module_sig_check() - module signature checks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5elf_validity_cache_copy() - some ELF validation issueh]h)}(hj3h]h5elf_validity_cache_copy() - some ELF validation issue}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj1ubah}(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():}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjIubj)}(hhh](j)}(h blacklistingh]h)}(hjah]h blacklisting}(hjchhhNhNubah}(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&]uh1jhj\ubj)}(h!failed to rewrite section headersh]h)}(hjyh]h!failed to rewrite section headers}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjwubah}(h]h ]h"]h$]h&]uh1jhj\ubj)}(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&]uh1jhj\ubj)}(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&]uh1jhj\ubj)}(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&]uh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhjphKhjIubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj*hKhjubah}(h]h ]h"]h$]h&]uh1jhj*hKhjSubj)}(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&]jjuh1jhjhKhjSubeh}(h]h ]h"]h$]h&]uh1jhjlhKrhjOubj)}(hhh](j)}(h?modcount: how many modules we've loaded in our kernel life timeh]h)}(hjh]hAmodcount: how many modules we’ve loaded in our kernel life time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()h]h)}(hj5h]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj3ubah}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjKubah}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjdubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXfailed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system. h]h)}(hXfailed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.h]hXfailed_load_modules: how many modules failed once we’ve allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj}ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj,hKhjOubeh}(h]h ]h"]h$]h&]uh1jhjlhKrhjhhubeh}(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](hrequest_dma (C function) c.request_dmahNtauh1hhjhhhNhNubh)}(hhh](j)}(hmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.request_resourceasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jXc.request_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM&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&]jjjj)jj)jjjuh1hhhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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)}(hjRh]hstruct resource *root}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM'hjLubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM'hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM'hjIubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hjh]hstruct resource *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjIubeh}(h]h ]h"]h$]h&]uh1jhj-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.chM*hj-ubh)}(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)hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelease_resource (C function)c.release_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(h+int release_resource (struct resource *old)h]j)}(h*int release_resource(struct resource *old)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM7ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM7ubjg)}(hrelease_resourceh]jm)}(hrelease_resourceh]hrelease_resource}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM7ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hresourceh]hresource}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE j.sbc.release_resourceasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM7hjhhubj)}(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&]uh1jhjhhhjhM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hj h]hstruct resource *old}(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=hjubj)}(hhh]h)}(hresource pointerh]hresource pointer}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM8hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h walk_iomem_res_desc (C function)c.walk_iomem_res_deschNtauh1hhjhhhNhNubh)}(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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjthMubjg)}(hwalk_iomem_res_desch]jm)}(hwalk_iomem_res_desch]hwalk_iomem_res_desc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjthMubj)}(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 ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 starth](h)}(hhh]jm)}(hu64h]hu64}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.walk_iomem_res_descasbuh1hhjAubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hstarth]hstart}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 endh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jdc.walk_iomem_res_descasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hendh]hend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *argh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hargh]harg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h$int (*func)(struct resource*, void*)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj8h]h(}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfunch]hfunc}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hj9h]h)}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj8h]h(}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jdc.walk_iomem_res_descasbuh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjt9h]h,}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj9h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjthMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthMhj[hhubj)}(hhh]h)}(hOWalks through iomem resources and calls func() with matching resource ranges. *h]hOWalks through iomem resources and calls func() with matching resource ranges. *}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhjhNhNubj)}(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)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.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)}(hj`h]hunsigned long desc}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjZubj)}(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 }(hjyhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh check.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubj)}(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.chMhjubj)}(hhh]h)}(hI/O resource flagsh]hI/O resource flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(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.chMhjubj)}(hhh]h)}(h start addrh]h start addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(h``u64 end`` end addr h](j)}(h ``u64 end``h]j)}(hjh]hu64 end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hend addrh]hend addr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjWubj)}(h:``void *arg`` function argument for the callback **func** h](j)}(h ``void *arg``h]j)}(hjVh]h void *arg}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjPubj)}(hhh]h)}(h+function argument for the callback **func**h](h#function argument for the callback }(hjohhhNhNubj)}(h**func**h]hfunc}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjWubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubeh}(h]h ]h"]h$]h&]uh1jhj;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](hregion_intersects (C function)c.region_intersectshNtauh1hhjhhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMubjg)}(hregion_intersectsh]jm)}(hregion_intersectsh]hregion_intersects}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMubj)}(hM(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h](j)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.region_intersectsasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.region_intersectsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj9hhubj)}(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&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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}(hj hhhNhNubah}(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.chMhjubj)}(hhh]h)}(hregion start addressh]hregion start address}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``size_t size`` size of region h](j)}(h``size_t size``h]j)}(hj@h]h size_t size}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj:ubj)}(hhh]h)}(hsize of regionh]hsize of region}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubj)}(h>``unsigned long flags`` flags of resource (in iomem_resource) h](j)}(h``unsigned long flags``h]j)}(hjyh]hunsigned long flags}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjsubj)}(hhh]h)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap }(hjhhhNhNubj)}(h **flags**h]hflags}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}(hjhhhNhNubj)}(h**desc**h]hdesc}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-, return REGION_MIXED if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hjhhhNhNubah}(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](h find_resource_space (C function)c.find_resource_spacehNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hfind_resource_spaceh]jm)}(hfind_resource_spaceh]hfind_resource_space}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hresourceh]hresource}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE jsbc.find_resource_spaceasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hrooth]hroot}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jHc.find_resource_spaceasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jHc.find_resource_spaceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h&struct resource_constraint *constrainth](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hresource_constrainth]hresource_constraint}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jHc.find_resource_spaceasbuh1hhj4ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(h constrainth]h constraint}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chMhjubj)}(hhh]h)}(hRoot resource descriptorh]hRoot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj3h]hstruct resource *new}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj-ubj)}(hhh]h)}(h4Resource descriptor awaiting an empty resource spaceh]h4Resource descriptor awaiting an empty resource space}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubj)}(h=``resource_size_t size`` The minimum size of the empty space h](j)}(h``resource_size_t size``h]j)}(hjlh]hresource_size_t size}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjfubj)}(hhh]h)}(h#The minimum size of the empty spaceh]h#The minimum size of the empty space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hj+h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(hQ``0`` - if successful, **new** members start, end, and flags are altered.h]h)}(hjFh](j)}(h``0``h]h0}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh - if successful, }(hjHhhhNhNubj)}(h**new**h]hnew}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh+ members start, end, and flags are altered.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjDubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(h,``-EBUSY`` - if no empty space was found.h]h)}(hj~h](j)}(h ``-EBUSY``h]h-EBUSY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" - if no empty space was found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj|ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjuhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hallocate_resource (C function)c.allocate_resourcehNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMYubjg)}(hallocate_resourceh]jm)}(hallocate_resourceh]hallocate_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMYubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE jsbc.allocate_resourceasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j?c.allocate_resourceasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j?c.allocate_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t minh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]j?c.allocate_resourceasbuh1hhj+ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubjm)}(hminh]hmin}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t maxh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]j?c.allocate_resourceasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubjm)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t alignh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j?c.allocate_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(halignh]halign}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_alignf alignfh](h)}(hhh]jm)}(hresource_alignfh]hresource_alignf}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j?c.allocate_resourceasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(halignfh]halignf}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid *alignf_datah](j )}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(h alignf_datah]h alignf_data}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMYhjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM]hjubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM[hjubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hj h]hstruct resource *new}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM\hj ubj)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1 hM\hj2 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj1 hM\hjubj)}(h8``resource_size_t size`` requested resource region size h](j)}(h``resource_size_t size``h]j)}(hjU h]hresource_size_t size}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM]hjO ubj)}(hhh]h)}(hrequested resource region sizeh]hrequested resource region size}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj hM]hjk ubah}(h]h ]h"]h$]h&]uh1jhjO ubeh}(h]h ]h"]h$]h&]uh1jhjj hM]hjubj)}(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^hj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM^hjubj)}(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 ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM_hjubj)}(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.chM`hj ubj)}(hhh]h)}(halignment requested, in bytesh]halignment requested, in bytes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM`hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM`hjubj)}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j)}(h``resource_alignf alignf``h]j)}(hj9 h]hresource_alignf alignf}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7 ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMahj3 ubj)}(hhh]h)}(h0alignment function, optional, called if not NULLh]h0alignment function, optional, called if not NULL}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN hMahjO ubah}(h]h ]h"]h$]h&]uh1jhj3 ubeh}(h]h ]h"]h$]h&]uh1jhjN hMahjubj)}(hG``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](j)}(h``void *alignf_data``h]j)}(hjr h]hvoid *alignf_data}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMchjl ubj)}(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.chMbhj ubah}(h]h ]h"]h$]h&]uh1jhjl ubeh}(h]h ]h"]h$]h&]uh1jhj hMchjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hinsert_resource (C function)c.insert_resourcehNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(hinsert_resourceh]jm)}(hinsert_resourceh]hinsert_resource}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj( hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hresourceh]hresource}(hj9 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6 ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj; modnameN classnameNjI jL )}jO ]jR )}jE j sbc.insert_resourceasbuh1hhj ubj)}(h h]h }(hjY hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjg hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hparenth]hparent}(hjt hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hresourceh]hresource}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jU c.insert_resourceasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnewh]hnew}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhj hMhj hhubj)}(hhh]h)}(h'Inserts a resource in the resource treeh]h'Inserts a resource in the resource tree}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj& jj& jjjuh1hhhhjhNhNubj)}(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)}(hj0 h]h Parameters}(hj2 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)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjO h]hstruct resource *parent}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjI ubj)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd hMhje ubah}(h]h ]h"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]uh1jhjd hMhjF ubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hj h]hstruct resource *new}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjF ubeh}(h]h ]h"]h$]h&]uh1jhj* ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj* ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj* ubh)}(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.}(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](h*insert_resource_expand_to_fit (C function)c.insert_resource_expand_to_fithNtauh1hhjhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hj& hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj% hMubjg)}(hinsert_resource_expand_to_fith]jm)}(hinsert_resource_expand_to_fith]hinsert_resource_expand_to_fit}(hj8 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4 ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj% hMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hjT hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP ubj)}(h h]h }(hja hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP ubh)}(hhh]jm)}(hresourceh]hresource}(hjr hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjt modnameN classnameNjI jL )}jO ]jR )}jE j: sbc.insert_resource_expand_to_fitasbuh1hhjP ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP ubjm)}(hrooth]hroot}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjP ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjL ubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hresourceh]hresource}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.insert_resource_expand_to_fitasbuh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjL ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj% hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj% hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj% hMhj hhubj)}(hhh]h)}(h(Insert a resource into the resource treeh]h(Insert a resource into the resource tree}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj% hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhjhNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjcubj)}(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.chMhjubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(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.chMhjcubh)}(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.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hremove_resource (C function)c.remove_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(h*int remove_resource (struct resource *old)h]j)}(h)int remove_resource(struct resource *old)h](j )}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM$ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhM$ubjg)}(hremove_resourceh]jm)}(hremove_resourceh]hremove_resource}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhM$ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jdsbc.remove_resourceasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(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)jhuh1hhjOhM$hj6hhubj)}(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&]uh1jhj6hhhjOhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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)}(h,``struct resource *old`` resource to remove h](j)}(h``struct resource *old``h]j)}(hjBh]hstruct resource *old}(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<ubj)}(hhh]h)}(hresource to removeh]hresource to remove}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM%hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM%hj9ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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:271: ./kernel/resource.chM'hjubh)}(h;Returns 0 on success, -EINVAL if the resource is not valid.h]h;Returns 0 on success, -EINVAL if the resource is not valid.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM&hjubh)}(hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.h]hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hjubh)}(hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.h]hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.}(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](hadjust_resource (C function)c.adjust_resourcehNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMcubjg)}(hadjust_resourceh]jm)}(hadjust_resourceh]hadjust_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMcubj)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j)}(hstruct resource *resh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jR )}jE jsbc.adjust_resourceasbuh1hhjubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hresh]hres}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jWc.adjust_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jWc.adjust_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMchjhhubj)}(hhh]h)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMchj-hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhjhNhNubj)}(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)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMghjLubj)}(hhh](j)}(h,``struct resource *res`` resource to modify 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:271: ./kernel/resource.chMdhjkubj)}(hhh]h)}(hresource to modifyh]hresource to modify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjhubj)}(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.chMehjubj)}(hhh]h)}(hnew start valueh]hnew start value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjhubj)}(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.chMfhjubj)}(hhh]h)}(hnew sizeh]hnew size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjhubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhhjLubh)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMghjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__request_region (C function)c.__request_regionhNtauh1hhjhhhNhNubh)}(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}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMWubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjphMWubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE __request_regionsbc.__request_regionasbuh1hhj_hhhjphMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjphMWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjphMWubjg)}(h__request_regionh]jm)}(hjh]h__request_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjphMWubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hparenth]hparent}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhjIubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubjm)}(hstarth]hstart}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t nh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hflagsh]hflags}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjphMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjphMWubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjphMWhjXhhubj)}(hhh]h)}(h!create a new busy resource regionh]h!create a new busy resource region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMWhj|hhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjphMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chMXhjubj)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjubj)}(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.chMYhjubj)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hj2h]hresource_size_t n}(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.chMZhj,ubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMZhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMZhjubj)}(h2``const char *name`` reserving caller's ID string h](j)}(h``const char *name``h]j)}(hjkh]hconst char *name}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM[hjeubj)}(hhh]h)}(hreserving caller's ID stringh]hreserving caller’s ID string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM[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]hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__release_region (C function)c.__release_regionhNtauh1hhjhhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMyubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMyubjg)}(h__release_regionh]jm)}(h__release_regionh]h__release_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMyubj)}(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&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(hresourceh]hresource}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jR )}jE j!sbc.__release_regionasbuh1hhj7ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]juc.__release_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hresource_size_t nh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]juc.__release_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMyubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMyhjhhubj)}(hhh]h)}(h-release a previously reserved resource regionh]h-release a previously reserved resource region}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMyhjJhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhjhNhNubj)}(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)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM}hjiubj)}(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.chMzhjubj)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjubj)}(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{hjubj)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubj)}(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|hjubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM~hjiubh)}(hAThe described resource region must match a currently busy region.h]hAThe described resource region must match a currently busy region.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM}hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_request_resource (C function)c.devm_request_resourcehNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhjhMubjg)}(hdevm_request_resourceh]jm)}(hdevm_request_resourceh]hdevm_request_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhjhMubj)}(hA(struct device *dev, struct resource *root, struct resource *new)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.devm_request_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *rooth](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(hresourceh]hresource}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jc.devm_request_resourceasbuh1hhj+ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.devm_request_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhjhNhNubj)}(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)}(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.chMhj<ubj)}(hhh](j)}(h@``struct device *dev`` device for which to request the resource h](j)}(h``struct device *dev``h]j)}(hjah]hstruct device *dev}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj[ubj)}(hhh]h)}(h(device for which to request the resourceh]h(device for which to request the resource}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjXubj)}(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.chMhjubj)}(hhh]h)}(hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]jc.devm_release_resourceasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjfhhubj)}(hhh]h)}(h'release a previously requested resourceh]h'release a previously requested resource}(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&]uh1jhjfhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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@``struct device *dev`` device for which to release the resource h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(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.chMhjubj)}(hhh]h)}(h(device for which to release the resourceh]h(device for which to release the resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``struct resource *new`` descriptor of the resource to release 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.chMhjubj)}(hhh]h)}(h%descriptor of the resource to releaseh]h%descriptor of the resource to release}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hGReleases a resource previously requested using devm_request_resource().h]hGReleases a resource previously requested using devm_request_resource().}(hjlhhhNhNubah}(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](h)devm_request_free_mem_region (C function)c.devm_request_free_mem_regionhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM0ubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE devm_request_free_mem_regionsbc.devm_request_free_mem_regionasbuh1hhjhhhjhM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM0ubjg)}(hdevm_request_free_mem_regionh]jm)}(hjh]hdevm_request_free_mem_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM0ubj)}(h?(struct device *dev, struct resource *base, unsigned long size)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jc.devm_request_free_mem_regionasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct resource *baseh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.devm_request_free_mem_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj- hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM0hjhhubj)}(hhh]h)}(h*find free region for device private memoryh]h*find free region for device private memory}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM0hjT hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo jjo jjjuh1hhhhjhNhNubj)}(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)}(hjy h]h Parameters}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM4hjs 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.chM2hj ubj)}(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 hM2hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM2hj 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.chM4hj ubj)}(hhh]h)}(hresource tree to look inh]hresource tree to look in}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM4hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM4hj 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.chM3hj!ubj)}(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!hM3hj !ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM3hj ubeh}(h]h ]h"]h$]h&]uh1jhjs ubh)}(h**Description**h]j)}(hjE!h]h Description}(hjG!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC!ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hjs ubh)}(hThis function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.h]hThis function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.}(hj[!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hjs ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"alloc_free_mem_region (C function)c.alloc_free_mem_regionhNtauh1hhjhhhNhNubh)}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMPubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj!hMPubh)}(hhh]jm)}(hresourceh]hresource}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE alloc_free_mem_regionsbc.alloc_free_mem_regionasbuh1hhj!hhhj!hMPubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj!hMPubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hMPubjg)}(halloc_free_mem_regionh]jm)}(hj!h]halloc_free_mem_region}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj!hMPubj)}(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"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hresourceh]hresource}(hj""hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$"modnameN classnameNjI jL )}jO ]j!c.alloc_free_mem_regionasbuh1hhj"ubj)}(h h]h }(hj@"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjN"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hbaseh]hbase}(hj["hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjt"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjp"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjp"ubj )}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjp"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjp"ubjm)}(hsizeh]hsize}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hunsigned long alignh](j )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj )}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubjm)}(halignh]halign}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj##hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj )}(hcharh]hchar}(hj1#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#ubj)}(h h]h }(hj?#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hjM#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hnameh]hname}(hjZ#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj!hMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj!hMPubah}(h]j}!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hMPhj!hhubj)}(hhh]h)}(h'find a free region relative to **base**h](hfind a free region relative to }(hj#hhhNhNubj)}(h**base**h]hbase}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMPhj#hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjhNhNubj)}(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.chMThj#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.chMQhj#ubj)}(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#hMQhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMQhj#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.chMRhj$ubj)}(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!$hMRhj"$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj!$hMRhj#ubj)}(hB``unsigned long align`` alignment requirements for the allocation h](j)}(h``unsigned long align``h]j)}(hjS$h]hunsigned long align}(hjU$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ$ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMShjM$ubj)}(hhh]h)}(h)alignment requirements for the allocationh]h)alignment requirements for the allocation}(hjl$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh$hMShji$ubah}(h]h ]h"]h$]h&]uh1jhjM$ubeh}(h]h ]h"]h$]h&]uh1jhjh$hMShj#ubj)}(h#``const char *name`` resource name h](j)}(h``const char *name``h]j)}(hj$h]hconst char *name}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMThj$ubj)}(hhh]h)}(h resource nameh]h resource name}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMThj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMThj#ubeh}(h]h ]h"]h$]h&]uh1jhj#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.chMVhj#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.chMUhj#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](harch_phys_wc_add (C function)c.arch_phys_wc_addhNtauh1hhj%hhhNhNubh)}(hhh](j)}(h=int arch_phys_wc_add (unsigned long base, unsigned long size)h]j)}(h%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}(hj9&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj6&hhubah}(h]h ]h"]h$]h&]uh1jhj>%hhhjW%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQ&jjQ&jjjuh1hhhhj%hNhNubj)}(hX**Parameters** ``unsigned long base`` Physical base address ``unsigned long size`` Size of region **Description** If PAT is available, this does nothing. If PAT is unavailable, it attempts to add a WC MTRR covering size bytes starting at base and logs an error if this fails. The called should provide a power of two size on an equivalent power of two boundary. Drivers must store the return value to pass to mtrr_del_wc_if_needed, but drivers should not try to interpret that return value.h](h)}(h**Parameters**h]j)}(hj[&h]h Parameters}(hj]&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY&ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhjU&ubj)}(hhh](j)}(h-``unsigned long base`` Physical base address h](j)}(h``unsigned long base``h]j)}(hjz&h]hunsigned long base}(hj|&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx&ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhjt&ubj)}(hhh]h)}(hPhysical base addressh]hPhysical base address}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhjt&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjq&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&ubj)}(hhh]h)}(hSize of regionh]hSize of region}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjq&ubeh}(h]h ]h"]h$]h&]uh1jhjU&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.chMhjU&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.chMhjU&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.chMhjU&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.chMhjU&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}(hjK'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH'hhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_file_alloc (C function)c.lsm_file_allochNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h&int lsm_file_alloc (struct file *file)h]j)}(h%int lsm_file_alloc(struct file *file)h](j )}(hinth]hint}(hjr'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjn'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjn'hhhj'hKubjg)}(hlsm_file_alloch]jm)}(hlsm_file_alloch]hlsm_file_alloc}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjn'hhhj'hKubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hfileh]hfile}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.lsm_file_allocasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hfileh]hfile}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubah}(h]h ]h"]h$]h&]jjuh1jhjn'hhhj'hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjj'hhhj'hKubah}(h]je'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hKhjg'hhubj)}(hhh]h)}(hallocate a composite file blobh]hallocate a composite file blob}(hj2(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&]uh1jhjg'hhhj'hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJ(jjJ(jjjuh1hhhhjH'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)}(hjT(h]h Parameters}(hjV(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjN(ubj)}(hhh]j)}(h1``struct file *file`` the file that needs a blob h](j)}(h``struct file *file``h]j)}(hjs(h]hstruct file *file}(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.chKhjm(ubj)}(hhh]h)}(hthe file that needs a blobh]hthe file that needs a blob}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKhj(ubah}(h]h ]h"]h$]h&]uh1jhjm(ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhjj(ubah}(h]h ]h"]h$]h&]uh1jhjN(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.chKhjN(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.chKhjN(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.chKhjN(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_blob_alloc (C function)c.lsm_blob_allochNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj(hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(hhhj)hKubjg)}(hlsm_blob_alloch]jm)}(hlsm_blob_alloch]hlsm_blob_alloc}(hj#)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj)hKubj)}(h%(void **dest, size_t size, gfp_t gfp)h](j)}(h void **desth](j )}(hvoidh]hvoid}(hj?)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;)ubj)}(h h]h }(hjM)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;)ubj)}(hjh]h*}(hj[)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;)ubj)}(hjh]h*}(hjh)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;)ubjm)}(hdesth]hdest}(hju)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7)ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]jR )}jE j%)sbc.lsm_blob_allocasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubjm)}(hsizeh]hsize}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7)ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]j)c.lsm_blob_allocasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubjm)}(hgfph]hgfp}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7)ubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj)hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj)hKubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhj)hKhj(hhubj)}(hhh]h)}(hallocate a composite blobh]hallocate a composite blob}(hj1*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&]jjjjI*jjI*jjjuh1hhhhjH'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)}(hjS*h]h Parameters}(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.chKhjM*ubj)}(hhh](j)}(h-``void **dest`` the destination for the blob h](j)}(h``void **dest``h]j)}(hjr*h]h void **dest}(hjt*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjl*ubj)}(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&]uh1jhjl*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhji*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*ubj)}(hhh]h)}(hthe size of the blobh]hthe size of the blob}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhji*ubj)}(h``gfp_t gfp`` allocation type 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.chKhj*ubj)}(hhh]h)}(hallocation typeh]hallocation type}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhji*ubeh}(h]h ]h"]h$]h&]uh1jhjM*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.chKhjM*ubh)}(h#Allocate a blob for all the modulesh]h#Allocate a blob for all the modules}(hj5+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjM*ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjD+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjM*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_cred_alloc (C function)c.lsm_cred_allochNtauh1hhjH'hhhNhNubh)}(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}(hjs+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjo+hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjo+hhhj+hKubjg)}(hlsm_cred_alloch]jm)}(hlsm_cred_alloch]hlsm_cred_alloc}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjo+hhhj+hKubj)}(h(struct cred *cred, gfp_t gfp)h](j)}(hstruct cred *credh](j)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(hcredh]hcred}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE j+sbc.lsm_cred_allocasbuh1hhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hcredh]hcred}(hj ,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj%,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj",ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj',modnameN classnameNjI jL )}jO ]j+c.lsm_cred_allocasbuh1hhj,ubj)}(h h]h }(hjC,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubjm)}(hgfph]hgfp}(hjQ,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,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)jhuh1hhj+hKhjh+hhubj)}(hhh]h)}(hallocate a composite cred blobh]hallocate a composite cred blob}(hj{,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjx,hhubah}(h]h ]h"]h$]h&]uh1jhjh+hhhj+hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjH'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)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj,ubj)}(hhh](j)}(h1``struct cred *cred`` the cred that needs a blob 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.chKhj,ubj)}(hhh]h)}(hthe cred that needs a blobh]hthe cred that needs a blob}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hKhj,ubj)}(h``gfp_t gfp`` allocation type 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.chKhj,ubj)}(hhh]h)}(hallocation typeh]hallocation type}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj -hKhj -ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj -hKhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hj0-h]h Description}(hj2-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj,ubh)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjF-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.}(hjU-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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhjH'hhhNhNubh)}(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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj-hKubjg)}(hlsm_inode_alloch]jm)}(hlsm_inode_alloch]hlsm_inode_alloc}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj-hKubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hinodeh]hinode}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE j-sbc.lsm_inode_allocasbuh1hhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hinodeh]hinode}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj6.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8.modnameN classnameNjI jL )}jO ]j-c.lsm_inode_allocasbuh1hhj/.ubj)}(h h]h }(hjT.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/.ubjm)}(hgfph]hgfp}(hjb.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/.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]jw-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hKhjy-hhubj)}(hhh]h)}(hallocate a composite inode blobh]hallocate a composite inode 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&]uh1jhjy-hhhj-hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhjH'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.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)}(h4``struct inode *inode`` the inode that needs a blob h](j)}(h``struct inode *inode``h]j)}(hj.h]hstruct inode *inode}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj.ubj)}(hhh]h)}(hthe inode that needs a blobh]hthe inode that needs a blob}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hKhj.ubj)}(h``gfp_t gfp`` allocation 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.chKhj/ubj)}(hhh]h)}(hallocation flagsh]hallocation flags}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.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.chKhj.ubh)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode 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.chKhj.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.chKhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_task_alloc (C function)c.lsm_task_allochNtauh1hhjH'hhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/hhhj/hKubjg)}(hlsm_task_alloch]jm)}(hlsm_task_alloch]hlsm_task_alloc}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/hhhj/hKubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jR )}jE j/sbc.lsm_task_allocasbuh1hhj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(htaskh]htask}(hj+0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/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)jhuh1hhj/hKhj/hhubj)}(hhh]h)}(hallocate a composite task blobh]hallocate a composite task blob}(hjU0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjR0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjm0jjm0jjjuh1hhhhjH'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)}(hjw0h]h Parameters}(hjy0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjq0ubj)}(hhh]j)}(h8``struct task_struct *task`` the task that needs a blob h](j)}(h``struct task_struct *task``h]j)}(hj0h]hstruct task_struct *task}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj0ubj)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1jhjq0ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjq0ubh)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjq0ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjq0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhjH'hhhNhNubh)}(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}(hj%1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj41hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!1hhhj31hKubjg)}(h lsm_ipc_alloch]jm)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hjF1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!1hhhj31hKubj)}(h(struct kern_ipc_perm *kip)h]j)}(hstruct kern_ipc_perm *kiph](j)}(hjh]hstruct}(hjb1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^1ubj)}(h h]h }(hjo1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^1ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE jH1sbc.lsm_ipc_allocasbuh1hhj^1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^1ubjm)}(hkiph]hkip}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ1ubah}(h]h ]h"]h$]h&]jjuh1jhj!1hhhj31hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj31hKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj31hKhj1hhubj)}(hhh]h)}(hallocate a composite ipc blobh]hallocate a composite ipc blob}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj1hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj31hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhjH'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)}(hj2h]h Parameters}(hj 2hhhNhNubah}(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.chKhj2ubj)}(hhh]j)}(h8``struct kern_ipc_perm *kip`` the ipc that needs a blob h](j)}(h``struct kern_ipc_perm *kip``h]j)}(hj&2h]hstruct kern_ipc_perm *kip}(hj(2hhhNhNubah}(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.chKhj 2ubj)}(hhh]h)}(hthe ipc that needs a blobh]hthe ipc that needs a blob}(hj?2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;2hKhj<2ubah}(h]h ]h"]h$]h&]uh1jhj 2ubeh}(h]h ]h"]h$]h&]uh1jhj;2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hja2h]h Description}(hjc2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj2ubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hjw2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj2ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_key_alloc (C function)c.lsm_key_allochNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h#int lsm_key_alloc (struct key *key)h]j)}(h"int lsm_key_alloc(struct key *key)h](j )}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMubjg)}(h lsm_key_alloch]jm)}(h lsm_key_alloch]h lsm_key_alloc}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hkeyh]hkey}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE j2sbc.lsm_key_allocasbuh1hhj2ubj)}(h h]h }(hj03hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj>3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hkeyh]hkey}(hjK3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMhj2hhubj)}(hhh]h)}(hallocate a composite key blobh]hallocate a composite key blob}(hju3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjr3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhjH'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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3ubj)}(hhh]j)}(h.``struct key *key`` the key that needs a blob h](j)}(h``struct key *key``h]j)}(hj3h]hstruct key *key}(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.chMhj3ubj)}(hhh]h)}(hthe key that needs a blobh]hthe key that needs a blob}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(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.chM hj3ubh)}(h)Allocate the key blob for all the modulesh]h)Allocate the key blob for all the modules}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj3ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhjH'hhhNhNubh)}(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}(hjE4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjA4hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjT4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA4hhhjS4hMubjg)}(hlsm_msg_msg_alloch]jm)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hjf4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjb4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjA4hhhjS4hMubj)}(h(struct msg_msg *mp)h]j)}(hstruct msg_msg *mph](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~4ubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE jh4sbc.lsm_msg_msg_allocasbuh1hhj~4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubjm)}(hmph]hmp}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz4ubah}(h]h ]h"]h$]h&]jjuh1jhjA4hhhjS4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=4hhhjS4hMubah}(h]j84ah ](jjeh"]h$]h&]jj)jhuh1hhjS4hMhj:4hhubj)}(hhh]h)}(h!allocate a composite msg_msg blobh]h!allocate a composite msg_msg blob}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5hhubah}(h]h ]h"]h$]h&]uh1jhj:4hhhjS4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhjH'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)}(hj'5h]h Parameters}(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:283: ./security/security.chMhj!5ubj)}(hhh]j)}(h5``struct msg_msg *mp`` the msg_msg that needs a blob h](j)}(h``struct msg_msg *mp``h]j)}(hjF5h]hstruct msg_msg *mp}(hjH5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj@5ubj)}(hhh]h)}(hthe msg_msg that needs a blobh]hthe msg_msg that needs a blob}(hj_5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[5hMhj\5ubah}(h]h ]h"]h$]h&]uh1jhj@5ubeh}(h]h ]h"]h$]h&]uh1jhj[5hMhj=5ubah}(h]h ]h"]h$]h&]uh1jhj!5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(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.chMhj!5ubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!5ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhjH'hhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hM"ubjg)}(hlsm_bdev_alloch]jm)}(hlsm_bdev_alloch]hlsm_bdev_alloc}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hM"ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj06hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj26modnameN classnameNjI jL )}jO ]jR )}jE j5sbc.lsm_bdev_allocasbuh1hhj6ubj)}(h h]h }(hjP6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj^6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hbdevh]hbdev}(hjk6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj 6ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hM"ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hM"hj5hhubj)}(hhh]h)}(h&allocate a composite block_device blobh]h&allocate a composite block_device blob}(hj6hhhNhNubah}(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&]uh1jhj5hhhj5hM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhjH'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)}(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.chM&hj6ubj)}(hhh]j)}(hA``struct block_device *bdev`` the block_device that needs a blob h](j)}(h``struct block_device *bdev``h]j)}(hj6h]hstruct block_device *bdev}(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.chM#hj6ubj)}(hhh]h)}(h"the block_device that needs a blobh]h"the block_device that needs a blob}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hM#hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM#hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hj6ubh)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device blob for all the modules}(hj'7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hj6ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj67hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bpf_map_alloc (C function)c.lsm_bpf_map_allochNtauh1hhjH'hhhNhNubh)}(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}(hje7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1ubj)}(h h]h }(hjt7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja7hhhjs7hM1ubjg)}(hlsm_bpf_map_alloch]jm)}(hlsm_bpf_map_alloch]hlsm_bpf_map_alloc}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhja7hhhjs7hM1ubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.lsm_bpf_map_allocasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hmaph]hmap}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhja7hhhjs7hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]7hhhjs7hM1ubah}(h]jX7ah ](jjeh"]h$]h&]jj)jhuh1hhjs7hM1hjZ7hhubj)}(hhh]h)}(h!allocate a composite bpf_map blobh]h!allocate a composite bpf_map blob}(hj%8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hj"8hhubah}(h]h ]h"]h$]h&]uh1jhjZ7hhhjs7hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=8jj=8jjjuh1hhhhjH'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)}(hjG8h]h Parameters}(hjI8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hjA8ubj)}(hhh]j)}(h6``struct bpf_map *map`` the bpf_map that needs a blob h](j)}(h``struct bpf_map *map``h]j)}(hjf8h]hstruct bpf_map *map}(hjh8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hj`8ubj)}(hhh]h)}(hthe bpf_map that needs a blobh]hthe bpf_map that needs a blob}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{8hM2hj|8ubah}(h]h ]h"]h$]h&]uh1jhj`8ubeh}(h]h ]h"]h$]h&]uh1jhj{8hM2hj]8ubah}(h]h ]h"]h$]h&]uh1jhjA8ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjA8ubh)}(h-Allocate the bpf_map blob for all the modulesh]h-Allocate the bpf_map 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.chM3hjA8ubh)}(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.chM5hjA8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bpf_prog_alloc (C function)c.lsm_bpf_prog_allochNtauh1hhjH'hhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhj9hM>ubjg)}(hlsm_bpf_prog_alloch]jm)}(hlsm_bpf_prog_alloch]hlsm_bpf_prog_alloc}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj9hM>ubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hj29hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.9ubj)}(h h]h }(hj?9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.9ubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjP9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjR9modnameN classnameNjI jL )}jO ]jR )}jE j9sbc.lsm_bpf_prog_allocasbuh1hhj.9ubj)}(h h]h }(hjp9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.9ubj)}(hjh]h*}(hj~9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.9ubjm)}(hprogh]hprog}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*9ubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhj9hM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj9hM>ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM>hj8hhubj)}(hhh]h)}(h"allocate a composite bpf_prog blobh]h"allocate a composite bpf_prog 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&]uh1jhj8hhhj9hM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhjH'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)}(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.chMBhj9ubj)}(hhh]j)}(h9``struct bpf_prog *prog`` the bpf_prog that needs a blob h](j)}(h``struct bpf_prog *prog``h]j)}(hj9h]hstruct bpf_prog *prog}(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?hj9ubj)}(hhh]h)}(hthe bpf_prog that needs a blobh]hthe bpf_prog that needs a blob}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj :hM?hj :ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj :hM?hj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj1:h]h Description}(hj3:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhj9ubh)}(h.Allocate the bpf_prog blob for all the modulesh]h.Allocate the bpf_prog blob for all the modules}(hjG:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj9ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjV:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h lsm_bpf_token_alloc (C function)c.lsm_bpf_token_allochNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhj:hMKubjg)}(hlsm_bpf_token_alloch]jm)}(hlsm_bpf_token_alloch]hlsm_bpf_token_alloc}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hMKubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]jR )}jE j:sbc.lsm_bpf_token_allocasbuh1hhj:ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(htokenh]htoken}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj: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]jx:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hMKhjz:hhubj)}(hhh]h)}(h#allocate a composite bpf_token blobh]h#allocate a composite bpf_token blob}(hjE;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjB;hhubah}(h]h ]h"]h$]h&]uh1jhjz:hhhj:hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj];jj];jjjuh1hhhhjH'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)}(hjg;h]h Parameters}(hji;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhja;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.chMLhj;ubj)}(hhh]h)}(hthe bpf_token that needs a blobh]hthe bpf_token that needs a blob}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMLhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMLhj};ubah}(h]h ]h"]h$]h&]uh1jhja;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.chMNhja;ubh)}(h/Allocate the bpf_token blob for all the modulesh]h/Allocate the bpf_token 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.chMMhja;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.chMOhja;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYubj)}(h h]h }(hj$<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhj#<hMYubjg)}(hlsm_superblock_alloch]jm)}(hlsm_superblock_alloch]hlsm_superblock_alloc}(hj6<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhj#<hMYubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hjR<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN<ubj)}(h h]h }(hj_<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN<ubh)}(hhh]jm)}(h super_blockh]h super_block}(hjp<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjr<modnameN classnameNjI jL )}jO ]jR )}jE j8<sbc.lsm_superblock_allocasbuh1hhjN<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN<ubjm)}(hsbh]hsb}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjN<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJ<ubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhj#<hMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj <hhhj#<hMYubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj#<hMYhj <hhubj)}(hhh]h)}(h$allocate a composite superblock blobh]h$allocate a composite superblock blob}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj<hhubah}(h]h ]h"]h$]h&]uh1jhj <hhhj#<hMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct super_block *sb`` the superblock that needs a blob **Description** Allocate the superblock blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj<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 super_block *sb`` the superblock that needs a blob 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.chMZhj=ubj)}(hhh]h)}(h the superblock that needs a blobh]h the superblock that needs a blob}(hj/=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+=hMZhj,=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj+=hMZhj =ubah}(h]h ]h"]h$]h&]uh1jhj<ubh)}(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:283: ./security/security.chM\hj<ubh)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock blob for all the modules}(hjg=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj<ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjv=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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhjH'hhhNhNubh)}(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=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMgubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhj=hMgubjg)}(hlsm_fill_user_ctxh]jm)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj=hMgubj)}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh)}(hhh]jm)}(hlsm_ctxh]hlsm_ctx}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE j=sbc.lsm_fill_user_ctxasbuh1hhj=ubj)}(h h]h }(hj >hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh__user}(hj=hhhNhNubj)}(h h]h }(hj2>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj@>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(huctxh]huctx}(hjM>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h u32 *uctx_lenh](h)}(hhh]jm)}(hu32h]hu32}(hji>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjf>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjk>modnameN classnameNjI jL )}jO ]j>c.lsm_fill_user_ctxasbuh1hhjb>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb>ubjm)}(huctx_lenh]huctx_len}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjb>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h void *valh](j )}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hvalh]hval}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hsize_t val_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]j>c.lsm_fill_user_ctxasbuh1hhj>ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubjm)}(hval_lenh]hval_len}(hj,?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hu64 idh](h)}(hhh]jm)}(hu64h]hu64}(hjH?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjE?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJ?modnameN classnameNjI jL )}jO ]j>c.lsm_fill_user_ctxasbuh1hhjA?ubj)}(h h]h }(hjf?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA?ubjm)}(hidh]hid}(hjt?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjA?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h u64 flagsh](h)}(hhh]jm)}(hu64h]hu64}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]j>c.lsm_fill_user_ctxasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubjm)}(hflagsh]hflags}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhj=hMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj=hMgubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMghj=hhubj)}(hhh]h)}(h#Fill a user space lsm_ctx structureh]h#Fill a user space lsm_ctx structure}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghj?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhjH'hNhNubj)}(hXy**Parameters** ``struct lsm_ctx __user *uctx`` a userspace LSM context to be filled ``u32 *uctx_len`` available uctx size (input), used uctx size (output) ``void *val`` the new LSM context value ``size_t val_len`` the size of the new LSM context value ``u64 id`` LSM id ``u64 flags`` LSM defined flags **Description** Fill all of the fields in a userspace lsm_ctx structure. If **uctx** is NULL simply calculate the required size to output via **utc_len** and return success. Returns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj@ubj)}(hhh](j)}(hE``struct lsm_ctx __user *uctx`` a userspace LSM context to be filled 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.chMhhj!@ubj)}(hhh]h)}(h$a userspace LSM context to be filledh]h$a userspace LSM context to be filled}(hj@@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<@hMhhj=@ubah}(h]h ]h"]h$]h&]uh1jhj!@ubeh}(h]h ]h"]h$]h&]uh1jhj<@hMhhj@ubj)}(hG``u32 *uctx_len`` available uctx size (input), used uctx size (output) h](j)}(h``u32 *uctx_len``h]j)}(hj`@h]h u32 *uctx_len}(hjb@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjZ@ubj)}(hhh]h)}(h4available uctx size (input), used uctx size (output)h]h4available uctx size (input), used uctx size (output)}(hjy@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju@hMihjv@ubah}(h]h ]h"]h$]h&]uh1jhjZ@ubeh}(h]h ]h"]h$]h&]uh1jhju@hMihj@ubj)}(h(``void *val`` the new LSM context value h](j)}(h ``void *val``h]j)}(hj@h]h void *val}(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.chMjhj@ubj)}(hhh]h)}(hthe new LSM context valueh]hthe new LSM context value}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMjhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMjhj@ubj)}(h9``size_t val_len`` the size of the new LSM context value h](j)}(h``size_t val_len``h]j)}(hj@h]hsize_t val_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:283: ./security/security.chMkhj@ubj)}(hhh]h)}(h%the size of the new LSM context valueh]h%the size of the new LSM context value}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMkhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMkhj@ubj)}(h``u64 id`` LSM id h](j)}(h ``u64 id``h]j)}(hj Ah]hu64 id}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhjAubj)}(hhh]h)}(hLSM idh]hLSM id}(hj$AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj AhMlhj!Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj AhMlhj@ubj)}(h ``u64 flags`` LSM defined flags h](j)}(h ``u64 flags``h]j)}(hjDAh]h u64 flags}(hjFAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhj>Aubj)}(hhh]h)}(hLSM defined flagsh]hLSM defined flags}(hj]AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYAhMmhjZAubah}(h]h ]h"]h$]h&]uh1jhj>Aubeh}(h]h ]h"]h$]h&]uh1jhjYAhMmhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(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.chMohj@ubh)}(hFill all of the fields in a userspace lsm_ctx structure. If **uctx** is NULL simply calculate the required size to output via **utc_len** and return success.h](h=Fill all of the fields in a userspace lsm_ctx structure. If }(hjAhhhNhNubj)}(h**uctx**h]huctx}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh: is NULL simply calculate the required size to output via }(hjAhhhNhNubj)}(h **utc_len**h]hutc_len}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh and return success.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj@ubh)}(hReturns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can't be allocated.h]hReturns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can’t be allocated.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_binder_set_context_mgr (C function)!c.security_binder_set_context_mgrhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hhjRubj)}(hhh]h)}(htarget processh]htarget process}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM>hjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM>hjRubj)}(h5``kernel_cap_t *effective`` effective capability set h](j)}(h``kernel_cap_t *effective``h]j)}(hjSh]hkernel_cap_t *effective}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjSubj)}(hhh]h)}(heffective capability seth]heffective capability set}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM?hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShM?hjRubj)}(h9``kernel_cap_t *inheritable`` inheritable capability set h](j)}(h``kernel_cap_t *inheritable``h]j)}(hj@Sh]hkernel_cap_t *inheritable}(hjBShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj:Subj)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(hjYShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUShM@hjVSubah}(h]h ]h"]h$]h&]uh1jhj:Subeh}(h]h ]h"]h$]h&]uh1jhjUShM@hjRubj)}(h5``kernel_cap_t *permitted`` permitted capability set h](j)}(h``kernel_cap_t *permitted``h]j)}(hjySh]hkernel_cap_t *permitted}(hj{ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjsSubj)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMAhjSubah}(h]h ]h"]h$]h&]uh1jhjsSubeh}(h]h ]h"]h$]h&]uh1jhjShMAhjRubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjRubh)}(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 }(hjShhhNhNubj)}(h **effective**h]h effective}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh, }(hjShhhNhNubj)}(h**inheritable**h]h inheritable}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh, and }(hjShhhNhNubj)}(h **permitted**h]h permitted}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh capability sets for the }(hjShhhNhNubj)}(h **target**h]htarget}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hjShhhNhNubj)}(h **target**h]htarget}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh process.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjRubh)}(h **Return**h]j)}(hj5Th]hReturn}(hj7ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Tubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjRubh)}(h. **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.chMmhj[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&]uh1jhj9[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhj5[ubj)}(hhh]h)}(hcredentials to examineh]hcredentials to examine}(hjT[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP[hMjhjQ[ubah}(h]h ]h"]h$]h&]uh1jhj5[ubeh}(h]h ]h"]h$]h&]uh1jhjP[hMjhj2[ubj)}(h-``struct user_namespace *ns`` user namespace h](j)}(h``struct user_namespace *ns``h]j)}(hjt[h]hstruct user_namespace *ns}(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.chMkhjn[ubj)}(hhh]h)}(huser namespaceh]huser namespace}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMkhj[ubah}(h]h ]h"]h$]h&]uh1jhjn[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMkhj2[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.chMlhj[ubj)}(hhh]h)}(hcapability requestedh]hcapability requested}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMlhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMlhj2[ubj)}(h/``unsigned int opts`` capability check options h](j)}(h``unsigned int opts``h]j)}(hj[h]hunsigned int opts}(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.chMmhj[ubj)}(hhh]h)}(hcapability check optionsh]hcapability check options}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMmhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMmhj2[ubeh}(h]h ]h"]h$]h&]uh1jhj[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.chMohj[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 }(hj7\hhhNhNubj)}(h**tsk**h]htsk}(hj?\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7\ubh process has the }(hj7\hhhNhNubj)}(h**cap**h]hcap}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7\ubh+ capability in the indicated credentials. }(hj7\hhhNhNubj)}(h**cap**h]hcap}(hjc\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7\ubh7 contains the capability . }(hj7\hhhNhNubj)}(h**opts**h]hopts}(hju\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7\ubhC contains options for the capable check .}(hj7\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj[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.chMrhj[ubh)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quotactl (C function)c.security_quotactlhNtauh1hhjH'hhhNhNubh)}(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}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhj\hM~ubjg)}(hsecurity_quotactlh]jm)}(hsecurity_quotactlh]hsecurity_quotactl}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhj\hM~ubj)}(h:(int cmds, int type, int id, const struct super_block *sb)h](j)}(hint cmdsh](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubj)}(h h]h }(hj ]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hcmdsh]hcmds}(hj.]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ]ubj)}(hint typeh](j )}(hinth]hint}(hjG]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjC]ubj)}(h h]h }(hjU]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC]ubjm)}(htypeh]htype}(hjc]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjC]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ]ubj)}(hint idh](j )}(hinth]hint}(hj|]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjx]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjx]ubjm)}(hidh]hid}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjx]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ]ubj)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(h super_blockh]h super_block}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jR )}jE j\sbc.security_quotactlasbuh1hhj]ubj)}(h h]h }(hj ^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hsbh]hsb}(hj%^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]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)jhuh1hhj\hM~hj\hhubj)}(hhh]h)}(h4Check if a quotactl() syscall is allowed for this fsh]h4Check if a quotactl() syscall is allowed for this fs}(hjO^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjL^hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjg^jjg^jjjuh1hhhhjH'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)}(hjq^h]h Parameters}(hjs^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjk^ubj)}(hhh](j)}(h``int cmds`` commands h](j)}(h ``int cmds``h]j)}(hj^h]hint cmds}(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^ubj)}(hhh]h)}(hcommandsh]hcommands}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj^ubj)}(h``int type`` 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.chMhj^ubj)}(hhh]h)}(htypeh]htype}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj^ubj)}(h``int id`` id 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^ubj)}(hhh]h)}(hidh]hid}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhj^ubj)}(h,``const struct super_block *sb`` filesystem h](j)}(h ``const struct super_block *sb``h]j)}(hj;_h]hconst struct super_block *sb}(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.chMhj5_ubj)}(hhh]h)}(h filesystemh]h filesystem}(hjT_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP_hMhjQ_ubah}(h]h ]h"]h$]h&]uh1jhj5_ubeh}(h]h ]h"]h$]h&]uh1jhjP_hMhj^ubeh}(h]h ]h"]h$]h&]uh1jhjk^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.chMhjk^ubh)}(h>Check whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hj_hhhNhNubj)}(h**sb**h]hsb}(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.chMhjk^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.chMhjk^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.chMhjk^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quota_on (C function)c.security_quota_onhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h-int security_quota_on (struct dentry *dentry)h]j)}(h,int security_quota_on(struct dentry *dentry)h](j )}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhj`hMubjg)}(hsecurity_quota_onh]jm)}(hsecurity_quota_onh]hsecurity_quota_on}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhj`hMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj1`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-`ubj)}(h h]h }(hj>`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-`ubh)}(hhh]jm)}(hdentryh]hdentry}(hjO`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQ`modnameN classnameNjI jL )}jO ]jR )}jE j`sbc.security_quota_onasbuh1hhj-`ubj)}(h h]h }(hjo`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-`ubj)}(hjh]h*}(hj}`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-`ubjm)}(hdentryh]hdentry}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-`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)jhuh1hhj`hMhj_hhubj)}(hhh]h)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(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`jjjuh1hhhhjH'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)}(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 dentry *dentry`` 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.chMhj`ubj)}(hhh]h)}(hdentryh]hdentry}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ahMhj aubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj ahMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hj0ah]h Description}(hj2ahhhNhNubah}(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.chMhj`ubh)}(h0Check whether QUOTAON is allowed for **dentry**.h](h%Check whether QUOTAON is allowed for }(hjFahhhNhNubj)}(h **dentry**h]hdentry}(hjNahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFaubh.}(hjFahhhNhNubeh}(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)}(hjiah]hReturn}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgaubah}(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.}(hjahhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_syslog (C function)c.security_sysloghNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hint security_syslog (int type)h]j)}(hint security_syslog(int type)h](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjahhhjahMubjg)}(hsecurity_syslogh]jm)}(hsecurity_syslogh]hsecurity_syslog}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhjahMubj)}(h (int type)h]j)}(hint typeh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubjm)}(htypeh]htype}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhjahhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjahMubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjahhubj)}(hhh]h)}(h5Check if accessing the kernel message ring is allowedh]h5Check if accessing the kernel message ring is allowed}(hj1bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj.bhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIbjjIbjjjuh1hhhhjH'hNhNubj)}(hX**Parameters** ``int type`` SYSLOG_ACTION_* type **Description** Check permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the **type** values. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjSbh]h Parameters}(hjUbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMbubj)}(hhh]j)}(h"``int type`` SYSLOG_ACTION_* type h](j)}(h ``int type``h]j)}(hjrbh]hint type}(hjtbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlbubj)}(hhh]h)}(hSYSLOG_ACTION_* typeh]hSYSLOG_ACTION_* type}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjlbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjibubah}(h]h ]h"]h$]h&]uh1jhjMbubh)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMbubh)}(hCheck permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the **type** values.h](hCheck permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the }(hjbhhhNhNubj)}(h**type**h]htype}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh values.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMbubh)}(h **Return**h]j)}(hjbh]hReturn}(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.chMhjMbubh)}(h"Return 0 if permission is granted.h]h"Return 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.chMhjMbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_settime64 (C function)c.security_settime64hNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hOint security_settime64 (const struct timespec64 *ts, const struct timezone *tz)h]j)}(hNint security_settime64(const struct timespec64 *ts, const struct timezone *tz)h](j )}(hinth]hint}(hj+chhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'chhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj:chhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'chhhj9chMubjg)}(hsecurity_settime64h]jm)}(hsecurity_settime64h]hsecurity_settime64}(hjLchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'chhhj9chMubj)}(h8(const struct timespec64 *ts, const struct timezone *tz)h](j)}(hconst struct timespec64 *tsh](j)}(hjh]hconst}(hjhchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdcubj)}(h h]h }(hjuchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdcubj)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdcubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdcubh)}(hhh]jm)}(h timespec64h]h timespec64}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]jR )}jE jNcsbc.security_settime64asbuh1hhjdcubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdcubjm)}(htsh]hts}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`cubj)}(hconst struct timezone *tzh](j)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(htimezoneh]htimezone}(hj.dhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+dubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0dmodnameN classnameNjI jL )}jO ]jcc.security_settime64asbuh1hhjcubj)}(h h]h }(hjLdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjZdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(htzh]htz}(hjgdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`cubeh}(h]h ]h"]h$]h&]jjuh1jhj'chhhj9chMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#chhhj9chMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj9chMhj chhubj)}(hhh]h)}(h,Check if changing the system time is allowedh]h,Check if changing the system time is allowed}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhj chhhj9chMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhjH'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)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj)}(hhh](j)}(h)``const struct timespec64 *ts`` new time h](j)}(h``const struct timespec64 *ts``h]j)}(hjdh]hconst struct timespec64 *ts}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj)}(hhh]h)}(hnew timeh]hnew time}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjdubj)}(h'``const struct timezone *tz`` timezone h](j)}(h``const struct timezone *tz``h]j)}(hj eh]hconst struct timezone *tz}(hj ehhhNhNubah}(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.chMhjeubj)}(hhh]h)}(htimezoneh]htimezone}(hj$ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ehMhj!eubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhj ehMhjdubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hjFeh]h Description}(hjHehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(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 .}(hj\ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(h **Return**h]j)}(hjmeh]hReturn}(hjoehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(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.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhjH'hhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjehMubjg)}(hsecurity_vm_enough_memory_mmh]jm)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjehMubj)}(h"(struct mm_struct *mm, long pages)h](j)}(hstruct mm_struct *mmh](j)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(h mm_structh]h mm_struct}(hj fhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj fubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jR )}jE jesbc.security_vm_enough_memory_mmasbuh1hhjeubj)}(h h]h }(hj-fhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hj;fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hmmh]hmm}(hjHfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h long pagesh](j )}(hlongh]hlong}(hjafhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]fubj)}(h h]h }(hjofhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]fubjm)}(hpagesh]hpages}(hj}fhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehMhjehhubj)}(hhh]h)}(h,Check if allocating a new mem map is allowedh]h,Check if allocating a new mem map is allowed}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhjH'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)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj)}(hhh](j)}(h#``struct mm_struct *mm`` mm struct h](j)}(h``struct mm_struct *mm``h]j)}(hjfh]hstruct mm_struct *mm}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj)}(hhh]h)}(h mm structh]h mm struct}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubj)}(h``long pages`` number of pages h](j)}(h``long pages``h]j)}(hj!gh]h long pages}(hj#ghhhNhNubah}(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.chMhjgubj)}(hhh]h)}(hnumber of pagesh]hnumber of pages}(hj:ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ghMhj7gubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhj6ghMhjfubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hj\gh]h Description}(hj^ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(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.}(hjrghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h **Return**h]j)}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hcred->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)}(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.chMhjhubj)}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjhh]hstruct linux_binprm *bprm}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubh)}(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.chMhjhubh)}(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 }(hjihhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hj"ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh properly for executing }(hjihhhNhNubj)}(h**bprm->file**h]h bprm->file}(hj4ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh , update the LSM’s portion of }(hjihhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjFihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh 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 }(hjihhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjXihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hjihhhNhNubj)}(h**bprm**h]hbprm}(hjjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh% contains the linux_binprm structure.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(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 }(hjihhhNhNubj)}(h**bprm**h]hbprm}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh will always be dropped.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(h=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hjihhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(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.chMhjhubh)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhjH'hhhNhNubh)}(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}(hj jhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjjhMubjg)}(hsecurity_bprm_creds_from_fileh]jm)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hj-jhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)jubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjjhMubj)}(h4(struct linux_binprm *bprm, const struct file *file)h](j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjIjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEjubj)}(h h]h }(hjVjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEjubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjgjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjijmodnameN classnameNjI jL )}jO ]jR )}jE j/jsbc.security_bprm_creds_from_fileasbuh1hhjEjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEjubjm)}(hbprmh]hbprm}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAjubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubh)}(hhh]jm)}(hfileh]hfile}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jjc.security_bprm_creds_from_fileasbuh1hhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hj khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hfileh]hfile}(hj-khhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjjhhubj)}(hhh]h)}(h'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hjWkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjokjjokjjjuh1hhhhjH'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)}(hjykh]h Parameters}(hj{khhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjskubj)}(hhh](j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjkh]hstruct linux_binprm *bprm}(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.chMhjkubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubj)}(h,``const struct file *file`` associated file h](j)}(h``const struct file *file``h]j)}(hjkh]hconst struct file *file}(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.chMhjkubj)}(hhh]h)}(hassociated fileh]hassociated file}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjskubh)}(h**Description**h]j)}(hj lh]h Description}(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.chMhjskubh)}(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 }(hj"lhhhNhNubj)}(h**file**h]hfile}(hj*lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"lubhR is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update }(hj"lhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjsecureexec**h]hbprm->secureexec}(hjNlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"lubh[ to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to }(hj"lhhhNhNubj)}(h**bprm->per_clear**h]hbprm->per_clear}(hj`lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"lubhJ any personality flags that should be cleared from current->personality. }(hj"lhhhNhNubj)}(h**bprm**h]hbprm}(hjrlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"lubh% contains the linux_binprm structure.}(hj"lhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjskubh)}(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.chMhjskubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjskubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_bprm_check (C function)c.security_bprm_checkhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h3int security_bprm_check (struct linux_binprm *bprm)h]j)}(h2int security_bprm_check(struct linux_binprm *bprm)h](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlhhhjlhM ubjg)}(hsecurity_bprm_checkh]jm)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhhjlhM ubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj mubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hj-mhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*mubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/mmodnameN classnameNjI jL )}jO ]jR )}jE jlsbc.security_bprm_checkasbuh1hhj mubj)}(h h]h }(hjMmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj mubj)}(hjh]h*}(hj[mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mubjm)}(hbprmh]hbprm}(hjhmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhjlhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhM ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhM hjlhhubj)}(hhh]h)}(hMediate binary handler searchh]hMediate binary handler search}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhjH'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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubj)}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjmh]hstruct linux_binprm *bprm}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubh)}(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 }(hj$nhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hj,nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$nubhr value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in }(hj$nhhhNhNubj)}(h**bprm**h]hbprm}(hj>nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$nubhC. This hook may be called multiple times during a single execve. }(hj$nhhhNhNubj)}(h**bprm**h]hbprm}(hjPnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$nubh% contains the linux_binprm structure.}(hj$nhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubh)}(h **Return**h]j)}(hjknh]hReturn}(hjmnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjinubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhjH'hhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjnhMubjg)}(hsecurity_bprm_committing_credsh]jm)}(hsecurity_bprm_committing_credsh]hsecurity_bprm_committing_creds}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjnhMubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hj&ohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#oubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(omodnameN classnameNjI jL )}jO ]jR )}jE jnsb c.security_bprm_committing_credsasbuh1hhjnubj)}(h h]h }(hjFohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjTohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hbprmh]hbprm}(hjaohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhjnhhhjnhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjnhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjnhhubj)}(hhh]h)}(h)Install creds for a process during exec()h]h)Install creds for a process during exec()}(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&]jjjjojjojjjuh1hhhhjH'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)}(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 linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjoh]hconst struct linux_binprm *bprm}(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.chMhjoubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]j)}(hjph]h Description}(hj phhhNhNubah}(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)}(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 }(hjphhhNhNubj)}(h**current->cred**h]h current->cred}(hj%phhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh and the information set in }(hjphhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hj7phhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh# by the bprm_creds_for_exec hook. }(hjphhhNhNubj)}(h**bprm**h]hbprm}(hjIphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubhX  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().}(hjphhhNhNubeh}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhjH'hhhNhNubh)}(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}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~phhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~phhhjphM/ubjg)}(hsecurity_bprm_committed_credsh]jm)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~phhhjphM/ubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE jpsbc.security_bprm_committed_credsasbuh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hj&qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hbprmh]hbprm}(hj3qhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhj~phhhjphM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzphhhjphM/ubah}(h]jupah ](jjeh"]h$]h&]jj)jhuh1hhjphM/hjwphhubj)}(hhh]h)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hj]qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjZqhhubah}(h]h ]h"]h$]h&]uh1jhjwphhhjphM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjuqjjuqjjjuh1hhhhjH'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)}(hjqh]h Parameters}(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.chM3hjyqubj)}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjqh]hconst struct linux_binprm *bprm}(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.chM0hjqubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM0hjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhM0hjqubah}(h]h ]h"]h$]h&]uh1jhjyqubh)}(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:283: ./security/security.chM2hjyqubh)}(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 }(hjqhhhNhNubj)}(h**current->cred**h]h current->cred}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh. }(hjqhhhNhNubj)}(h**bprm**h]hbprm}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh 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().}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjyqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhjH'hhhNhNubh)}(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}(hjBrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>rhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?ubj)}(h h]h }(hjQrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>rhhhjPrhM?ubjg)}(hsecurity_fs_context_submounth]jm)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hjcrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_rubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>rhhhjPrhM?ubj)}(h6(struct fs_context *fc, struct super_block *reference)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{rubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{rubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE jersbc.security_fs_context_submountasbuh1hhj{rubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{rubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{rubjm)}(hfch]hfc}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwrubj)}(hstruct super_block *referenceh](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(h super_blockh]h super_block}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj subah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jrc.security_fs_context_submountasbuh1hhjrubj)}(h h]h }(hj-shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hj;shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(h referenceh]h reference}(hjHshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwrubeh}(h]h ]h"]h$]h&]jjuh1jhj>rhhhjPrhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:rhhhjPrhM?ubah}(h]j5rah ](jjeh"]h$]h&]jj)jhuh1hhjPrhM?hj7rhhubj)}(hhh]h)}(hInitialise fc->securityh]hInitialise fc->security}(hjrshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjoshhubah}(h]h ]h"]h$]h&]uh1jhj7rhhhjPrhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjH'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)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjsubj)}(hhh](j)}(h1``struct fs_context *fc`` new filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjsh]hstruct fs_context *fc}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjsubj)}(hhh]h)}(hnew filesystem contexth]hnew filesystem context}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM@hjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshM@hjsubj)}(hH``struct super_block *reference`` dentry reference for submount/remount h](j)}(h!``struct super_block *reference``h]j)}(hjsh]hstruct super_block *reference}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjsubj)}(hhh]h)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMAhjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthMAhjsubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hj'th]h Description}(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.chMChjsubh)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(hj=thhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjsubh)}(h **Return**h]j)}(hjNth]hReturn}(hjPthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjsubh)}(h7Returns 0 on success or negative error code on failure.h]h7Returns 0 on success or negative error code on failure.}(hjdthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhjH'hhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjthMMubjg)}(hsecurity_fs_context_duph]jm)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjthMMubj)}(h2(struct fs_context *fc, struct fs_context *src_fc)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE jtsbc.security_fs_context_dupasbuh1hhjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hfch]hfc}(hj)uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hstruct fs_context *src_fch](j)}(hjh]hstruct}(hjBuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>uubj)}(h h]h }(hjOuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>uubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hj`uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]uubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbumodnameN classnameNjI jL )}jO ]j uc.security_fs_context_dupasbuh1hhj>uubj)}(h h]h }(hj~uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>uubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>uubjm)}(hsrc_fch]hsrc_fc}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjthMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthMMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjthMMhjthhubj)}(hhh]h)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhjH'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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjuubj)}(hhh](j)}(h9``struct fs_context *fc`` destination filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjvh]hstruct fs_context *fc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjuubj)}(hhh]h)}(hdestination filesystem contexth]hdestination filesystem context}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMNhjvubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjvhMNhjuubj)}(h8``struct fs_context *src_fc`` source filesystem context h](j)}(h``struct fs_context *src_fc``h]j)}(hj=vh]hstruct fs_context *src_fc}(hj?vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhj7vubj)}(hhh]h)}(hsource filesystem contexth]hsource filesystem context}(hjVvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRvhMOhjSvubah}(h]h ]h"]h$]h&]uh1jhj7vubeh}(h]h ]h"]h$]h&]uh1jhjRvhMOhjuubeh}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hjxvh]h Description}(hjzvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjuubh)}(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. }(hjvhhhNhNubj)}(h**fc**h]hfc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh' indicates the new filesystem context. }(hjvhhhNhNubj)}(h **src_fc**h]hsrc_fc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh+ indicates the original filesystem context.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjuubh)}(h **Return**h]j)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjuubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhjH'hhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjwhM]ubjg)}(hsecurity_fs_context_parse_paramh]jm)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hj)whhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%wubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjwhM]ubj)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjEwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAwubj)}(h h]h }(hjRwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAwubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjcwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`wubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjewmodnameN classnameNjI jL )}jO ]jR )}jE j+wsb!c.security_fs_context_parse_paramasbuh1hhjAwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAwubjm)}(hfch]hfc}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=wubj)}(hstruct fs_parameter *paramh](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(h fs_parameterh]h fs_parameter}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jw!c.security_fs_context_parse_paramasbuh1hhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hparamh]hparam}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=wubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhM]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhM]ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjwhM]hjvhhubj)}(hhh]h)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hj8xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj5xhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjwhM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPxjjPxjjjuh1hhhhjH'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)}(hjZxh]h Parameters}(hj\xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjTxubj)}(hhh](j)}(h-``struct fs_context *fc`` filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjyxh]hstruct fs_context *fc}(hj{xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hjsxubj)}(hhh]h)}(hfilesystem contexth]hfilesystem context}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM^hjxubah}(h]h ]h"]h$]h&]uh1jhjsxubeh}(h]h ]h"]h$]h&]uh1jhjxhM^hjpxubj)}(h4``struct fs_parameter *param`` filesystem parameter h](j)}(h``struct fs_parameter *param``h]j)}(hjxh]hstruct fs_parameter *param}(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_hjxubj)}(hhh]h)}(hfilesystem parameterh]hfilesystem parameter}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM_hjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhM_hjpxubeh}(h]h ]h"]h$]h&]uh1jhjTxubh)}(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.chMahjTxubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjTxubh)}(h **Return**h]j)}(hjyh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjTxubh)}(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*yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjTxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_alloc (C function)c.security_sb_allochNtauh1hhjH'hhhNhNubh)}(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}(hjYyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzubj)}(h h]h }(hjhyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUyhhhjgyhMzubjg)}(hsecurity_sb_alloch]jm)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(hjzyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUyhhhjgyhMzubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubh)}(hhh]jm)}(h super_blockh]h super_block}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE j|ysbc.security_sb_allocasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(hsbh]hsb}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhjUyhhhjgyhMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQyhhhjgyhMzubah}(h]jLyah ](jjeh"]h$]h&]jj)jhuh1hhjgyhMzhjNyhhubj)}(hhh]h)}(hAllocate a super_block LSM blobh]hAllocate a super_block LSM blob}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjzhhubah}(h]h ]h"]h$]h&]uh1jhjNyhhhjgyhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1zjj1zjjjuh1hhhhjH'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;zh]h Parameters}(hj=zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9zubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hj5zubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjZzh]hstruct super_block *sb}(hj\zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjTzubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjszhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjozhM{hjpzubah}(h]h ]h"]h$]h&]uh1jhjTzubeh}(h]h ]h"]h$]h&]uh1jhjozhM{hjQzubah}(h]h ]h"]h$]h&]uh1jhj5zubh)}(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}hj5zubh)}(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. }(hjzhhhNhNubj)}(h**sb**h]hsb}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh3 contains the super_block structure to be modified.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hj5zubh)}(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.chMhj5zubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_delete (C function)c.security_sb_deletehNtauh1hhjH'hhhNhNubh)}(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}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj"{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhj!{hMubjg)}(hsecurity_sb_deleteh]jm)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(hj4{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhj!{hMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hjP{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL{ubj)}(h h]h }(hj]{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL{ubh)}(hhh]jm)}(h super_blockh]h super_block}(hjn{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjp{modnameN classnameNjI jL )}jO ]jR )}jE j6{sbc.security_sb_deleteasbuh1hhjL{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL{ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL{ubjm)}(hsbh]hsb}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjH{ubah}(h]h ]h"]h$]h&]jjuh1jhj{hhhj!{hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj {hhhj!{hMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj!{hMhj{hhubj)}(hhh]h)}(h*Release super_block LSM associated objectsh]h*Release super_block LSM associated objects}(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{jjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct super_block *sb`` filesystem superblock **Description** Release objects tied to a superblock (e.g. inodes). **sb** contains the super_block structure being released.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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|ubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj-|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)|hMhj*|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj)|hMhj |ubah}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h**Description**h]j)}(hjO|h]h Description}(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.chMhj{ubh)}(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). }(hje|hhhNhNubj)}(h**sb**h]hsb}(hjm|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje|ubh3 contains the super_block structure being released.}(hje|hhhNhNubeh}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_free (C function)c.security_sb_freehNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhj|hMubjg)}(hsecurity_sb_freeh]jm)}(hsecurity_sb_freeh]hsecurity_sb_free}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(h super_blockh]h super_block}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jR )}jE j|sbc.security_sb_freeasbuh1hhj|ubj)}(h h]h }(hj!}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj/}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hsbh]hsb}(hj<}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|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)jhuh1hhj|hMhj|hhubj)}(hhh]h)}(hFree a super_block LSM blobh]hFree a super_block LSM blob}(hjf}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjc}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~}jj~}jjjuh1hhhhjH'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)}(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}ubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1jhj}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)}(hiDeallocate and clear the sb->s_security field. **sb** contains the super_block structure to be modified.h](h0Deallocate and clear the sb->s_security field. }(hj}hhhNhNubj)}(h**sb**h]hsb}(hj~hhhNhNubah}(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}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhjH'hhhNhNubh)}(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}(hj9~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjH~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5~hhhjG~hMubjg)}(hsecurity_sb_kern_mounth]jm)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hjZ~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjV~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5~hhhjG~hMubj)}(h(const struct super_block *sb)h]j)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hjv~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr~ubj)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr~ubh)}(hhh]jm)}(h super_blockh]h super_block}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE j\~sbc.security_sb_kern_mountasbuh1hhjr~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr~ubjm)}(hsbh]hsb}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjn~ubah}(h]h ]h"]h$]h&]jjuh1jhj5~hhhjG~hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1~hhhjG~hMubah}(h]j,~ah ](jjeh"]h$]h&]jj)jhuh1hhjG~hMhj.~hhubj)}(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&]uh1jhj.~hhhjG~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjH'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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubj)}(hhh]j)}(h7``const struct super_block *sb`` filesystem superblock h](j)}(h ``const struct super_block *sb``h]j)}(hjUh]hconst struct super_block *sb}(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.chMhjOubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubh)}(h,Mount this **sb** if allowed by permissions.h](h Mount this }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if allowed by permissions.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubh)}(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.chMhj0ubh)}(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.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_sb_show_options (C function)c.security_sb_show_optionshNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMubjg)}(hsecurity_sb_show_optionsh]jm)}(hsecurity_sb_show_optionsh]hsecurity_sb_show_options}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h,(struct seq_file *m, struct super_block *sb)h](j)}(hstruct seq_file *mh](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hseq_fileh]hseq_file}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.security_sb_show_optionsasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hj1h]hm}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjɀhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h super_blockh]h super_block}(hjڀhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj׀ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj܀modnameN classnameNjI jL )}jO ]jc.security_sb_show_optionsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h)Output the mount options for a superblockh]h)Output the mount options for a superblock}(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&]jjjjUjjUjjjuh1hhhhjH'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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubj)}(hhh](j)}(h#``struct seq_file *m`` output file h](j)}(h``struct seq_file *m``h]j)}(hj~h]hstruct seq_file *m}(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.chMhjxubj)}(hhh]h)}(h output fileh]h output file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(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.chMhjubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjЁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj́hMhj́ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj́hMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(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}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(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.chMhjYubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjShhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_statfs (C function)c.security_sb_statfshNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhjhMubjg)}(hsecurity_sb_statfsh]jm)}(hsecurity_sb_statfsh]hsecurity_sb_statfs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hĵhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj݂hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڂubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj߂modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_sb_statfsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjwhhubj)}(hhh]h)}(h&Check if accessing fs stats is allowedh]h&Check if accessing fs stats is allowed}(hjBhhhNhNubah}(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&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjH'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)}(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,``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.chMhj}ubj)}(hhh]h)}(hsuperblock handleh]hsuperblock handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^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 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 }(hjԃhhhNhNubj)}(h**mnt**h]hmnt}(hj܃hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԃubh mountpoint. }(hjԃhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԃubh2 is a handle on the superblock for the filesystem.}(hjԃhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^ubh)}(h **Return**h]j)}(hj h]hReturn}(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 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_mount (C function)c.security_sb_mounthNtauh1hhjH'hhhNhNubh)}(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}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj\hMubjg)}(hsecurity_sb_mounth]jm)}(hsecurity_sb_mounth]hsecurity_sb_mount}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhj\hMubj)}(hb(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](j)}(hconst char *dev_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj„hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdev_nameh]hdev_name}(hjτhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]jR )}jE jqsbc.security_sb_mountasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *typeh](j)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjm)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hj҅hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj΅ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj΅ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj΅ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj΅ubjm)}(hflagsh]hflags}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj΅ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *datah](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdatah]hdata}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhj\hMhjChhubj)}(hhh]h)}(h*Check permission for mounting a filesystemh]h*Check permission for mounting a filesystem}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chMhjubj)}(hhh](j)}(h3``const char *dev_name`` filesystem backing device h](j)}(h``const char *dev_name``h]j)}(hjh]hconst char *dev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfilesystem backing deviceh]hfilesystem backing device}(hjІhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̆hMhj͆ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̆hMhjubj)}(h(``const struct path *path`` mount point 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.chMhjubj)}(hhh]h)}(h mount pointh]h mount point}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``const char *type`` filesystem type h](j)}(h``const char *type``h]j)}(hj)h]hconst char *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.chMhj#ubj)}(hhh]h)}(hfilesystem typeh]hfilesystem type}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjubj)}(h$``unsigned long flags`` mount flags h](j)}(h``unsigned long flags``h]j)}(hjbh]hunsigned long flags}(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\ubj)}(hhh]h)}(h mount flagsh]h mount flags}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjubj)}(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.chMhjubj)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hXCheck permission before an object specified by **dev_name** is mounted on the mount point named by **nd**. For an ordinary mount, **dev_name** identifies a device if the file system type requires a device. For a remount (**flags** & MS_REMOUNT), **dev_name** is irrelevant. For a loopback/bind mount (**flags** & MS_BIND), **dev_name** identifies the pathname of the object being mounted.h](h/Check permission before an object specified by }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( is mounted on the mount point named by }(hjhhhNhNubj)}(h**nd**h]hnd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. For an ordinary mount, }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP identifies a device if the file system type requires a device. For a remount (}(hjhhhNhNubj)}(h **flags**h]hflags}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & MS_REMOUNT), }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, is irrelevant. For a loopback/bind mount (}(hjhhhNhNubj)}(h **flags**h]hflags}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & MS_BIND), }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 identifies the pathname of the object being mounted.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hj{h]hReturn}(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 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_umount (C function)c.security_sb_umounthNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h8int security_sb_umount (struct vfsmount *mnt, int flags)h]j)}(h7int security_sb_umount(struct vfsmount *mnt, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*ubj)}(h h]h }(hjψhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjΈhM*ubjg)}(hsecurity_sb_umounth]jm)}(hsecurity_sb_umounth]hsecurity_sb_umount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj݈ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjΈhM*ubj)}(h!(struct vfsmount *mnt, int flags)h](j)}(hstruct vfsmount *mnth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hvfsmounth]hvfsmount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_sb_umountasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmnth]hmnt}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(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)jhuh1hhjΈhM*hjhhubj)}(hhh]h)}(h,Check permission for unmounting a filesystemh]h,Check permission for unmounting a filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjΈhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj͉jj͉jjjuh1hhhhjH'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)}(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 vfsmount *mnt`` mounted filesystem h](j)}(h``struct vfsmount *mnt``h]j)}(hjh]hstruct vfsmount *mnt}(hjhhhNhNubah}(h]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+hjubj)}(hhh]h)}(hmounted filesystemh]hmounted filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM+hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM+hjubj)}(h``int flags`` unmount flags h](j)}(h ``int flags``h]j)}(hj/h]h int flags}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hj)ubj)}(hhh]h)}(h unmount flagsh]h unmount flags}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM,hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM,hjubeh}(h]h ]h"]h$]h&]uh1jhjщubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjщubh)}(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.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.chM0hjщubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_sb_pivotroot (C function)c.security_sb_pivotroothNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hTint security_sb_pivotroot (const struct path *old_path, const struct path *new_path)h]j)}(hSint security_sb_pivotroot(const struct path *old_path, const struct path *new_path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM8ubjg)}(hsecurity_sb_pivotrooth]jm)}(hsecurity_sb_pivotrooth]hsecurity_sb_pivotroot}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM8ubj)}(h:(const struct path *old_path, const struct path *new_path)h](j)}(hconst struct path *old_pathh](j)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(hpathh]hpath}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`modnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_sb_pivotrootasbuh1hhj!ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hold_pathh]hold_path}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *new_pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj͋hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjڋhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jzc.security_sb_pivotrootasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnew_pathh]hnew_path}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM8ubah}(h]jۊah ](jjeh"]h$]h&]jj)jhuh1hhjhM8hj݊hhubj)}(hhh]h)}(h)Check permissions for pivoting the rootfsh]h)Check permissions for pivoting the rootfs}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjKhhubah}(h]h ]h"]h$]h&]uh1jhj݊hhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhjH'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)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjjubj)}(hhh](j)}(h@``const struct path *old_path`` new location for current rootfs h](j)}(h``const struct path *old_path``h]j)}(hjh]hconst struct path *old_path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjubj)}(hhh]h)}(hnew location for current rootfsh]hnew location for current rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(h;``const struct path *new_path`` location of the new rootfs h](j)}(h``const struct path *new_path``h]j)}(hjȌh]hconst struct path *new_path}(hjʌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƌubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjŒubj)}(hhh]h)}(hlocation of the new rootfsh]hlocation of the new rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj݌hM:hjތubah}(h]h ]h"]h$]h&]uh1jhjŒubeh}(h]h ]h"]h$]h&]uh1jhj݌hM:hjubeh}(h]h ]h"]h$]h&]uh1jhjjubh)}(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<hjjubh)}(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.chM;hjjubh)}(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=hjjubh)}(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>hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_move_mount (C function)c.security_move_mounthNtauh1hhjH'hhhNhNubh)}(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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkhhhj}hMyubjg)}(hsecurity_move_mounth]jm)}(hsecurity_move_mounth]hsecurity_move_mount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhj}hMyubj)}(h:(const struct path *from_path, const struct path *to_path)h](j)}(hconst struct path *from_pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjǍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjԍhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_move_mountasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h from_pathh]h from_path}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *to_pathh](j)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(hpathh]hpath}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jc.security_move_mountasbuh1hhj5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hto_pathh]hto_path}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhj}hMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj}hMyubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hMyhjdhhubj)}(hhh]h)}(h$Check permissions for moving a mounth]h$Check permissions for moving a mount}(hjՎhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjҎhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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)}(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.chMzhjubj)}(hhh]h)}(hsource mount pointh]hsource mount point}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMzhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMzhj ubj)}(h7``const struct path *to_path`` destination mount point h](j)}(h``const struct path *to_path``h]j)}(hjOh]hconst struct path *to_path}(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.chM{hjIubj)}(hhh]h)}(hdestination mount pointh]hdestination mount point}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM{hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM{hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 a mount is moved.h]h)Check permission before a mount is moved.}(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 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_path_notify (C function)c.security_path_notifyhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_notifyh]jm)}(hsecurity_path_notifyh]hsecurity_path_notify}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h:(const struct path *path, u64 mask, unsigned int obj_type)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hpathh]hpath}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_notifyasbuh1hhj/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hu64 maskh](h)}(hhh]jm)}(hu64h]hu64}(hjÐhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjŐmodnameN classnameNjI jL )}jO ]jc.security_path_notifyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hunsigned int obj_typeh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hobj_typeh]hobj_type}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h#Check if setting a watch is allowedh]h#Check if setting a watch is allowed}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hXM**Parameters** ``const struct path *path`` file path ``u64 mask`` event mask ``unsigned int obj_type`` file path type **Description** Check permissions before setting a watch on events as defined by **mask**, on an object at **path**, whose type is defined by **obj_type**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h&``const struct path *path`` file path h](j)}(h``const struct path *path``h]j)}(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.chMhjubj)}(hhh]h)}(h file pathh]h file path}(hjđhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u64 mask`` event mask h](j)}(h ``u64 mask``h]j)}(hjh]hu64 mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjޑubj)}(hhh]h)}(h event maskh]h event mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjޑubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(hfile path typeh]hfile path type}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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 }(hjnhhhNhNubj)}(h**mask**h]hmask}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh, on an object at }(hjnhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh, whose type is defined by }(hjnhhhNhNubj)}(h **obj_type**h]hobj_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh.}(hjnhhhNhNubeh}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_alloc (C function)c.security_inode_allochNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_alloch]jm)}(hsecurity_inode_alloch]hsecurity_inode_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(hinodeh]hinode}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_allocasbuh1hhj3ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jqc.security_inode_allocasbuh1hhjubj)}(h h]h }(hjʓhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hjؓhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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 inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjCh]hstruct inode *inode}(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=ubj)}(hhh]h)}(h the inodeh]h the inode}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj|h]h gfp_t gfp}(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.chMhjvubj)}(hhh]h)}(hallocation flagsh]hallocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 **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 }(hj͔hhhNhNubj)}(h**inode->i_security**h]hinode->i_security}(hjՔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͔ubhU. The i_security field is initialized to NULL when the inode structure is allocated.}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h%Return 0 if 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_inode_free (C function)c.security_inode_freehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h.void security_inode_free (struct inode *inode)h]j)}(h-void security_inode_free(struct inode *inode)h](j )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhjChMubjg)}(hsecurity_inode_freeh]jm)}(hsecurity_inode_freeh]hsecurity_inode_free}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhjChMubj)}(h(struct inode *inode)h]j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jXsbc.security_inode_freeasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hinodeh]hinode}(hj˕hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjChMhj*hhubj)}(hhh]h)}(hFree an inode's LSM blobh]hFree an inode’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&]uh1jhj*hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjH'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)}(hj6h]hstruct inode *inode}(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.chMhj0ubj)}(hhh]h)}(h the inodeh]h the inode}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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(), }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX 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.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hwint security_inode_init_security_anon (struct inode *inode, const struct qstr *name, const struct inode *context_inode)h]j)}(hvint security_inode_init_security_anon(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMJubjg)}(h!security_inode_init_security_anonh]jm)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMJubj)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hinodeh]hinode}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jR )}jE j sb#c.security_inode_init_security_anonasbuh1hhj"ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct qstr *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hqstrh]hqstr}(hjїhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjΗubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjӗmodnameN classnameNjI jL )}jO ]j`#c.security_inode_init_security_anonasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!const struct inode *context_inodeh](j)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]j`#c.security_inode_init_security_anonasbuh1hhjubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h context_inodeh]h context_inode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]jܖah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhjޖhhubj)}(hhh]h)}(hInitialize an anonymous inodeh]hInitialize an anonymous inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjhhubah}(h]h ]h"]h$]h&]uh1jhjޖhhhjhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjטjjטjjjuh1hhhhjH'hNhNubj)}(hX**Parameters** ``struct inode *inode`` the inode ``const struct qstr *name`` the anonymous inode class ``const struct inode *context_inode`` an optional related inode **Description** Set up the incore security field for the new anonymous inode and return whether the inode creation is permitted by the security module or not. **Return** Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߘubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjۘ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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjubj)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubj)}(h6``const struct qstr *name`` the anonymous inode class h](j)}(h``const struct qstr *name``h]j)}(hj9h]hconst struct qstr *name}(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.chMLhj3ubj)}(hhh]h)}(hthe anonymous inode classh]hthe anonymous inode class}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMLhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMLhjubj)}(h@``const struct inode *context_inode`` an optional related inode h](j)}(h%``const struct inode *context_inode``h]j)}(hjrh]h!const struct inode *context_inode}(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.chMMhjlubj)}(hhh]h)}(han optional related inodeh]han optional related inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(h]h ]h"]h$]h&]uh1jhjۘ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.chMOhjۘ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.}(hjÙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjۘ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.chMQhjۘubh)}(h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h]h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjۘubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMtubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj'hMtubjg)}(hsecurity_path_post_mknodh]jm)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'hMtubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE j<sbc.security_path_post_mknodasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjȚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĚubj)}(h h]h }(hj՚hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĚubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_path_post_mknodasbuh1hhjĚubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĚubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĚubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjĚubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMtubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMthjhhubj)}(hhh]h)}(h-Update inode security after reg file creationh]h-Update inode security after reg file creation}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjH'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)}(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.chMxhjeubj)}(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.chMuhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjÛh]hstruct dentry *dentry}(hjśhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubj)}(hhh]h)}(hnew fileh]hnew file}(hjܛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj؛hMvhjٛubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj؛hMvhjubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(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.chMxhjeubh)}(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.chMwhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhjH'hhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhjQhMubjg)}(hsecurity_path_rmdirh]jm)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjQhMubj)}(h/(const struct path *dir, struct dentry *dentry)h](j)}(hconst struct path *dirh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jfsbc.security_path_rmdirasbuh1hhj|ubj)}(h h]h }(hjٜhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]j՜c.security_path_rmdirasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdentryh]hdentry}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj)}(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&]uh1jhj8hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` directory to remove **Description** Check the permission to remove a directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``const struct path *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjϝh]hconst struct path *dir}(hjѝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͝ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjɝubj)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɝubeh}(h]h ]h"]h$]h&]uh1jhjhMhjƝubj)}(h.``struct dentry *dentry`` directory to remove h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hdirectory to removeh]hdirectory to remove}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjƝubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMhjubh)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_path_symlink (C function)c.security_path_symlinkhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_symlinkh]jm)}(hsecurity_path_symlinkh]hsecurity_path_symlink}(hjОhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̞ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hE(const struct path *dir, struct dentry *dentry, const char *old_name)h](j)}(hconst struct path *dirh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE jҞsbc.security_path_symlinkasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdirh]hdir}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jAc.security_path_symlinkasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjßhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hdentryh]hdentry}(hjПhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *old_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hold_nameh]hold_name}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h,Check if creating a symbolic link is allowedh]h,Check if creating a symbolic link 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjH'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)}(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,``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.chMhjubj)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``struct dentry *dentry`` symbolic link h](j)}(h``struct dentry *dentry``h]j)}(hjѠh]hstruct dentry *dentry}(hjӠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϠubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjˠubj)}(hhh]h)}(h symbolic linkh]h symbolic link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjˠubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``const char *old_name`` file pathname h](j)}(h``const char *old_name``h]j)}(hj h]hconst char *old_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h file pathnameh]h file pathname}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(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.chMhjsubh)}(h **Return**h]j)}(hjlh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_path_link (C function)c.security_path_linkhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hiint security_path_link (struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h]j)}(hhint security_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_linkh]jm)}(hsecurity_path_linkh]hsecurity_path_link}(hjҡhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjΡubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hR(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j)}(hstruct dentry *old_dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jԡsbc.security_path_linkasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h old_dentryh]h old_dentry}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *new_dirh](j)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j(c.security_path_linkasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjŢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hnew_dirh]hnew_dir}(hjҢhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *new_dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j(c.security_path_linkasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h new_dentryh]h new_dentry}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hjlhhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hX**Parameters** ``struct dentry *old_dentry`` existing file ``const struct path *new_dir`` new parent directory ``struct dentry *new_dentry`` new link **Description** Check permission before creating a new hard link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``struct dentry *old_dentry`` existing file h](j)}(h``struct dentry *old_dentry``h]j)}(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.chMhjubj)}(hhh]h)}(h existing fileh]h existing file}(hjƣhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj£hMhjãubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj£hMhjubj)}(h4``const struct path *new_dir`` new parent directory h](j)}(h``const struct path *new_dir``h]j)}(hjh]hconst struct path *new_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hnew parent directoryh]hnew parent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``struct dentry *new_dentry`` new link h](j)}(h``struct dentry *new_dentry``h]j)}(hjh]hstruct dentry *new_dentry}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hnew linkh]hnew link}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(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)}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_path_truncate (C function)c.security_path_truncatehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h4int security_path_truncate (const struct path *path)h]j)}(h3int security_path_truncate(const struct path *path)h](j )}(hinth]hint}(hjƤhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj¤hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjդhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¤hhhjԤhMubjg)}(hsecurity_path_truncateh]jm)}(hsecurity_path_truncateh]hsecurity_path_truncate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj¤hhhjԤhMubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_truncateasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj¤hhhjԤhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjԤhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԤhMhjhhubj)}(hhh]h)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԤhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjܥubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjܥubeh}(h]h ]h"]h$]h&]uh1jhjhMhj٥ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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 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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chmod (C function)c.security_path_chmodhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h?int security_path_chmod (const struct path *path, umode_t mode)h]j)}(h>int security_path_chmod(const struct path *path, umode_t mode)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_chmodh]jm)}(hsecurity_path_chmodh]hsecurity_path_chmod}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h'(const struct path *path, umode_t mode)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjƦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¦ubj)}(h h]h }(hjӦhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¦ubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¦ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¦ubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_chmodasbuh1hhj¦ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¦ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¦ubjm)}(hpathh]hpath}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj¦ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jc.security_path_chmodasbuh1hhjOubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubjm)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj~hhubj)}(hhh]h)}(h,Check if changing the file's mode is allowedh]h.Check if changing the file’s mode 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&]jjjjħjjħjjjuh1hhhhjH'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)}(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!``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.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``umode_t mode`` new mode 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(hnew modeh]hnew mode}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubeh}(h]h ]h"]h$]h&]uh1jhjȧubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjȧubh)}(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 }(hjwhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh. The new mode is specified in }(hjwhhhNhNubj)}(h**mode**h]hmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubhB which is a bitmask of constants from .}(hjwhhhNhNubeh}(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.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chown (C function)c.security_path_chownhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_chownh]jm)}(hsecurity_path_chownh]hsecurity_path_chown}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h1(const struct path *path, kuid_t uid, kgid_t gid)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(hpathh]hpath}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_chownasbuh1hhj*ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(h kuid_t uidh](h)}(hhh]jm)}(hkuid_th]hkuid_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_path_chownasbuh1hhjubj)}(h h]h }(hjܩhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(huidh]huid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(h kgid_t gidh](h)}(hhh]jm)}(hkgid_th]hkgid_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_path_chownasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgidh]hgid}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(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.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhjH'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)}(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.chMhjxubj)}(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.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``kuid_t uid`` file owner h](j)}(h``kuid_t uid``h]j)}(hj֪h]h kuid_t uid}(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Ъubj)}(hhh]h)}(h file ownerh]h file owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjЪubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(h file grouph]h file group}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(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.chMhjxubh)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubh)}(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.chMhjxubh)}(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.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_path_chroot (C function)c.security_path_chroothNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h2int security_path_chroot (const struct path *path)h]j)}(h1int security_path_chroot(const struct path *path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(ubj)}(h h]h }(hjūhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjīhM(ubjg)}(hsecurity_path_chrooth]jm)}(hsecurity_path_chrooth]hsecurity_path_chroot}(hj׫hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjӫubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjīhM(ubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE j٫sbc.security_path_chrootasbuh1hhjubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjīhM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjīhM(ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjīhM(hjhhubj)}(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.chM(hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjīhM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``const struct path *path`` directory **Description** Check for permission to change root directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjubj)}(hhh]j)}(h&``const struct path *path`` directory h](j)}(h``const struct path *path``h]j)}(hjҬh]hconst struct path *path}(hjԬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЬubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj̬ubj)}(hhh]h)}(h directoryh]h directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhj̬ubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjɬubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chM+hjubh)}(h.Check for permission to change root directory.h]h.Check for permission to change root directory.}(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)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjubh)}(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-hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhjH'hhhNhNubh)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhMIubjg)}(h"security_inode_post_create_tmpfileh]jm)}(h"security_inode_post_create_tmpfileh]h"security_inode_post_create_tmpfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhMIubj)}(h.(struct mnt_idmap *idmap, struct inode *inode)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjíhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjԭhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjѭubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj֭modnameN classnameNjI jL )}jO ]jR )}jE jsb$c.security_inode_post_create_tmpfileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hinodeh]hinode}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]j$c.security_inode_post_create_tmpfileasbuh1hhj$ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhMIubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMIhjnhhubj)}(hhh]h)}(h$Update inode security of new tmpfileh]h$Update inode security of new tmpfile}(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&]uh1jhjnhhhjhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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.chMMhjŮubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(h1``struct inode *inode`` inode of the new tmpfile h](j)}(h``struct inode *inode``h]j)}(hj#h]hstruct inode *inode}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjubj)}(hhh]h)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMKhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMKhjubeh}(h]h ]h"]h$]h&]uh1jhjŮ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.chMMhjŮubh)}(h**Parameters** ``struct dentry *dentry`` link dentry ``struct inode *inode`` link inode ``bool rcu`` true if in RCU-walk mode **Description** Check permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h&``struct dentry *dentry`` link dentry h](j)}(h``struct dentry *dentry``h]j)}(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.chMhjubj)}(hhh]h)}(h link dentryh]h link dentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``struct inode *inode`` link inode h](j)}(h``struct inode *inode``h]j)}(hj,h]hstruct inode *inode}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubj)}(hhh]h)}(h link inodeh]h link inode}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(h&``bool rcu`` true if in RCU-walk mode h](j)}(h ``bool rcu``h]j)}(hjeh]hbool rcu}(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_ubj)}(hhh]h)}(htrue if in RCU-walk modeh]htrue if in RCU-walk mode}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(htCheck permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable.h](hKCheck permission to follow a symbolic link when looking up a pathname. If }(hjhhhNhNubj)}(h**rcu**h]hrcu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is true, }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not stable.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_permission (C function)c.security_inode_permissionhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h=int security_inode_permission (struct inode *inode, int mask)h]j)}(hhMubjg)}(hsecurity_inode_permissionh]jm)}(hsecurity_inode_permissionh]hsecurity_inode_permission}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMubj)}(h(struct inode *inode, int mask)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jSsbc.security_inode_permissionasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hint maskh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj%hhubj)}(hhh]h)}(h&Check if accessing an inode is allowedh]h&Check if accessing an inode is allowed}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1hhhhjH'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)}(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.chM hjAubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjfh]hstruct inode *inode}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubj)}(h``int mask`` access mask h](j)}(h ``int mask``h]j)}(hjh]hint mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h access maskh]h access mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(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 hjAubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAubh)}(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.chMhjAubh)}(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.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_post_setattr (C function)c.security_inode_post_setattrhNtauh1hhjH'hhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjThM2ubjg)}(hsecurity_inode_post_setattrh]jm)}(hsecurity_inode_post_setattrh]hsecurity_inode_post_setattr}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjThM2ubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jisbc.security_inode_post_setattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_post_setattrasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(h int ia_validh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubjm)}(hia_validh]hia_valid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThM2ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThM2hj;hhubj)}(hhh]h)}(h*Update the inode after a setattr operationh]h*Update the inode after a setattr operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``int ia_valid`` file attributes set **Description** Update inode security field after successful setting file attributes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjubj)}(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.chM3hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(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.chM4hjubj)}(hhh]h)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM4hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM4hjubj)}(h%``int ia_valid`` file attributes set h](j)}(h``int ia_valid``h]j)}(hj^h]h int ia_valid}(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.chM5hjXubj)}(hhh]h)}(hfile attributes seth]hfile attributes set}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM5hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM5hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chM7hjubh)}(hEUpdate inode security field after successful setting file attributes.h]hEUpdate inode security field after successful setting file attributes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h4int security_inode_getattr (const struct path *path)h]j)}(h3int security_inode_getattr(const struct path *path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMBubjg)}(hsecurity_inode_getattrh]jm)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMBubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_getattrasbuh1hhjubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMBhjhhubj)}(hhh]h)}(h+Check if getting file attributes is allowedh]h+Check if getting file attributes is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjubj)}(hhh]j)}(h!``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.chMChjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj5h]h Description}(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.chMEhjubh)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjubh)}(h **Return**h]j)}(hj\h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjubh)}(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.chMGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hint security_inode_setxattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]j)}(hint security_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMQubjg)}(hsecurity_inode_setxattrh]jm)}(hsecurity_inode_setxattrh]hsecurity_inode_setxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMQubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_setxattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(hdentryh]hdentry}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jc.security_inode_setxattrasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *valueh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_setxattrasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMQubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMQhjhhubj)}(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.chMQhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjH'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)}(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.chMUhj$ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjIh]hstruct mnt_idmap *idmap}(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.chMRhjCubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMRhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMRhj@ubj)}(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.chMShj|ubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMShj@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.chMThjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThj@ubj)}(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.chMUhjubj)}(hhh]h)}(h xattr valueh]h xattr value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMUhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMUhj@ubj)}(h$``size_t size`` size of xattr value h](j)}(h``size_t size``h]j)}(hj-h]h size_t size}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhj'ubj)}(hhh]h)}(hsize of xattr valueh]hsize of xattr value}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMVhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMVhj@ubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjfh]h int flags}(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.chMWhj`ubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMWhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMWhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$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.chMYhj$ubh)}(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.chMXhj$ubh)}(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.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.chMghj$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.chMhhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hyint security_inode_set_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]j)}(hxint security_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j )}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhj<hMubjg)}(hsecurity_inode_set_aclh]jm)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj<hMubj)}(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}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jQsbc.security_inode_set_aclasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_set_aclasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj )}(hcharh]hchar}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct posix_acl *kaclh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h posix_aclh]h posix_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_set_aclasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkaclh]hkacl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj<hMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMhj#hhubj)}(hhh]h)}(h&Check if setting posix acls is allowedh]h&Check if setting posix acls is allowed}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhjH'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)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubj)}(hhh](j)}(h/``struct 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.chMhjfubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(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.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(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.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(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.chMhjubj)}(hhh]h)}(h acl structh]h acl struct}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(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.chMhjGubh)}(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 }(hjhhhhNhNubj)}(h**kacl**h]hkacl}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh are identified by }(hjhhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubh)}(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.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hfvoid security_inode_post_set_acl (struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]j)}(hevoid security_inode_post_set_acl(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_post_set_aclh]jm)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_post_set_aclasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct posix_acl *kaclh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h posix_aclh]h posix_acl}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jYc.security_inode_post_set_aclasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkaclh]hkacl}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h)Update inode security from posix acls seth]h)Update inode security from posix acls set}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hX**Parameters** ``struct dentry *dentry`` file ``const char *acl_name`` acl name ``struct posix_acl *kacl`` acl struct **Description** Update inode security data after successfully setting posix acls on **dentry**. The posix acls in **kacl** are identified by **acl_name**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hj"h]hstruct posix_acl *kacl}(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.chMhjubj)}(hhh]h)}(h acl structh]h acl struct}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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 }(hjshhhNhNubj)}(h **dentry**h]hdentry}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh. The posix acls in }(hjshhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh are identified by }(hjshhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh.}(hjshhhNhNubeh}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(haint security_inode_get_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(h`int security_inode_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_get_aclh]jm)}(hsecurity_inode_get_aclh]hsecurity_inode_get_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_get_aclasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jOc.security_inode_get_aclasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h&Check if reading posix acls is allowedh]h&Check if reading posix acls is allowed}(hjehhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhjH'hNhNubj)}(hX$**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Check permission before getting osix acls, the posix acls are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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 }(hjihhhNhNubj)}(h **acl_name**h]hacl_name}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh.}(hjihhhNhNubeh}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hdint security_inode_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(hcint security_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_remove_aclh]jm)}(hsecurity_inode_remove_aclh]hsecurity_inode_remove_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_remove_aclasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hidmaph]hidmap}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jHc.security_inode_remove_aclasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h(Check if removing a posix acl is allowedh]h(Check if removing a posix acl 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&]jjjjvjjvjjjuh1hhhhjH'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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjzubj)}(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.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(hacl nameh]hacl name}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjzubh)}(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 }(hjbhhhNhNubj)}(h **acl_name**h]hacl_name}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjzubh)}(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.chMhjzubh)}(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.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hjvoid security_inode_post_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(hivoid security_inode_post_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_post_remove_aclh]jm)}(hsecurity_inode_post_remove_aclh]hsecurity_inode_post_remove_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE jsb c.security_inode_post_remove_aclasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jA c.security_inode_post_remove_aclasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h)Update inode security after rm posix aclsh]h)Update inode security after rm posix acls}(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&]jjjjojjojjjuh1hhhhjH'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)}(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 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.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hj h]hconst char *acl_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(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 }(hj[hhhNhNubj)}(h **dentry**h]hdentry}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh in }(hj[hhhNhNubj)}(h **idmap**h]hidmap}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh#. The posix acls are identified by }(hj[hhhNhNubj)}(h **acl_name**h]hacl_name}(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.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hvvoid security_inode_post_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]j)}(huvoid security_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_post_setxattrh]jm)}(hsecurity_inode_post_setxattrh]hsecurity_inode_post_setxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hT(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_post_setxattrasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *valueh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]j7c.security_inode_post_setxattrasbuh1hhj%ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubjm)}(hsizeh]hsize}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+Update the inode after a setxattr operationh]h+Update the inode after a setxattr operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hj1h]hconst char *name}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubj)}(h"``const void *value`` xattr value h](j)}(h``const void *value``h]j)}(hjjh]hconst void *value}(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.chMhjdubj)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``size_t size`` xattr value size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hxattr value sizeh]hxattr value size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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@Update inode security field after successful setxattr operation.h]h@Update inode security field after successful setxattr operation.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhjH'hhhNhNubh)}(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}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjjhMubjg)}(hsecurity_inode_getxattrh]jm)}(hsecurity_inode_getxattrh]hsecurity_inode_getxattr}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjjhMubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_getxattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjQhhubj)}(hhh]h)}(h Check if xattr access is allowedh]h Check if xattr access is allowed}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chMhjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hjDhhhNhNubj)}(h**name**h]hname}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh for }(hjDhhhNhNubj)}(h **dentry**h]hdentry}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h4int security_inode_listxattr (struct dentry *dentry)h]j)}(h3int security_inode_listxattr(struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_listxattrh]jm)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_listxattrasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h"Check if listing xattrs is allowedh]h"Check if listing xattrs 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&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file **Description** Check permission before obtaining the list of extended attribute names for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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)}(hj3h]hReturn}(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.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhjH'hhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjhMubjg)}(hsecurity_inode_removexattrh]jm)}(hsecurity_inode_removexattrh]hsecurity_inode_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjhMubj)}(hB(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_removexattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(hdentryh]hdentry}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jc.security_inode_removexattrasbuh1hhj#ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hdentryh]hdentry}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjmhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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 mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjFh]hstruct mnt_idmap *idmap}(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@ubj)}(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&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=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.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj!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)}(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 }(hj hhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh. 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.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubh)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubh)}(h **Return**h]j)}(hj;h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(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.}(hjQhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhjhM8ubjg)}(hsecurity_inode_post_removexattrh]jm)}(hsecurity_inode_post_removexattrh]hsecurity_inode_post_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhjhM8ubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.security_inode_post_removexattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj )}(hcharh]hchar}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hnameh]hname}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhM8ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhM8hjuhhubj)}(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.chM8hjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Update the inode after a successful removexattr operation.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM:hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM:hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chM<hjubh)}(h:Update the inode after a successful removexattr operation.h]h:Update the inode after a successful removexattr operation.}(hjhhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_setattr (C function)c.security_inode_file_setattrhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMFubjg)}(hsecurity_inode_file_setattrh]jm)}(hsecurity_inode_file_setattrh]hsecurity_inode_file_setattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMFubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_file_setattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct file_kattr *fah](j)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubh)}(hhh]jm)}(h file_kattrh]h file_kattr}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jc.security_inode_file_setattrasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hfah]hfa}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMFhjhhubj)}(hhh]h)}(h#check if setting fsxattr is allowedh]h#check if setting fsxattr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hX4**Parameters** ``struct dentry *dentry`` file to set filesystem extended attributes on ``struct file_kattr *fa`` extended attributes to set on the inode **Description** Called when file_setattr() syscall or FS_IOC_FSSETXATTR ioctl() is called on inode **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjubj)}(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}(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.chMGhjubj)}(hhh]h)}(h-file to set filesystem extended attributes onh]h-file to set filesystem extended attributes on}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(hB``struct file_kattr *fa`` extended attributes to set on the inode h](j)}(h``struct file_kattr *fa``h]j)}(hjAh]hstruct file_kattr *fa}(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.chMHhj;ubj)}(hhh]h)}(h'extended attributes to set on the inodeh]h'extended attributes to set on the inode}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMHhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMHhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMJhjubh)}(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.chMIhjubh)}(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.chMLhjubh)}(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.chMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_getattr (C function)c.security_inode_file_getattrhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hNint security_inode_file_getattr (struct dentry *dentry, struct file_kattr *fa)h]j)}(hMint security_inode_file_getattr(struct dentry *dentry, struct file_kattr *fa)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMUubjg)}(hsecurity_inode_file_getattrh]jm)}(hsecurity_inode_file_getattrh]hsecurity_inode_file_getattr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMUubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(hdentryh]hdentry}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_inode_file_getattrasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hdentryh]hdentry}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct file_kattr *fah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h file_kattrh]h file_kattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j_c.security_inode_file_getattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfah]hfa}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMUhjhhubj)}(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.chMUhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhjH'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)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj4ubj)}(hhh](j)}(hO``struct dentry *dentry`` file to retrieve filesystem extended attributes from h](j)}(h``struct dentry *dentry``h]j)}(hjYh]hstruct dentry *dentry}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjSubj)}(hhh]h)}(h4file to retrieve filesystem extended attributes fromh]h4file to retrieve filesystem extended attributes from}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMVhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMVhjPubj)}(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.chMWhjubj)}(hhh]h)}(hextended attributes to geth]hextended attributes to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(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.chMYhj4ubh)}(hRCalled when file_getattr() syscall or FS_IOC_FSGETXATTR ioctl() is called on inodeh]hRCalled when file_getattr() syscall or FS_IOC_FSGETXATTR ioctl() is called on inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhj4ubh)}(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[hj4ubh)}(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\hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h8int security_inode_need_killpriv (struct dentry *dentry)h]j)}(h7int security_inode_need_killpriv(struct dentry *dentry)h](j )}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhjGhMdubjg)}(hsecurity_inode_need_killprivh]jm)}(hsecurity_inode_need_killprivh]hsecurity_inode_need_killpriv}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMdubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sbc.security_inode_need_killprivasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhMdubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMdhj.hhubj)}(hhh]h)}(h+Check if security_inode_killpriv() requiredh]h+Check if security_inode_killpriv() required}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chMhhjubj)}(hhh]j)}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehj4ubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMehjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMehj1ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjubh)}(haCalled when an inode has been changed to determine if security_inode_killpriv() should be called.h]haCalled when an inode has been changed to determine if security_inode_killpriv() should be called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjubh)}(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.chMihjubh)}(hReturn <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.h]hReturn <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hLint security_inode_killpriv (struct mnt_idmap *idmap, struct dentry *dentry)h]j)}(hKint security_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMtubjg)}(hsecurity_inode_killprivh]jm)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMtubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_killprivasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jXc.security_inode_killprivasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMthjhhubj)}(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.chMthjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhjH'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)}(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.chMxhj-ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjRh]hstruct mnt_idmap *idmap}(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.chMuhjLubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMuhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMuhjIubj)}(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.chMvhjubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjIubeh}(h]h ]h"]h$]h&]uh1jhj-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.chMxhj-ubh)}(h}The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.h](hThe }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhq’s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhj-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.chMzhj-ubh)}(hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h]hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhjH'hhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMubjg)}(hsecurity_inode_getsecurityh]jm)}(hsecurity_inode_getsecurityh]hsecurity_inode_getsecurity}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMubj)}(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&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.security_inode_getsecurityasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_getsecurityasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst char *nameh](j)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj )}(hcharh]hchar}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h void **bufferh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h bool alloch](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(halloch]halloc}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj9hhubj)}(hhh]h)}(h(Get the xattr security label of an inodeh]h(Get the xattr security label of an inode}(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&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhjH'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)}(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 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.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(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.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``void **buffer`` security label buffer h](j)}(h``void **buffer``h]j)}(hj@h]h void **buffer}(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.chMhj:ubj)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubj)}(h``bool alloc`` allocation flag h](j)}(h``bool alloc``h]j)}(hjyh]h bool alloc}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubj)}(hhh]h)}(hallocation flagh]hallocation flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(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)}(hXTRetrieve a copy of the extended attribute representation of the security label associated with **name** for **inode** via **buffer**. Note that **name** is the remainder of the attribute name after the security prefix has been removed. **alloc** is used to specify if the call should return a value via the buffer or just the value length.h](h_Retrieve a copy of the extended attribute representation of the security label associated with }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh via }(hjhhhNhNubj)}(h **buffer**h]hbuffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . Note that }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT is the remainder of the attribute name after the security prefix has been removed. }(hjhhhNhNubj)}(h **alloc**h]halloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh^ is used to specify if the call should return a value via the buffer or just the value length.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubh)}(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.chMhjpubh)}(h"Returns size of buffer on success.h]h"Returns size of buffer on success.}(hjKhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhjH'hhhNhNubh)}(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}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvhhhjhMubjg)}(hsecurity_inode_setsecurityh]jm)}(hsecurity_inode_setsecurityh]hsecurity_inode_setsecurity}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhjhMubj)}(hR(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_setsecurityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hcharh]hchar}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hnameh]hname}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *valueh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_setsecurityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubjm)}(hflagsh]hflags}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'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)jhuh1hhjhMhjohhubj)}(hhh]h)}(h(Set the xattr security label of an inodeh]h(Set the xattr security label of an inode}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hX0**Parameters** ``struct inode *inode`` inode ``const char *name`` xattr name ``const void *value`` security label ``size_t size`` length of security label ``int flags`` flags **Description** Set the security label associated with **name** for **inode** from the extended attribute value **value**. **size** indicates the size of the **value** in bytes. **flags** may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that **name** is the remainder of the attribute name after the security. prefix has been removed. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``const void *value`` security label h](j)}(h``const void *value``h]j)}(hj$h]hconst void *value}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h)``size_t size`` length of security label 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.chMhjWubj)}(hhh]h)}(hlength of security labelh]hlength of security label}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(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.chMhjubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hX=Set the security label associated with **name** for **inode** from the extended attribute value **value**. **size** indicates the size of the **value** in bytes. **flags** may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that **name** is the remainder of the attribute name after the security. prefix has been removed.h](h'Set the security label associated with }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# from the extended attribute value }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**size**h]hsize}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh indicates the size of the }(hjhhhNhNubj)}(h **value**h]hvalue}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in bytes. }(hjhhhNhNubj)}(h **flags**h]hflags}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that }(hjhhhNhNubj)}(h**name**h]hname}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT is the remainder of the attribute name after the security. prefix has been removed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(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.chMhjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_getlsmprop (C function)c.security_inode_getlsmprophNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hKvoid security_inode_getlsmprop (struct inode *inode, struct lsm_prop *prop)h]j)}(hJvoid security_inode_getlsmprop(struct inode *inode, struct lsm_prop *prop)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_getlsmproph]jm)}(hsecurity_inode_getlsmproph]hsecurity_inode_getlsmprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h,(struct inode *inode, struct lsm_prop *prop)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_getlsmpropasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_prop *proph](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j2c.security_inode_getlsmpropasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hproph]hprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hGet an inode's LSM datah]hGet an inode’s LSM data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct inode *inode`` inode ``struct lsm_prop *prop`` lsm specific information to return **Description** Get the lsm specific information associated with the node.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(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 inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hj,h]hstruct inode *inode}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubj)}(hhh]h)}(hinodeh]hinode}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj#ubj)}(h=``struct lsm_prop *prop`` lsm specific information to return h](j)}(h``struct lsm_prop *prop``h]j)}(hjeh]hstruct lsm_prop *prop}(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_ubj)}(hhh]h)}(h"lsm specific information to returnh]h"lsm specific information to return}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:Get the lsm specific information associated with the node.h]h:Get the lsm specific information associated with the node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_kernfs_init_securityh]jm)}(hsecurity_kernfs_init_securityh]hsecurity_kernfs_init_security}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h4(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j)}(hstruct kernfs_node *kn_dirh](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h kernfs_nodeh]h kernfs_node}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_kernfs_init_securityasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkn_dirh]hkn_dir}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct kernfs_node *knh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h kernfs_nodeh]h kernfs_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j\c.security_kernfs_init_securityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hknh]hkn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM hjhhubj)}(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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjH'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)}(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.chM hj1ubj)}(hhh](j)}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j)}(h``struct kernfs_node *kn_dir``h]j)}(hjVh]hstruct kernfs_node *kn_dir}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjPubj)}(hhh]h)}(hparent kernfs nodeh]hparent kernfs node}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM hjMubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hthe kernfs node to initializeh]hthe kernfs node to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(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 hj1ubh)}(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.}(hjhhhNhNubah}(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)}(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 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.chM! hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_file_permission (C function)c.security_file_permissionhNtauh1hhjH'hhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhjDhM* ubjg)}(hsecurity_file_permissionh]jm)}(hsecurity_file_permissionh]hsecurity_file_permission}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhjDhM* ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.security_file_permissionasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hint maskh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhM* ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhM* ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhM* hj+hhubj)}(hhh]h)}(hCheck file permissionsh]hCheck file permissions}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* hj(hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhM* ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhjH'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)}(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.chM. hjGubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjlh]hstruct file *file}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ hjfubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+ hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM+ hjcubj)}(h#``int mask`` requested permissions h](j)}(h ``int mask``h]j)}(hjh]hint mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM, hjubj)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM, hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM, hjcubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(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. hjGubh)}(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.}(hjhhhNhNubah}(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)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9 hjGubh)}(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: hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_file_alloc (C function)c.security_file_allochNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h+int security_file_alloc (struct file *file)h]j)}(h*int security_file_alloc(struct file *file)h](j )}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHhhhjZhMB ubjg)}(hsecurity_file_alloch]jm)}(hsecurity_file_alloch]hsecurity_file_alloc}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHhhhjZhMB ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE josbc.security_file_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjHhhhjZhMB ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjZhMB ubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjZhMB hjAhhubj)}(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.chMB hj hhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjZhMB ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhjH'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}(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.chMF hj(ubj)"}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjMh]hstruct file *file}(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.chMC hjGubj)}(hhh]h)}(hthe fileh]hthe file}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMC hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMC hjDubah}(h]h ]h"]h$]h&]uh1jhj(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.chME 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.}(hjhhhNhNubah}(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.chMG 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMH hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_release (C function)c.security_file_releasehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h.void security_file_release (struct file *file)h]j)}(h-void security_file_release(struct file *file)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMW ubjg)}(hsecurity_file_releaseh]jm)}(hsecurity_file_releaseh]hsecurity_file_release}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMW ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hfileh]hfile}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_releaseasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMW ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMW ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMW hjhhubj)}(hhh]h)}(h-Perform actions before releasing the file refh]h-Perform actions before releasing the file ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMW ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Perform actions before releasing the last reference to a file.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[ hjubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMX hjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMX hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMX hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZ hjubh)}(h>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMY hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_free (C function)c.security_file_freehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h+void security_file_free (struct file *file)h]j)}(h*void security_file_free(struct file *file)h](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjhMb ubjg)}(hsecurity_file_freeh]jm)}(hsecurity_file_freeh]hsecurity_file_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjhMb ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhMb ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMb ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMb hjjhhubj)}(hhh]h)}(hFree a file's LSM blobh]hFree a file’s LSM blob}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hj2 hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMb ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM jjM jjjuh1hhhhjH'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)}(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.chMf hjQ ubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjv h]hstruct file *file}(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.chMc hjp ubj)}(hhh]h)}(hthe fileh]hthe file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMc hj ubah}(h]h ]h"]h$]h&]uh1jhjp ubeh}(h]h ]h"]h$]h&]uh1jhj hMc hjm ubah}(h]h ]h"]h$]h&]uh1jhjQ ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hjQ ubh)}(hGDeallocate and free any security structures stored in file->f_security.h]hGDeallocate and free any security structures stored in file->f_security.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjQ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_file (C function)c.security_mmap_filehNtauh1hhjH'hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM ubjg)}(hsecurity_mmap_fileh]jm)}(hsecurity_mmap_fileh]hsecurity_mmap_file}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM ubj)}(h<(struct file *file, unsigned long prot, unsigned long flags)h](j)}(hstruct file *fileh](j)}(hjh]hstruct}(hj3 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ ubj)}(h h]h }(hj@ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ ubh)}(hhh]jm)}(hfileh]hfile}(hjQ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjN ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjS modnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_mmap_fileasbuh1hhj/ ubj)}(h h]h }(hjq hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ ubjm)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(hunsigned long proth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hproth]hprot}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ ubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hflagsh]hflags}(hj. hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhj hM hj hhubj)}(hhh]h)}(h#Check if mmap'ing a file is allowedh]h%Check if mmap’ing a file is allowed}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjU hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp jjp jjjuh1hhhhjH'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)}(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:283: ./security/security.chM hjt 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 ubj)}(hhh]h)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(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.chM hj ubj)}(hhh]h)}(h protection applied by the kernelh]h protection applied by the kernel}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(h``unsigned long flags`` flags h](j)}(h``unsigned long flags``h]j)}(hj h]hunsigned long 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 ubj)}(hhh]h)}(hflagsh]hflags}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj! ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubeh}(h]h ]h"]h$]h&]uh1jhjt ubh)}(h**Description**h]j)}(hjF h]h Description}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjt 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 }(hj\ hhhNhNubj)}(h**file**h]hfile}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ ubh/ may be NULL, e.g. if mapping anonymous memory.}(hj\ hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjt 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 hjt 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 hjt ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_addr (C function)c.security_mmap_addrhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h+int security_mmap_addr (unsigned long addr)h]j)}(h*int security_mmap_addr(unsigned long addr)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM ubjg)}(hsecurity_mmap_addrh]jm)}(hsecurity_mmap_addrh]hsecurity_mmap_addr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM ubj)}(h(unsigned long addr)h]j)}(hunsigned long addrh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj+ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(haddrh]haddr}(hj9 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhj hM hj hhubj)}(hhh]h)}(h'Check if mmap'ing an address is allowedh]h)Check if mmap’ing an address is allowed}(hjc 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{ jjjuh1hhhhjH'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)}(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``unsigned long addr`` address h](j)}(h``unsigned long addr``h]j)}(hj h]hunsigned 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:283: ./security/security.chM hj ubj)}(hhh]h)}(haddressh]haddress}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj 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)}(h3Check permissions for a mmap operation at **addr**.h](h*Check permissions for a mmap operation at }(hj hhhNhNubj)}(h**addr**h]haddr}(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)}(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.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_mprotect (C function)c.security_file_mprotecthNtauh1hhjH'hhhNhNubh)}(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}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjkhM ubjg)}(hsecurity_file_mprotecth]jm)}(hsecurity_file_mprotecth]hsecurity_file_mprotect}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjkhM ubj)}(hG(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j)}(hstruct vm_area_struct *vmah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_mprotectasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long reqproth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hreqproth]hreqprot}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long proth](j )}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hproth]hprot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjkhM ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhM hjRhhubj)}(hhh]h)}(h/Check if changing memory protections is allowedh]h/Check if changing memory protections 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&]uh1jhjRhhhjkhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chM 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.chM hjubj)}(hhh]h)}(h memory regionh]h memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h;``unsigned long reqprot`` application requested protection h](j)}(h``unsigned long reqprot``h]j)}(hj9h]hunsigned long reqprot}(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.chM hj3ubj)}(hhh]h)}(h application requested protectionh]h application requested protection}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhM hjubj)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hjrh]hunsigned long prot}(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.chM hjlubj)}(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&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hah ](jjeh"]h$]h&]jj)jhuh1hhjYhM hj@hhubj)}(hhh]h)}(hCheck if fcntl() op is allowedh]hCheck if fcntl() op 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@hhhjYhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chM hjubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h#``unsigned int cmd`` fcntl command h](j)}(h``unsigned int cmd``h]j)}(hj'h]hunsigned int cmd}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubj)}(hhh]h)}(h fcntl commandh]h fcntl command}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM hjubj)}(h'``unsigned long arg`` command argument h](j)}(h``unsigned long arg``h]j)}(hj`h]hunsigned long arg}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubj)}(hhh]h)}(hcommand argumenth]hcommand argument}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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 }(hjhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" from being performed on the file }(hjhhhNhNubj)}(h**file**h]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . Note that }(hjhhhNhNubj)}(h**arg**h]harg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hjhhhNhNubj)}(h**arg**h]harg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ represents a user space pointer, it should never be used by the security module.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]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.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_file_set_fowner (C function)c.security_file_set_fownerhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h1void security_file_set_fowner (struct file *file)h]j)}(h0void security_file_set_fowner(struct file *file)h](j )}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhj]hM ubjg)}(hsecurity_file_set_fownerh]jm)}(hsecurity_file_set_fownerh]hsecurity_file_set_fowner}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhj]hM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jrsbc.security_file_set_fownerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj]hM ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj]hM hjDhhubj)}(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.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhjH'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)}(hj1h]h Parameters}(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+ubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjPh]hstruct file *file}(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 hjJubj)}(hhh]h)}(hthe fileh]hthe file}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM hjGubah}(h]h ]h"]h$]h&]uh1jhj+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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+ubh)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(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.chM hj+ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_file_send_sigiotaskh]jm)}(hsecurity_file_send_sigiotaskh]hsecurity_file_send_sigiotask}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]jR )}jE j)sbc.security_file_send_sigiotaskasbuh1hhj?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(htskh]htsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hstruct fown_struct *fownh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h fown_structh]h fown_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j}c.security_file_send_sigiotaskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfownh]hfown}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hint sigh](j )}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubjm)}(hsigh]hsig}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h(Check if sending SIGIO/SIGURG is allowedh]h(Check if sending SIGIO/SIGURG is allowed}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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 task_struct *tsk`` target task h](j)}(h``struct task_struct *tsk``h]j)}(hjh]hstruct task_struct *tsk}(hjhhhNhNubah}(h]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 hjubj)}(hhh]h)}(h target taskh]h target task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h+``struct fown_struct *fown`` signal sender h](j)}(h``struct fown_struct *fown``h]j)}(hjh]hstruct fown_struct *fown}(hjhhhNhNubah}(h]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 hjubj)}(hhh]h)}(h signal senderh]h signal sender}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h2``int sig`` signal to be sent, SIGIO is sent if 0 h](j)}(h ``int sig``h]j)}(hjh]hint sig}(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 hjubj)}(hhh]h)}(h%signal to be sent, SIGIO is sent if 0h]h%signal to be sent, SIGIO is sent if 0}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:283: ./security/security.chM! hjubh)}(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 }(hjohhhNhNubj)}(h**fown**h]hfown}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh( to send SIGIO or SIGURG to the process }(hjohhhNhNubj)}(h**tsk**h]htsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhW. Note that this hook is sometimes called from interrupt. Note that the fown_struct, }(hjohhhNhNubj)}(h**fown**h]hfown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh, 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).}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM& hjubh)}(h#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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_receive (C function)c.security_file_receivehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h-int security_file_receive (struct file *file)h]j)}(h,int security_file_receive(struct file *file)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM0 ubjg)}(hsecurity_file_receiveh]jm)}(hsecurity_file_receiveh]hsecurity_file_receive}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hM0 ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hfileh]hfile}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_receiveasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM0 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hM0 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM0 hjhhubj)}(hhh]h)}(h,Check if receiving a file via IPC is allowedh]h,Check if receiving a file via IPC is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM0 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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.chM4 hjubj)}(hhh]j)}(h*``struct file *file`` file being received 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.chM1 hjubj)}(hhh]h)}(hfile being receivedh]hfile being received}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1 hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chM3 hjubh)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 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.chM5 hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_open (C function)c.security_file_openhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h*int security_file_open (struct file *file)h]j)}(h)int security_file_open(struct file *file)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM> ubjg)}(hsecurity_file_openh]jm)}(hsecurity_file_openh]hsecurity_file_open}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM> ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_openasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM> hjhhubj)}(hhh]h)}(h.Save open() time state for late use by the LSMh]h.Save open() time state for late use by the LSM}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM> ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhjH'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)}(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.chMB hjubh)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]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 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.chMA hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ hjubh)}(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 .}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC 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.chMG 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.chMH hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_truncate (C function)c.security_file_truncatehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h.int security_file_truncate (struct file *file)h]j)}(h-int security_file_truncate(struct file *file)h](j )}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj>hMa ubjg)}(hsecurity_file_truncateh]jm)}(hsecurity_file_truncateh]hsecurity_file_truncate}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMa ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jSsbc.security_file_truncateasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMa ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMa ubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMa hj%hhubj)}(hhh]h)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMa ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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 hj ubj)}(hhh]j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hj1h]hstruct file *file}(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.chMb hj+ubj)}(hhh]h)}(hfileh]hfile}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMb hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMb hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd 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 }(hjhhhNhNubj)}(h**path_truncate**h]h path_truncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh hook.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc 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.chMg 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.chMh hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_task_alloc (C function)c.security_task_allochNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMp ubjg)}(hsecurity_task_alloch]jm)}(hsecurity_task_alloch]hsecurity_task_alloc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMp 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# ubj)}(h h]h }(hj4 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj# ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjE hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjG modnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_task_allocasbuh1hhj# ubj)}(h h]h }(hje hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj# ubj)}(hjh]h*}(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj# ubjm)}(htaskh]htask}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj# ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hu64 clone_flagsh](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]ja c.security_task_allocasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(h clone_flagsh]h clone_flags}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMp ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMp ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMp hjhhubj)}(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.chMp hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMp ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj !jj !jjjuh1hhhhjH'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.chMt hj!ubj)}(hhh](j)}(h&``struct task_struct *task`` the task h](j)}(h``struct task_struct *task``h]j)}(hj3!h]hstruct task_struct *task}(hj5!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hj-!ubj)}(hhh]h)}(hthe taskh]hthe task}(hjL!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH!hMq hjI!ubah}(h]h ]h"]h$]h&]uh1jhj-!ubeh}(h]h ]h"]h$]h&]uh1jhjH!hMq hj*!ubj)}(h:``u64 clone_flags`` flags indicating what is being shared h](j)}(h``u64 clone_flags``h]j)}(hjl!h]hu64 clone_flags}(hjn!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMr hjf!ubj)}(hhh]h)}(h%flags indicating what is being sharedh]h%flags indicating what is being shared}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMr hj!ubah}(h]h ]h"]h$]h&]uh1jhjf!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMr hj*!ubeh}(h]h ]h"]h$]h&]uh1jhj!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 hj!ubh)}(h,Handle allocation of task-related resources.h]h,Handle allocation of task-related resources.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs 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.chMu 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.chMv hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_task_free (C function)c.security_task_freehNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj""hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj!"hM ubjg)}(hsecurity_task_freeh]jm)}(hsecurity_task_freeh]hsecurity_task_free}(hj4"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj!"hM ubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hjh]hstruct}(hjP"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL"ubj)}(h h]h }(hj]"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL"ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjn"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjp"modnameN classnameNjI jL )}jO ]jR )}jE j6"sbc.security_task_freeasbuh1hhjL"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL"ubjm)}(htaskh]htask}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjH"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)jhuh1hhj!"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"jjjuh1hhhhjH'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#ubj)}(hhh]h)}(htaskh]htask}(hj-#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)#hM hj*#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj)#hM hj #ubah}(h]h ]h"]h$]h&]uh1jhj"ubh)}(h**Description**h]j)}(hjO#h]h Description}(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 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.}(hje#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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hsecurity field in a set of credentials.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 *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&ubj)}(hhh]h)}(h credentialsh]h credentials}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM hj&ubah}(h]h ]h"]h$]h&]uh1jhj&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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_prepare_creds (C function)c.security_prepare_credshNtauh1hhjH'hhhNhNubh)}(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}(hjP'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjL'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj_'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL'hhhj^'hM ubjg)}(hsecurity_prepare_credsh]jm)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hjq'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjL'hhhj^'hM ubj)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hcredh]hcred}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE js'sbc.security_prepare_credsasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hnewh]hnew}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj (hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hcredh]hcred}(hj8(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:(modnameN classnameNjI jL )}jO ]j'c.security_prepare_credsasbuh1hhj'ubj)}(h h]h }(hjV(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjd(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(holdh]hold}(hjq(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]j'c.security_prepare_credsasbuh1hhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubjm)}(hgfph]hgfp}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjL'hhhj^'hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjH'hhhj^'hM ubah}(h]jC'ah ](jjeh"]h$]h&]jj)jhuh1hhj^'hM hjE'hhubj)}(hhh]h)}(h Prepare a new set of credentialsh]h Prepare a new 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(hhubah}(h]h ]h"]h$]h&]uh1jhjE'hhhj^'hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhjH'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)}(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`` new credentials h](j)}(h``struct cred *new``h]j)}(hj$)h]hstruct cred *new}(hj&)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj")ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubj)}(hhh]h)}(hnew credentialsh]hnew credentials}(hj=)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9)hM hj:)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj9)hM hj)ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hj])h]hconst struct cred *old}(hj_)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjW)ubj)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hjv)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr)hM hjs)ubah}(h]h ]h"]h$]h&]uh1jhjW)ubeh}(h]h ]h"]h$]h&]uh1jhjr)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)ubj)}(hhh]h)}(h gfp flagsh]h gfp flags}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM hj)ubeh}(h]h ]h"]h$]h&]uh1jhj(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)}(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.}(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)}(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.chM hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_transfer_creds (C function)c.security_transfer_credshNtauh1hhjH'hhhNhNubh)}(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}(hj=*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9*hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjL*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9*hhhjK*hM ubjg)}(hsecurity_transfer_credsh]jm)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hj^*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZ*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9*hhhjK*hM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hjz*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv*ubh)}(hhh]jm)}(hcredh]hcred}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]jR )}jE j`*sbc.security_transfer_credsasbuh1hhjv*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv*ubjm)}(hnewh]hnew}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjv*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjr*ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(hcredh]hcred}(hj%+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'+modnameN classnameNjI jL )}jO ]j*c.security_transfer_credsasbuh1hhj*ubj)}(h h]h }(hjC+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjQ+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(holdh]hold}(hj^+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjr*ubeh}(h]h ]h"]h$]h&]jjuh1jhj9*hhhjK*hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5*hhhjK*hM ubah}(h]j0*ah ](jjeh"]h$]h&]jj)jhuh1hhjK*hM hj2*hhubj)}(hhh]h)}(hTransfer credsh]hTransfer creds}(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&]uh1jhj2*hhhjK*hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhjH'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+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`` target credentials h](j)}(h``struct cred *new``h]j)}(hj+h]hstruct cred *new}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+ubj)}(hhh]h)}(htarget credentialsh]htarget credentials}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hj+ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hj,h]hconst struct cred *old}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+ubj)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM hj,ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj,hM hj+ubeh}(h]h ]h"]h$]h&]uh1jhj+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/Transfer data from original creds to new creds.h]h/Transfer data from original creds to new creds.}(hjS,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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_kernel_act_as (C function)c.security_kernel_act_ashNtauh1hhjH'hhhNhNubh)}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~,hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~,hhhj,hM ubjg)}(hsecurity_kernel_act_ash]jm)}(hsecurity_kernel_act_ash]hsecurity_kernel_act_as}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~,hhhj,hM ubj)}(h(struct cred *new, u32 secid)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(hcredh]hcred}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE j,sbc.security_kernel_act_asasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hj -hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hnewh]hnew}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(h u32 secidh](h)}(hhh]jm)}(hu32h]hu32}(hj4-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6-modnameN classnameNjI jL )}jO ]j,c.security_kernel_act_asasbuh1hhj--ubj)}(h h]h }(hjR-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj--ubjm)}(hsecidh]hsecid}(hj`-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj--ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj~,hhhj,hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjz,hhhj,hM ubah}(h]ju,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hM hjw,hhubj)}(hhh]h)}(h*Set the kernel credentials to act as secidh]h*Set the kernel credentials to act as secid}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj-hhubah}(h]h ]h"]h$]h&]uh1jhjw,hhhj,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjH'hNhNubj)}(hX**Parameters** ``struct cred *new`` credentials ``u32 secid`` secid **Description** Set the credentials for a kernel service to act as (subjective context). The current task must be the one that nominated **secid**. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj-ubj)}(hhh](j)}(h!``struct cred *new`` credentials h](j)}(h``struct cred *new``h]j)}(hj-h]hstruct cred *new}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj-ubj)}(hhh]h)}(h credentialsh]h credentials}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM hj-ubj)}(h``u32 secid`` secid 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.chM hj-ubj)}(hhh]h)}(hsecidh]hsecid}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM hj.ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hM hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]j)}(hj?.h]h Description}(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 hj-ubh)}(hSet the credentials for a kernel service to act as (subjective context). The current task must be the one that nominated **secid**.h](hySet the credentials for a kernel service to act as (subjective context). The current task must be the one that nominated }(hjU.hhhNhNubj)}(h **secid**h]hsecid}(hj].hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU.ubh.}(hjU.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)}(hjx.h]hReturn}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hKint security_kernel_create_files_as (struct cred *new, struct inode *inode)h]j)}(hJint security_kernel_create_files_as(struct cred *new, struct inode *inode)h](j )}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj.hM ubjg)}(hsecurity_kernel_create_files_ash]jm)}(hsecurity_kernel_create_files_ash]hsecurity_kernel_create_files_as}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hM ubj)}(h'(struct cred *new, struct inode *inode)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubh)}(hhh]jm)}(hcredh]hcred}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jR )}jE j.sb!c.security_kernel_create_files_asasbuh1hhj.ubj)}(h h]h }(hj8/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hjF/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(hnewh]hnew}(hjS/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjl/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh/ubj)}(h h]h }(hjy/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh/ubh)}(hhh]jm)}(hinodeh]hinode}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]j4/!c.security_kernel_create_files_asasbuh1hhjh/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh/ubjm)}(hinodeh]hinode}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh/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)jhuh1hhj.hM hj.hhubj)}(hhh]h)}(h(Set file creation context using an inodeh]h(Set file creation context using an inode}(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&]jjjj0jj0jjjuh1hhhhjH'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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 0ubj)}(hhh](j)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hj.0h]hstruct cred *new}(hj00hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(0ubj)}(hhh]h)}(htarget credentialsh]htarget credentials}(hjG0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjC0hM hjD0ubah}(h]h ]h"]h$]h&]uh1jhj(0ubeh}(h]h ]h"]h$]h&]uh1jhjC0hM hj%0ubj)}(h(``struct inode *inode`` reference inode h](j)}(h``struct inode *inode``h]j)}(hjg0h]hstruct inode *inode}(hji0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hja0ubj)}(hhh]h)}(hreference inodeh]hreference inode}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|0hM hj}0ubah}(h]h ]h"]h$]h&]uh1jhja0ubeh}(h]h ]h"]h$]h&]uh1jhj|0hM hj%0ubeh}(h]h ]h"]h$]h&]uh1jhj 0ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 0ubh)}(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 }(hj0hhhNhNubj)}(h **inode**h]hinode}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 0ubh)}(h **Return**h]j)}(hj0h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 0ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h4int security_kernel_module_request (char *kmod_name)h]j)}(h3int security_kernel_module_request(char *kmod_name)h](j )}(hinth]hint}(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj/1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj.1hM ubjg)}(hsecurity_kernel_module_requesth]jm)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hjA1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj.1hM ubj)}(h(char *kmod_name)h]j)}(hchar *kmod_nameh](j )}(hcharh]hchar}(hj]1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjY1ubj)}(h h]h }(hjk1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjY1ubj)}(hjh]h*}(hjy1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY1ubjm)}(h kmod_nameh]h kmod_name}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjY1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU1ubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhj.1hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj.1hM ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj.1hM hj1hhubj)}(hhh]h)}(h$Check if loading a module is allowedh]h$Check if loading a module is allowed}(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&]uh1jhj1hhhj.1hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhjH'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)}(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 ``char *kmod_name`` module name h](j)}(h``char *kmod_name``h]j)}(hj1h]hchar *kmod_name}(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! hj1ubj)}(hhh]h)}(h module nameh]h module name}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM! hj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj2hM! hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hj,2h]h Description}(hj.2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM# hj1ubh)}(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.}(hjB2hhhNhNubah}(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)}(hjS2h]hReturn}(hjU2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hj1ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hji2hhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhjH'hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMx ubjg)}(hsecurity_task_fix_setuidh]jm)}(hsecurity_task_fix_setuidh]hsecurity_task_fix_setuid}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hMx ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hcredh]hcred}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE j2sbc.security_task_fix_setuidasbuh1hhj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj!3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hnewh]hnew}(hj.3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjG3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC3ubj)}(h h]h }(hjT3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC3ubj)}(hjh]hstruct}(hjb3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC3ubj)}(h h]h }(hjo3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC3ubh)}(hhh]jm)}(hcredh]hcred}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]j3c.security_task_fix_setuidasbuh1hhjC3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC3ubjm)}(holdh]hold}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjC3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(h int flagsh](j )}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hflagsh]hflags}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hMx ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hMx ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMx hj2hhubj)}(hhh]h)}(h&Update LSM with new user id attributesh]h&Update LSM with new user id attributes}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hj4hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMx ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj04jj04jjjuh1hhhhjH'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:4h]h Parameters}(hj<4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj84ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hj44ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjY4h]hstruct cred *new}(hj[4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMy hjS4ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjr4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn4hMy hjo4ubah}(h]h ]h"]h$]h&]uh1jhjS4ubeh}(h]h ]h"]h$]h&]uh1jhjn4hMy hjP4ubj)}(h6``const struct cred *old`` credentials being replaced 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.chMz hj4ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMz hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMz hjP4ubj)}(h&``int flags`` LSM_SETID_* flag values h](j)}(h ``int flags``h]j)}(hj4h]h int flags}(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{ hj4ubj)}(hhh]h)}(hLSM_SETID_* flag valuesh]hLSM_SETID_* flag values}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM{ hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM{ hjP4ubeh}(h]h ]h"]h$]h&]uh1jhj44ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(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.chM} hj44ubh)}(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 }(hj5hhhNhNubj)}(h **flags**h]hflags}(hj$5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhN parameter indicates which of the set*uid system calls invoked this hook. If }(hj5hhhNhNubj)}(h**new**h]hnew}(hj65hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj5hhhNhNubj)}(h**current->cred**h]h current->cred}(hjH5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hj44ubh)}(h **Return**h]j)}(hjc5h]hReturn}(hje5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj44ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjy5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj44ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhjH'hhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hM ubjg)}(hsecurity_task_fix_setgidh]jm)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(hcredh]hcred}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE j5sbc.security_task_fix_setgidasbuh1hhj5ubj)}(h h]h }(hj#6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj16hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hnewh]hnew}(hj>6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjW6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6ubj)}(h h]h }(hjd6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS6ubj)}(hjh]hstruct}(hjr6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS6ubh)}(hhh]jm)}(hcredh]hcred}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]j6c.security_task_fix_setgidasbuh1hhjS6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS6ubjm)}(holdh]hold}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(h int flagsh](j )}(hinth]hint}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hflagsh]hflags}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hM ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hM hj5hhubj)}(hhh]h)}(h'Update LSM with new group id attributesh]h'Update LSM with new group id attributes}(hj(7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%7hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@7jj@7jjjuh1hhhhjH'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)}(hjJ7h]h Parameters}(hjL7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjD7ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hji7h]hstruct cred *new}(hjk7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjc7ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~7hM hj7ubah}(h]h ]h"]h$]h&]uh1jhjc7ubeh}(h]h ]h"]h$]h&]uh1jhj~7hM hj`7ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj7h]hconst struct cred *old}(hj7hhhNhNubah}(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.chM hj7ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hM hj`7ubj)}(h%``int flags`` LSM_SETID_* flag value h](j)}(h ``int flags``h]j)}(hj7h]h int flags}(hj7hhhNhNubah}(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.chM hj7ubj)}(hhh]h)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hM hj`7ubeh}(h]h ]h"]h$]h&]uh1jhjD7ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjD7ubh)}(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,8hhhNhNubj)}(h **flags**h]hflags}(hj48hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,8ubhK parameter indicates which of the set*gid system calls invoked this hook. }(hj,8hhhNhNubj)}(h**new**h]hnew}(hjF8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,8ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj,8hhhNhNubj)}(h**current->cred**h]h current->cred}(hjX8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,8ubh.}(hj,8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjD7ubh)}(h **Return**h]j)}(hjs8h]hReturn}(hju8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjD7ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjD7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhjH'hhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhj8hM ubjg)}(hsecurity_task_fix_setgroupsh]jm)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj8hM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hcredh]hcred}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE j8sbc.security_task_fix_setgroupsasbuh1hhj8ubj)}(h h]h }(hj39hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjA9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hnewh]hnew}(hjN9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjg9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc9ubj)}(h h]h }(hjt9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc9ubj)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc9ubh)}(hhh]jm)}(hcredh]hcred}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]j/9c.security_task_fix_setgroupsasbuh1hhjc9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc9ubjm)}(holdh]hold}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hM ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hM hj8hhubj)}(hhh]h)}(h(Update LSM with new supplementary groupsh]h(Update LSM with new supplementary groups}(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&]uh1jhj8hhhj8hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhjH'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)}(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)}(hjD:h]hstruct cred *new}(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>:ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hj]:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY:hM hjZ:ubah}(h]h ]h"]h$]h&]uh1jhj>:ubeh}(h]h ]h"]h$]h&]uh1jhjY:hM hj;:ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj}:h]hconst struct cred *old}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjw:ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jhjw:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM hj;:ubeh}(h]h ]h"]h$]h&]uh1jhj: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)}(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. }(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)h]j)}(hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hjh]hp}(hj*>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=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)jhuh1hhj=hM hj=hhubj)}(hhh]h)}(h$Check if getting the pgid is allowedh]h$Check if getting the pgid is allowed}(hjS>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjP>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjk>jjk>jjjuh1hhhhjH'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)}(hju>h]h Parameters}(hjw>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjo>ubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj>h]hstruct task_struct *p}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj>ubj)}(hhh]h)}(htaskh]htask}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM hj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hM hj>ubah}(h]h ]h"]h$]h&]uh1jhjo>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 hjo>ubh)}(hRCheck permission before getting the process group identifier of the process **p**.h](hLCheck permission before getting the process group identifier of the process }(hj>hhhNhNubj)}(h**p**h]hp}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjo>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 hjo>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 hjo>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_task_getsid (C function)c.security_task_getsidhNtauh1hhjH'hhhNhNubh)}(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}(hjM?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj\?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI?hhhj[?hM ubjg)}(hsecurity_task_getsidh]jm)}(hsecurity_task_getsidh]hsecurity_task_getsid}(hjn?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjI?hhhj[?hM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]jR )}jE jp?sbc.security_task_getsidasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hjh]hp}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubah}(h]h ]h"]h$]h&]jjuh1jhjI?hhhj[?hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjE?hhhj[?hM ubah}(h]j@?ah ](jjeh"]h$]h&]jj)jhuh1hhj[?hM hjB?hhubj)}(hhh]h)}(h*Check if getting the session id is allowedh]h*Check if getting the session id is allowed}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj @hhubah}(h]h ]h"]h$]h&]uh1jhjB?hhhj[?hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$@jj$@jjjuh1hhhhjH'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)}(hj.@h]h Parameters}(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.chM hj(@ubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjM@h]hstruct task_struct *p}(hjO@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjG@ubj)}(hhh]h)}(htaskh]htask}(hjf@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb@hM hjc@ubah}(h]h ]h"]h$]h&]uh1jhjG@ubeh}(h]h ]h"]h$]h&]uh1jhjb@hM hjD@ubah}(h]h ]h"]h$]h&]uh1jhj(@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)}(hLCheck permission before getting the session identifier of the process **p**.h](hFCheck permission before getting the session identifier of the process }(hj@hhhNhNubj)}(h**p**h]hp}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setnice (C function)c.security_task_setnicehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h;int security_task_setnice (struct task_struct *p, int nice)h]j)}(h:int security_task_setnice(struct task_struct *p, int nice)h](j )}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjAhM ubjg)}(hsecurity_task_setniceh]jm)}(hsecurity_task_setniceh]hsecurity_task_setnice}(hj'AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#Aubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjAhM ubj)}(h!(struct task_struct *p, int nice)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjCAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Aubj)}(h h]h }(hjPAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?Aubh)}(hhh]jm)}(h task_structh]h task_struct}(hjaAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^Aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcAmodnameN classnameNjI jL )}jO ]jR )}jE j)Asbc.security_task_setniceasbuh1hhj?Aubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?Aubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Aubjm)}(hjh]hp}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;Aubj)}(hint niceh](j )}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hniceh]hnice}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;Aubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhjAhM ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhjAhM hj@hhubj)}(hhh]h)}(h/Check if setting a task's nice value is allowedh]h1Check if setting a task’s nice value is allowed}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjAhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhjH'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)}(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 task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj;Bh]hstruct task_struct *p}(hj=BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj5Bubj)}(hhh]h)}(h target taskh]h target task}(hjTBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPBhM hjQBubah}(h]h ]h"]h$]h&]uh1jhj5Bubeh}(h]h ]h"]h$]h&]uh1jhjPBhM hj2Bubj)}(h``int nice`` nice value h](j)}(h ``int nice``h]j)}(hjtBh]hint nice}(hjvBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjnBubj)}(hhh]h)}(h nice valueh]h nice value}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1jhjnBubeh}(h]h ]h"]h$]h&]uh1jhjBhM hj2Bubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjBubh)}(hDCheck permission before setting the nice value of **p** to **nice**.h](h2Check permission before setting the nice value of }(hjBhhhNhNubj)}(h**p**h]hp}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh to }(hjBhhhNhNubj)}(h**nice**h]hnice}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh.}(hjBhhhNhNubeh}(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)}(hjBh]hReturn}(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 hjBubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setioprio (C function)c.security_task_setiopriohNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h?int security_task_setioprio (struct task_struct *p, int ioprio)h]j)}(h>int security_task_setioprio(struct task_struct *p, int ioprio)h](j )}(hinth]hint}(hj?ChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;ChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjNChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ChhhjMChM ubjg)}(hsecurity_task_setioprioh]jm)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hj`ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\Cubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;ChhhjMChM ubj)}(h#(struct task_struct *p, int ioprio)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj|ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxCubh)}(hhh]jm)}(h task_structh]h task_struct}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE jbCsbc.security_task_setioprioasbuh1hhjxCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxCubjm)}(hjh]hp}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtCubj)}(h int ioprioh](j )}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hioprioh]hioprio}(hj DhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtCubeh}(h]h ]h"]h$]h&]jjuh1jhj;ChhhjMChM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7ChhhjMChM ubah}(h]j2Cah ](jjeh"]h$]h&]jj)jhuh1hhjMChM hj4Chhubj)}(hhh]h)}(h+Check if setting a task's ioprio is allowedh]h-Check if setting a task’s ioprio is allowed}(hj3DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj0Dhhubah}(h]h ]h"]h$]h&]uh1jhj4ChhhjMChM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKDjjKDjjjuh1hhhhjH'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)}(hjUDh]h Parameters}(hjWDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjODubj)}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjtDh]hstruct task_struct *p}(hjvDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjnDubj)}(hhh]h)}(h target taskh]h target task}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM hjDubah}(h]h ]h"]h$]h&]uh1jhjnDubeh}(h]h ]h"]h$]h&]uh1jhjDhM hjkDubj)}(h``int ioprio`` ioprio value h](j)}(h``int ioprio``h]j)}(hjDh]h int ioprio}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjDubj)}(hhh]h)}(h ioprio valueh]h ioprio value}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM hjkDubeh}(h]h ]h"]h$]h&]uh1jhjODubh)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjODubh)}(hHCheck permission before setting the ioprio value of **p** to **ioprio**.h](h4Check permission before setting the ioprio value of }(hjDhhhNhNubj)}(h**p**h]hp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh to }(hjDhhhNhNubj)}(h **ioprio**h]hioprio}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjODubh)}(h **Return**h]j)}(hj3Eh]hReturn}(hj5EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Eubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjODubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjIEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjODubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_getioprio (C function)c.security_task_getiopriohNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h3int security_task_getioprio (struct task_struct *p)h]j)}(h2int security_task_getioprio(struct task_struct *p)h](j )}(hinth]hint}(hjxEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtEhhhjEhM ubjg)}(hsecurity_task_getioprioh]jm)}(hsecurity_task_getioprioh]hsecurity_task_getioprio}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjtEhhhjEhM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(hhh]jm)}(h task_structh]h task_struct}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE jEsbc.security_task_getioprioasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hjh]hp}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubah}(h]h ]h"]h$]h&]jjuh1jhjtEhhhjEhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjpEhhhjEhM ubah}(h]jkEah ](jjeh"]h$]h&]jj)jhuh1hhjEhM hjmEhhubj)}(hhh]h)}(h+Check if getting a task's ioprio is allowedh]h-Check if getting a task’s ioprio is allowed}(hj7FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj4Fhhubah}(h]h ]h"]h$]h&]uh1jhjmEhhhjEhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOFjjOFjjjuh1hhhhjH'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)}(hjYFh]h Parameters}(hj[FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjSFubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjxFh]hstruct task_struct *p}(hjzFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjrFubj)}(hhh]h)}(htaskh]htask}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1jhjrFubeh}(h]h ]h"]h$]h&]uh1jhjFhM hjoFubah}(h]h ]h"]h$]h&]uh1jhjSFubh)}(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 hjSFubh)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(hjFhhhNhNubj)}(h**p**h]hp}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjSFubh)}(h **Return**h]j)}(hjFh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjSFubh)}(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 hjSFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_prlimit (C function)c.security_task_prlimithNtauh1hhjH'hhhNhNubh)}(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}(hj1GhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-GhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! ubj)}(h h]h }(hj@GhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-Ghhhj?GhM! ubjg)}(hsecurity_task_prlimith]jm)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hjRGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-Ghhhj?GhM! ubj)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hjnGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjGubj)}(h h]h }(hj{GhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjGubj)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjGubh)}(hhh]jm)}(hcredh]hcred}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE jTGsbc.security_task_prlimitasbuh1hhjjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjGubjm)}(hcredh]hcred}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfGubj)}(hconst struct cred *tcredh](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hj#HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hcredh]hcred}(hj4HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1Hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6HmodnameN classnameNjI jL )}jO ]jGc.security_task_prlimitasbuh1hhjGubj)}(h h]h }(hjRHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hj`HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(htcredh]htcred}(hjmHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfGubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubjm)}(hflagsh]hflags}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfGubeh}(h]h ]h"]h$]h&]jjuh1jhj-Ghhhj?GhM! ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)Ghhhj?GhM! ubah}(h]j$Gah ](jjeh"]h$]h&]jj)jhuh1hhj?GhM! hj&Ghhubj)}(hhh]h)}(h0Check if get/setting resources limits is allowedh]h0Check if get/setting resources limits is allowed}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! hjHhhubah}(h]h ]h"]h$]h&]uh1jhj&Ghhhj?GhM! ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhjH'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)}(hj Ih]h Parameters}(hj IhhhNhNubah}(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)}(h5``const struct cred *cred`` current task credentials h](j)}(h``const struct cred *cred``h]j)}(hj)Ih]hconst struct cred *cred}(hj+IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hj#Iubj)}(hhh]h)}(hcurrent task credentialsh]hcurrent task credentials}(hjBIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>IhM" hj?Iubah}(h]h ]h"]h$]h&]uh1jhj#Iubeh}(h]h ]h"]h$]h&]uh1jhj>IhM" hj Iubj)}(h5``const struct cred *tcred`` target task credentials h](j)}(h``const struct cred *tcred``h]j)}(hjbIh]hconst struct cred *tcred}(hjdIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM# hj\Iubj)}(hhh]h)}(htarget task credentialsh]htarget task credentials}(hj{IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwIhM# hjxIubah}(h]h ]h"]h$]h&]uh1jhj\Iubeh}(h]h ]h"]h$]h&]uh1jhjwIhM# hj Iubj)}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both h](j)}(h``unsigned int flags``h]j)}(hjIh]hunsigned int flags}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$ hjIubj)}(hhh]h)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM$ hjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhM$ hj Iubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM& hjIubh)}(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.}(hjIhhhNhNubah}(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)}(hjIh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM( 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhjH'hhhNhNubh)}(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}(hjBJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>JhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 ubj)}(h h]h }(hjQJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>JhhhjPJhM2 ubjg)}(hsecurity_task_setrlimith]jm)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hjcJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_Jubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>JhhhjPJhM2 ubj)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Jubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{Jubh)}(hhh]jm)}(h task_structh]h task_struct}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jR )}jE jeJsbc.security_task_setrlimitasbuh1hhj{Jubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{Jubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Jubjm)}(hjh]hp}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwJubj)}(hunsigned int resourceh](j )}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj )}(hinth]hint}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hresourceh]hresource}(hj(KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwJubj)}(hstruct rlimit *new_rlimh](j)}(hjh]hstruct}(hjAKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Kubj)}(h h]h }(hjNKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Kubh)}(hhh]jm)}(hrlimith]hrlimit}(hj_KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\Kubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjaKmodnameN classnameNjI jL )}jO ]jJc.security_task_setrlimitasbuh1hhj=Kubj)}(h h]h }(hj}KhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=Kubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Kubjm)}(hnew_rlimh]hnew_rlim}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwJubeh}(h]h ]h"]h$]h&]jjuh1jhj>JhhhjPJhM2 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:JhhhjPJhM2 ubah}(h]j5Jah ](jjeh"]h$]h&]jj)jhuh1hhjPJhM2 hj7Jhhubj)}(hhh]h)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 hjKhhubah}(h]h ]h"]h$]h&]uh1jhj7JhhhjPJhM2 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjH'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)}(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.chM6 hjKubj)}(hhh](j)}(h5``struct task_struct *p`` target task's group leader h](j)}(h``struct task_struct *p``h]j)}(hjLh]hstruct task_struct *p}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3 hjKubj)}(hhh]h)}(htarget task's group leaderh]htarget task’s group leader}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM3 hjLubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjLhM3 hjKubj)}(h<``unsigned int resource`` resource whose limit is being set h](j)}(h``unsigned int resource``h]j)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 hj6Lubj)}(hhh]h)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hjULhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQLhM4 hjRLubah}(h]h ]h"]h$]h&]uh1jhj6Lubeh}(h]h ]h"]h$]h&]uh1jhjQLhM4 hjKubj)}(h/``struct rlimit *new_rlim`` new resource limit h](j)}(h``struct rlimit *new_rlim``h]j)}(hjuLh]hstruct rlimit *new_rlim}(hjwLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 hjoLubj)}(hhh]h)}(hnew resource limith]hnew resource limit}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM5 hjLubah}(h]h ]h"]h$]h&]uh1jhjoLubeh}(h]h ]h"]h$]h&]uh1jhjLhM5 hjKubeh}(h]h ]h"]h$]h&]uh1jhjKubh)}(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.chM7 hjKubh)}(hCheck permission before setting the resource limits of process **p** for **resource** to **new_rlim**. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).h](h?Check permission before setting the resource limits of process }(hjLhhhNhNubj)}(h**p**h]hp}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh for }(hjLhhhNhNubj)}(h **resource**h]hresource}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh to }(hjLhhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hjKubh)}(h **Return**h]j)}(hj Mh]hReturn}(hjMhhhNhNubah}(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.chM: hjKubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj#MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM; hjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h6int security_task_setscheduler (struct task_struct *p)h]j)}(h5int security_task_setscheduler(struct task_struct *p)h](j )}(hinth]hint}(hjRMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD ubj)}(h h]h }(hjaMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNMhhhj`MhMD ubjg)}(hsecurity_task_setschedulerh]jm)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hjsMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNMhhhj`MhMD ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(hhh]jm)}(h task_structh]h task_struct}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE juMsbc.security_task_setschedulerasbuh1hhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hjh]hp}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjNMhhhj`MhMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJMhhhj`MhMD ubah}(h]jEMah ](jjeh"]h$]h&]jj)jhuh1hhj`MhMD hjGMhhubj)}(hhh]h)}(h.Check if setting sched policy/param is allowedh]h.Check if setting sched policy/param is allowed}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjNhhubah}(h]h ]h"]h$]h&]uh1jhjGMhhhj`MhMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)Njj)Njjjuh1hhhhjH'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)}(hj3Nh]h Parameters}(hj5NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMH hj-Nubj)}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjRNh]hstruct task_struct *p}(hjTNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chME hjLNubj)}(hhh]h)}(h target taskh]h target task}(hjkNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgNhME hjhNubah}(h]h ]h"]h$]h&]uh1jhjLNubeh}(h]h ]h"]h$]h&]uh1jhjgNhME hjINubah}(h]h ]h"]h$]h&]uh1jhj-Nubh)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMG hj-Nubh)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of process }(hjNhhhNhNubj)}(h**p**h]hp}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMF hj-Nubh)}(h **Return**h]j)}(hjNh]hReturn}(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.chMI hj-Nubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJ hj-Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h6int security_task_getscheduler (struct task_struct *p)h]j)}(h5int security_task_getscheduler(struct task_struct *p)h](j )}(hinth]hint}(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjOhMR ubjg)}(hsecurity_task_getschedulerh]jm)}(hsecurity_task_getschedulerh]hsecurity_task_getscheduler}(hj,OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(Oubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjOhMR ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjHOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDOubj)}(h h]h }(hjUOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDOubh)}(hhh]jm)}(h task_structh]h task_struct}(hjfOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhOmodnameN classnameNjI jL )}jO ]jR )}jE j.Osbc.security_task_getschedulerasbuh1hhjDOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDOubjm)}(hjh]hp}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@Oubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjOhMR ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjOhMR ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjOhMR hjOhhubj)}(hhh]h)}(h+Check if getting scheduling info is allowedh]h+Check if getting scheduling info is allowed}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjOhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjOhMR ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1hhhhjH'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)}(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.chMV hjOubj)}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj Ph]hstruct task_struct *p}(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:283: ./security/security.chMS hjPubj)}(hhh]h)}(h target taskh]h target task}(hj$PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj PhMS hj!Pubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhj PhMS hjPubah}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjFPh]h Description}(hjHPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjOubh)}(hKCheck permission before obtaining scheduling information for process **p**.h](hECheck permission before obtaining scheduling information for process }(hj\PhhhNhNubj)}(h**p**h]hp}(hjdPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Pubh.}(hj\PhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjOubh)}(h **Return**h]j)}(hjPh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Pubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMV 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.chMW hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_movememory (C function)c.security_task_movememoryhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h4int security_task_movememory (struct task_struct *p)h]j)}(h3int security_task_movememory(struct task_struct *p)h](j )}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjPhM_ ubjg)}(hsecurity_task_movememoryh]jm)}(hsecurity_task_movememoryh]hsecurity_task_movememory}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhM_ ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(h task_structh]h task_struct}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!QmodnameN classnameNjI jL )}jO ]jR )}jE jPsbc.security_task_movememoryasbuh1hhjPubj)}(h h]h }(hj?QhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjMQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hjh]hp}(hjZQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhM_ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhM_ ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhM_ hjPhhubj)}(hhh]h)}(h!Check if moving memory is allowedh]h!Check if moving memory 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&]uh1jhjPhhhjPhM_ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhjH'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)}(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.chMc hjQubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjQh]hstruct task_struct *p}(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` hjQubj)}(hhh]h)}(htaskh]htask}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM` hjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM` hjQubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjQh]h Description}(hjRhhhNhNubah}(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.chMb hjQubh)}(h=Check permission before moving memory owned by process **p**.h](h7Check permission before moving memory owned by process }(hjRhhhNhNubj)}(h**p**h]hp}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjQubh)}(h **Return**h]j)}(hj8Rh]hReturn}(hj:RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Rubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hjQubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjNRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_task_kill (C function)c.security_task_killhNtauh1hhjH'hhhNhNubh)}(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}RhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyRhhhjRhMl ubjg)}(hsecurity_task_killh]jm)}(hsecurity_task_killh]hsecurity_task_kill}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyRhhhjRhMl 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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h task_structh]h task_struct}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE jRsbc.security_task_killasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hjh]hp}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hstruct kernel_siginfo *infoh](j)}(hjh]hstruct}(hj+ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Subj)}(h h]h }(hj8ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Subh)}(hhh]jm)}(hkernel_siginfoh]hkernel_siginfo}(hjIShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKSmodnameN classnameNjI jL )}jO ]jRc.security_task_killasbuh1hhj'Subj)}(h h]h }(hjgShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Subj)}(hjh]h*}(hjuShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Subjm)}(hinfoh]hinfo}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hint sigh](j )}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hsigh]hsig}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(hcredh]hcred}(hj ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj TmodnameN classnameNjI jL )}jO ]jRc.security_task_killasbuh1hhjSubj)}(h h]h }(hj'ThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hj5ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hcredh]hcred}(hjBThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjyRhhhjRhMl ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuRhhhjRhMl ubah}(h]jpRah ](jjeh"]h$]h&]jj)jhuh1hhjRhMl hjrRhhubj)}(hhh]h)}(h$Check if sending a signal is allowedh]h$Check if sending a signal is allowed}(hjlThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl hjiThhubah}(h]h ]h"]h$]h&]uh1jhjrRhhhjRhMl ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhjH'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)}(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.chMp hjTubj)}(hhh](j)}(h)``struct task_struct *p`` target process 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.chMm hjTubj)}(hhh]h)}(htarget processh]htarget process}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMm hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMm hjTubj)}(h3``struct kernel_siginfo *info`` signal information h](j)}(h``struct kernel_siginfo *info``h]j)}(hjTh]hstruct kernel_siginfo *info}(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.chMn hjTubj)}(hhh]h)}(hsignal informationh]hsignal information}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMn hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMn hjTubj)}(h``int sig`` signal value h](j)}(h ``int sig``h]j)}(hjUh]hint sig}(hj!UhhhNhNubah}(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.chMo hjUubj)}(hhh]h)}(h signal valueh]h signal value}(hj8UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4UhMo hj5Uubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhj4UhMo hjTubj)}(hR``const struct cred *cred`` credentials of the signal sender, NULL if **current** h](j)}(h``const struct cred *cred``h]j)}(hjXUh]hconst struct cred *cred}(hjZUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp hjRUubj)}(hhh]h)}(h5credentials of the signal sender, NULL if **current**h](h*credentials of the signal sender, NULL if }(hjqUhhhNhNubj)}(h **current**h]hcurrent}(hjyUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqUubeh}(h]h ]h"]h$]h&]uh1hhjmUhMp hjnUubah}(h]h ]h"]h$]h&]uh1jhjRUubeh}(h]h ]h"]h$]h&]uh1jhjmUhMp hjTubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(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:283: ./security/security.chMr hjTubh)}(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 }(hjUhhhNhNubj)}(h**sig**h]hsig}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh to }(hjUhhhNhNubj)}(h**p**h]hp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh. }(hjUhhhNhNubj)}(h**info**h]hinfo}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubhN can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If }(hjUhhhNhNubj)}(h**info**h]hinfo}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh 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.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hjTubh)}(h **Return**h]j)}(hjVh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hjTubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj&VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_task_prctl (C function)c.security_task_prctlhNtauh1hhjH'hhhNhNubh)}(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}(hjUVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjdVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQVhhhjcVhM ubjg)}(hsecurity_task_prctlh]jm)}(hsecurity_task_prctlh]hsecurity_task_prctl}(hjvVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQVhhhjcVhM ubj)}(h\(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j)}(h int optionh](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(hoptionh]hoption}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned long arg2h](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj )}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(harg2h]harg2}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned long arg3h](j )}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hj&WhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj )}(hlongh]hlong}(hj4WhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjBWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubjm)}(harg3h]harg3}(hjPWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned long arg4h](j )}(hunsignedh]hunsigned}(hjiWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeWubj)}(h h]h }(hjwWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeWubj )}(hlongh]hlong}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeWubjm)}(harg4h]harg4}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned long arg5h](j )}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj )}(hlongh]hlong}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubjm)}(harg5h]harg5}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjQVhhhjcVhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMVhhhjcVhM ubah}(h]jHVah ](jjeh"]h$]h&]jj)jhuh1hhjcVhM hjJVhhubj)}(hhh]h)}(hCheck if a prctl op is allowedh]hCheck if a prctl op is allowed}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXhhubah}(h]h ]h"]h$]h&]uh1jhjJVhhhjcVhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4Xjj4Xjjjuh1hhhhjH'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>Xh]h Parameters}(hj@XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahhhNhNubah}(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 hj6aubj)}(hhh](j)}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj[ah]hstruct kern_ipc_perm *ipcp}(hj]ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUaubj)}(hhh]h)}(hipc permission structureh]hipc permission structure}(hjtahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpahM hjqaubah}(h]h ]h"]h$]h&]uh1jhjUaubeh}(h]h ]h"]h$]h&]uh1jhjpahM hjRaubj)}(h5``struct lsm_prop *prop`` pointer to lsm information h](j)}(h``struct lsm_prop *prop``h]j)}(hjah]hstruct lsm_prop *prop}(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 hjaubj)}(hhh]h)}(hpointer to lsm informationh]hpointer to lsm information}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjRaubeh}(h]h ]h"]h$]h&]uh1jhj6aubh)}(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.chM hj6aubh)}(h7Get the lsm information associated with the ipc object.h]h7Get the lsm information associated with the ipc object.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj6aubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_msg_msg_alloc (C function)c.security_msg_msg_allochNtauh1hhjH'hhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj#bhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhj"bhM ubjg)}(hsecurity_msg_msg_alloch]jm)}(hsecurity_msg_msg_alloch]hsecurity_msg_msg_alloc}(hj5bhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1bubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhj"bhM ubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjQbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMbubj)}(h h]h }(hj^bhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMbubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjobhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqbmodnameN classnameNjI jL )}jO ]jR )}jE j7bsbc.security_msg_msg_allocasbuh1hhjMbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMbubjm)}(hmsgh]hmsg}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIbubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhj"bhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj bhhhj"bhM ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj"bhM hj bhhubj)}(hhh]h)}(h$Allocate a sysv ipc message LSM blobh]h$Allocate a sysv ipc message LSM blob}(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 bhhhj"bhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhjH'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)}(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 msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjch]hstruct msg_msg *msg}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjcubj)}(hhh]h)}(hmessage structureh]hmessage structure}(hj.chhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*chM hj+cubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj*chM hj cubah}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hjPch]h Description}(hjRchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjbubh)}(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.}(hjfchhhNhNubah}(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)}(hjwch]hReturn}(hjychhhNhNubah}(h]h ]h"]h$]h&]uh1jhjucubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjbubh)}(h?Return 0 if operation was successful and permission is granted.h]h?Return 0 if operation was successful and permission is granted.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhjH'hhhNhNubh)}(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}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjchM ubjg)}(hsecurity_msg_msg_freeh]jm)}(hsecurity_msg_msg_freeh]hsecurity_msg_msg_free}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjchM ubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE jcsbc.security_msg_msg_freeasbuh1hhjcubj)}(h h]h }(hj7dhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjEdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hmsgh]hmsg}(hjRdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubah}(h]h ]h"]h$]h&]jjuh1jhjchhhjchM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjchM ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjchM hjchhubj)}(hhh]h)}(h Free a sysv ipc message LSM blobh]h Free a sysv ipc message LSM blob}(hj|dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjydhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubj)}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjdh]hstruct msg_msg *msg}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubj)}(hhh]h)}(hmessage structureh]hmessage structure}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjdubah}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubh)}(h3Deallocate the security structure for this message.h]h3Deallocate the security structure for this message.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhjH'hhhNhNubh)}(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}(hj=ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjLehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ehhhjKehM ubjg)}(hsecurity_msg_queue_alloch]jm)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hj^ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9ehhhjKehM ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjzehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjveubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjveubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE j`esbc.security_msg_queue_allocasbuh1hhjveubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjveubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjveubjm)}(hmsqh]hmsq}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjveubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjreubah}(h]h ]h"]h$]h&]jjuh1jhj9ehhhjKehM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5ehhhjKehM ubah}(h]j0eah ](jjeh"]h$]h&]jj)jhuh1hhjKehM hj2ehhubj)}(hhh]h)}(h&Allocate a sysv ipc msg queue LSM blobh]h&Allocate a sysv ipc msg queue LSM blob}(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&]uh1jhj2ehhhjKehM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhjH'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)}(hjfh]h Parameters}(hj!fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjfubj)}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj>fh]hstruct kern_ipc_perm *msq}(hj@fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsecurity** for the message queue.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubj)}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjgh]hstruct kern_ipc_perm *msq}(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 hjgubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhM hjhubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhj hhM hjgubah}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]j)}(hj3hh]h Description}(hj5hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubh)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjIhhhhNhNubj)}(h**perm->security**h]hperm->security}(hjQhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhubh for the message queue.}(hjIhhhhNhNubeh}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhjH'hhhNhNubh)}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjhhM ubjg)}(hsecurity_msg_queue_associateh]jm)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjhhM ubj)}(h'(struct kern_ipc_perm *msq, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.security_msg_queue_associateasbuh1hhjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hmsqh]hmsq}(hj ihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(h int msqflgh](j )}(hinth]hint}(hj9ihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5iubj)}(h h]h }(hjGihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5iubjm)}(hmsqflgh]hmsqflg}(hjUihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5iubeh}(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)jhuh1hhjhhM hjhhhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj|ihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhjH'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)}(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<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjih]hstruct kern_ipc_perm *msq}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjiubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihM hjiubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjih]h int msqflg}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjiubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjiubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hj4jh]h Description}(hj6jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2jubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjiubh)}(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.}(hjJjhhhNhNubah}(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)}(hj[jh]hReturn}(hj]jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hjiubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjqjhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhjH'hhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjjhM+ ubjg)}(hsecurity_msg_queue_msgctlh]jm)}(hsecurity_msg_queue_msgctlh]hsecurity_msg_queue_msgctl}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjjhM+ ubj)}(h$(struct kern_ipc_perm *msq, int cmd)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jR )}jE jjsbc.security_msg_queue_msgctlasbuh1hhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hj)khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hmsqh]hmsq}(hj6khhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hint cmdh](j )}(hinth]hint}(hjOkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKkubj)}(h h]h }(hj]khhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKkubjm)}(hcmdh]hcmd}(hjkkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhM+ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhM+ ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhM+ hjjhhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(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&]jjjjkjjkjjjuh1hhhhjH'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)}(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.chM/ hjkubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjkh]hstruct kern_ipc_perm *msq}(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, hjkubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM, hjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhM, hjkubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hjlh]hint cmd}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM- hj lubj)}(hhh]h)}(h operationh]h operation}(hj(lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$lhM- hj%lubah}(h]h ]h"]h$]h&]uh1jhj lubeh}(h]h ]h"]h$]h&]uh1jhj$lhM- hjkubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hjJlh]h Description}(hjLlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ hjkubh)}(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 }(hj`lhhhNhNubj)}(h**cmd**h]hcmd}(hjhlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`lubh: is to be performed on the message queue with permissions.}(hj`lhhhNhNubeh}(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)}(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.chM1 hjkubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgsnd (C function)c.security_msg_queue_msgsndhNtauh1hhjH'hhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM: ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlhhhjlhM: ubjg)}(hsecurity_msg_queue_msgsndh]jm)}(hsecurity_msg_queue_msgsndh]hsecurity_msg_queue_msgsnd}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhhjlhM: ubj)}(h<(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj#mhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj mubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%mmodnameN classnameNjI jL )}jO ]jR )}jE jlsbc.security_msg_queue_msgsndasbuh1hhjmubj)}(h h]h }(hjCmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjQmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hmsqh]hmsq}(hj^mhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjwmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsmubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]j?mc.security_msg_queue_msgsndasbuh1hhjsmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsmubjm)}(hmsgh]hmsg}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(h int msqflgh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubjm)}(hmsqflgh]hmsqflg}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhjlhM: ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhM: ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhM: hjlhhubj)}(hhh]h)}(h.Check if sending a sysv ipc message is allowedh]h.Check if sending a sysv ipc message is allowed}(hj-nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM: hj*nhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhM: ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEnjjEnjjjuh1hhhhjH'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)}(hjOnh]h Parameters}(hjQnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hjInubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjnnh]hstruct kern_ipc_perm *msq}(hjpnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM; hjhnubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM; hjnubah}(h]h ]h"]h$]h&]uh1jhjhnubeh}(h]h ]h"]h$]h&]uh1jhjnhM; hjenubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hjnh]hstruct msg_msg *msg}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM< hjnubj)}(hhh]h)}(hmessageh]hmessage}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM< hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM< hjenubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjnh]h int msqflg}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM= hjnubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM= hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM= hjenubeh}(h]h ]h"]h$]h&]uh1jhjInubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hjInubh)}(hsCheck permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**.h](h#Check permission before a message, }(hj1ohhhNhNubj)}(h**msg**h]hmsg}(hj9ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1oubhA, is enqueued on the message queue with permissions specified in }(hj1ohhhNhNubj)}(h**msq**h]hmsq}(hjKohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1oubh.}(hj1ohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hjInubh)}(h **Return**h]j)}(hjfoh]hReturn}(hjhohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjInubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj|ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hjInubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhjH'hhhNhNubh)}(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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMK ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjohMK ubjg)}(hsecurity_msg_queue_msgrcvh]jm)}(hsecurity_msg_queue_msgrcvh]hsecurity_msg_queue_msgrcv}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjohMK 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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE josbc.security_msg_queue_msgrcvasbuh1hhjoubj)}(h h]h }(hj&phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hj4phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hmsqh]hmsq}(hjAphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjZphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVpubj)}(h h]h }(hjgphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVpubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjxphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjupubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzpmodnameN classnameNjI jL )}jO ]j"pc.security_msg_queue_msgrcvasbuh1hhjVpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVpubjm)}(hmsgh]hmsg}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hstruct task_struct *targeth](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubh)}(hhh]jm)}(h task_structh]h task_struct}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]j"pc.security_msg_queue_msgrcvasbuh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(htargeth]htarget}(hj!qhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(h long typeh](j )}(hlongh]hlong}(hj:qhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6qubj)}(h h]h }(hjHqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6qubjm)}(htypeh]htype}(hjVqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hint modeh](j )}(hinth]hint}(hjoqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkqubj)}(h h]h }(hj}qhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkqubjm)}(hmodeh]hmode}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjohMK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohMK ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohMK hjohhubj)}(hhh]h)}(h,Check if receiving a sysv ipc msg is allowedh]h,Check if receiving a sysv ipc msg is allowed}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMK hjqhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhjH'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)}(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.chMO hjqubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjqh]hstruct kern_ipc_perm *msq}(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.chML hjqubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj rhML hj rubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj rhML hjqubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hj/rh]hstruct msg_msg *msg}(hj1rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-rubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMM hj)rubj)}(hhh]h)}(hmessageh]hmessage}(hjHrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDrhMM hjErubah}(h]h ]h"]h$]h&]uh1jhj)rubeh}(h]h ]h"]h$]h&]uh1jhjDrhMM hjqubj)}(h+``struct task_struct *target`` target task h](j)}(h``struct task_struct *target``h]j)}(hjhrh]hstruct task_struct *target}(hjjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMN hjbrubj)}(hhh]h)}(h target taskh]h target task}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}rhMN hj~rubah}(h]h ]h"]h$]h&]uh1jhjbrubeh}(h]h ]h"]h$]h&]uh1jhj}rhMN hjqubj)}(h(``long type`` type of message requested h](j)}(h ``long type``h]j)}(hjrh]h long type}(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.chMO hjrubj)}(hhh]h)}(htype of message requestedh]htype of message requested}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMO hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMO hjqubj)}(h``int mode`` operation flags h](j)}(h ``int mode``h]j)}(hjrh]hint 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.chMP hjrubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMP hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMP hjqubeh}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjqubh)}(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+shhhNhNubj)}(h**msg**h]hmsg}(hj3shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+subh), is removed from the message queue. The }(hj+shhhNhNubj)}(h **target**h]htarget}(hjEshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+subh 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+shhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ hjqubh)}(h **Return**h]j)}(hj`sh]hReturn}(hjbshhhNhNubah}(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.chMV hjqubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjvshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_alloc (C function)c.security_shm_allochNtauh1hhjH'hhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjshM` ubjg)}(hsecurity_shm_alloch]jm)}(hsecurity_shm_alloch]hsecurity_shm_alloc}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjshM` ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE jssbc.security_shm_allocasbuh1hhjsubj)}(h h]h }(hj thhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hj.thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hshph]hshp}(hj;thhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(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)jhuh1hhjshM` hjshhubj)}(hhh]h)}(hAllocate a sysv shm LSM blobh]hAllocate a sysv shm LSM blob}(hjethhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjbthhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshM` ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}tjj}tjjjuh1hhhhjH'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)}(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.chMd hjtubj)}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjth]hstruct kern_ipc_perm *shp}(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.chMa hjtubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMa hjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMa hjtubah}(h]h ]h"]h$]h&]uh1jhjtubh)}(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.chMc hjtubh)}(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 }(hjthhhNhNubj)}(h**shp**h]hshp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh` security field. The security field is initialized to NULL when the structure is first created.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb 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.chMe hjtubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hj0uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMf hjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_free (C function)c.security_shm_freehNtauh1hhjH'hhhNhNubh)}(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_uhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[uhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu ubj)}(h h]h }(hjnuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[uhhhjmuhMu ubjg)}(hsecurity_shm_freeh]jm)}(hsecurity_shm_freeh]hsecurity_shm_free}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|uubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[uhhhjmuhMu ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jR )}jE jusbc.security_shm_freeasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hshph]hshp}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhj[uhhhjmuhMu ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWuhhhjmuhMu ubah}(h]jRuah ](jjeh"]h$]h&]jj)jhuh1hhjmuhMu hjTuhhubj)}(hhh]h)}(hFree a sysv shm LSM blobh]hFree a sysv shm LSM blob}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.cOhMu hjvhhubah}(h]h ]h"]h$]h&]uh1jhjTuhhhjmuhMu ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7vjj7vjjjuh1hhhhjH'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)}(hjAvh]h Parameters}(hjCvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?vubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMy hj;vubj)}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj`vh]hstruct kern_ipc_perm *shp}(hjbvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMv hjZvubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjyvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuvhMv hjvvubah}(h]h ]h"]h$]h&]uh1jhjZvubeh}(h]h ]h"]h$]h&]uh1jhjuvhMv hjWvubah}(h]h ]h"]h$]h&]uh1jhj;vubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hj;vubh)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hjvhhhNhNubj)}(h**perm->security**h]hperm->security}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh for the memory segment.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hj;vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_shm_associate (C function)c.security_shm_associatehNtauh1hhjH'hhhNhNubh)}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvhhhjwhM ubjg)}(hsecurity_shm_associateh]jm)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhjwhM ubj)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hj/whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+wubj)}(h h]h }(hjxubah}(h]h ]h"]h$]h&]uh1jhj"xubeh}(h]h ]h"]h$]h&]uh1jhj=xhM hjxubj)}(h``int shmflg`` operation flags h](j)}(h``int shmflg``h]j)}(hjaxh]h int shmflg}(hjcxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_xubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj[xubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjzxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvxhM hjwxubah}(h]h ]h"]h$]h&]uh1jhj[xubeh}(h]h ]h"]h$]h&]uh1jhjvxhM hjxubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxubh)}(hCheck permission when a 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.}(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)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hzh]hstruct kern_ipc_perm *shp}(hj@zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjQ{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>{hhhjP{hM ubjg)}(hsecurity_shm_shmath]jm)}(hsecurity_shm_shmath]hsecurity_shm_shmat}(hjc{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>{hhhjP{hM ubj)}(h=(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{{ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]jR )}jE je{sbc.security_shm_shmatasbuh1hhj{{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{{ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{{ubjm)}(hshph]hshp}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjw{ubj)}(hchar __user *shmaddrh](j )}(hcharh]hchar}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubh__user}(hj{hhhNhNubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjm)}(hshmaddrh]hshmaddr}(hj,|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjw{ubj)}(h int shmflgh](j )}(hinth]hint}(hjE|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjA|ubj)}(h h]h }(hjS|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA|ubjm)}(hshmflgh]hshmflg}(hja|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjA|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjw{ubeh}(h]h ]h"]h$]h&]jjuh1jhj>{hhhjP{hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:{hhhjP{hM ubah}(h]j5{ah ](jjeh"]h$]h&]jj)jhuh1hhjP{hM hj7{hhubj)}(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&]uh1jhj7{hhhjP{hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjH'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}(hj|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)}(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|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hM hj|ubj)}(h<``char __user *shmaddr`` address of memory region to attach h](j)}(h``char __user *shmaddr``h]j)}(hj}h]hchar __user *shmaddr}(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|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj}hM hj|ubj)}(h``int shmflg`` operation flags h](j)}(h``int shmflg``h]j)}(hj>}h]h int shmflg}(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 hj8}ubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjW}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS}hM hjT}ubah}(h]h ]h"]h$]h&]uh1jhj8}ubeh}(h]h ]h"]h$]h&]uh1jhjS}hM hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|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)}(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 }(hj}hhhNhNubj)}(h**shp**h]hshp}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubhS to the data segment of the calling process. The attaching address is specified by }(hj}hhhNhNubj)}(h **shmaddr**h]hshmaddr}(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)}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sem_alloc (C function)c.security_sem_allochNtauh1hhjH'hhhNhNubh)}(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}(hj ~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhj~hM ubjg)}(hsecurity_sem_alloch]jm)}(hsecurity_sem_alloch]hsecurity_sem_alloc}(hj*~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhj~hM ubj)}(h(struct kern_ipc_perm *sma)h]j)}(hstruct kern_ipc_perm *smah](j)}(hjh]hstruct}(hjF~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB~ubj)}(h h]h }(hjS~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB~ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjd~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjf~modnameN classnameNjI jL )}jO ]jR )}jE j,~sbc.security_sem_allocasbuh1hhjB~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB~ubjm)}(hsmah]hsma}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB~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)jhuh1hhj~hM hj}hhubj)}(hhh]h)}(h"Allocate a sysv semaphore LSM blobh]h"Allocate a sysv semaphore LSM blob}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj~hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjH'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)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubj)}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(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 hjubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubh)}(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}(hjchhhNhNubah}(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 hj~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.chM hj~ubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sem_free (C function)c.security_sem_freehNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_sem_freeh]jm)}(hsecurity_sem_freeh]hsecurity_sem_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct kern_ipc_perm *sma)h]j)}(hstruct kern_ipc_perm *smah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_sem_freeasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsmah]hsma}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM hjhhubj)}(hhh]h)}(hFree a sysv semaphore LSM blobh]hFree a sysv semaphore LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure **Description** Deallocate security structure **sma->security** for the semaphore.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjĀh]hstruct kern_ipc_perm *sma}(hjƀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj€ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjـhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hjhhhNhNubj)}(h**sma->security**h]h sma->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for the semaphore.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sem_associate (C function)c.security_sem_associatehNtauh1hhjH'hhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjdhM ubjg)}(hsecurity_sem_associateh]jm)}(hsecurity_sem_associateh]hsecurity_sem_associate}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjdhM ubj)}(h'(struct kern_ipc_perm *sma, int semflg)h](j)}(hstruct kern_ipc_perm *smah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jysbc.security_sem_associateasbuh1hhjubj)}(h h]h }(hjсhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj߁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int semflgh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsemflgh]hsemflg}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhM ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhM hjKhhubj)}(hhh]h)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhjH'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)}(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.chM hjgubj)}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjh]hstruct kern_ipc_perm *sma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``int semflg`` operation flags h](j)}(h``int semflg``h]j)}(hjłh]h int semflg}(hjǂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÂubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjނhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڂhM hjۂubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڂhM hjubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(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 hjgubh)}(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.}(hjhhhNhNubah}(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)}(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 hjgubh)}(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 hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hh]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{hj8ubj)}(hhh](j)}(h-``unsigned int attr`` which attribute to set h](j)}(h``unsigned int attr``h]j)}(hj]h]hunsigned int 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.chMxhjWubj)}(hhh]h)}(hwhich attribute to seth]hwhich attribute to set}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMxhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMxhjTubj)}(hJ``struct lsm_ctx __user *uctx`` the user-space source for the information h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hjh]hstruct lsm_ctx __user *uctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjubj)}(hhh]h)}(h)the user-space source for the informationh]h)the user-space source for the information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjTubj)}(h"``u32 size`` the size of the data h](j)}(h ``u32 size``h]j)}(hjώh]hu32 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.chMzhjɎubj)}(hhh]h)}(hthe size of the datah]hthe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjɎubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjTubj)}(h1``u32 flags`` reserved for future use, must be 0 h](j)}(h ``u32 flags``h]j)}(hjh]h u32 flags}(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{hjubj)}(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&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(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}hj8ubh)}(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 }(hjYhhhNhNubj)}(h**uctx**h]huctx}(hjahhhNhNubah}(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|hj8ubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_getprocattr (C function)c.security_getprocattrhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_getprocattrh]jm)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hjʏhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjƏubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j̏sbc.security_getprocattrasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjޏubj)}(h int lsmidh](j )}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hlsmidh]hlsmid}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjޏubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjÐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjАhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjޏubj)}(h char **valueh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(hRead an attribute for a taskh]hRead an attribute for a task}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjH'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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubj)}(hhh](j)}(h#``struct task_struct *p`` the task h](j)}(h``struct task_struct *p``h]j)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hthe taskh]hthe task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hjÑh]h int lsmid}(hjőhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hLSM identificationh]hLSM identification}(hjܑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjؑhMhjّubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjؑhMhjubj)}(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.chMhjubj)}(hhh]h)}(hattribute nameh]hattribute name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``char **value`` attribute value h](j)}(h``char **value``h]j)}(hj5h]h char **value}(hj7hhhNhNubah}(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.chMhj/ubj)}(hhh]h)}(hattribute valueh]hattribute value}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjph]h Description}(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.chMhjeubh)}(hNRead attribute **name** for task **p** and store it into **value** if allowed.h](hRead attribute }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for task }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and store it into }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if allowed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h **Return**h]j)}(hj͒h]hReturn}(hjϒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˒ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(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.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_setprocattr (C function)c.security_setprocattrhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj2hMubjg)}(hsecurity_setprocattrh]jm)}(hsecurity_setprocattrh]hsecurity_setprocattr}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj2hMubj)}(h7(int lsmid, const char *name, void *value, size_t size)h](j)}(h int lsmidh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hlsmidh]hlsmid}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj͓hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjړhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(h void *valueh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]jR )}jE jGsbc.security_setprocattrasbuh1hhj1ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hsizeh]hsize}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(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)jhuh1hhj2hMhjhhubj)}(hhh]h)}(hSet an attribute for a taskh]hSet an attribute for a task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hX[**Parameters** ``int lsmid`` LSM identification ``const char *name`` attribute name ``void *value`` attribute value ``size_t size`` attribute value size **Description** Write (set) the current task's attribute **name** to **value**, size **size** if allowed. **Return** Returns bytes written on success, a negative value otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hjєh]h int lsmid}(hjӔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϔubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj˔ubj)}(hhh]h)}(hLSM identificationh]hLSM identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj˔ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȔubj)}(h$``const char *name`` attribute name h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hattribute nameh]hattribute name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȔubj)}(h ``void *value`` attribute value h](j)}(h``void *value``h]j)}(hjCh]h void *value}(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=ubj)}(hhh]h)}(hattribute valueh]hattribute value}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjȔubj)}(h%``size_t size`` attribute value size 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvubj)}(hhh]h)}(hattribute value sizeh]hattribute value size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȔubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hYWrite (set) the current task's attribute **name** to **value**, size **size** if allowed.h](h+Write (set) the current task’s attribute }(hj͕hhhNhNubj)}(h**name**h]hname}(hjՕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͕ubh to }(hj͕hhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͕ubh, size }(hj͕hhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͕ubh if allowed.}(hj͕hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_post_notification (C function)c.security_post_notificationhNtauh1hhjH'hhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghMubjg)}(hsecurity_post_notificationh]jm)}(hsecurity_post_notificationh]hsecurity_post_notification}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghMubj)}(hR(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j)}(hconst struct cred *w_credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hjϖhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̖ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjіmodnameN classnameNjI jL )}jO ]jR )}jE j|sbc.security_post_notificationasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hw_credh]hw_cred}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jc.security_post_notificationasbuh1hhjubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct watch_notification *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hwatch_notificationh]hwatch_notification}(hj̗hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɗubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjΗmodnameN classnameNjI jL )}jO ]jc.security_post_notificationasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjNhhubj)}(hhh]h)}(h+Check if a watch notification can be postedh]h+Check if a watch notification can be posted}(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&]uh1jhjNhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1hhhhjH'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)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjJubj)}(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)}(hjoh]hconst struct cred *w_cred}(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.chMhjiubj)}(hhh]h)}(h*credentials of the task that set the watchh]h*credentials of the task that set the watch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(hN``const struct cred *cred`` credentials of the task which triggered the watch 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.chMhjubj)}(hhh]h)}(h1credentials of the task which triggered the watchh]h1credentials of the task which triggered the watch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(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&]uh1jhjߘubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjۘubj)}(hhh]h)}(hthe notificationh]hthe notification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjۘubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(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.chMhjJubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjJubh)}(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.chMhjJubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_watch_key (C function)c.security_watch_keyhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h(int security_watch_key (struct key *key)h]j)}(h'int security_watch_key(struct key *key)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_watch_keyh]jm)}(hsecurity_watch_keyh]hsecurity_watch_key}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hjřhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjҙhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_watch_keyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}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}(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&]uh1jhj}hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhjH'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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj)}(hhh]j)}(h%``struct key *key`` the key to watch h](j)}(h``struct key *key``h]j)}(hjh]hstruct key *key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hthe key to watchh]hthe key to watch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubh)}(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.chMhjdubh)}(h\Check to see if a process is allowed to watch for event notifications from a key or keyring.h]h\Check to see if a process is allowed to watch for event notifications from a key or keyring.}(hjښhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(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.chMhjdubh)}(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.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_netlink_send (C function)c.security_netlink_sendhNtauh1hhjH'hhhNhNubh)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj>hMubjg)}(hsecurity_netlink_sendh]jm)}(hsecurity_netlink_sendh]hsecurity_netlink_send}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jSsbc.security_netlink_sendasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hskh]hsk}(hjƛhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hstruct sk_buff *skbh](j)}(hjh]hstruct}(hjߛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۛubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۛubh)}(hhh]jm)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_netlink_sendasbuh1hhjۛubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۛubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۛubjm)}(hskbh]hskb}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۛubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj%hhubj)}(hhh]h)}(h1Save info and check if netlink sending is allowedh]h1Save info and check if netlink sending is allowed}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhjH'hNhNubj)}(hX**Parameters** ``struct sock *sk`` sending socket ``struct sk_buff *skb`` netlink message **Description** Save security information for a netlink message so that permission checking can be performed when the message is processed. The security information can be saved using the eff_cap field of the netlink_skb_parms structure. Also may be used to provide fine grained control over message transmission. **Return** Returns 0 if the information was successfully saved and message is allowed to be transmitted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj|ubj)}(hhh](j)}(h#``struct sock *sk`` sending socket h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``struct sk_buff *skb`` netlink message h](j)}(h``struct sk_buff *skb``h]j)}(hjڜh]hstruct sk_buff *skb}(hjܜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؜ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjԜubj)}(hhh]h)}(hnetlink messageh]hnetlink message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjԜubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj|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)}(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)}(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 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.}(hjRhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_create (C function)c.security_socket_createhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hIint security_socket_create (int family, int type, int protocol, int kern)h]j)}(hHint security_socket_create(int family, int type, int protocol, int kern)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}hhhjhMubjg)}(hsecurity_socket_createh]jm)}(hsecurity_socket_createh]hsecurity_socket_create}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhjhMubj)}(h.(int family, int type, int protocol, int kern)h](j)}(h int familyh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj̝hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfamilyh]hfamily}(hjڝhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint typeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int protocolh](j )}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubjm)}(hprotocolh]hprotocol}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint kernh](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hkernh]hkern}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(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)jhuh1hhjhMhjvhhubj)}(hhh]h)}(h)Check if creating a new socket is allowedh]h)Check if creating a new socket is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hX)**Parameters** ``int family`` protocol family ``int type`` communications type ``int protocol`` requested protocol ``int kern`` set to 1 if a kernel socket is requested **Description** Check permissions prior to creating a new socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjŞh]h Parameters}(hjǞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÞubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(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.chMhjޞubj)}(hhh]h)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjޞubeh}(h]h ]h"]h$]h&]uh1jhjhMhj۞ubj)}(h!``int type`` communications type 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.chMhjubj)}(hhh]h)}(hcommunications typeh]hcommunications type}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj۞ubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjVh]h int protocol}(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.chMhjPubj)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhj۞ubj)}(h6``int kern`` set to 1 if a kernel socket is requested h](j)}(h ``int kern``h]j)}(hjh]hint kern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj۞ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhjH'hhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhjDhMubjg)}(hsecurity_socket_post_createh]jm)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhjDhMubj)}(hC(struct socket *sock, int family, int type, int protocol, int kern)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.security_socket_post_createasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hsockh]hsock}(hj̠hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h int familyh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hint typeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htypeh]htype}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h int protocolh](j )}(hinth]hint}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubjm)}(hprotocolh]hprotocol}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hint kernh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hkernh]hkern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhj+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.chMhjǡhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.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.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjDh]h int family}(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>ubj)}(hhh]h)}(hprotocol familyh]hprotocol family}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjubj)}(h!``int type`` communications type h](j)}(h ``int type``h]j)}(hj}h]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubj)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjh]h int protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.cLhMhjubj)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjϢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjˢhMhj̢ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjˢhMhjubj)}(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.chMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(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)}(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.}(hjghhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_socket_bind (C function)c.security_socket_bindhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hUint security_socket_bind (struct socket *sock, struct sockaddr *address, int addrlen)h]j)}(hTint security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM&ubjg)}(hsecurity_socket_bindh]jm)}(hsecurity_socket_bindh]hsecurity_socket_bind}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM&ubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjӣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϣubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjϣubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_bindasbuh1hhjϣubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjϣubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϣubjm)}(hsockh]hsock}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjϣubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjˣubj)}(hstruct sockaddr *addressh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]j c.security_socket_bindasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjˣubj)}(h int addrlenh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjähhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(haddrlenh]haddrlen}(hjѤhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM&hjhhubj)}(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.chM&hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hXq**Parameters** ``struct socket *sock`` socket ``struct sockaddr *address`` requested bind address ``int addrlen`` length of address **Description** Check permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]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'hj6ubj)}(hhh]h)}(hsocketh]hsocket}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM'hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM'hj3ubj)}(h4``struct sockaddr *address`` requested bind address h](j)}(h``struct sockaddr *address``h]j)}(hjuh]hstruct sockaddr *address}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjoubj)}(hhh]h)}(hrequested bind addressh]hrequested bind address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM(hj3ubj)}(h"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjubj)}(hhh]h)}(hlength of addressh]hlength of address}(hjǥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjåhM)hjĥubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjåhM)hj3ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubh)}(hCheck permission before 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}(hjhhhNhNubah}(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.chM*hjubh)}(h **Return**h]j)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubh)}(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/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_connect (C function)c.security_socket_connecthNtauh1hhjH'hhhNhNubh)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhM8ubjg)}(hsecurity_socket_connecth]jm)}(hsecurity_socket_connecth]hsecurity_socket_connect}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhM8ubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjæhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjԦhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjѦubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj֦modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_connectasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sockaddr *addressh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jc.security_socket_connectasbuh1hhj$ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int addrlenh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(haddrlenh]haddrlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhM8ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhM8hjnhhubj)}(hhh]h)}(h.Check if a socket connect operation is allowedh]h.Check if a socket connect operation is allowed}(hjާhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjۧhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chM<hjubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]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.chM9hjubj)}(hhh]h)}(hsocketh]hsocket}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM9hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM9hjubj)}(h@``struct sockaddr *address`` address of remote connection point h](j)}(h``struct sockaddr *address``h]j)}(hjXh]hstruct sockaddr *address}(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.chM:hjRubj)}(hhh]h)}(h"address of remote connection pointh]h"address of remote connection point}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhM:hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM:hjubj)}(h"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjubj)}(hhh]h)}(hlength of addressh]hlength of address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj̨h]h Description}(hjΨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʨubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjubh)}(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.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.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_listen (C function)c.security_socket_listenhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h=int security_socket_listen (struct socket *sock, int backlog)h]j)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhjVubh)}(h **Return**h]j)}(hjOh]hReturn}(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.chMmhjVubh)}(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.chMnhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_recvmsg (C function)c.security_socket_recvmsghNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hZint security_socket_recvmsg (struct socket *sock, struct msghdr *msg, int size, int flags)h]j)}(hYint security_socket_recvmsg(struct socket *sock, struct msghdr *msg, int size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMvubjg)}(hsecurity_socket_recvmsgh]jm)}(hsecurity_socket_recvmsgh]hsecurity_socket_recvmsg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMvubj)}(h>(struct socket *sock, struct msghdr *msg, int size, int flags)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjѰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͰubj)}(h h]h }(hjްhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjͰubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_recvmsgasbuh1hhjͰubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjͰubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͰubjm)}(hsockh]hsock}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjͰubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɰubj)}(hstruct msghdr *msgh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(hmsghdrh]hmsghdr}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]j c.security_socket_recvmsgasbuh1hhj?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɰubj)}(hint sizeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjϱhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɰubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɰubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMvhjhhubj)}(hhh]h)}(h'Check if receiving a message is allowedh]h'Check if receiving a message is allowed}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1hhhhjH'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)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjJubj)}(hhh](j)}(h)``struct socket *sock`` receiving socket h](j)}(h``struct socket *sock``h]j)}(hjoh]hstruct socket *sock}(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.chMwhjiubj)}(hhh]h)}(hreceiving socketh]hreceiving socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjfubj)}(h*``struct msghdr *msg`` message to receive h](j)}(h``struct msghdr *msg``h]j)}(hjh]hstruct msghdr *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubj)}(hhh]h)}(hmessage to receiveh]hmessage to receive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjfubj)}(h``int size`` size of message h](j)}(h ``int size``h]j)}(hjh]hint size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߲ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhj۲ubj)}(hhh]h)}(hsize of messageh]hsize of message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1jhj۲ubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjfubj)}(h ``int flags`` operational 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.chMzhjubj)}(hhh]h)}(hoperational flagsh]hoperational flags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMzhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMzhjfubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hjJubh)}(h:Check permission before receiving a message from a socket.h]h:Check permission before receiving a message from a socket.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjJubh)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hjJubh)}(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~hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h5int security_socket_getsockname (struct socket *sock)h]j)}(h4int security_socket_getsockname(struct socket *sock)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjгhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjϳhMubjg)}(hsecurity_socket_getsocknameh]jm)}(hsecurity_socket_getsocknameh]hsecurity_socket_getsockname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj޳ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjϳhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_getsocknameasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjϳhMhjhhubj)}(hhh]h)}(h+Check if reading the socket addr is allowedh]h+Check if reading the socket addr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjϳhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct socket *sock`` socket **Description** Check permission before reading the local address (name) of the socket object. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hj´h]hstruct socket *sock}(hjĴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hj۴hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj״hMhjشubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj״hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h5int security_socket_getpeername (struct socket *sock)h]j)}(h4int security_socket_getpeername(struct socket *sock)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjwhMubjg)}(hsecurity_socket_getpeernameh]jm)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjwhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjĵhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjƵmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_getpeernameasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhj^hhubj)}(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&]uh1jhj^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhjH'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)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubj)}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjjh]hstruct socket *sock}(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.chMhjdubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(hECheck permission before the remote address (name) of a socket object.h]hECheck permission before the remote address (name) of a socket object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(h **Return**h]j)}(hj̶h]hReturn}(hjζhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʶubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(h#Returns 0 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.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMubjg)}(hsecurity_socket_getsockopth]jm)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(hsocketh]hsocket}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jR )}jE j4sbc.security_socket_getsockoptasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h int levelh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjηhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlevelh]hlevel}(hjܷhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h int optnameh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoptnameh]hoptname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+Check if reading a socket option is allowedh]h+Check if reading a socket option is allowed}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhjH'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)}(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.chMhjWubj)}(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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(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.chMhjubj)}(hhh]h)}(hoption's protocol levelh]hoption’s protocol level}(hjθhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʸhMhj˸ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjʸhMhjsubj)}(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.chMhjubj)}(hhh]h)}(h option nameh]h option name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(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.chMhjWubh)}(hPCheck permissions before retrieving the options associated with socket **sock**.h](hGCheck permissions before retrieving the options associated with socket }(hj?hhhNhNubj)}(h**sock**h]hsock}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubh)}(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.chMhjWubh)}(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.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_socket_setsockopth]jm)}(hsecurity_socket_setsockopth]hsecurity_socket_setsockopt}(hjȹhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjĹubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jʹsbc.security_socket_setsockoptasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjܹubj)}(h int levelh](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubjm)}(hlevelh]hlevel}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjܹubj)}(h int optnameh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoptnameh]hoptname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+Check if setting a socket option is allowedh]h+Check if setting a socket option 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&]jjjjjjjjjuh1hhhhjH'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.chMhj ubj)}(hhh]h)}(hsocketh]hsocket}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj ubj)}(h&``int level`` option's protocol level h](j)}(h ``int level``h]j)}(hjKh]h int level}(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.chMhjEubj)}(hhh]h)}(hoption's protocol levelh]hoption’s protocol level}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj 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.chMhj~ubj)}(hhh]h)}(h option nameh]h option name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hMCheck permissions before setting the options associated with socket **sock**.h](hDCheck permissions before setting the options associated with socket }(hjջhhhNhNubj)}(h**sock**h]hsock}(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.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhjH'hhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhjKhMubjg)}(hsecurity_socket_shutdownh]jm)}(hsecurity_socket_shutdownh]hsecurity_socket_shutdown}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhjKhMubj)}(h(struct socket *sock, int how)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j`sbc.security_socket_shutdownasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjƼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hsockh]hsock}(hjӼhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(hint howh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hhowh]hhow}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj2hhubj)}(hhh]h)}(h-Checks if shutting down the socket is allowedh]h-Checks if shutting down the socket 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&]uh1jhj2hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1hhhhjH'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)}(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 socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjsh]hstruct socket *sock}(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.chMhjmubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(h?``int how`` flag indicating how sends and receives are handled h](j)}(h ``int how``h]j)}(hjh]hint how}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h2flag indicating how sends and receives are handledh]h2flag indicating how sends and receives are handled}(hjŽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj½ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubh)}(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.chMhjNubh)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhjH'hhhNhNubh)}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjahhhjshMubjg)}(h!security_socket_getpeersec_streamh]jm)}(h!security_socket_getpeersec_streamh]h!security_socket_getpeersec_stream}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhjshMubj)}(hK(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj¾modnameN classnameNjI jL )}jO ]jR )}jE jsb#c.security_socket_getpeersec_streamasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optvalh](h)}(hhh]jm)}(h sockptr_th]h sockptr_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jܾ#c.security_socket_getpeersec_streamasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoptvalh]hoptval}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optlenh](h)}(hhh]jm)}(h sockptr_th]h sockptr_t}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjamodnameN classnameNjI jL )}jO ]jܾ#c.security_socket_getpeersec_streamasbuh1hhjXubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(hoptlenh]hoptlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjοhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjܿhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjshMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshMhjZhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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)}(hjGh]hstruct socket *sock}(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.chMhjAubj)}(hhh]h)}(hsocketh]hsocket}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubj)}(h(``sockptr_t optval`` destination buffer h](j)}(h``sockptr_t optval``h]j)}(hjh]hsockptr_t optval}(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.chMhjzubj)}(hhh]h)}(hdestination bufferh]hdestination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubj)}(h?``sockptr_t optlen`` size of peer label copied into the buffer h](j)}(h``sockptr_t optlen``h]j)}(hjh]hsockptr_t optlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubj)}(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.chMhjubj)}(hhh]h)}(h&maximum size of the destination bufferh]h&maximum size of the destination buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubeh}(h]h ]h"]h$]h&]uh1jhj"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)}(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.}(hjChhhNhNubah}(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)}(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.chMhj"ubh)}(hFReturns 0 if all is well, otherwise, typical getsockopt return values.h]hFReturns 0 if all is well, otherwise, typical getsockopt return values.}(hjjhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h1int lsm_sock_alloc (struct sock *sock, gfp_t gfp)h]j)}(h0int lsm_sock_alloc(struct sock *sock, gfp_t gfp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hlsm_sock_alloch]jm)}(hlsm_sock_alloch]hlsm_sock_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct sock *sock, gfp_t gfp)h](j)}(hstruct sock *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.lsm_sock_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jc.lsm_sock_allocasbuh1hhjDubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hgfph]hgfp}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(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)jhuh1hhjhM hjhhubj)}(hhh]h)}(hallocate a composite sock blobh]hallocate a composite sock blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h1``struct 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.chMhjubj)}(hhh]h)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(hallocation modeh]hallocation mode}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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*Allocate the sock blob for all the modulesh]h*Allocate the sock blob for all the modules}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_alloc (C function)c.security_sk_allochNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_sk_alloch]jm)}(hsecurity_sk_alloch]hsecurity_sk_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h-(struct sock *sk, int family, gfp_t priority)h](j)}(hstruct sock *skh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_sk_allocasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskh]hsk}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int familyh](j )}(hinth]hint}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubjm)}(hfamilyh]hfamily}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t priorityh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j!c.security_sk_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hpriorityh]hpriority}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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 sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hj(h]hstruct sock *sk}(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"ubj)}(hhh]h)}(hsockh]hsock}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjah]h int family}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj[ubj)}(hhh]h)}(hprotocol familyh]hprotocol family}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubj)}(h``gfp_t priority`` gfp flags h](j)}(h``gfp_t priority``h]j)}(hjh]hgfp_t priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h gfp flagsh]h gfp flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_free (C function)c.security_sk_freehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h'void security_sk_free (struct sock *sk)h]j)}(h&void security_sk_free(struct sock *sk)h](j )}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhM2ubjg)}(hsecurity_sk_freeh]jm)}(hsecurity_sk_freeh]hsecurity_sk_free}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhM2ubj)}(h(struct sock *sk)h]j)}(hstruct sock *skh](j)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jdsbc.security_sk_freeasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhM2ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhM2hj6hhubj)}(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.chM2hjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h[**Parameters** ``struct sock *sk`` sock **Description** Deallocate security structure.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.chM6hjubj)}(hhh]j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hjBh]hstruct sock *sk}(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.chM3hj<ubj)}(hhh]h)}(hsockh]hsock}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM3hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM3hj9ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chM5hjubh)}(hDeallocate security structure.h]hDeallocate security structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inet_csk_cloneh]jm)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h4(struct sock *newsk, const struct request_sock *req)h](j)}(hstruct sock *newskh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inet_csk_cloneasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewskh]hnewsk}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct request_sock *reqh](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(h request_sockh]h request_sock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j9c.security_inet_csk_cloneasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h,Set new sock LSM state based on request_sockh]h,Set new sock LSM state based on request_sock}(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%jjjuh1hhhhjH'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)}(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 *newsk`` new sock h](j)}(h``struct sock *newsk``h]j)}(hjNh]hstruct sock *newsk}(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.chMhjHubj)}(hhh]h)}(hnew sockh]hnew sock}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(h;``const struct request_sock *req`` connection request_sock h](j)}(h"``const struct request_sock *req``h]j)}(hjh]hconst struct request_sock *req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hconnection request_sockh]hconnection request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)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@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.chMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhjH'hhhNhNubh)}(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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj9hMlubjg)}(hsecurity_mptcp_add_subflowh]jm)}(hsecurity_mptcp_add_subflowh]hsecurity_mptcp_add_subflow}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj9hMlubj)}(h#(struct sock *sk, struct sock *ssk)h](j)}(hstruct sock *skh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jNsbc.security_mptcp_add_subflowasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hstruct sock *sskh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_mptcp_add_subflowasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsskh]hssk}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMlhj hhubj)}(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.chMlhjXhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjH'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}(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.chMphjwubj)}(hhh](j)}(h,``struct sock *sk`` the owning MPTCP socket h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjubj)}(hhh]h)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(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.chMnhjubj)}(hhh]h)}(hthe new subflowh]hthe new subflow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(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.chMphjwubh)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjwubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjwubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhMubjg)}(hsecurity_xfrm_policy_cloneh]jm)}(hsecurity_xfrm_policy_cloneh]hsecurity_xfrm_policy_clone}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhMubj)}(h>(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j)}(hstruct xfrm_sec_ctx *old_ctxh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_xfrm_policy_cloneasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hold_ctxh]hold_ctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx **new_ctxph](j)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jc.security_xfrm_policy_cloneasbuh1hhj'ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hnew_ctxph]hnew_ctxp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjqhhubj)}(hhh]h)}(hClone xfrm policy LSM stateh]hClone xfrm policy LSM state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chMhjubj)}(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.chMhjubj)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``struct xfrm_sec_ctx **new_ctxp`` target xfrm security context h](j)}(h"``struct xfrm_sec_ctx **new_ctxp``h]j)}(hj3h]hstruct xfrm_sec_ctx **new_ctxp}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj-ubj)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMhjubh)}(hcAllocate a security structure in new_ctxp that contains the information from the old_ctx structure.h]hcAllocate a security structure in new_ctxp that contains the information from the old_ctx structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h%Return 0 if 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_xfrm_policy_deleteh]jm)}(hsecurity_xfrm_policy_deleteh]hsecurity_xfrm_policy_delete}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct xfrm_sec_ctx *ctx)h]j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_xfrm_policy_deleteasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h*Check if deleting a xfrm policy is allowedh]h*Check if deleting a xfrm policy is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct xfrm_sec_ctx *ctx`` xfrm security context **Description** Authorize deletion of a SPD entry. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]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)}(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.chMhjubj)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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"Authorize deletion of a SPD entry.h]h"Authorize deletion of a SPD entry.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjShhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hdint security_xfrm_state_alloc_acquire (struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h]j)}(hcint security_xfrm_state_alloc_acquire(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhjhMubjg)}(h!security_xfrm_state_alloc_acquireh]jm)}(h!security_xfrm_state_alloc_acquireh]h!security_xfrm_state_alloc_acquire}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhMubj)}(h>(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb#c.security_xfrm_state_alloc_acquireasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hj h]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx *polsech](j)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]j#c.security_xfrm_state_alloc_acquireasbuh1hhj,ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hpolsech]hpolsec}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 secidh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j#c.security_xfrm_state_alloc_acquireasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj)}(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&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(hj:h]hstruct xfrm_state *x}(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.chMhj4ubj)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj1ubj)}(hE``struct xfrm_sec_ctx *polsec`` associated policy's security context h](j)}(h``struct xfrm_sec_ctx *polsec``h]j)}(hjsh]hstruct xfrm_sec_ctx *polsec}(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.chMhjmubj)}(hhh]h)}(h$associated policy's security contexth]h&associated policy’s security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhj1ubj)}(h"``u32 secid`` secid from the flow 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.chMhjubj)}(hhh]h)}(hsecid from the flowh]hsecid from the flow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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&]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 operation was successful.h]h&Returns 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhjH'hhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjahM6ubjg)}(hsecurity_xfrm_state_freeh]jm)}(hsecurity_xfrm_state_freeh]hsecurity_xfrm_state_free}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjahM6ubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jvsbc.security_xfrm_state_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hj h]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahM6ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjahM6ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahM6hjHhhubj)}(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.chM6hjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahM6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhjH'hNhNubj)}(h_**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Deallocate x->security.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.chM:hj.ubj)}(hhh]j)}(h$``struct xfrm_state *x`` xfrm state h](j)}(h``struct xfrm_state *x``h]j)}(hjSh]hstruct xfrm_state *x}(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.chM7hjMubj)}(hhh]h)}(h xfrm stateh]h xfrm state}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM7hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM7hjJubah}(h]h ]h"]h$]h&]uh1jhj.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.chM9hj.ubh)}(hDeallocate x->security.h]hDeallocate x->security.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMAubjg)}(hsecurity_xfrm_policy_lookuph]jm)}(hsecurity_xfrm_policy_lookuph]hsecurity_xfrm_policy_lookup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMAubj)}(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&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_xfrm_policy_lookupasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hctxh]hctx}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 fl_secidh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jJc.security_xfrm_policy_lookupasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubjm)}(hfl_secidh]hfl_secid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMAubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMAhjhhubj)}(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.chMAhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chMEhjubj)}(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.chMBhjubj)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMBhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMBhjubj)}(h5``u32 fl_secid`` flow secid used to authorize access h](j)}(h``u32 fl_secid``h]j)}(hjUh]h u32 fl_secid}(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.chMChjOubj)}(hhh]h)}(h#flow secid used to authorize accessh]h#flow secid used to authorize access}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMChjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMChjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMEhjubh)}(hCheck permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy.h]hCheck permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjubh)}(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.chMHhjubh)}(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.chMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMRubjg)}(h"security_xfrm_state_pol_flow_matchh]jm)}(h"security_xfrm_state_pol_flow_matchh]h"security_xfrm_state_pol_flow_match}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMRubj)}(hO(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jR )}jE jsb$c.security_xfrm_state_pol_flow_matchasbuh1hhj5ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hj h]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct xfrm_policy *xph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_policyh]h xfrm_policy}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]js$c.security_xfrm_state_pol_flow_matchasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hxph]hxp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hconst struct flowi_common *flich](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h flowi_commonh]h flowi_common}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]js$c.security_xfrm_state_pol_flow_matchasbuh1hhjubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hflich]hflic}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMRhjhhubj)}(hhh]h)}(hCheck for a xfrm matchh]hCheck for a xfrm match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chMVhjubj)}(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.chMShjubj)}(hhh]h)}(hxfrm state to matchh]hxfrm state to match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMShj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMShjubj)}(h<``struct xfrm_policy *xp`` xfrm policy to check for a match h](j)}(h``struct xfrm_policy *xp``h]j)}(hj0h]hstruct xfrm_policy *xp}(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.chMThj*ubj)}(hhh]h)}(h xfrm policy to check for a matchh]h xfrm policy to check for a match}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMThjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMThjubj)}(h?``const struct flowi_common *flic`` flow to check for a match. h](j)}(h#``const struct flowi_common *flic``h]j)}(hjih]hconst struct flowi_common *flic}(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.chMUhjcubj)}(hhh]h)}(hflow to check for a match.h]hflow to check for a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMUhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMUhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjubh)}(h1Check **xp** and **flic** for a match with **x**.h](hCheck }(hjhhhNhNubj)}(h**xp**h]hxp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**flic**h]hflic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for a match with }(hjhhhNhNubj)}(h**x**h]hx}(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.chMVhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjubh)}(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.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhjH'hhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMsubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjThMsubjg)}(hsecurity_xfrm_decode_sessionh]jm)}(hsecurity_xfrm_decode_sessionh]hsecurity_xfrm_decode_session}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjThMsubj)}(h!(struct sk_buff *skb, u32 *secid)h](j)}(hstruct sk_buff *skbh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jisbc.security_xfrm_decode_sessionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(h u32 *secidh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_xfrm_decode_sessionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsecidh]hsecid}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThMsubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThMshj;hhubj)}(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.chMshjXhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjH'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}(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.chMwhjwubj)}(hhh](j)}(h$``struct sk_buff *skb`` xfrm packet h](j)}(h``struct sk_buff *skb``h]j)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjubj)}(hhh]h)}(h xfrm packeth]h xfrm packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubj)}(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.chMuhjubj)}(hhh]h)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(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.chMwhjwubh)}(hHDecode the packet in **skb** and return the security label in **secid**.h](hDecode the packet in }(hj&hhhNhNubj)}(h**skb**h]hskb}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh" and return the security label in }(hj&hhhNhNubj)}(h **secid**h]hsecid}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjwubh)}(h **Return**h]j)}(hj[h]hReturn}(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.chMxhjwubh)}(h/Return 0 if all xfrms used have the same secid.h]h/Return 0 if all xfrms used have the same secid.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_alloc (C function)c.security_key_allochNtauh1hhjH'hhhNhNubh)}(hhh](j)}(hVint security_key_alloc (struct key *key, const struct cred *cred, unsigned long flags)h]j)}(hUint security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_key_alloch]jm)}(hsecurity_key_alloch]hsecurity_key_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_key_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_key_allocasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h-Allocate and initialize a kernel key LSM blobh]h-Allocate and initialize a kernel key LSM blob}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhjH'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)}(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.chMhjXubj)}(hhh](j)}(h``struct key *key`` key h](j)}(h``struct key *key``h]j)}(hj}h]hstruct key *key}(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.chMhjwubj)}(hhh]h)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(h(``const struct cred *cred`` credentials h](j)}(h``const struct cred *cred``h]j)}(hjh]hconst struct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h credentialsh]h credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(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.chMhjubj)}(hhh]h)}(hallocation flagsh]hallocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubh)}(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.chMhjXubh)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubh)}(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.chMhjXubh)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_free (C function)c.security_key_freehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h(void security_key_free (struct key *key)h]j)}(h'void security_key_free(struct key *key)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_key_freeh]jm)}(hsecurity_key_freeh]hsecurity_key_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_key_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hFree a kernel key LSM blobh]hFree a kernel key LSM blob}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhjH'hNhNubj)}(hl**Parameters** ``struct key *key`` key **Description** Notification of destruction; free security data.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjrubj)}(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.chMhjubj)}(hhh]h)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubh)}(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.chMhjrubh)}(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.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_key_permission (C function)c.security_key_permissionhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj%hMubjg)}(hsecurity_key_permissionh]jm)}(hsecurity_key_permissionh]hsecurity_key_permission}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hMubj)}(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]jm)}(h key_ref_th]h key_ref_t}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jR )}jE j:sbc.security_key_permissionasbuh1hhjPubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hkey_refh]hkey_ref}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jsc.security_key_permissionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(henum key_need_perm need_permh](j)}(hj:h]henum}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(h key_need_permh]h key_need_perm}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jsc.security_key_permissionasbuh1hhj%ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubjm)}(h need_permh]h need_perm}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMhj hhubj)}(hhh]h)}(h*Check if a kernel key operation is allowedh]h*Check if a kernel key operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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$``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.chMhjubj)}(hhh]h)}(h key referenceh]h key reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(h&credentials of actor requesting accessh]h&credentials of actor requesting access}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h7``enum key_need_perm need_perm`` requested permissions h](j)}(h ``enum key_need_perm need_perm``h]j)}(hjPh]henum key_need_perm need_perm}(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.chMhjJubj)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(hJSee whether a specific operational right is granted to a process on a key.h]hJSee whether a specific operational right is granted to a process on a key.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]j)}(hubj)}(h(``char **buffer`` security label buffer h](j)}(h``char **buffer``h]j)}(hjh]h char **buffer}(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.chMhjzubj)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubeh}(h]h ]h"]h$]h&]uh1jhj"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)}(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.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 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.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_key_post_create_or_update (C function)$c.security_key_post_create_or_updatehNtauh1hhjH'hhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhjGhMubjg)}(h"security_key_post_create_or_updateh]jm)}(h"security_key_post_create_or_updateh]h"security_key_post_create_or_update}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMubj)}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sb$c.security_key_post_create_or_updateasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hkeyringh]hkeyring}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct key *keyh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j$c.security_key_post_create_or_updateasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hconst void *payloadh](j)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj )}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hpayloadh]hpayload}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hsize_t payload_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j$c.security_key_post_create_or_updateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h payload_lenh]h payload_len}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h bool createh](j )}(hj8h]hbool}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hcreateh]hcreate}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj.hhubj)}(hhh]h)}(h$Notification of key create or updateh]h$Notification of key create or update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hX**Parameters** ``struct key *keyring`` keyring to which the key is linked to ``struct key *key`` created or updated key ``const void *payload`` data used to instantiate or update the key ``size_t payload_len`` length of payload ``unsigned long flags`` key flags ``bool create`` flag indicating whether the key was created or updated **Description** Notify the caller of a key creation or update.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(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.chMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``struct key *key`` created or updated key h](j)}(h``struct key *key``h]j)}(hj h]hstruct key *key}(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.chMhjubj)}(hhh]h)}(hcreated or updated keyh]hcreated or updated key}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubj)}(hC``const void *payload`` data used to instantiate or update the key h](j)}(h``const void *payload``h]j)}(hjFh]hconst void *payload}(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@ubj)}(hhh]h)}(h*data used to instantiate or update the keyh]h*data used to instantiate or update the key}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjubj)}(h)``size_t payload_len`` length of payload h](j)}(h``size_t payload_len``h]j)}(hjh]hsize_t payload_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubj)}(hhh]h)}(hlength of payloadh]hlength of payload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``unsigned long flags`` key flags h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h key flagsh]h key flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(h6flag indicating whether the key was created or updatedh]h6flag indicating whether the key was created or updated}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.Notify the caller of a key creation or update.h]h.Notify the caller of a key creation or update.}(hjBhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhjH'hhhNhNubh)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmhhhjhMubjg)}(hsecurity_audit_rule_inith]jm)}(hsecurity_audit_rule_inith]hsecurity_audit_rule_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhjhMubj)}(h=(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j)}(h u32 fieldh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_audit_rule_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfieldh]hfield}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 oph](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_audit_rule_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *rulestrh](j )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj<ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjm)}(hrulestrh]hrulestr}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid **lsmruleh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjm)}(hlsmruleh]hlsmrule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_audit_rule_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjfhhubj)}(hhh]h)}(h*Allocate and init an LSM audit rule structh]h*Allocate and init an LSM audit rule struct}(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&]uh1jhjfhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhjH'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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFubj)}(hhh](j)}(h``u32 field`` audit action h](j)}(h ``u32 field``h]j)}(hjkh]h u32 field}(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.chMhjeubj)}(hhh]h)}(h audit actionh]h audit action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h``u32 op`` rule operator h](j)}(h ``u32 op``h]j)}(hjh]hu32 op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h rule operatorh]h rule operator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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.chMhjubj)}(hhh]h)}(h rule contexth]h rule context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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.chMhjubj)}(hhh]h)}(h$receive buffer for audit rule structh]h$receive buffer for audit rule struct}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjbubj)}(h(``gfp_t gfp`` GFP flag used for kmalloc h](j)}(h ``gfp_t gfp``h]j)}(hjOh]h gfp_t gfp}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIubj)}(hhh]h)}(hGFP flag used for kmalloch]hGFP flag used for kmalloc}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(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.chMhjFubh)}(h4Allocate and initialize an LSM audit rule structure.h]h4Allocate and initialize an LSM audit rule structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFubh)}(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.chMhjFubh)}(hVReturn 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](h Return 0 if }(hjhhhNhNubj)}(h **lsmrule**h]hlsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? has been successfully set, -EINVAL in case of an invalid rule.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_audit_rule_knownh]jm)}(hsecurity_audit_rule_knownh]hsecurity_audit_rule_known}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct audit_krule *krule)h]j)}(hstruct audit_krule *kruleh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h audit_kruleh]h audit_krule}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE j+sbc.security_audit_rule_knownasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hkruleh]hkrule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h*Check if an audit rule contains LSM fieldsh]h*Check if an audit rule contains LSM fields}(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&]jjjjjjjjjuh1hhhhjH'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.chMhjubj)}(hhh]j)}(h)``struct audit_krule *krule`` audit rule h](j)}(h``struct audit_krule *krule``h]j)}(hj h]hstruct audit_krule *krule}(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.chMhjubj)}(hhh]h)}(h audit ruleh]h audit rule}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMhjubh)}(hQSpecifies whether given **krule** contains any fields related to the current LSM.h](hSpecifies whether given }(hjZhhhNhNubj)}(h **krule**h]hkrule}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh0 contains any fields related to the current LSM.}(hjZhhhNhNubeh}(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)}(h1Returns 1 in case of relation found, 0 otherwise.h]h1Returns 1 in case of relation found, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h-void security_audit_rule_free (void *lsmrule)h]j)}(h,void security_audit_rule_free(void *lsmrule)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_audit_rule_freeh]jm)}(hsecurity_audit_rule_freeh]hsecurity_audit_rule_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(void *lsmrule)h]j)}(h void *lsmruleh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlsmruleh]hlsmrule}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM hjhhubj)}(hhh]h)}(hFree an LSM audit rule structh]hFree an LSM audit rule struct}(hjRhhhNhNubah}(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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhjH'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)}(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.chM hjnubj)}(hhh]j)}(h$``void *lsmrule`` audit rule struct h](j)}(h``void *lsmrule``h]j)}(hjh]h void *lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(haudit rule structh]haudit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjnubh)}(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 hjnubh)}(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.chM hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj!hMubjg)}(hsecurity_audit_rule_matchh]jm)}(hsecurity_audit_rule_matchh]hsecurity_audit_rule_match}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj!hMubj)}(h9(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j)}(hstruct lsm_prop *proph](j)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE j6sbc.security_audit_rule_matchasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hproph]hprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(h u32 fieldh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_audit_rule_matchasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfieldh]hfield}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hu32 oph](h)}(hhh]jm)}(hu32h]hu32}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_audit_rule_matchasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(h void *lsmruleh](j )}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hlsmruleh]hlsmrule}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(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)jhuh1hhj!hMhjhhubj)}(hhh]h)}(h&Check if a label matches an audit ruleh]h&Check if a label matches an audit rule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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 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.chMhjubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u32 field`` LSM audit field h](j)}(h ``u32 field``h]j)}(hjh]h u32 field}(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.chMhjubj)}(hhh]h)}(hLSM audit fieldh]hLSM audit field}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h``u32 op`` matching operator h](j)}(h ``u32 op``h]j)}(hjXh]hu32 op}(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.chMhjRubj)}(hhh]h)}(hmatching operatorh]hmatching operator}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubj)}(h``void *lsmrule`` audit rule h](j)}(h``void *lsmrule``h]j)}(hjh]h void *lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h audit ruleh]h audit rule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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_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.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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf (C function)c.security_bpfhNtauh1hhjH'hhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjXhM*ubjg)}(h security_bpfh]jm)}(h security_bpfh]h security_bpf}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjXhM*ubj)}(h?(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j)}(hint cmdh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hunionh]hunion}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jmsbc.security_bpfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int sizeh](j )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj )}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubjm)}(hsizeh]hsize}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubjm)}(hkernelh]hkernel}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhM*ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhM*hj?hhubj)}(hhh]h)}(h-Check if the bpf syscall operation is allowedh]h-Check if the bpf syscall 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&]uh1jhj?hhhjXhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chM.hjubj)}(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.chM+hjubj)}(hhh]h)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(h'``union bpf_attr *attr`` bpf attribute h](j)}(h``union bpf_attr *attr``h]j)}(hj?h]hunion bpf_attr *attr}(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.chM,hj9ubj)}(hhh]h)}(h bpf attributeh]h bpf attribute}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM,hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM,hjubj)}(h``unsigned int size`` size h](j)}(h``unsigned int size``h]j)}(hjxh]hunsigned int size}(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.chM-hjrubj)}(hhh]h)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(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.chM.hjubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chM0hjubh)}(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.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.chM3hjubh)}(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.chM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_map (C function)c.security_bpf_maphNtauh1hhjH'hhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhM<ubjg)}(hsecurity_bpf_maph]jm)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhM<ubj)}(h$(struct bpf_map *map, fmode_t fmode)h](j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j{sbc.security_bpf_mapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h fmode_t fmodeh](h)}(hhh]jm)}(hfmode_th]hfmode_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.security_bpf_mapasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfmodeh]hfmode}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhM<ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhM<hjMhhubj)}(hhh]h)}(h'Check if access to a bpf map is allowedh]h'Check if access to a bpf map 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&]uh1jhjMhhhjfhM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhjH'hNhNubj)}(h**Parameters** ``struct bpf_map *map`` bpf map ``fmode_t fmode`` mode **Description** Do a check when the kernel generates and returns a file descriptor for eBPF maps. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj|ubj)}(hhh](j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hjh]hstruct bpf_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjubj)}(hhh]h)}(hbpf maph]hbpf map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubj)}(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.chM>hjubj)}(hhh]h)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjubeh}(h]h ]h"]h$]h&]uh1jhj|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)}(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.}(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.chMBhj|ubh)}(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.chMChj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_prog (C function)c.security_bpf_proghNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h-int security_bpf_prog (struct bpf_prog *prog)h]j)}(h,int security_bpf_prog(struct bpf_prog *prog)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}hhhjhMKubjg)}(hsecurity_bpf_progh]jm)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhjhMKubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_progasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhMKubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhjvhhubj)}(hhh]h)}(h+Check if access to a bpf program is allowedh]h+Check if access to a bpf program is allowed}(hjAhhhNhNubah}(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&]uh1jhjvhhhjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhjH'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)}(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.chMOhj]ubj)}(hhh]j)}(h&``struct bpf_prog *prog`` bpf program h](j)}(h``struct bpf_prog *prog``h]j)}(hjh]hstruct bpf_prog *prog}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhj|ubj)}(hhh]h)}(h bpf programh]h bpf program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjyubah}(h]h ]h"]h$]h&]uh1jhj]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.chMNhj]ubh)}(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.chMMhj]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.chMPhj]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.chMQhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhjH'hhhNhNubh)}(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}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hMYubjg)}(hsecurity_bpf_map_createh]jm)}(hsecurity_bpf_map_createh]hsecurity_bpf_map_create}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hMYubj)}(hQ(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.security_bpf_map_createasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunion bpf_attr *attrh](j)}(hjh]hunion}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_bpf_map_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jc.security_bpf_map_createasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(h bool kernelh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hkernelh]hkernel}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hMYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMYhjhhubj)}(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.chMYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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}(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 bpf_map *map`` BPF map object h](j)}(h``struct bpf_map *map``h]j)}(hj>h]hstruct bpf_map *map}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhj8ubj)}(hhh]h)}(hBPF map objecth]hBPF map object}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMZhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMZhj5ubj)}(hG``union bpf_attr *attr`` BPF syscall attributes used to create BPF map h](j)}(h``union bpf_attr *attr``h]j)}(hjwh]hunion bpf_attr *attr}(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[hjqubj)}(hhh]h)}(h-BPF syscall attributes used to create BPF maph]h-BPF syscall attributes used to create BPF map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM[hj5ubj)}(h@``struct bpf_token *token`` BPF token used to grant user access h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hjubj)}(hhh]h)}(h#BPF token used to grant user accessh]h#BPF token used to grant user access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hj5ubj)}(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.chM]hjubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hj5ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjubh)}(h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.h]h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hjubh)}(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.chMahjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMtubjg)}(hsecurity_bpf_prog_loadh]jm)}(hsecurity_bpf_prog_loadh]hsecurity_bpf_prog_load}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMtubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_prog_loadasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprogh]hprog}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hjh]hunion}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]jc.security_bpf_prog_loadasbuh1hhj;ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_bpf_prog_loadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hkernelh]hkernel}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMthjhhubj)}(hhh]h)}(h*Check if loading of BPF program is allowedh]h*Check if loading of BPF program is allowed}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjH'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)}(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.chMxhjubj)}(hhh](j)}(h-``struct bpf_prog *prog`` BPF program object 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.chMuhjubj)}(hhh]h)}(hBPF program objecth]hBPF program object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(hK``union bpf_attr *attr`` BPF syscall attributes used to create BPF program 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.chMvhjubj)}(hhh]h)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(hQ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubj)}(hhh]h)}(h4BPF token used to grant user access to BPF subsystemh]h4BPF token used to grant user access to BPF subsystem}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMwhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMwhjubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjPh]h bool kernel}(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.chMxhjJubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMxhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMxhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMzhjubh)}(hPerform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program.h]hPerform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjubh)}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhjH'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_bpf_token_createh]jm)}(hsecurity_bpf_token_createh]hsecurity_bpf_token_create}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hH(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_token_createasbuh1hhj0ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunion bpf_attr *attrh](j)}(hjh]hunion}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jnc.security_bpf_token_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jnc.security_bpf_token_createasbuh1hhjubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h)Check if creating of BPF token is allowedh]h)Check if creating of BPF token is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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_token *token`` BPF token object h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj&ubj)}(hhh]h)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create BPF token}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(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)}(hjeh]hconst struct path *path}(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_ubj)}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 check when the kernel instantiates a new BPF token object from BPF FS instance. This is also the point where LSM blob can be allocated for LSMs.h]hDo a check when the kernel instantiates a new BPF token object from BPF FS instance. This is also the point where LSM blob can be allocated for LSMs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_bpf_token_cmdh]jm)}(hsecurity_bpf_token_cmdh]hsecurity_bpf_token_cmd}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h1(const struct bpf_token *token, enum bpf_cmd cmd)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j/sbc.security_bpf_token_cmdasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(henum bpf_cmd cmdh](j)}(hj:h]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_cmdh]hbpf_cmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_bpf_token_cmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmdh]hcmd}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhjH'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)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj)}(hhh](j)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hjh]hconst struct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hP``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token h](j)}(h``enum bpf_cmd cmd``h]j)}(hjh]henum bpf_cmd 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.chMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(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.chMhjfubh)}(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.chMhjfubh)}(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.chMhjfubh)}(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.chMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhjH'hhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjyhMubjg)}(hsecurity_bpf_token_capableh]jm)}(hsecurity_bpf_token_capableh]hsecurity_bpf_token_capable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjyhMubj)}(h((const struct bpf_token *token, int cap)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_token_capableasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint caph](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hcaph]hcap}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjyhMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhj`hhubj)}(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.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hXK**Parameters** ``const struct bpf_token *token`` BPF token object ``int cap`` capabilities requested to be delegated by BPF token **Description** Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF-related capabilities. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hjh]hconst struct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(h3capabilities requested to be delegated by BPF tokenh]h3capabilities requested to be delegated by BPF token}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj0 h]h Description}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.}(hjF 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)}(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 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjm 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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_bpf_map_free (C function)c.security_bpf_map_freehNtauh1hhjH'hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(hsecurity_bpf_map_freeh]jm)}(hsecurity_bpf_map_freeh]hsecurity_bpf_map_free}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_bpf_map_freeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj% hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hmaph]hmap}(hj2 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhj hMhj hhubj)}(hhh]h)}(hFree a bpf map's LSM blobh]hFree a bpf map’s LSM blob}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjY hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjt jjt jjjuh1hhhhjH'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)}(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.chMhjx ubj)}(hhh]j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hj h]hstruct bpf_map *map}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(hbpf maph]hbpf map}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjx 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.chMhjx ubh)}(h8Clean up the security information stored inside bpf map.h]h8Clean up the security information stored inside bpf map.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjx ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhjH'hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj, hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj+ hMubjg)}(hsecurity_bpf_prog_freeh]jm)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hj> hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj: ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj+ hMubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjZ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV ubj)}(h h]h }(hjg hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV ubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjx hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhju ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjz modnameN classnameNjI jL )}jO ]jR )}jE j@ sbc.security_bpf_prog_freeasbuh1hhjV ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV ubjm)}(hprogh]hprog}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjV ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjR ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj+ hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj+ hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj+ hMhj hhubj)}(hhh]h)}(hFree a BPF program's LSM blobh]hFree a BPF program’s LSM blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj+ hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjH'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)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]j)}(h-``struct bpf_prog *prog`` BPF program struct h](j)}(h``struct bpf_prog *prog``h]j)}(hj h]hstruct bpf_prog *prog}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(hBPF program structh]hBPF program struct}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3 hMhj4 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj3 hMhj ubah}(h]h ]h"]h$]h&]uh1jhj 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.chMhj ubh)}(hhhhNhNubah}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_perf_event_write (C function)c.security_perf_event_writehNtauh1hhjH'hhhNhNubh)}(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}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjihhhj{hMubjg)}(hsecurity_perf_event_writeh]jm)}(hsecurity_perf_event_writeh]hsecurity_perf_event_write}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhj{hMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_perf_event_writeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(heventh]hevent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjihhhj{hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj{hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMhjbhhubj)}(hhh]h)}(h.Check if writing a perf event label is allowedh]h.Check if writing a perf event label is allowed}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhjH'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)}(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 perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjnh]hstruct perf_event *event}(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.chMhjhubj)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubh)}(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)}(h*Write perf_event security info if allowed.h]h*Write 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.chMhjIubh)}(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.chMhjIubh)}(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.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_uring_override_creds (C function)c.security_uring_override_credshNtauh1hhjH'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj#hMubjg)}(hsecurity_uring_override_credsh]jm)}(hsecurity_uring_override_credsh]hsecurity_uring_override_creds}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj#hMubj)}(h(const struct cred *new)h]j)}(hconst struct cred *newh](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j8sbc.security_uring_override_credsasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(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)jhuh1hhj#hMhj hhubj)}(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&]uh1jhj hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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.chMhj ubj)}(hhh]j)}(h+``const struct cred *new`` new credentials h](j)}(h``const struct cred *new``h]j)}(hj1h]hconst struct cred *new}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubj)}(hhh]h)}(hnew credentialsh]hnew credentials}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(hqCheck if the current task, executing an io_uring operation, is allowed to override it's credentials with **new**.h](hkCheck if the current task, executing an io_uring operation, is allowed to override it’s credentials with }(hjhhhNhNubj)}(h**new**h]hnew}(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)}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_uring_sqpoll (C function)c.security_uring_sqpollhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h int security_uring_sqpoll (void)h]j)}(hint security_uring_sqpoll(void)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_uring_sqpollh]jm)}(hsecurity_uring_sqpollh]hsecurity_uring_sqpoll}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h'Check if IORING_SETUP_SQPOLL is allowedh]h'Check if IORING_SETUP_SQPOLL is allowed}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhjH'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)}(hjsh]h Parameters}(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.chMhjmubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubh)}(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.chKhjmubh)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubh)}(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.chMhjmubh)}(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.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_uring_cmd (C function)c.security_uring_cmdhNtauh1hhjH'hhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhjGhMubjg)}(hsecurity_uring_cmdh]jm)}(hsecurity_uring_cmdh]hsecurity_uring_cmd}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMubj)}(h(struct io_uring_cmd *ioucmd)h]j)}(hstruct io_uring_cmd *ioucmdh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(h io_uring_cmdh]h io_uring_cmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sbc.security_uring_cmdasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hioucmdh]hioucmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj.hhubj)}(hhh]h)}(h2Check if a io_uring passthrough command is allowedh]h2Check if a io_uring passthrough command 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.hhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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 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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubj)}(hhh]h)}(hcommandh]hcommand}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.}(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&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h!int security_uring_allowed (void)h]j)}(h int security_uring_allowed(void)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_uring_allowedh]jm)}(hsecurity_uring_allowedh]hsecurity_uring_allowed}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h$Check if io_uring_setup() is allowedh]h$Check if io_uring_setup() is allowed}(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&]jjjj`jj`jjjuh1hhhhjH'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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjdubh)}(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.chKhjdubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(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.chMhjdubh)}(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.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhjH'hhhNhNubh)}(hhh](j)}(h(void security_initramfs_populated (void)h]j)}(h'void security_initramfs_populated(void)h](j )}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj>hMubjg)}(hsecurity_initramfs_populatedh]jm)}(hsecurity_initramfs_populatedh]hsecurity_initramfs_populated}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubah}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj%hhubj)}(hhh]h)}(h*Notify LSMs that initramfs has been loadedh]h*Notify LSMs that initramfs has been loaded}(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&]jjjjjjjjjuh1hhhhjH'hNhNubj)}(hy**Parameters** ``void`` no arguments **Description** Tells the LSMs the initramfs has been unpacked into the rootfs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chKhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjH'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhjH'hhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjehKubh)}(hhh]jm)}(hdentryh]hdentry}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE securityfs_create_filesbc.securityfs_create_fileasbuh1hhjThhhjehKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjehKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjehKubjg)}(hsecurityfs_create_fileh]jm)}(hjh]hsecurityfs_create_file}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjehKubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhj+ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubjm)}(hmodeh]hmode}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *datah](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhj%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hfopsh]hfops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjehKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjehKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjehKhjMhhubj)}(hhh]h)}(h*create a file in the securityfs filesystemh]h*create a file in the securityfs filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjehKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjH'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)}(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:286: ./security/inode.chKhjubj)}(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 ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(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}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj9 ubj)}(hhh]h)}(h(the permission that the file should haveh]h(the permission that the file should have}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT hKhjU ubah}(h]h ]h"]h$]h&]uh1jhj9 ubeh}(h]h ]h"]h$]h&]uh1jhjT hKhjubj)}(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)}(hjx h]hstruct dentry *parent}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjr ubj)}(hhh]h)}(ha pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the file will be created in the root of the securityfs filesystem.h](hoa pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is }(hj hhhNhNubj)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhI, then the file will be created in the root of the securityfs filesystem.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjr ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h``void *data`` a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call. h](j)}(h``void *data``h]j)}(hj h]h void *data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(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 ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj!hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj:!h]h Description}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:0ubj)}(h h]h }(hjK0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:0ubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hj\0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjY0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^0modnameN classnameNjI jL )}jO ]j0c.audit_log_subj_ctxasbuh1hhj:0ubj)}(h h]h }(hjz0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:0ubjm)}(hproph]hprop}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:0ubeh}(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)jhuh1hhj/hMhj/hhubj)}(hhh]h)}(hAdd LSM subject informationh]hAdd LSM subject information}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj1*hNhNubj)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj0ubj)}(hhh](j)}(h)``struct audit_buffer *ab`` audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj1h]hstruct audit_buffer *ab}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj0ubj)}(hhh]h)}(h audit_bufferh]h audit_buffer}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubj)}(h2``struct lsm_prop *prop`` LSM subject properties. h](j)}(h``struct lsm_prop *prop``h]j)}(hj91h]hstruct lsm_prop *prop}(hj;1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj71ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj31ubj)}(hhh]h)}(hLSM subject properties.h]hLSM subject properties.}(hjR1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN1hMhjO1ubah}(h]h ]h"]h$]h&]uh1jhj31ubeh}(h]h ]h"]h$]h&]uh1jhjN1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hjt1h]h Description}(hjv1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr1ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_end (C function)c.audit_log_endhNtauh1hhj1*hhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj1hM ubjg)}(h audit_log_endh]jm)}(h audit_log_endh]h audit_log_end}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj1hM ubj)}(h(struct audit_buffer *ab)h]j)}(hstruct audit_buffer *abh](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h audit_bufferh]h audit_buffer}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.audit_log_endasbuh1hhj1ubj)}(h h]h }(hj42hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjB2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(habh]hab}(hjO2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hM ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hM hj1hhubj)}(hhh]h)}(hend one audit recordh]hend one audit record}(hjy2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjv2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj1*hNhNubj)}(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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj2ubj)}(hhh]j)}(h-``struct audit_buffer *ab`` the audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj2h]hstruct audit_buffer *ab}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj2ubj)}(hhh]h)}(hthe audit_bufferh]hthe audit_buffer}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj2ubh)}(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 3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log (C function) c.audit_loghNtauh1hhj1*hhhNhNubh)}(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:3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj63hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM ubj)}(h h]h }(hjI3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj63hhhjH3hM ubjg)}(h audit_logh]jm)}(h audit_logh]h audit_log}(hj[3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjW3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj63hhhjH3hM ubj)}(hK(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjw3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs3ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE j]3sb c.audit_logasbuh1hhjs3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs3ubjm)}(hctxh]hctx}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo3ubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]j3 c.audit_logasbuh1hhj3ubj)}(h h]h }(hj 4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hgfp_maskh]hgfp_mask}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo3ubj)}(hint typeh](j )}(hinth]hint}(hj14hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-4ubj)}(h h]h }(hj?4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-4ubjm)}(htypeh]htype}(hjM4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo3ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjf4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb4ubj)}(h h]h }(hjs4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb4ubj )}(hcharh]hchar}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjb4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb4ubjm)}(hfmth]hfmt}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjb4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo3ubj)}(h...h]j)}(hjh]h...}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjo3ubeh}(h]h ]h"]h$]h&]jjuh1jhj63hhhjH3hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj23hhhjH3hM ubah}(h]j-3ah ](jjeh"]h$]h&]jj)jhuh1hhjH3hM hj/3hhubj)}(hhh]h)}(hLog an audit recordh]hLog an audit record}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj4hhubah}(h]h ]h"]h$]h&]uh1jhj/3hhhjH3hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhj1*hNhNubj)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 5ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj5ubj)}(hhh](j)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hj-5h]hstruct audit_context *ctx}(hj/5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj'5ubj)}(hhh]h)}(h audit contexth]h audit context}(hjF5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB5hM hjC5ubah}(h]h ]h"]h$]h&]uh1jhj'5ubeh}(h]h ]h"]h$]h&]uh1jhjB5hM hj$5ubj)}(h&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hjf5h]hgfp_t gfp_mask}(hjh5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj`5ubj)}(hhh]h)}(htype of allocationh]htype of allocation}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{5hM hj|5ubah}(h]h ]h"]h$]h&]uh1jhj`5ubeh}(h]h ]h"]h$]h&]uh1jhj{5hM hj$5ubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hj5h]hint type}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj5ubj)}(hhh]h)}(haudit message typeh]haudit message type}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM hj$5ubj)}(h)``const char *fmt`` format string to use h](j)}(h``const char *fmt``h]j)}(hj5h]hconst char *fmt}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj5ubj)}(hhh]h)}(hformat string to useh]hformat string to use}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM hj$5ubj)}(h7``...`` variable parameters matching the format string h](j)}(h``...``h]j)}(hj6h]h...}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj 6ubj)}(hhh]h)}(h.variable parameters matching the format stringh]h.variable parameters matching the format string}(hj*6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&6hM hj'6ubah}(h]h ]h"]h$]h&]uh1jhj 6ubeh}(h]h ]h"]h$]h&]uh1jhj&6hM hj$5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h**Description**h]j)}(hjL6h]h Description}(hjN6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ6ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj5ubh)}(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.}(hjb6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_filter_op (C function)c.__audit_filter_ophNtauh1hhj1*hhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj6hM.ubjg)}(h__audit_filter_oph]jm)}(h__audit_filter_oph]h__audit_filter_op}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj6hM.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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE j6sbc.__audit_filter_opasbuh1hhj6ubj)}(h h]h }(hj 7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(htskh]htsk}(hj'7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hj@7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<7ubj)}(h h]h }(hjM7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<7ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj^7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`7modnameN classnameNjI jL )}jO ]j7c.__audit_filter_opasbuh1hhj<7ubj)}(h h]h }(hj|7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<7ubjm)}(hctxh]hctx}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(h list_headh]h list_head}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]j7c.__audit_filter_opasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hlisth]hlist}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct audit_names *nameh](j)}(hjh]hstruct}(hj 8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj-8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(h audit_namesh]h audit_names}(hj>8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@8modnameN classnameNjI jL )}jO ]j7c.__audit_filter_opasbuh1hhj8ubj)}(h h]h }(hj\8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hnameh]hname}(hjw8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned long oph](j )}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj )}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubjm)}(hoph]hop}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhj6hM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj6hM.ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hM.hj6hhubj)}(hhh]h)}(h7common filter helper for operations (syscall/uring/etc)h]h7common filter helper for operations (syscall/uring/etc)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.hj8hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 9jj 9jjjuh1hhhhj1*hNhNubj)}(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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj9ubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hj39h]hstruct task_struct *tsk}(hj59hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj19ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM/hj-9ubj)}(hhh]h)}(hassociated taskh]hassociated task}(hjL9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH9hM/hjI9ubah}(h]h ]h"]h$]h&]uh1jhj-9ubeh}(h]h ]h"]h$]h&]uh1jhjH9hM/hj*9ubj)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hjl9h]hstruct audit_context *ctx}(hjn9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj9ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hjf9ubj)}(hhh]h)}(h audit contexth]h audit context}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM0hj9ubah}(h]h ]h"]h$]h&]uh1jhjf9ubeh}(h]h ]h"]h$]h&]uh1jhj9hM0hj*9ubj)}(h-``struct list_head *list`` audit filter list h](j)}(h``struct list_head *list``h]j)}(hj9h]hstruct list_head *list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hj9ubj)}(hhh]h)}(haudit filter listh]haudit filter list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM1hj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hM1hj*9ubj)}(h6``struct audit_names *name`` audit_name (can be NULL) h](j)}(h``struct audit_names *name``h]j)}(hj9h]hstruct audit_names *name}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj9ubj)}(hhh]h)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM2hj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hM2hj*9ubj)}(h.``unsigned long op`` current syscall/uring_op h](j)}(h``unsigned long op``h]j)}(hj:h]hunsigned long op}(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.chM3hj:ubj)}(hhh]h)}(hcurrent syscall/uring_oph]hcurrent syscall/uring_op}(hj0:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,:hM3hj-:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj,:hM3hj*9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hjR:h]h Description}(hjT:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP:ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hj9ubh)}(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 }(hjh:hhhNhNubj)}(h**list**h]hlist}(hjp:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh:ubh against }(hjh:hhhNhNubj)}(h**tsk**h]htsk}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh:ubh using }(hjh:hhhNhNubj)}(h**ctx**h]hctx}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh:ubh, }(hjh:hhhNhNubj)}(h**name**h]hname}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh:ubh, and }(hjh:hhhNhNubj)}(h**op**h]hop}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh:ubhr, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The }(hjh:hhhNhNubj)}(h**name**h]hname}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh:ubh 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.}(hjh:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_filter_uring (C function)c.audit_filter_uringhNtauh1hhj1*hhhNhNubh)}(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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhj;hMPubjg)}(haudit_filter_uringh]jm)}(haudit_filter_uringh]haudit_filter_uring}(hj$;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj;hMPubj)}(h4(struct task_struct *tsk, struct audit_context *ctx)h](j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hj@;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<;ubj)}(h h]h }(hjM;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<;ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj^;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`;modnameN classnameNjI jL )}jO ]jR )}jE j&;sbc.audit_filter_uringasbuh1hhj<;ubj)}(h h]h }(hj~;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<;ubjm)}(htskh]htsk}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8;ubj)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jz;c.audit_filter_uringasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hctxh]hctx}(hj <hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8;ubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhj;hMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj;hMPubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMPhj:hhubj)}(hhh]h)}(h&apply filters to an io_uring operationh]h&apply filters to an io_uring operation}(hj3<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhj0<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj;hMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjjK<jjK<jjjuh1hhhhj1*hNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit contexth](h)}(h**Parameters**h]j)}(hjU<h]h Parameters}(hjW<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS<ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMThjO<ubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hjt<h]hstruct task_struct *tsk}(hjv<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr<ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMQhjn<ubj)}(hhh]h)}(hassociated taskh]hassociated task}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMQhj<ubah}(h]h ]h"]h$]h&]uh1jhjn<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMQhjk<ubj)}(h+``struct audit_context *ctx`` audit contexth](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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShj<ubj)}(hhh]h)}(h audit contexth]h audit context}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMRhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMShjk<ubeh}(h]h ]h"]h$]h&]uh1jhjO<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h audit_reset_context (C function)c.audit_reset_contexthNtauh1hhj1*hhhNhNubh)}(hhh](j)}(h4void audit_reset_context (struct audit_context *ctx)h]j)}(h3void audit_reset_context(struct audit_context *ctx)h](j )}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhj=hMubjg)}(haudit_reset_contexth]jm)}(haudit_reset_contexth]haudit_reset_context}(hj(=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj=hMubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjD=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@=ubj)}(h h]h }(hjQ=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@=ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjb=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjd=modnameN classnameNjI jL )}jO ]jR )}jE j*=sbc.audit_reset_contextasbuh1hhj@=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@=ubjm)}(hctxh]hctx}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@=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)jhuh1hhj=hMhj<hhubj)}(hhh]h)}(hreset a audit_context structureh]hreset a audit_context structure}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj=hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1hhhhj1*hNhNubj)}(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)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj=ubj)}(hhh]j)}(h9``struct audit_context *ctx`` the audit_context to reset 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj>ubj)}(hhh]h)}(hthe audit_context to reseth]hthe audit_context to reset}(hj!>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjC>h]h Description}(hjE>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA>ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj=ubh)}(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.}(hjY>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_alloc (C function) c.audit_allochNtauh1hhj1*hhhNhNubh)}(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>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>hhhj>hMubjg)}(h audit_alloch]jm)}(h audit_alloch]h audit_alloc}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>hhhj>hMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE j>sb c.audit_allocasbuh1hhj>ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(htskh]htsk}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>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)jhuh1hhj>hMhj}>hhubj)}(hhh]h)}(h*allocate an audit context block for a taskh]h*allocate an audit context block for a task}(hjH?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjE?hhubah}(h]h ]h"]h$]h&]uh1jhj}>hhhj>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`?jj`?jjjuh1hhhhj1*hNhNubj)}(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)}(hjj?h]h Parameters}(hjl?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh?ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjd?ubj)}(hhh]j)}(h!``struct task_struct *tsk`` 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj?ubj)}(hhh]h)}(htaskh]htask}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhjd?ubh)}(h**Description**h]j)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjd?ubh)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjd?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_uring (C function)c.audit_log_uringhNtauh1hhj1*hhhNhNubh)}(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}(hj @hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhj@hMOubjg)}(haudit_log_uringh]jm)}(haudit_log_uringh]haudit_log_uring}(hj*@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhj@hMOubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjF@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB@ubj)}(h h]h }(hjS@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB@ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjd@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjf@modnameN classnameNjI jL )}jO ]jR )}jE j,@sbc.audit_log_uringasbuh1hhjB@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB@ubjm)}(hctxh]hctx}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB@ubeh}(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)jhuh1hhj@hMOhj?hhubj)}(hhh]h)}(hgenerate a AUDIT_URINGOP recordh]hgenerate a AUDIT_URINGOP record}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj@hMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1hhhhj1*hNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](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.chMShj@ubj)}(hhh]j)}(h/``struct audit_context *ctx`` the audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hj Ah]hstruct audit_context *ctx}(hj AhhhNhNubah}(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.chMUhjAubj)}(hhh]h)}(hthe audit contexth]hthe audit context}(hj#AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhj Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMUhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_free (C function)c.__audit_freehNtauh1hhj1*hhhNhNubh)}(hhh](j)}(h+void __audit_free (struct task_struct *tsk)h]j)}(h*void __audit_free(struct task_struct *tsk)h](j )}(hvoidh]hvoid}(hjdAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`AhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hjsAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`AhhhjrAhMubjg)}(h __audit_freeh]jm)}(h __audit_freeh]h __audit_free}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`AhhhjrAhMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h task_structh]h task_struct}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE jAsbc.__audit_freeasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(htskh]htsk}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubah}(h]h ]h"]h$]h&]jjuh1jhj`AhhhjrAhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\AhhhjrAhMubah}(h]jWAah ](jjeh"]h$]h&]jj)jhuh1hhjrAhMhjYAhhubj)}(hhh]h)}(hfree a per-task audit contexth]hfree a per-task audit context}(hj$BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj!Bhhubah}(h]h ]h"]h$]h&]uh1jhjYAhhhjrAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtrue/false value to indicate if the operation succeeded or noth]h>true/false value to indicate if the operation succeeded or not}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM2hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM2hjGDubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hjDh]h long code}(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.chM3hjDubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM3hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM3hjGDubeh}(h]h ]h"]h$]h&]uh1jhj+Dubh)}(h**Description**h]j)}(hjDh]h Description}(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.chM5hj+Dubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hj+Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhj1*hhhNhNubh)}(hhh](j)}(h void __audit_uring_entry (u8 op)h]j)}(hvoid __audit_uring_entry(u8 op)h](j )}(hvoidh]hvoid}(hjBEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>EhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLubj)}(h h]h }(hjQEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>EhhhjPEhMLubjg)}(h__audit_uring_entryh]jm)}(h__audit_uring_entryh]h__audit_uring_entry}(hjcEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_Eubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>EhhhjPEhMLubj)}(h(u8 op)h]j)}(hu8 oph](h)}(hhh]jm)}(hu8h]hu8}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE jeEsbc.__audit_uring_entryasbuh1hhj{Eubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{Eubjm)}(hoph]hop}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwEubah}(h]h ]h"]h$]h&]jjuh1jhj>EhhhjPEhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:EhhhjPEhMLubah}(h]j5Eah ](jjeh"]h$]h&]jj)jhuh1hhjPEhMLhj7Ehhubj)}(hhh]h)}(h4prepare the kernel task's audit context for io_uringh]h6prepare the kernel task’s audit context for io_uring}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLhjEhhubah}(h]h ]h"]h$]h&]uh1jhj7EhhhjPEhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj1*hNhNubj)}(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)}(hjEh]h Parameters}(hjEhhhNhNubah}(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.chMPhjEubj)}(hhh]j)}(h``u8 op`` the io_uring opcode h](j)}(h ``u8 op``h]j)}(hjFh]hu8 op}(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.chMMhjFubj)}(hhh]h)}(hthe io_uring opcodeh]hthe io_uring opcode}(hj4FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0FhMMhj1Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj0FhMMhjFubah}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjVFh]h Description}(hjXFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTFubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhjEubh)}(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.}(hjlFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMNhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_uring_exit (C function)c.__audit_uring_exithNtauh1hhj1*hhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMoubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjFhMoubjg)}(h__audit_uring_exith]jm)}(h__audit_uring_exith]h__audit_uring_exit}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhMoubj)}(h(int success, long code)h](j)}(h int successh](j )}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubjm)}(hsuccessh]hsuccess}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(h long codeh](j )}(hlongh]hlong}(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Gubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Gubjm)}(hcodeh]hcode}(hj)GhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhMoubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMohjFhhubj)}(hhh]h)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hjSGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMohjPGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkGjjkGjjjuh1hhhhj1*hNhNubj)}(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)}(hjuGh]h Parameters}(hjwGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsGubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMshjoGubj)}(hhh](j)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hjGh]h int success}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMphjGubj)}(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}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMphjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMphjGubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hjGh]h long code}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMqhjGubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMqhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMqhjGubeh}(h]h ]h"]h$]h&]uh1jhjoGubh)}(h**Description**h]j)}(hjHh]h Description}(hj HhhhNhNubah}(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.chMshjoGubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMrhjoGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhj1*hhhNhNubh)}(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}(hjMHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIHhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj\HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIHhhhj[HhMubjg)}(h__audit_syscall_entryh]jm)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hjnHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIHhhhj[HhMubj)}(hS(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j)}(h int majorh](j )}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubjm)}(hmajorh]hmajor}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned long a1h](j )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubjm)}(ha1h]ha1}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned long a2h](j )}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Iubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Iubj )}(hlongh]hlong}(hj,IhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Iubj)}(h h]h }(hj:IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Iubjm)}(ha2h]ha2}(hjHIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned long a3h](j )}(hunsignedh]hunsigned}(hjaIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]Iubj)}(h h]h }(hjoIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]Iubj )}(hlongh]hlong}(hj}IhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]Iubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]Iubjm)}(ha3h]ha3}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned long a4h](j )}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubjm)}(ha4h]ha4}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjIHhhhj[HhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEHhhhj[HhMubah}(h]j@Hah ](jjeh"]h$]h&]jj)jhuh1hhj[HhMhjBHhhubj)}(hhh]h)}(h(fill in an audit record at syscall entryh]h(fill in an audit record at syscall entry}(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&]uh1jhjBHhhhj[HhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,Jjj,Jjjjuh1hhhhj1*hNhNubj)}(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)}(hj6Jh]h Parameters}(hj8JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Jubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj0Jubj)}(hhh](j)}(h,``int major`` major syscall type (function) h](j)}(h ``int major``h]j)}(hjUJh]h int major}(hjWJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSJubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjOJubj)}(hhh]h)}(hmajor syscall type (function)h]hmajor syscall type (function)}(hjnJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjJhMhjkJubah}(h]h ]h"]h$]h&]uh1jhjOJubeh}(h]h ]h"]h$]h&]uh1jhjjJhMhjLJubj)}(h3``unsigned long a1`` additional syscall register 1 h](j)}(h``unsigned long a1``h]j)}(hjJh]hunsigned long a1}(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.chMhjJubj)}(hhh]h)}(hadditional syscall register 1h]hadditional syscall register 1}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjLJubj)}(h3``unsigned long a2`` additional syscall register 2 h](j)}(h``unsigned long a2``h]j)}(hjJh]hunsigned long a2}(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.chMhjJubj)}(hhh]h)}(hadditional syscall register 2h]hadditional syscall register 2}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjLJubj)}(h3``unsigned long a3`` additional syscall register 3 h](j)}(h``unsigned long a3``h]j)}(hjKh]hunsigned long a3}(hjKhhhNhNubah}(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.chMhjJubj)}(hhh]h)}(hadditional syscall register 3h]hadditional syscall register 3}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjLJubj)}(h3``unsigned long a4`` additional syscall register 4 h](j)}(h``unsigned long a4``h]j)}(hj9Kh]hunsigned long a4}(hj;KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Kubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj3Kubj)}(hhh]h)}(hadditional syscall register 4h]hadditional syscall register 4}(hjRKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNKhMhjOKubah}(h]h ]h"]h$]h&]uh1jhj3Kubeh}(h]h ]h"]h$]h&]uh1jhjNKhMhjLJubeh}(h]h ]h"]h$]h&]uh1jhj0Jubh)}(h**Description**h]j)}(hjtKh]h Description}(hjvKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj0Jubh)}(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).}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj0Jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__audit_syscall_exit (C function)c.__audit_syscall_exithNtauh1hhj1*hhhNhNubh)}(hhh](j)}(h9void __audit_syscall_exit (int success, long return_code)h]j)}(h8void __audit_syscall_exit(int success, long return_code)h](j )}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhjKhMubjg)}(h__audit_syscall_exith]jm)}(h__audit_syscall_exith]h__audit_syscall_exit}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhjKhMubj)}(h(int success, long return_code)h](j)}(h int successh](j )}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubjm)}(hsuccessh]hsuccess}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hlong return_codeh](j )}(hlongh]hlong}(hj+LhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'Lubj)}(h h]h }(hj9LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Lubjm)}(h return_codeh]h return_code}(hjGLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhjKhhubj)}(hhh]h)}(h,deallocate audit context after a system callh]h,deallocate audit context after a system call}(hjqLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjnLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhj1*hNhNubj)}(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)}(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.chMhjLubj)}(hhh](j)}(h-``int success`` success value of the syscall h](j)}(h``int success``h]j)}(hjLh]h int success}(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.chMhjLubj)}(hhh]h)}(hsuccess value of the syscallh]hsuccess value of the syscall}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(h1``long return_code`` return value of the syscall h](j)}(h``long return_code``h]j)}(hjLh]hlong return_code}(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.chMhjLubj)}(hhh]h)}(hreturn value of the syscallh]hreturn value of the syscall}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hj&Mh]h Description}(hj(MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Mubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjLubh)}(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().}(hjVubj)}(hsize_t msg_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jeVc.__audit_mq_sendrecvasbuh1hhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(hmsg_lenh]hmsg_len}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>Vubj)}(hunsigned int msg_prioh](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(hmsg_prioh]hmsg_prio}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>Vubj)}(h$const struct timespec64 *abs_timeouth](j)}(hjh]hconst}(hj)WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Wubj)}(h h]h }(hj6WhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%Wubj)}(hjh]hstruct}(hjDWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Wubj)}(h h]h }(hjQWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%Wubh)}(hhh]jm)}(h timespec64h]h timespec64}(hjbWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_Wubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdWmodnameN classnameNjI jL )}jO ]jeVc.__audit_mq_sendrecvasbuh1hhj%Wubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%Wubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Wubjm)}(h abs_timeouth]h abs_timeout}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>Vubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjVhM ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjVhM hjUhhubj)}(hhh]h)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjWhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjVhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhj1*hNhNubj)}(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)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjWubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjXh]h mqd_t mqdes}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjXubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hjWubj)}(h"``size_t msg_len`` Message length h](j)}(h``size_t msg_len``h]j)}(hj?Xh]hsize_t msg_len}(hjAXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Xubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj9Xubj)}(hhh]h)}(hMessage lengthh]hMessage length}(hjXXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTXhM hjUXubah}(h]h ]h"]h$]h&]uh1jhj9Xubeh}(h]h ]h"]h$]h&]uh1jhjTXhM hjWubj)}(h+``unsigned int msg_prio`` Message priority h](j)}(h``unsigned int msg_prio``h]j)}(hjxXh]hunsigned int msg_prio}(hjzXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvXubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjrXubj)}(hhh]h)}(hMessage priorityh]hMessage priority}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1jhjrXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hjWubj)}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j)}(h(``const struct timespec64 *abs_timeout``h]j)}(hjXh]h$const struct timespec64 *abs_timeout}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjXubj)}(hhh]h)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hjWubeh}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhj1*hhhNhNubh)}(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}(hj YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjYhM ubjg)}(h__audit_mq_notifyh]jm)}(h__audit_mq_notifyh]h__audit_mq_notify}(hj,YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(Yubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjYhM ubj)}(h2(mqd_t mqdes, const struct sigevent *notification)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hjKYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMYmodnameN classnameNjI jL )}jO ]jR )}jE j.Ysbc.__audit_mq_notifyasbuh1hhjDYubj)}(h h]h }(hjkYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDYubjm)}(hmqdesh]hmqdes}(hjyYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@Yubj)}(h#const struct sigevent *notificationh](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(hsigeventh]hsigevent}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jgYc.__audit_mq_notifyasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(h notificationh]h notification}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@Yubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhM ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjYhM hjYhhubj)}(hhh]h)}(h'record audit data for a POSIX MQ notifyh]h'record audit data for a POSIX MQ notify}(hj.ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj+Zhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFZjjFZjjjuh1hhhhj1*hNhNubj)}(hm**Parameters** ``mqd_t mqdes`` MQ descriptor ``const struct sigevent *notification`` Notification eventh](h)}(h**Parameters**h]j)}(hjPZh]h Parameters}(hjRZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNZubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJZubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjoZh]h mqd_t mqdes}(hjqZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjiZubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM hjZubah}(h]h ]h"]h$]h&]uh1jhjiZubeh}(h]h ]h"]h$]h&]uh1jhjZhM hjfZubj)}(h:``const struct sigevent *notification`` Notification eventh](j)}(h'``const struct sigevent *notification``h]j)}(hjZh]h#const struct sigevent *notification}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjZubj)}(hhh]h)}(hNotification eventh]hNotification event}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhM hjfZubeh}(h]h ]h"]h$]h&]uh1jhjJZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__audit_mq_getsetattr (C function)c.__audit_mq_getsetattrhNtauh1hhj1*hhhNhNubh)}(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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhj[hM ubjg)}(h__audit_mq_getsetattrh]jm)}(h__audit_mq_getsetattrh]h__audit_mq_getsetattr}(hj#[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhj[hM ubj)}(h%(mqd_t mqdes, struct mq_attr *mqstat)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hjB[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjD[modnameN classnameNjI jL )}jO ]jR )}jE j%[sbc.__audit_mq_getsetattrasbuh1hhj;[ubj)}(h h]h }(hjb[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;[ubjm)}(hmqdesh]hmqdes}(hjp[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7[ubj)}(hstruct mq_attr *mqstath](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubh)}(hhh]jm)}(hmq_attrh]hmq_attr}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]j^[c.__audit_mq_getsetattrasbuh1hhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hmqstath]hmqstat}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7[ubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhj[hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhj[hM ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj[hM hjZhhubj)}(hhh]h)}(h2record audit data for a POSIX MQ get/set attributeh]h2record audit data for a POSIX MQ get/set attribute}(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&]uh1jhjZhhhj[hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"\jj"\jjjuh1hhhhj1*hNhNubj)}(hV**Parameters** ``mqd_t mqdes`` MQ descriptor ``struct mq_attr *mqstat`` MQ flagsh](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)}(hjK\h]h mqd_t mqdes}(hjM\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI\ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjE\ubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjd\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`\hM hja\ubah}(h]h ]h"]h$]h&]uh1jhjE\ubeh}(h]h ]h"]h$]h&]uh1jhj`\hM hjB\ubj)}(h#``struct mq_attr *mqstat`` MQ flagsh](j)}(h``struct mq_attr *mqstat``h]j)}(hj\h]hstruct mq_attr *mqstat}(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~\ubj)}(hhh]h)}(hMQ flagsh]hMQ flags}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj\ubah}(h]h ]h"]h$]h&]uh1jhj~\ubeh}(h]h ]h"]h$]h&]uh1jhj\hM hjB\ubeh}(h]h ]h"]h$]h&]uh1jhj&\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_ipc_obj (C function)c.__audit_ipc_objhNtauh1hhj1*hhhNhNubh)}(hhh](j)}(h1void __audit_ipc_obj (struct kern_ipc_perm *ipcp)h]j)}(h0void __audit_ipc_obj(struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhj\hM ubjg)}(h__audit_ipc_objh]jm)}(h__audit_ipc_objh]h__audit_ipc_obj}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhj\hM ubj)}(h(struct kern_ipc_perm *ipcp)h]j)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hj(]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj9]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;]modnameN classnameNjI jL )}jO ]jR )}jE j]sbc.__audit_ipc_objasbuh1hhj]ubj)}(h h]h }(hjY]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hjg]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hipcph]hipcp}(hjt]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]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)jhuh1hhj\hM hj\hhubj)}(hhh]h)}(h record audit data for ipc objecth]h record audit data for ipc object}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj1*hNhNubj)}(h@**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permissionsh](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.``struct kern_ipc_perm *ipcp`` ipc permissionsh](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj]h]hstruct kern_ipc_perm *ipcp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj]ubj)}(hhh]h)}(hipc permissionsh]hipc permissions}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hM hj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__audit_ipc_set_perm (C function)c.__audit_ipc_set_permhNtauh1hhj1*hhhNhNubh)}(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}(hj9^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5^hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjH^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5^hhhjG^hM ubjg)}(h__audit_ipc_set_permh]jm)}(h__audit_ipc_set_permh]h__audit_ipc_set_perm}(hjZ^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjV^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5^hhhjG^hM ubj)}(h:(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j)}(hunsigned long qbytesh](j )}(hunsignedh]hunsigned}(hjv^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjr^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr^ubj )}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjr^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr^ubjm)}(hqbytesh]hqbytes}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjn^ubj)}(h uid_t uidh](h)}(hhh]jm)}(huid_th]huid_t}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jR )}jE j\^sbc.__audit_ipc_set_permasbuh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubjm)}(huidh]huid}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjn^ubj)}(h gid_t gidh](h)}(hhh]jm)}(hgid_th]hgid_t}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]j^c.__audit_ipc_set_permasbuh1hhj _ubj)}(h h]h }(hj2_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj _ubjm)}(hgidh]hgid}(hj@_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj _ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjn^ubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hj\_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjY_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^_modnameN classnameNjI jL )}jO ]j^c.__audit_ipc_set_permasbuh1hhjU_ubj)}(h h]h }(hjz_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjU_ubjm)}(hmodeh]hmode}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjU_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjn^ubeh}(h]h ]h"]h$]h&]jjuh1jhj5^hhhjG^hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1^hhhjG^hM ubah}(h]j,^ah ](jjeh"]h$]h&]jj)jhuh1hhjG^hM hj.^hhubj)}(hhh]h)}(h)record audit data for new ipc permissionsh]h)record audit data for new ipc permissions}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj_hhubah}(h]h ]h"]h$]h&]uh1jhj.^hhhjG^hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhj1*hNhNubj)}(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)}(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$``unsigned long qbytes`` msgq bytes h](j)}(h``unsigned long qbytes``h]j)}(hj_h]hunsigned long qbytes}(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_ubj)}(hhh]h)}(h msgq bytesh]h msgq bytes}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM hj `ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj`hM hj_ubj)}(h``uid_t uid`` msgq user id h](j)}(h ``uid_t uid``h]j)}(hj,`h]h uid_t uid}(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&`ubj)}(hhh]h)}(h msgq user idh]h msgq user id}(hjE`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA`hM hjB`ubah}(h]h ]h"]h$]h&]uh1jhj&`ubeh}(h]h ]h"]h$]h&]uh1jhjA`hM hj_ubj)}(h``gid_t gid`` msgq group id h](j)}(h ``gid_t gid``h]j)}(hje`h]h gid_t gid}(hjg`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc`ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj_`ubj)}(hhh]h)}(h msgq group idh]h msgq group id}(hj~`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz`hM hj{`ubah}(h]h ]h"]h$]h&]uh1jhj_`ubeh}(h]h ]h"]h$]h&]uh1jhjz`hM hj_ubj)}(h)``umode_t mode`` msgq mode (permissions) 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`ubj)}(hhh]h)}(hmsgq mode (permissions)h]hmsgq mode (permissions)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hM hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubh)}(h**Description**h]j)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj_ubh)}(h"Called only after audit_ipc_obj().h]h"Called only after audit_ipc_obj().}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_socketcall (C function)c.__audit_socketcallhNtauh1hhj1*hhhNhNubh)}(hhh](j)}(h7int __audit_socketcall (int nargs, unsigned long *args)h]j)}(h6int __audit_socketcall(int nargs, unsigned long *args)h](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjahhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2 ubj)}(h h]h }(hj-ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjahhhj,ahM2 ubjg)}(h__audit_socketcallh]jm)}(h__audit_socketcallh]h__audit_socketcall}(hj?ahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;aubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhj,ahM2 ubj)}(h (int nargs, unsigned long *args)h](j)}(h int nargsh](j )}(hinth]hint}(hj[ahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWaubj)}(h h]h }(hjiahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWaubjm)}(hnargsh]hnargs}(hjwahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSaubj)}(hunsigned long *argsh](j )}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj )}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hargsh]hargs}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSaubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhj,ahM2 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhj,ahM2 ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj,ahM2 hjahhubj)}(hhh]h)}(h$record audit data for sys_socketcallh]h$record audit data for sys_socketcall}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2 hjahhubah}(h]h ]h"]h$]h&]uh1jhjahhhj,ahM2 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhj1*hNhNubj)}(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)}(hj!bh]h Parameters}(hj#bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM6 hjbubj)}(hhh](j)}(hJ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. h](j)}(h ``int nargs``h]j)}(hj@bh]h int nargs}(hjBbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>bubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3 hj:bubj)}(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.}(hjYbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUbhM3 hjVbubah}(h]h ]h"]h$]h&]uh1jhj:bubeh}(h]h ]h"]h$]h&]uh1jhjUbhM3 hj7bubj)}(h"``unsigned long *args`` args arrayh](j)}(h``unsigned long *args``h]j)}(hjybh]hunsigned long *args}(hj{bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwbubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5 hjsbubj)}(hhh]h)}(h args arrayh]h args array}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4 hjbubah}(h]h ]h"]h$]h&]uh1jhjsbubeh}(h]h ]h"]h$]h&]uh1jhjbhM5 hj7bubeh}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_fd_pair (C function)c.__audit_fd_pairhNtauh1hhj1*hhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMD ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjbhMD ubjg)}(h__audit_fd_pairh]jm)}(h__audit_fd_pairh]h__audit_fd_pair}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjbhMD ubj)}(h(int fd1, int fd2)h](j)}(hint fd1h](j )}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj cubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj cubjm)}(hfd1h]hfd1}(hj,chhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hint fd2h](j )}(hinth]hint}(hjEchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAcubj)}(h h]h }(hjSchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAcubjm)}(hfd2h]hfd2}(hjachhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhMD ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhMD hjbhhubj)}(hhh]h)}(h)record audit data for pipe and socketpairh]h)record audit data for pipe and socketpair}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMD hjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj1*hNhNubj)}(ha**Parameters** ``int fd1`` the first file descriptor ``int fd2`` the second file descriptorh](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.chMH hjcubj)}(hhh](j)}(h&``int fd1`` the first file descriptor h](j)}(h ``int fd1``h]j)}(hjch]hint fd1}(hjchhhNhNubah}(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.chME hjcubj)}(hhh]h)}(hthe first file descriptorh]hthe first file descriptor}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchME hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchME hjcubj)}(h&``int fd2`` the second file descriptorh](j)}(h ``int fd2``h]j)}(hjdh]hint fd2}(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.chMG hjcubj)}(hhh]h)}(hthe second file descriptorh]hthe second file descriptor}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMF hjdubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjdhMG hjcubeh}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_sockaddr (C function)c.__audit_sockaddrhNtauh1hhj1*hhhNhNubh)}(hhh](j)}(h'int __audit_sockaddr (int len, void *a)h]j)}(h&int __audit_sockaddr(int len, void *a)h](j )}(hinth]hint}(hj_dhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[dhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMR ubj)}(h h]h }(hjndhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[dhhhjmdhMR ubjg)}(h__audit_sockaddrh]jm)}(h__audit_sockaddrh]h__audit_sockaddr}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|dubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[dhhhjmdhMR ubj)}(h(int len, void *a)h](j)}(hint lenh](j )}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubjm)}(hlenh]hlen}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hvoid *ah](j )}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hjh]ha}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhj[dhhhjmdhMR ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWdhhhjmdhMR ubah}(h]jRdah ](jjeh"]h$]h&]jj)jhuh1hhjmdhMR hjTdhhubj)}(hhh]h)}(h7record audit data for sys_bind, sys_connect, sys_sendtoh]h7record audit data for sys_bind, sys_connect, sys_sendto}(hj#ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMR hj ehhubah}(h]h ]h"]h$]h&]uh1jhjTdhhhjmdhMR ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;ejj;ejjjuh1hhhhj1*hNhNubj)}(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)}(hjEeh]h Parameters}(hjGehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCeubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMV hj?eubj)}(hhh](j)}(h&``int len`` data length in user space h](j)}(h ``int len``h]j)}(hjdeh]hint len}(hjfehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMS hj^eubj)}(hhh]h)}(hdata length in user spaceh]hdata length in user space}(hj}ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyehMS hjzeubah}(h]h ]h"]h$]h&]uh1jhj^eubeh}(h]h ]h"]h$]h&]uh1jhjyehMS hj[eubj)}(h)``void *a`` data address in kernel space h](j)}(h ``void *a``h]j)}(hjeh]hvoid *a}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMT hjeubj)}(hhh]h)}(hdata address in kernel spaceh]hdata address in kernel space}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMT hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMT hj[eubeh}(h]h ]h"]h$]h&]uh1jhj?eubh)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(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.chMV hj?eubh)}(h6Returns 0 for success or NULL context or < 0 on error.h]h6Returns 0 for success or NULL context or < 0 on error.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMU hj?eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&audit_signal_info_syscall (C function)c.audit_signal_info_syscallhNtauh1hhj1*hhhNhNubh)}(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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv ubj)}(h h]h }(hj,fhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhj+fhMv ubjg)}(haudit_signal_info_syscallh]jm)}(haudit_signal_info_syscallh]haudit_signal_info_syscall}(hj>fhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:fubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhj+fhMv ubj)}(h(struct task_struct *t)h]j)}(hstruct task_struct *th](j)}(hjh]hstruct}(hjZfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVfubj)}(h h]h }(hjgfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVfubh)}(hhh]jm)}(h task_structh]h task_struct}(hjxfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjufubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzfmodnameN classnameNjI jL )}jO ]jR )}jE j@fsbc.audit_signal_info_syscallasbuh1hhjVfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVfubjm)}(hth]ht}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRfubah}(h]h ]h"]h$]h&]jjuh1jhjfhhhj+fhMv ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj+fhMv ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhj+fhMv hjfhhubj)}(hhh]h)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv hjfhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhj+fhMv ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhj1*hNhNubj)}(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)}(hjfh]h Parameters}(hjghhhNhNubah}(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.chMz hjfubj)}(hhh]j)}(h.``struct task_struct *t`` task being signaled h](j)}(h``struct task_struct *t``h]j)}(hjgh]hstruct task_struct *t}(hj ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMw hjgubj)}(hhh]h)}(htask being signaledh]htask being signaled}(hj7ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ghMw hj4gubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhj3ghMw hjgubah}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hjYgh]h Description}(hj[ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWgubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMy hjfubh)}(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.}(hjoghhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMx hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__audit_log_bprm_fcaps (C function)c.__audit_log_bprm_fcapshNtauh1hhj1*hhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghM ubjg)}(h__audit_log_bprm_fcapsh]jm)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghM ubj)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.__audit_log_bprm_fcapsasbuh1hhjgubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hj'hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hbprmh]hbprm}(hj4hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hconst struct cred *newh](j)}(hjh]hconst}(hjMhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhubj)}(h h]h }(hjZhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhubj)}(hjh]hstruct}(hjhhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhubj)}(h h]h }(hjuhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhubh)}(hhh]jm)}(hcredh]hcred}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jhc.__audit_log_bprm_fcapsasbuh1hhjIhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhubjm)}(hnewh]hnew}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(hcredh]hcred}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jhc.__audit_log_bprm_fcapsasbuh1hhjhubj)}(h h]h }(hj/ihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hj=ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(holdh]hold}(hjJihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghM ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghM hjghhubj)}(hhh]h)}(h9store information about a loading bprm and relevant fcapsh]h9store information about a loading bprm and relevant fcaps}(hjtihhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjqihhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj1*hNhNubj)}(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)}(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.chM hjiubj)}(hhh](j)}(hB``struct linux_binprm *bprm`` pointer to the bprm being processed h](j)}(h``struct linux_binprm *bprm``h]j)}(hjih]hstruct linux_binprm *bprm}(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 hjiubj)}(hhh]h)}(h#pointer to the bprm being processedh]h#pointer to the bprm being processed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihM hjiubj)}(h8``const struct cred *new`` the proposed new credentials h](j)}(h``const struct cred *new``h]j)}(hjih]hconst struct cred *new}(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 hjiubj)}(hhh]h)}(hthe proposed new credentialsh]hthe proposed new credentials}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjiubj)}(h/``const struct cred *old`` the old credentials h](j)}(h``const struct cred *old``h]j)}(hj'jh]hconst struct cred *old}(hj)jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%jubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj!jubj)}(hhh]h)}(hthe old credentialsh]hthe old credentials}(hj@jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlh]h Parameters}(hj@lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+vhhhj=vhMubjg)}(haudit_compare_dname_pathh]jm)}(haudit_compare_dname_pathh]haudit_compare_dname_path}(hjPvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+vhhhj=vhMubj)}(h;(const struct qstr *dname, const char *path, int parentlen)h](j)}(hconst struct qstr *dnameh](j)}(hjh]hconst}(hjlvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhvubj)}(h h]h }(hjyvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhvubj)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhvubh)}(hhh]jm)}(hqstrh]hqstr}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE jRvsbc.audit_compare_dname_pathasbuh1hhjhvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhvubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhvubjm)}(hdnameh]hdname}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdvubj)}(hconst char *pathh](j)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj )}(hcharh]hchar}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubj)}(h h]h }(hj"whhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hj0whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hpathh]hpath}(hj=whhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdvubj)}(h int parentlenh](j )}(hinth]hint}(hjVwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRwubj)}(h h]h }(hjdwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRwubjm)}(h parentlenh]h parentlen}(hjrwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdvubeh}(h]h ]h"]h$]h&]jjuh1jhj+vhhhj=vhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'vhhhj=vhMubah}(h]j"vah ](jjeh"]h$]h&]jj)jhuh1hhj=vhMhj$vhhubj)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhj$vhhhj=vhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhj1*hNhNubj)}(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)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjwubj)}(hhh](j)}(h>``const struct qstr *dname`` dentry name that we're comparing h](j)}(h``const struct qstr *dname``h]j)}(hjwh]hconst struct qstr *dname}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjwubj)}(hhh]h)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubj)}(h8``const char *path`` full pathname that we're comparing h](j)}(h``const char *path``h]j)}(hjxh]hconst char *path}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjxubj)}(hhh]h)}(h"full pathname that we're comparingh]h$full pathname that we’re comparing}(hj/xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+xhMhj,xubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj+xhMhjwubj)}(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)}(hjOxh]h int parentlen}(hjQxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMxubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjIxubj)}(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.}(hjhxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdxhMhjexubah}(h]h ]h"]h$]h&]uh1jhjIxubeh}(h]h ]h"]h$]h&]uh1jhjdxhMhjwubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj1*hhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM"ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhhhhhM.ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsys_acct (C function) c.sys_accthNtauh1hhjxhhhNhNubh)}(hhh](j)}(h(long sys_acct (const char __user * name)h]j)}(h&long sys_acct(const char __user *name)h](j )}(hlongh]hlong}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjxhMubjg)}(hsys_accth]jm)}(hsys_accth]hsys_acct}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjxhMubj)}(h(const char __user *name)h]j)}(hconst char __user *nameh](j)}(hjh]hconst}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hj yhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hcharh]hchar}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hj'yhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubh__user}(hjxhhhNhNubj)}(h h]h }(hj9yhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjGyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hnameh]hname}(hjTyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj)}(hhh]h)}(h!enable/disable process accountingh]h!enable/disable process accounting}(hj~yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhj{yhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhjxhNhNubj)}(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)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjyubj)}(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)}(hjyh]hconst char __user * name}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjyubj)}(hhh]h)}(h?file name for accounting records or NULL to shutdown accountingh]h?file name for accounting records or NULL to shutdown accounting}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjyubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjyubh)}(h **Return**h]j)}(hj!zh]hReturn}(hj#zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM"hjyubh)}(h30 for success or negative errno values for failure.h]h30 for success or negative errno values for failure.}(hj7zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM#hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hacct_collect (C function)c.acct_collecthNtauh1hhjxhhhNhNubh)}(hhh](j)}(h1void acct_collect (long exitcode, int group_dead)h]j)}(h0void acct_collect(long exitcode, int group_dead)h](j )}(hvoidh]hvoid}(hjfzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbzhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM)ubj)}(h h]h }(hjuzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbzhhhjtzhM)ubjg)}(h acct_collecth]jm)}(h acct_collecth]h acct_collect}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbzhhhjtzhM)ubj)}(h(long exitcode, int group_dead)h](j)}(h long exitcodeh](j )}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hexitcodeh]hexitcode}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hint group_deadh](j )}(hinth]hint}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(h group_deadh]h group_dead}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjbzhhhjtzhM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^zhhhjtzhM)ubah}(h]jYzah ](jjeh"]h$]h&]jj)jhuh1hhjtzhM)hj[zhhubj)}(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[zhhhjtzhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6{jj6{jjjuh1hhhhjxhNhNubj)}(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)}(hj@{h]h Parameters}(hjB{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-hj:{ubj)}(hhh](j)}(h!``long exitcode`` task exit code h](j)}(h``long exitcode``h]j)}(hj_{h]h long exitcode}(hja{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]{ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM*hjY{ubj)}(hhh]h)}(htask exit codeh]htask exit code}(hjx{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt{hM*hju{ubah}(h]h ]h"]h$]h&]uh1jhjY{ubeh}(h]h ]h"]h$]h&]uh1jhjt{hM*hjV{ubj)}(hH``int group_dead`` not 0, if this thread is the last one in the process.h](j)}(h``int group_dead``h]j)}(hj{h]hint group_dead}(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:304: ./kernel/acct.chM,hj{ubj)}(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.}(hj{hhhNhNubah}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM,hjV{ubeh}(h]h ]h"]h$]h&]uh1jhj:{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hacct_process (C function)c.acct_processhNtauh1hhjxhhhNhNubh)}(hhh](j)}(hvoid acct_process (void)h]j)}(hvoid acct_process(void)h](j )}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMbubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhj|hMbubjg)}(h acct_processh]jm)}(h acct_processh]h acct_process}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhj|hMbubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj/|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+|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)jhuh1hhj|hMbhj{hhubj)}(hhh]h)}(h.handles process accounting for an exiting taskh]h.handles process accounting for an exiting task}(hjY|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMbhjV|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj|hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjq|jjq|jjjuh1hhhhjxhNhNubj)}(h'**Parameters** ``void`` no argumentsh](h)}(h**Parameters**h]j)}(hj{|h]h Parameters}(hj}|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy|ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMfhju|ubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j)}(hj|h]hvoid}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhhj|ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chKhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhhj|ubah}(h]h ]h"]h$]h&]uh1jhju|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjxhhhNhNubeh}(h]accounting-frameworkah ]h"]accounting frameworkah$]h&]uh1hhhhhhhhM.ubh)}(hhh](h)}(h Block Devicesh]h Block Devices}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hhhhhM4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_advance (C function) c.bio_advancehNtauh1hhj|hhhNhNubh)}(hhh](j)}(h7void bio_advance (struct bio *bio, unsigned int nbytes)h]j)}(h6void bio_advance(struct bio *bio, unsigned int nbytes)h](j )}(hvoidh]hvoid}(hj }hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj }hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj }hhhj}hKubjg)}(h bio_advanceh]jm)}(h bio_advanceh]h bio_advance}(hj.}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj }hhhj}hKubj)}(h&(struct bio *bio, unsigned int nbytes)h](j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjJ}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF}ubj)}(h h]h }(hjW}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjF}ubh)}(hhh]jm)}(hbioh]hbio}(hjh}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhje}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjj}modnameN classnameNjI jL )}jO ]jR )}jE j0}sb c.bio_advanceasbuh1hhjF}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjF}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF}ubjm)}(hbioh]hbio}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjB}ubj)}(hunsigned int nbytesh](j )}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj )}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hnbytesh]hnbytes}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjB}ubeh}(h]h ]h"]h$]h&]jjuh1jhj }hhhj}hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}hKubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hKhj}hhubj)}(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&]uh1jhj}hhhj}hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6~jj6~jjjuh1hhhhj|hNhNubj)}(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)}(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:310: ./include/linux/bio.hhKhj:~ubj)}(hhh](j)}(h#``struct bio *bio`` bio to advance h](j)}(h``struct bio *bio``h]j)}(hj_~h]hstruct bio *bio}(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:310: ./include/linux/bio.hhKhjY~ubj)}(hhh]h)}(hbio to advanceh]hbio to advance}(hjx~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt~hKhju~ubah}(h]h ]h"]h$]h&]uh1jhjY~ubeh}(h]h ]h"]h$]h&]uh1jhjt~hKhjV~ubj)}(h4``unsigned int nbytes`` number of bytes to complete h](j)}(h``unsigned int nbytes``h]j)}(hj~h]hunsigned int nbytes}(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.hhKhj~ubj)}(hhh]h)}(hnumber of bytes to completeh]hnumber of bytes to complete}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hKhjV~ubeh}(h]h ]h"]h$]h&]uh1jhj:~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:310: ./include/linux/bio.hhKhj:~ubh)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhj:~ubh)}(hI**bio** will then represent the remaining, uncompleted portion of the io.h](j)}(h**bio**h]hbio}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubhB will then represent the remaining, uncompleted portion of the io.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhj:~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_iter (C struct) c.folio_iterhNtauh1hhj|hhhNhNubh)}(hhh](j)}(h folio_iterh]j)}(hstruct folio_iterh](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhjBhKubjg)}(h folio_iterh]jm)}(hj/h]h folio_iter}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhjBhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjBhKubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjBhKhj*hhubj)}(hhh]h)}(h(State for iterating all folios in a bio.h]h(State for iterating all folios in a bio.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjthhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjBhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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}(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.hhMhjubj#C)}(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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM hjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``offset`` The byte offset within the current folio. h](j)}(h ``offset``h]j)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubj)}(hhh]h)}(h)The byte offset within the current folio.h]h)The byte offset within the current folio.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubj)}(hQ``length`` The number of bytes in this iteration (will not cross folio boundary).h](j)}(h ``length``h]j)}(hjVh]hlength}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjPubj)}(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).}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhj|hhhNhNubh)}(hhh](j)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]jg)}(hbio_for_each_folio_allh]jm)}(hjh]hbio_for_each_folio_all}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM5ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjƀhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjƀhM5hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjƀhM5ubeh}(h]h ](jmacroeh"]h$]h&]jjjj߀jj߀jjjuh1hhhhj|hNhNubh)}(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.hhM7hj|hhubj)}(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&]uh1jhj hM5hj|hhubj)}(hr**Parameters** ``fi`` struct folio_iter which is updated for each folio. ``bio`` struct bio to iterate over.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM9hjubj)}(hhh](j)}(h:``fi`` struct folio_iter which is updated for each folio. h](j)}(h``fi``h]j)}(hj9h]hfi}(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.hhM6hj3ubj)}(hhh]h)}(h2struct folio_iter which is updated for each folio.h]h2struct folio_iter which is updated for each folio.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM6hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhM6hj0ubj)}(h#``bio`` struct bio to iterate over.h](j)}(h``bio``h]j)}(hjrh]hbio}(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.hhM8hjlubj)}(hhh]h)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM7hjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhM8hj0ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_next_split (C function)c.bio_next_splithNtauh1hhj|hhhNhNubh)}(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&]uh1jhjȁhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMEubj)}(h h]h }(hjځhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȁhhhjفhMEubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE bio_next_splitsbc.bio_next_splitasbuh1hhjȁhhhjفhMEubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȁhhhjفhMEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȁhhhjفhMEubjg)}(hbio_next_splith]jm)}(hj h]hbio_next_split}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjȁhhhjفhMEubj)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubh)}(hhh]jm)}(hbioh]hbio}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jc.bio_next_splitasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(h int sectorsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjĂhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsectorsh]hsectors}(hj҂hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.bio_next_splitasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hstruct bio_set *bsh](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hbio_seth]hbio_set}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jc.bio_next_splitasbuh1hhj/ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hbsh]hbs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhjȁhhhjفhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjāhhhjفhMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjفhMEhjhhubj)}(hhh]h)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hjhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# from a bio, splitting if necessary}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjفhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjރjjރjjjuh1hhhhj|hNhNubj)}(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}(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.hhMFhjubj)}(hhh]h)}(h bio to splith]h bio to split}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubj)}(hE``int sectors`` number of sectors to split from the front of **bio** h](j)}(h``int sectors``h]j)}(hj@h]h int sectors}(hjBhhhNhNubah}(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.hhMGhj:ubj)}(hhh]h)}(h4number of sectors to split from the front of **bio**h](h-number of sectors to split from the front of }(hjYhhhNhNubj)}(h**bio**h]hbio}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1hhjUhMGhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMGhjubj)}(h``gfp_t gfp`` gfp mask 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:310: ./include/linux/bio.hhMHhjubj)}(hhh]h)}(hgfp maskh]hgfp mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h0``struct bio_set *bs`` bio set to allocate from h](j)}(h``struct bio_set *bs``h]j)}(hjh]hstruct bio_set *bs}(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.hhMIhjubj)}(hhh]h)}(hbio set to allocate fromh]hbio set to allocate from}(hjلhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjՄhMIhjքubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjՄhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 }(hjhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of }(hjhhhNhNubj)}(h**bio**h]hbio}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh - if the bio is smaller than }(hjhhhNhNubj)}(h **sectors**h]hsectors}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%, returns the original bio unchanged.}(hjhhhNhNubeh}(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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#bio_iov_bounce_nr_vecs (C function)c.bio_iov_bounce_nr_vecshNtauh1hhj|hhhNhNubh)}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhMubj )}(hshorth]hshort}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhMubjg)}(hbio_iov_bounce_nr_vecsh]jm)}(hbio_iov_bounce_nr_vecsh]hbio_iov_bounce_nr_vecs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjhMubj)}(h%(struct iov_iter *iter, blk_opf_t op)h](j)}(hstruct iov_iter *iterh](j)}(hjh]hstruct}(hjυhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˅ubj)}(h h]h }(hj܅hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj˅ubh)}(hhh]jm)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bio_iov_bounce_nr_vecsasbuh1hhj˅ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj˅ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˅ubjm)}(hiterh]hiter}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj˅ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDžubj)}(h blk_opf_t oph](h)}(hhh]jm)}(h blk_opf_th]h blk_opf_t}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]j c.bio_iov_bounce_nr_vecsasbuh1hhj=ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubjm)}(hoph]hop}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDžubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjkhhubj)}(hhh]h)}(h*calculate number of bvecs for a bounce bioh]h*calculate number of bvecs for a bounce bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(h**Parameters** ``struct iov_iter *iter`` iter to bounce from ``blk_opf_t op`` REQ_OP_* for the bio **Description** Calculates how many bvecs are needed for the next bio to bounce from/to **iter**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubj)}(hhh](j)}(h.``struct iov_iter *iter`` iter to bounce from h](j)}(h``struct iov_iter *iter``h]j)}(hjۆh]hstruct iov_iter *iter}(hj݆hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjنubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjՆubj)}(hhh]h)}(hiter to bounce fromh]hiter to bounce from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjՆubeh}(h]h ]h"]h$]h&]uh1jhjhMhj҆ubj)}(h&``blk_opf_t op`` REQ_OP_* for the bio h](j)}(h``blk_opf_t op``h]j)}(hjh]h blk_opf_t op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj҆ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:310: ./include/linux/bio.hhMhjubh)}(hQCalculates how many bvecs are needed for the next bio to bounce from/to **iter**.h](hHCalculates how many bvecs are needed for the next bio to bounce from/to }(hjehhhNhNubj)}(h**iter**h]hiter}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_add_max_vecs (C function)c.bio_add_max_vecshNtauh1hhj|hhhNhNubh)}(hhh](j)}(h=unsigned int bio_add_max_vecs (void *kaddr, unsigned int len)h]j)}(hsubmit_bio will not re-add plugging prior to calling this function. This function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjubj)}(hhh]j)}(h&``struct request_queue *q`` the queue h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjubj)}(hhh]h)}(h the queueh]h the queue}(hjБhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̑hKhj͑ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̑hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chKhjubj)}(hXTThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function. This function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h](h)}(hXThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function.h]hXThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function.}(hj hhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhj|hhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLhhhj^hKubjg)}(hblk_set_pm_onlyh]jm)}(hblk_set_pm_onlyh]hblk_set_pm_only}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLhhhj^hKubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jssbc.blk_set_pm_onlyasbuh1hhjubj)}(h h]h }(hj˒hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjْhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjLhhhj^hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhj^hKubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj^hKhjEhhubj)}(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.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhj|hNhNubj)}(hC**Parameters** ``struct request_queue *q`` request queue pointerh](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(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.chKhj+ubj)}(hhh]j)}(h1``struct request_queue *q`` request queue pointerh](j)}(h``struct request_queue *q``h]j)}(hjPh]hstruct request_queue *q}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjJubj)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_put_queue (C function)c.blk_put_queuehNtauh1hhj|hhhNhNubh)}(hhh](j)}(h,void blk_put_queue (struct request_queue *q)h]j)}(h+void blk_put_queue(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h blk_put_queueh]jm)}(h blk_put_queueh]h blk_put_queue}(hj˓hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjǓubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j͓sbc.blk_put_queueasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h$decrement the request_queue refcounth]h$decrement the request_queue refcount}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(h**Parameters** ``struct request_queue *q`` the request_queue structure to decrement the refcount for **Description** Decrements the refcount of the request_queue and free it when the refcount reaches 0.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]j)}(hV``struct request_queue *q`` the request_queue structure to decrement the refcount for h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]h)}(h9the request_queue structure to decrement the refcount forh]h9the request_queue structure to decrement the refcount for}(hjÔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_get_queue (C function)c.blk_get_queuehNtauh1hhj|hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj&hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhj7hMubjg)}(h blk_get_queueh]jm)}(h blk_get_queueh]h blk_get_queue}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj7hMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.blk_get_queueasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubah}(h]h ]h"]h$]h&]jjuh1jhj&hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj7hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhjhhubj)}(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&]uh1jhjhhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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)}(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)}(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#ubj)}(hhh]h)}(h9the request_queue structure to increment the refcount forh]h9the request_queue structure to increment the refcount for}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjdh]h Description}(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.chMhjubh)}(h4Increment the refcount of the request_queue kobject.h]h4Increment the refcount of the request_queue kobject.}(hjzhhhNhNubah}(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)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsubmit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhj|hhhNhNubh)}(hhh](j)}(h(void submit_bio_noacct (struct bio *bio)h]j)}(h'void submit_bio_noacct(struct bio *bio)h](j )}(hvoidh]hvoid}(hjЖhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj̖hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjߖhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̖hhhjޖhMubjg)}(hsubmit_bio_noaccth]jm)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj̖hhhjޖhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hbioh]hbio}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE jsbc.submit_bio_noacctasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbioh]hbio}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj̖hhhjޖhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjȖhhhjޖhMubah}(h]jÖah ](jjeh"]h$]h&]jj)jhuh1hhjޖhMhjŖhhubj)}(hhh]h)}(h1re-submit a bio to the block device layer for I/Oh]h1re-submit a bio to the block device layer for I/O}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjŖhhhjޖhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hX^**Parameters** ``struct bio *bio`` The bio describing the location in memory and on the device. **Description** This is a version of submit_bio() that shall only be used for I/O that is resubmitted to lower level drivers by stacking block drivers. All file systems and other upper level users of the block layer should use submit_bio() instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]j)}(hQ``struct bio *bio`` The bio describing the location in memory and on the device. h](j)}(h``struct bio *bio``h]j)}(hjїh]hstruct bio *bio}(hjӗhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϗubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj˗ubj)}(hhh]h)}(h` 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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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)}(hjRh]hstruct bio *bio}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjLubj)}(hhh]h)}(h6The :c:type:`struct bio ` which describes the I/Oh](hThe }(hjkhhhNhNubh)}(h:c:type:`struct bio `h]j)}(hjuh]h struct bio}(hjwhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjbiouh1hhjghMhjkubh which describes the I/O}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjIubah}(h]h ]h"]h$]h&]uh1jhj-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-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 }(hjƙhhhNhNubh)}(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&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjbiouh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjƙubhr that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field.}(hjƙhhhNhNubeh}(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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_poll (C function) c.bio_pollhNtauh1hhj|hhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhjGhMubjg)}(hbio_pollh]jm)}(hbio_pollh]hbio_poll}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMubj)}(h@(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sb c.bio_pollasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjšhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hbioh]hbio}(hjϚhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct io_comp_batch *iobh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h io_comp_batchh]h io_comp_batch}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.bio_pollasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hiobh]hiob}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj )}(hinth]hint}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj.hhubj)}(hhh]h)}(hpoll for BIO completionsh]hpoll for BIO completions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjқjjқjjjuh1hhhhj|hNhNubj)}(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)}(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 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.chMhjubj)}(hhh]h)}(hbio to poll forh]hbio to poll for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``struct io_comp_batch *iob`` batches of IO h](j)}(h``struct io_comp_batch *iob``h]j)}(hj4h]hstruct io_comp_batch *iob}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj.ubj)}(hhh]h)}(h batches of IOh]h batches of IO}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(hB``unsigned int flags`` BLK_POLL_* flags that control the behavior h](j)}(h``unsigned int flags``h]j)}(hjmh]hunsigned int flags}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjgubj)}(hhh]h)}(h*BLK_POLL_* flags that control the behaviorh]h*BLK_POLL_* flags that control the behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj֛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֛ubh)}(haPoll for completions on queue associated with the bio. Returns number of completed entries found.h]haPoll for completions on queue associated with the bio. Returns number of completed entries found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj֛ubh)}(h**Note**h]j)}(hjϜh]hNote}(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֛ubh)}(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.chMhj֛ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhj|hhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhjFhMubj )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhjFhMubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhjFhMubjg)}(hbio_start_io_accth]jm)}(hbio_start_io_accth]hbio_start_io_acct}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjFhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jwsbc.bio_start_io_acctasbuh1hhjubj)}(h h]h }(hjϝhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjݝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjFhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhj-hhubj)}(hhh]h)}(h*start I/O accounting for bio based driversh]h*start I/O accounting for bio based drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhj|hNhNubj)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM!hj0ubj)}(hhh]j)}(h-``struct bio *bio`` bio to start account for h](j)}(h``struct bio *bio``h]j)}(hjUh]hstruct bio *bio}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjOubj)}(hhh]h)}(hbio to start account forh]hbio to start account for}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(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.chM hj0ubh)}(hGReturns the start time that should be passed back to bio_end_io_acct().h]hGReturns the start time that should be passed back to bio_end_io_acct().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_lld_busy (C function)c.blk_lld_busyhNtauh1hhj|hhhNhNubh)}(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}(hj՞hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjўhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjўhhhjhMAubjg)}(h blk_lld_busyh]jm)}(h blk_lld_busyh]h blk_lld_busy}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjўhhhjhMAubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_lld_busyasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjўhhhjhMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj͞hhhjhMAubah}(h]jȞah ](jjeh"]h$]h&]jj)jhuh1hhjhMAhjʞ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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMAhjhhubah}(h]h ]h"]h$]h&]uh1jhjʞhhhjhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hX**Parameters** ``struct request_queue *q`` the queue of the device being checked **Description** Check if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, they must set own exporting function using blk_queue_lld_busy() first. Basically, this function is used only by request stacking drivers to stop dispatching requests to underlying devices when underlying devices are busy. This behavior helps more I/O merging on the queue of the request stacking driver and prevents I/O throughput regression on burst I/O load. **Return** 0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMEhjubj)}(hhh]j)}(hB``struct request_queue *q`` the queue of the device being checked 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.chMBhjϟubj)}(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&]uh1jhjϟubeh}(h]h ]h"]h$]h&]uh1jhjhMBhj̟ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMDhjubj)}(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.}(hj9hhhNhNubah}(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&]uh1jhj8hMDhjubh)}(h **Return**h]j)}(hjPh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMNhjubh)}(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)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_start_plug (C function)c.blk_start_plughNtauh1hhj|hhhNhNubh)}(hhh](j)}(h+void blk_start_plug (struct blk_plug *plug)h]j)}(h*void blk_start_plug(struct blk_plug *plug)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_start_plugh]jm)}(hblk_start_plugh]hblk_start_plug}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hjh]hstruct}(hjҠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΠubj)}(h h]h }(hjߠhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjΠubh)}(hhh]jm)}(hblk_plugh]hblk_plug}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_start_plugasbuh1hhjΠubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjΠubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΠubjm)}(hplugh]hplug}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjΠ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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h7initialize blk_plug and track it inside the task_structh]h7initialize blk_plug and track it inside the task_struct}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhj|hNhNubj)}(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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjqubj)}(hhh]j)}(h```struct blk_plug *plug`` The :c:type:`struct blk_plug ` that needs to be initialized h](j)}(h``struct blk_plug *plug``h]j)}(hjh]hstruct blk_plug *plug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]h)}(hEThe :c:type:`struct blk_plug ` that needs to be initializedh](hThe }(hjhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjh]hstruct blk_plug}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjblk_pluguh1hhjhMhjubh that needs to be initialized}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubh)}(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.chMhjqubj)}(hX'blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below). Tracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h](h)}(hX blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below).h](hXablk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds }(hjhhhNhNubj)}(h``BLK_MAX_REQUEST_COUNT``h]hBLK_MAX_REQUEST_COUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+, or if the size of the I/O is larger than }(hjhhhNhNubj)}(h``BLK_PLUG_FLUSH_SIZE``h]hBLK_PLUG_FLUSH_SIZE}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ. The queued I/Os may also be submitted early if the task schedules (see below).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj ubh)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_finish_plug (C function)c.blk_finish_plughNtauh1hhj|hhhNhNubh)}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhMubjg)}(hblk_finish_plugh]jm)}(hblk_finish_plugh]hblk_finish_plug}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjhMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hblk_plugh]hblk_plug}(hjѢhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj΢ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjӢmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_finish_plugasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hplugh]hplug}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjkhhubj)}(hhh]h)}(h(mark the end of a batch of submitted I/Oh]h(mark the end of a batch of submitted I/O}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1hhhhj|hNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjRubj)}(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)}(hjwh]hstruct blk_plug *plug}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjqubj)}(hhh]h)}(hCThe :c:type:`struct blk_plug ` passed to blk_start_plug()h](hThe }(hjhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjh]hstruct blk_plug}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjblk_pluguh1hhjhMhjubh passed to blk_start_plug()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubh)}(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.chMhjRubh)}(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.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_queue_enter (C function)c.blk_queue_enterhNtauh1hhj|hhhNhNubh)}(hhh](j)}(hGint blk_queue_enter (struct request_queue *q, blk_mq_req_flags_t flags)h]j)}(hFint blk_queue_enter(struct request_queue *q, blk_mq_req_flags_t flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM,ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj(hM,ubjg)}(hblk_queue_enterh]jm)}(hblk_queue_enterh]hblk_queue_enter}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hM,ubj)}(h3(struct request_queue *q, blk_mq_req_flags_t flags)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE j=sbc.blk_queue_enterasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hblk_mq_req_flags_t flagsh](h)}(hhh]jm)}(hblk_mq_req_flags_th]hblk_mq_req_flags_t}(hjˤhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjȤubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjͤmodnameN classnameNjI jL )}jO ]jc.blk_queue_enterasbuh1hhjĤubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĤubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjĤubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hM,ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj(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,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj|hNhNubj)}(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)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM0hj=ubj)}(hhh](j)}(h2``struct request_queue *q`` request queue pointer h](j)}(h``struct request_queue *q``h]j)}(hjbh]hstruct request_queue *q}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM-hj\ubj)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM-hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM-hjYubj)}(hC``blk_mq_req_flags_t flags`` BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh](j)}(h``blk_mq_req_flags_t flags``h]j)}(hjh]hblk_mq_req_flags_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM/hjubj)}(hhh]h)}(h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh]h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhj|hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_rq_map_user_iovh]jm)}(hblk_rq_map_user_iovh]hblk_rq_map_user_iov}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_rq_map_user_iovasbuh1hhj.ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct request *rqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjæmodnameN classnameNjI jL )}jO ]jlc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjߦhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct rq_map_data *map_datah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rq_map_datah]h rq_map_data}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jlc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmap_datah]hmap_data}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hconst struct iov_iter *iterh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jlc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjڧhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jlc.blk_rq_map_user_iovasbuh1hhj ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hgfp_maskh]hgfp_mask}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h4map user data to a request, for passthrough requestsh]h4map user data to a request, for passthrough requests}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hX0**Parameters** ``struct request_queue *q`` request queue where request should be inserted ``struct request *rq`` request to map data to ``struct rq_map_data *map_data`` pointer to the rq_map_data holding pages (if necessary) ``const struct iov_iter *iter`` iovec iterator ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used. A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh](j)}(hK``struct request_queue *q`` request queue where request should be inserted h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(h.request queue where request should be insertedh]h.request queue where request should be inserted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``struct request *rq`` request to map data to h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߨubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjۨubj)}(hhh]h)}(hrequest to map data toh]hrequest to map data to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjۨubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hY``struct rq_map_data *map_data`` pointer to the rq_map_data holding pages (if necessary) h](j)}(h ``struct rq_map_data *map_data``h]j)}(hjh]hstruct rq_map_data *map_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(h7pointer to the rq_map_data holding pages (if necessary)h]h7pointer to the rq_map_data holding pages (if necessary)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h/``const struct iov_iter *iter`` iovec iterator h](j)}(h``const struct iov_iter *iter``h]j)}(hjSh]hconst struct iov_iter *iter}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjMubj)}(hhh]h)}(hiovec iteratorh]hiovec iterator}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubj)}(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.chMhjubj)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 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.chMhjݩubh)}(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.chMhjݩubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhj|hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj!hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chM_ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj3hM_ubjg)}(hblk_rq_unmap_userh]jm)}(hblk_rq_unmap_userh]hblk_rq_unmap_user}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj3hM_ubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jHsbc.blk_rq_unmap_userasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubah}(h]h ]h"]h$]h&]jjuh1jhj!hhhj3hM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj3hM_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hM_hjhhubj)}(hhh]h)}(hunmap a request with user datah]hunmap a request with user data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chM_hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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}(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.chMchjubj)}(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 ubj)}(hhh]h)}(hstart of bio listh]hstart of bio list}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM`hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM`hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(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.chMbhjubj)}(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.chMbhjwubah}(h]h ]h"]h$]h&]uh1jhjhMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhj|hhhNhNubh)}(hhh](j)}(hVint blk_rq_map_kern (struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h]j)}(hUint blk_rq_map_kern(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_rq_map_kernh]jm)}(hblk_rq_map_kernh]hblk_rq_map_kern}(hjѫhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjͫubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrequesth]hrequest}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jӫsbc.blk_rq_map_kernasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrqh]hrq}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *kbufh](j )}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hkbufh]hkbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjˬhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hj٬hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j'c.blk_rq_map_kernasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h6map kernel data to a request, for passthrough requestsh]h6map kernel data to a request, for passthrough requests}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj|hNhNubj)}(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)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjgubj)}(hhh](j)}(h'``struct request *rq`` request to fill h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(hrequest to fillh]hrequest to fill}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``void *kbuf`` the kernel buffer h](j)}(h``void *kbuf``h]j)}(hjŭh]h void *kbuf}(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.chMhjubj)}(hhh]h)}(hthe kernel bufferh]hthe kernel buffer}(hjޭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڭhMhjۭubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڭhMhjubj)}(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.chMhjubj)}(hhh]h)}(hlength of user datah]hlength of user data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j)}(hj7h]hgfp_t gfp_mask}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj1ubj)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjgubj)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]h)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_register_queue (C function)c.blk_register_queuehNtauh1hhj|hhhNhNubh)}(hhh](j)}(h-int blk_register_queue (struct gendisk *disk)h]j)}(h,int blk_register_queue(struct gendisk *disk)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMubj)}(h h]h }(hjЮhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjϮhMubjg)}(hblk_register_queueh]jm)}(hblk_register_queueh]hblk_register_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjޮubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjϮhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_register_queueasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdiskh]hdisk}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjϮhMhjhhubj)}(hhh]h)}(h'register a block layer queue with sysfsh]h'register a block layer queue with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjϮhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hk**Parameters** ``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjubj)}(hhh]j)}(hY``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](j)}(h``struct gendisk *disk``h]j)}(hj¯h]hstruct gendisk *disk}(hjįhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjubj)}(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.}(hjۯhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjدubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjׯhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhj|hhhNhNubh)}(hhh](j)}(h0void blk_unregister_queue (struct gendisk *disk)h]j)}(h/void blk_unregister_queue(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj*hMubjg)}(hblk_unregister_queueh]jm)}(hblk_unregister_queueh]hblk_unregister_queue}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj*hMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE j?sbc.blk_unregister_queueasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj*hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhjhhubj)}(hhh]h)}(h#counterpart of blk_register_queue()h]h#counterpart of blk_register_queue()}(hjܰhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjٰhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hjXh]hNote}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(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.}(hjnhhhNhNubah}(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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhj|hhhNhNubh)}(hhh](j)}(h7void blk_set_stacking_limits (struct queue_limits *lim)h]j)}(h6void blk_set_stacking_limits(struct queue_limits *lim)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hblk_set_stacking_limitsh]jm)}(hblk_set_stacking_limitsh]hblk_set_stacking_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct queue_limits *lim)h]j)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hjڱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֱubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjֱubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_set_stacking_limitsasbuh1hhjֱubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjֱubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֱubjm)}(hlimh]hlim}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjֱ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)jhuh1hhjhKhjhhubj)}(hhh]h)}(h'set default limits for stacking devicesh]h'set default limits for stacking devices}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKhjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhj|hNhNubj)}(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)}(hjh]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.chK#hjyubj)}(hhh]j)}(hA``struct queue_limits *lim`` the queue_limits structure to reset h](j)}(h``struct queue_limits *lim``h]j)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK hjubj)}(hhh]h)}(h#the queue_limits structure to reseth]h#the queue_limits structure to reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjyubh)}(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:323: ./block/blk-settings.chK"hjyubh)}(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!hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhj|hhhNhNubh)}(hhh](j)}(hRint queue_limits_commit_update (struct request_queue *q, struct queue_limits *lim)h]j)}(hQint queue_limits_commit_update(struct request_queue *q, struct queue_limits *lim)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM$ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj,hM$ubjg)}(hqueue_limits_commit_updateh]jm)}(hqueue_limits_commit_updateh]hqueue_limits_commit_update}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj,hM$ubj)}(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&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]jR )}jE jAsbc.queue_limits_commit_updateasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hj̳hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȳubj)}(h h]h }(hjٳhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȳubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.queue_limits_commit_updateasbuh1hhjȳubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȳubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȳubjm)}(hlimh]hlim}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjȳubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj,hM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hM$hjhhubj)}(hhh]h)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM$hjJhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhj|hNhNubj)}(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)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM(hjiubj)}(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%hjubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&hjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܴhM&hjݴubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܴhM&hjubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(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.chM(hjiubh)}(hApply the limits in **lim** that were obtained from queue_limits_start_update() and updated by the caller to **q**. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.h](hApply the limits in }(hjhhhNhNubj)}(h**lim**h]hlim}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhR that were obtained from queue_limits_start_update() and updated by the caller to }(hjhhhNhNubj)}(h**q**h]hq}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM'hjiubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM+hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhj|hhhNhNubh)}(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}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvhhhjhMKubjg)}(h!queue_limits_commit_update_frozenh]jm)}(h!queue_limits_commit_update_frozenh]h!queue_limits_commit_update_frozen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhjhMKubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjĵhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjյhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjҵubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj׵modnameN classnameNjI jL )}jO ]jR )}jE jsb#c.queue_limits_commit_update_frozenasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]j#c.queue_limits_commit_update_frozenasbuh1hhj$ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjhMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhMKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhjohhubj)}(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.chMKhjhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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}(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:323: ./block/blk-settings.chMOhjŶubj)}(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.chMLhjubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(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.chMMhjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMMhjubeh}(h]h ]h"]h$]h&]uh1jhjŶ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:323: ./block/blk-settings.chMOhjŶubh)}(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 }(hjthhhNhNubj)}(h**lim**h]hlim}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhf that were obtained from queue_limits_start_update() and updated with the new values by the caller to }(hjthhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh>. Freezes the queue before the update and unfreezes it after.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMNhjŶubh)}(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.chMRhjŶubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hqueue_limits_set (C function)c.queue_limits_sethNtauh1hhj|hhhNhNubh)}(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}(hjַhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjҷhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjҷhhhjhMdubjg)}(hqueue_limits_seth]jm)}(hqueue_limits_seth]hqueue_limits_set}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjҷhhhjhMdubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE jsbc.queue_limits_setasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jMc.queue_limits_setasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjθhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlimh]hlim}(hj۸hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjҷhhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjηhhhjhMdubah}(h]jɷah ](jjeh"]h$]h&]jj)jhuh1hhjhMdhj˷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.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhj˷hhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hX]**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were freshly initialized to **q**. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhhj!ubj)}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hjFh]hstruct request_queue *q}(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.chMehj@ubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMehj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMehj=ubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMfhjyubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMfhj=ubeh}(h]h ]h"]h$]h&]uh1jhj!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.chMhhj!ubh)}(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 }(hjйhhhNhNubj)}(h**lim**h]hlim}(hjعhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjйubh" that were freshly initialized to }(hjйhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjйubhe. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.}(hjйhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMghj!ubh)}(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.chMkhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_stack_limits (C function)c.blk_stack_limitshNtauh1hhj|hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hMubjg)}(hblk_stack_limitsh]jm)}(hblk_stack_limitsh]hblk_stack_limits}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hMubj)}(h@(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j)}(hstruct queue_limits *th](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.blk_stack_limitsasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hjfh]ht}(hjȺhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hstruct queue_limits *bh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܺubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjܺubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_stack_limitsasbuh1hhjܺubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjܺubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܺubjm)}(hjGh]hb}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjܺubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hsector_t starth](h)}(hhh]jm)}(hsector_th]hsector_t}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jc.blk_stack_limitsasbuh1hhjKubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubjm)}(hstarth]hstart}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj@hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj@hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj'hhubj)}(hhh]h)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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&]uh1jhjȻubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM hjĻubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(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)}(hj"h]hstruct queue_limits *b}(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.chMhjubj)}(hhh]h)}(h6the underlying queue limits (bottom, component device)h]h6the underlying queue limits (bottom, component device)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h=``sector_t start`` first data sector within component device h](j)}(h``sector_t start``h]j)}(hj[h]hsector_t start}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjUubj)}(hhh]h)}(h)first data sector within component deviceh]h)first data sector within component device}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(h]h ]h"]h$]h&]uh1jhjĻ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.chM hjĻubj)}(hXThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment. Returns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h](h)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM hjubh)}(hXaReturns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h]hXcReturns 0 if the top and bottom queue_limits are compatible. The top device’s block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjĻubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhj|hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hqueue_limits_stack_bdevh]jm)}(hqueue_limits_stack_bdevh]hqueue_limits_stack_bdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hU(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](j)}(hstruct queue_limits *th](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.queue_limits_stack_bdevasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hjfh]ht}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj½modnameN classnameNjI jL )}jO ]jkc.queue_limits_stack_bdevasbuh1hhjubj)}(h h]h }(hj޽hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hsector_t offseth](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jkc.queue_limits_stack_bdevasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoffseth]hoffset}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hconst char *pfxh](j)}(hjh]hconst}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj )}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hpfxh]hpfx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjȾhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjžhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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)}(hj h]hstruct queue_limits *t}(hj hhhNhNubah}(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.chMhjubj)}(hhh]h)}(h'the stacking driver limits (top device)h]h'the stacking driver limits (top device)}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hjBh]hstruct block_device *bdev}(hjDhhhNhNubah}(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<ubj)}(hhh]h)}(h$the underlying block device (bottom)h]h$the underlying block device (bottom)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjubj)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjuubj)}(hhh]h)}(h3offset to beginning of data within component deviceh]h3offset to beginning of data within component device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``const char *pfx`` prefix to use for warnings logged h](j)}(h``const char *pfx``h]j)}(hjh]hconst char *pfx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(h!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(hjͿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɿhMhjʿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɿhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.}(hj hhhNhNubah}(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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhj|hhhNhNubh)}(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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjKhMubjg)}(hqueue_limits_stack_integrityh]jm)}(hqueue_limits_stack_integrityh]hqueue_limits_stack_integrity}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjKhMubj)}(h0(struct queue_limits *t, struct queue_limits *b)h](j)}(hstruct queue_limits *th](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j`sbc.queue_limits_stack_integrityasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hjfh]ht}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(hstruct queue_limits *bh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftarget.j modnameN classnameNjI jL )}jO ]jc.queue_limits_stack_integrityasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjGh]hb}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjKhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj3hhubj)}(hhh]h)}(hstack integrity profileh]hstack integrity profile}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hX**Parameters** ``struct queue_limits *t`` target queue limits ``struct queue_limits *b`` base queue limits **Description** Check if the integrity profile in the **b** can be stacked into the target **t**. Stacking is possible if either: a) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** If **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh](j)}(h/``struct queue_limits *t`` target queue limits h](j)}(h``struct queue_limits *t``h]j)}(hjh]hstruct queue_limits *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(htarget queue limitsh]htarget queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``struct queue_limits *b`` base queue limits h](j)}(h``struct queue_limits *b``h]j)}(hjh]hstruct queue_limits *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(hbase queue limitsh]hbase queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:323: ./block/blk-settings.chMhjubh)}(hrCheck if the integrity profile in the **b** can be stacked into the target **t**. Stacking is possible if either:h](h&Check if the integrity profile in the }(hj6hhhNhNubj)}(h**b**h]hb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh can be stacked into the target }(hj6hhhNhNubj)}(h**t**h]ht}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh". Stacking is possible if either:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(ha) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** h]jG)}(hhh](j)}(h;does not have any integrity information stacked into it yeth]h)}(hjrh]h;does not have any integrity information stacked into it yet}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjpubah}(h]h ]h"]h$]h&]uh1jhjmubj)}(h@the integrity profile in **b** is identical to the one in **t** h]h)}(h?the integrity profile in **b** is identical to the one in **t**h](hthe integrity profile in }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is identical to the one in }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]jiHjjkHhjlHj9uh1jGhjiubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(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}(hj hhhNhNubah}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhj|hhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjdhMubjg)}(hblk_set_queue_depthh]jm)}(hblk_set_queue_depthh]hblk_set_queue_depth}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjdhMubj)}(h-(struct request_queue *q, unsigned int depth)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jysbc.blk_set_queue_depthasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int depthh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdepthh]hdepth}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjKhhubj)}(hhh]h)}(h1tell the block layer about the device queue depthh]h1tell the block layer about the device queue depth}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhj|hNhNubj)}(ht**Parameters** ``struct request_queue *q`` the request queue for the device ``unsigned int depth`` queue depthh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh](j)}(h=``struct request_queue *q`` the request queue for the device h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(h the request queue for the deviceh]h the request queue for the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``unsigned int depth`` queue depthh](j)}(h``unsigned int depth``h]j)}(hjh]hunsigned int depth}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhj|hhhNhNubh)}(hhh](j)}(h2int blkdev_issue_flush (struct block_device *bdev)h]j)}(h1int blkdev_issue_flush(struct block_device *bdev)h](j )}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhjHhMubjg)}(hblkdev_issue_flushh]jm)}(hblkdev_issue_flushh]hblkdev_issue_flush}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhjHhMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j]sbc.blkdev_issue_flushasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(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)jhuh1hhjHhMhj/hhubj)}(hhh]h)}(h queue a flushh]h queue a flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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)}(hj;h]hstruct block_device *bdev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhj5ubj)}(hhh]h)}(hblockdev to issue flush forh]hblockdev to issue flush for}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(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)}(hjh]h/Issue a flush for the block device in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhj|hhhNhNubh)}(hhh](j)}(hhint blkdev_issue_discard (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h]j)}(hgint blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKKubjg)}(hblkdev_issue_discardh]jm)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKKubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blkdev_issue_discardasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t sectorh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]j;c.blkdev_issue_discardasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubjm)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j;c.blkdev_issue_discardasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j;c.blkdev_issue_discardasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKKhjhhubj)}(hhh]h)}(hqueue a discardh]hqueue a discard}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKKhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj|hNhNubj)}(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)}(hj~h]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:329: ./block/blk-lib.chKOhjxubj)}(hhh](j)}(h<``struct block_device *bdev`` blockdev to issue discard for h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKLhjubj)}(hhh]h)}(hblockdev to issue discard forh]hblockdev to issue discard for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjh]hsector_t sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKMhjubj)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h3``sector_t nr_sects`` number of sectors to discard h](j)}(h``sector_t nr_sects``h]j)}(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.chKNhj ubj)}(hhh]h)}(hnumber of sectors to discardh]hnumber of sectors to discard}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKNhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKNhjubj)}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j)}(h``gfp_t gfp_mask``h]j)}(hjHh]hgfp_t gfp_mask}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKOhjBubj)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKOhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKOhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(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:329: ./block/blk-lib.chKQhjxubj)}(h4Issue a discard request for the sectors in question.h]h)}(hjh]h4Issue a discard request for the sectors in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKQhjubah}(h]h ]h"]h$]h&]uh1jhjhKQhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhj|hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h__blkdev_issue_zeroouth]jm)}(h__blkdev_issue_zeroouth]h__blkdev_issue_zeroout}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE jsbc.__blkdev_issue_zerooutasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbdevh]hbdev}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t sectorh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jHc.__blkdev_issue_zerooutasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubjm)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jHc.__blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jHc.__blkdev_issue_zerooutasbuh1hhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hgfp_maskh]hgfp_mask}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio **bioph](j)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(hbioh]hbio}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jHc.__blkdev_issue_zerooutasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hbioph]hbiop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhj|hNhNubj)}(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)}(hj=h]h Parameters}(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.chMhj7ubj)}(hhh](j)}(h0``struct block_device *bdev`` blockdev to issue h](j)}(h``struct block_device *bdev``h]j)}(hj\h]hstruct block_device *bdev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKhjVubj)}(hhh]h)}(hblockdev to issueh]hblockdev to issue}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjSubj)}(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.chMhjubj)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjh]hsector_t nr_sects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubj)}(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}(hj hhhNhNubah}(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.chMhjubj)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubj)}(h,``struct bio **biop`` pointer to anchor bio h](j)}(h``struct bio **biop``h]j)}(hj@h]hstruct bio **biop}(hjBhhhNhNubah}(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.chMhj:ubj)}(hhh]h)}(hpointer to anchor bioh]hpointer to anchor bio}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjSubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hjyh]hunsigned flags}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjsubj)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(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:329: ./block/blk-lib.chMhj7ubj)}(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.chMhjubh)}(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.chM hjubh)}(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.chM hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhj|hhhNhNubh)}(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}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM'ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjShM'ubjg)}(hblkdev_issue_zeroouth]jm)}(hblkdev_issue_zeroouth]hblkdev_issue_zeroout}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjShM'ubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.blkdev_issue_zerooutasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hsector_t sectorh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsectorh]hsector}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jc.blkdev_issue_zerooutasbuh1hhj8ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubjm)}(hnr_sectsh]hnr_sects}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjShM'ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhjShM'ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShM'hj:hhubj)}(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.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjShM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhj|hNhNubj)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM+hj.ubj)}(hhh](j)}(h0``struct block_device *bdev`` blockdev to write h](j)}(h``struct block_device *bdev``h]j)}(hjSh]hstruct block_device *bdev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM(hjMubj)}(hhh]h)}(hblockdev to writeh]hblockdev to write}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM(hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM(hjJubj)}(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.chM)hjubj)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjJubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjh]hsector_t nr_sects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM*hjubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjJubj)}(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.chM+hjubj)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjJubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hj7h]hunsigned flags}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM,hj1ubj)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM,hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM,hjJubeh}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM.hj.ubj)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h]h)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h](hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for }(hjhhhNhNubj)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.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](hblk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhj|hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_trace_ioctlh]jm)}(hblk_trace_ioctlh]hblk_trace_ioctl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_trace_ioctlasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbdevh]hbdev}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h unsigned cmdh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubjm)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hchar __user *argh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hargh]harg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj|hNhNubj)}(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)}(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:335: ./kernel/trace/blktrace.chMhj8ubj)}(hhh](j)}(h/``struct block_device *bdev`` the block device h](j)}(h``struct block_device *bdev``h]j)}(hj]h]hstruct block_device *bdev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjWubj)}(hhh]h)}(hthe block deviceh]hthe block device}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(h``unsigned cmd`` the ioctl cmd h](j)}(h``unsigned cmd``h]j)}(hjh]h unsigned cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h the ioctl cmdh]h the ioctl cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhj|hhhNhNubh)}(hhh](j)}(h1void blk_trace_shutdown (struct request_queue *q)h]j)}(h0void blk_trace_shutdown(struct request_queue *q)h](j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hMubjg)}(hblk_trace_shutdownh]jm)}(hblk_trace_shutdownh]hblk_trace_shutdown}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jLsbc.blk_trace_shutdownasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubah}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhjhhubj)}(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&]uh1jhjhhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hZ**Parameters** ``struct request_queue *q`` the request queue associated with the deviceh](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: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)}(hj)h]hstruct request_queue *q}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj#ubj)}(hhh]h)}(h,the request queue associated with the deviceh]h,the request queue associated with the device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhj|hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_add_trace_rqh]jm)}(hblk_add_trace_rqh]hblk_add_trace_rq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hS(struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h](j)}(hstruct request *rqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_rqasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hblk_status_t errorh](h)}(hhh]jm)}(h blk_status_th]h blk_status_t}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jc.blk_add_trace_rqasbuh1hhj.ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubjm)}(herrorh]herror}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nr_bytesh](j )}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubjm)}(hnr_bytesh]hnr_bytes}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 whath](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rqasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 cgidh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rqasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcgidh]hcgid}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjxhhubj)}(hhh]h)}(h)Add a trace for a request oriented actionh]h)Add a trace for a request oriented action}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hX7**Parameters** ``struct request *rq`` the source request ``blk_status_t error`` return status to log ``unsigned int nr_bytes`` number of completed bytes ``u64 what`` the action ``u64 cgid`` the cgroup info **Description** Records an action against a request. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh](j)}(h*``struct request *rq`` the source request h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(hthe source requesth]hthe source request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``blk_status_t error`` return status to log h](j)}(h``blk_status_t error``h]j)}(hjh]hblk_status_t error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(hreturn status to logh]hreturn status to log}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``unsigned int nr_bytes`` number of completed bytes h](j)}(h``unsigned int nr_bytes``h]j)}(hjh]hunsigned int nr_bytes}(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.chMhjubj)}(hhh]h)}(hnumber of completed bytesh]hnumber of completed bytes}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hjXh]hu64 what}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjRubj)}(hhh]h)}(h the actionh]h the action}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubj)}(h``u64 cgid`` the cgroup info h](j)}(h ``u64 cgid``h]j)}(hjh]hu64 cgid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(hthe cgroup infoh]hthe cgroup info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhj|hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMDubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj(hMDubjg)}(hblk_add_trace_bioh]jm)}(hblk_add_trace_bioh]hblk_add_trace_bio}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hMDubj)}(h?(struct request_queue *q, struct bio *bio, u64 what, int error)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE j=sbc.blk_add_trace_bioasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_bioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hu64 whath](h)}(hhh]jm)}(hu64h]hu64}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jc.blk_add_trace_bioasbuh1hhj4ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(hwhath]hwhat}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h int errorh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubjm)}(herrorh]herror}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hMDubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMDhjhhubj)}(hhh]h)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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.chMHhjubj)}(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}(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.chMEhjubj)}(hhh]h)}(hqueue the io is forh]hqueue the io is for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubj)}(h#``struct bio *bio`` the source bio h](j)}(h``struct bio *bio``h]j)}(hj@h]hstruct bio *bio}(hjBhhhNhNubah}(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:ubj)}(hhh]h)}(hthe source bioh]hthe source bio}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMFhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMFhjubj)}(h``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hjyh]hu64 what}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMGhjsubj)}(hhh]h)}(h the actionh]h the action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(h``int error`` error, if any h](j)}(h ``int error``h]j)}(hjh]h int error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMHhjubj)}(hhh]h)}(h error, if anyh]h error, if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMJhjubj)}(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.chMJhjubah}(h]h ]h"]h$]h&]uh1jhjhMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhj|hhhNhNubh)}(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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhjIhMubjg)}(hblk_add_trace_bio_remaph]jm)}(hblk_add_trace_bio_remaph]hblk_add_trace_bio_remap}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhjIhMubj)}(h9(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](j)}(h void *ignoreh](j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hignoreh]hignore}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j^sbc.blk_add_trace_bio_remapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h dev_t devh](h)}(hhh]jm)}(hdev_th]hdev_t}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jc.blk_add_trace_bio_remapasbuh1hhj(ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubjm)}(hdevh]hdev}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h sector_t fromh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jc.blk_add_trace_bio_remapasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(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)jhuh1hhjIhMhj0hhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h#``struct bio *bio`` the source bio h](j)}(h``struct bio *bio``h]j)}(hjGh]hstruct bio *bio}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjAubj)}(hhh]h)}(hthe source bioh]hthe source bio}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubj)}(h``dev_t dev`` source device h](j)}(h ``dev_t dev``h]j)}(hjh]h dev_t dev}(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.chMhjzubj)}(hhh]h)}(h source deviceh]h source device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjh]h sector_t from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h source sectorh]h source sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.}(hj hhhNhNubah}(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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhj|hhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhjGhMubjg)}(hblk_add_trace_rq_remaph]jm)}(hblk_add_trace_rq_remaph]hblk_add_trace_rq_remap}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMubj)}(h<(void *ignore, struct request *rq, dev_t dev, sector_t from)h](j)}(h void *ignoreh](j )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hignoreh]hignore}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct request *rqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sbc.blk_add_trace_rq_remapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h dev_t devh](h)}(hhh]jm)}(hdev_th]hdev_t}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jc.blk_add_trace_rq_remapasbuh1hhj&ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(hdevh]hdev}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h sector_t fromh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rq_remapasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubjm)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj.hhubj)}(hhh]h)}(h)Add a trace for a request-remap operationh]h)Add a trace for a request-remap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(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)}(hj h]h void *ignore}(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.chMhjubj)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h*``struct request *rq`` the source request h](j)}(h``struct request *rq``h]j)}(hjEh]hstruct request *rq}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj?ubj)}(hhh]h)}(hthe source requesth]hthe source request}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubj)}(h``dev_t dev`` target device h](j)}(h ``dev_t dev``h]j)}(hj~h]h dev_t dev}(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.chMhjxubj)}(hhh]h)}(h target deviceh]h target device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjh]h sector_t from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h source sectorh]h source sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.}(hj hhhNhNubah}(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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdisk_release (C function)c.disk_releasehNtauh1hhj|hhhNhNubh)}(hhh](j)}(h&void disk_release (struct device *dev)h]j)}(h%void disk_release(struct device *dev)h](j )}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhMubjg)}(h disk_releaseh]jm)}(h disk_releaseh]h disk_release}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jdsbc.disk_releaseasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhj6hhubj)}(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&]uh1jhj6hhhjOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj|hNhNubj)}(hX**Parameters** ``struct device *dev`` the device representing this disk **Description** This function releases all allocated resources of the gendisk. Drivers which used device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk. **Context** can sleeph](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubj)}(hhh]j)}(h9``struct device *dev`` the device representing this disk h](j)}(h``struct device *dev``h]j)}(hjBh]hstruct device *dev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhj<ubj)}(hhh]h)}(h!the device representing this diskh]h!the device representing this disk}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(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:338: ./block/genhd.chMhjubh)}(h can sleeph]h can sleep}(hjhhhNhNubah}(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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bdev_count_inflight (C function)c.bdev_count_inflighthNtauh1hhj|hhhNhNubh)}(hhh](j)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid (*probe)(dev_t devt)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hj8h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hprobeh]hprobe}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubj)}(hj9h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hj8h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.__register_blkdevasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubjm)}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubj)}(hj9h]h)}(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)jhuh1hhjhKhjhhubj)}(hhh]h)}(hregister a new block deviceh]hregister a new block device}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjChhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1hhhhj|hNhNubj)}(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)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjbubj)}(hhh](j)}(h``unsigned int major`` the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number. h](j)}(h``unsigned int major``h]j)}(hjh]hunsigned int major}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjubj)}(hhh]h)}(huthe requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number.h](h>the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If }(hjhhhNhNubj)}(h **major**h]hmajor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. = 0, try to allocate any unused major number.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj~ubj)}(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.chKhjubj)}(hhh]h)}(hubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMLhj:ubj)}(hhh]h)}(hholder trying to claim **bdev**h](hholder trying to claim }(hjYhhhNhNubj)}(h**bdev**h]hbdev}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1hhjUhMLhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMLhjubj)}(h2``const struct blk_holder_ops *hops`` holder ops. h](j)}(h%``const struct blk_holder_ops *hops``h]j)}(hjh]h!const struct blk_holder_ops *hops}(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.chMMhjubj)}(hhh]h)}(h holder ops.h]h holder ops.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMOhjubh)}(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 }(hjhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. This function fails if }(hjhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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].}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMNhjubh)}(h **Return**h]j)}(hj h]hReturn}(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.chMRhjubh)}(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.chMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbd_abort_claiming (C function)c.bd_abort_claiminghNtauh1hhj|hhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`hhhjrhMubjg)}(hbd_abort_claimingh]jm)}(hbd_abort_claimingh]hbd_abort_claiming}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhjrhMubj)}(h)(struct block_device *bdev, void *holder)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bd_abort_claimingasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *holderh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hholderh]hholder}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhjrhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhjrhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjYhhubj)}(hhh]h)}(h abort claiming of a block deviceh]h abort claiming of a block device}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhj|hNhNubj)}(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)}(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)}(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.chMhjubj)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``void *holder`` holder that has claimed **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.chMhjubj)}(hhh]h)}(h holder that has claimed **bdev**h](hholder that has claimed }(hjhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbdev_fput (C function) c.bdev_fputhNtauh1hhj|hhhNhNubh)}(hhh](j)}(h'void bdev_fput (struct file *bdev_file)h]j)}(h&void bdev_fput(struct file *bdev_file)h](j )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]ja(h"]h$]h&]uh1j hjjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhj|hMubjg)}(h bdev_fputh]jm)}(h bdev_fputh]h bdev_fput}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhj|hMubj)}(h(struct file *bdev_file)h]j)}(hstruct file *bdev_fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.bdev_fputasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h bdev_fileh]h bdev_file}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhj|hMhjchhubj)}(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&]uh1jhjchhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1hhhhj|hNhNubj)}(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)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjJubj)}(hhh]j)}(h-``struct file *bdev_file`` open block device h](j)}(h``struct file *bdev_file``h]j)}(hjoh]hstruct file *bdev_file}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjiubj)}(hhh]h)}(hopen block deviceh]hopen block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubh)}(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.chMhjJubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlookup_bdev (C function) c.lookup_bdevhNtauh1hhj|hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h lookup_bdevh]jm)}(h lookup_bdevh]h lookup_bdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h"(const char *pathname, dev_t *dev)h](j)}(hconst char *pathnameh](j)}(hjh]hconst}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj )}(hcharh]hchar}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hpathnameh]hpathname}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h dev_t *devh](h)}(hhh]jm)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.lookup_bdevasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj|hNhNubj)}(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.chMhj ubj)}(hhh](j)}(hE``const char *pathname`` Name of the block device in the filesystem. h](j)}(h``const char *pathname``h]j)}(hj2h]hconst char *pathname}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj,ubj)}(hhh]h)}(h+Name of the block device in the filesystem.h]h+Name of the block device in the filesystem.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h>``dev_t *dev`` Pointer to the block device's dev_t, if found. h](j)}(h``dev_t *dev``h]j)}(hjkh]h dev_t *dev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjeubj)}(hhh]h)}(h.Pointer to the block device's dev_t, if found.h]h0Pointer to the block device’s dev_t, if found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(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.chMhj ubh)}(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 }(hjhhhNhNubj)}(h **pathname**h]hpathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh7 in the current namespace if possible and return it in }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj ubh)}(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.chMhj ubh)}(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.chMhj ubh)}(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.chMhj ubh)}(h)0 if succeeded, negative errno otherwise.h]h)0 if succeeded, negative errno otherwise.}(hj.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&]uh1jhj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhj|hhhNhNubh)}(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}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjkhMubjg)}(hbdev_mark_deadh]jm)}(hbdev_mark_deadh]hbdev_mark_dead}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjkhMubj)}(h*(struct block_device *bdev, bool surprise)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bdev_mark_deadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool surpriseh](j )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsurpriseh]hsurprise}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjkhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjRhhubj)}(hhh]h)}(hmark a block device as deadh]hmark a block device as dead}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj|hNhNubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjmubj)}(hhh](j)}(h9``struct block_device *bdev`` block device to operate on 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.chMhjubj)}(hhh]h)}(hblock device to operate onh]hblock device to operate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``bool surprise`` indicate a surprise removal h](j)}(h``bool surprise``h]j)}(hjh]h bool surprise}(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.chMhjubj)}(hhh]h)}(hindicate a surprise removalh]hindicate a surprise removal}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(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.chMhjmubh)}(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 }(hj hhhNhNubj)}(h **surprise**h]hsurprise}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is set to }(hj hhhNhNubj)}(h``true``h]htrue}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhU the device or media is already gone, if not we are preparing for an orderly removal.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjmubh)}(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.}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj|hhhNhNubeh}(h] block-devicesah ]h"] block devicesah$]h&]uh1hhhhhhhhM4ubh)}(hhh](h)}(h Char devicesh]h Char devices}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm hhhhhM\ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#register_chrdev_region (C function)c.register_chrdev_regionhNtauh1hhjm hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hKubjg)}(hregister_chrdev_regionh]jm)}(hregister_chrdev_regionh]hregister_chrdev_region}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hKubj)}(h.(dev_t from, unsigned count, const char *name)h](j)}(h dev_t fromh](h)}(hhh]jm)}(hdev_th]hdev_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sbc.register_chrdev_regionasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hfromh]hfrom}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj, hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hcounth]hcount}(hj: hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *nameh](j)}(hjh]hconst}(hjS hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO ubj)}(h h]h }(hj` hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO ubj )}(hcharh]hchar}(hjn hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO ubj)}(h h]h }(hj| hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO ubjm)}(hnameh]hname}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO 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)jhuh1hhj hKhj hhubj)}(hhh]h)}(h"register a range of device numbersh]h"register a range of device numbers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjm hNhNubj)}(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)}(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.chKhj ubj)}(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)}(hj h]h dev_t from}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hE``unsigned count`` the number of consecutive device numbers required h](j)}(h``unsigned count``h]j)}(hj< h]hunsigned count}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj6 ubj)}(hhh]h)}(h1the number of consecutive device numbers requiredh]h1the number of consecutive device numbers required}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ hKhjR ubah}(h]h ]h"]h$]h&]uh1jhj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hKhj ubj)}(h7``const char *name`` the name of the device or driver. h](j)}(h``const char *name``h]j)}(hju h]hconst char *name}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjo ubj)}(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&]uh1jhjo ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj 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.chKhj ubh)}(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.}(hj hhhNhNubah}(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&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h alloc_chrdev_region (C function)c.alloc_chrdev_regionhNtauh1hhjm hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hKubjg)}(halloc_chrdev_regionh]jm)}(halloc_chrdev_regionh]halloc_chrdev_region}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hKubj)}(hB(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j)}(h dev_t *devh](h)}(hhh]jm)}(hdev_th]hdev_t}(hj5 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2 ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7 modnameN classnameNjI jL )}jO ]jR )}jE j sbc.alloc_chrdev_regionasbuh1hhj. ubj)}(h h]h }(hjU hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj. ubj)}(hjh]h*}(hjc hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj. ubjm)}(hdevh]hdev}(hjp hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj. ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(hunsigned baseminorh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(h baseminorh]h baseminor}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hcounth]hcount}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj* ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj* hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnameh]hname}(hj7 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhj hKhj hhubj)}(hhh]h)}(h'register a range of char device numbersh]h'register a range of char device numbers}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj^ hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjy jjy jjjuh1hhhhjm hNhNubj)}(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)}(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.chKhj} ubj)}(hhh](j)}(h:``dev_t *dev`` output parameter for first assigned number 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.chKhj ubj)}(hhh]h)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned baseminor``h]j)}(hj h]hunsigned baseminor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(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.chKhjubj)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubj)}(hA``const char *name`` the name of the associated device or driver h](j)}(h``const char *name``h]j)}(hjMh]hconst char *name}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjGubj)}(hhh]h)}(h+the name of the associated device or driverh]h+the name of the associated device or driver}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhj ubeh}(h]h ]h"]h$]h&]uh1jhj} 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: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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh). Returns zero or a negative error code.}(hjhhhNhNubeh}(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&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__register_chrdev (C function)c.__register_chrdevhNtauh1hhjm hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h__register_chrdevh]jm)}(h__register_chrdevh]h__register_chrdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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 ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmajorh]hmajor}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseminorh](j )}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubjm)}(h baseminorh]h baseminor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hcharh]hchar}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnameh]hname}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.__register_chrdevasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hfopsh]hfops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhjm hNhNubj)}(hXm**Parameters** ``unsigned int major`` major device number or 0 for dynamic allocation ``unsigned int baseminor`` first of the requested range of minor numbers ``unsigned int count`` the number of minor numbers required ``const char *name`` name of this range of devices ``const struct file_operations *fops`` file operations associated with this devices **Description** If **major** == 0 this functions will dynamically allocate a major and return its number. If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success. Returns a -ve errno on failure. The name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj&ubj)}(hhh](j)}(hG``unsigned int major`` major device number or 0 for dynamic allocation h](j)}(h``unsigned int major``h]j)}(hjKh]hunsigned int major}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjEubj)}(hhh]h)}(h/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjBubj)}(hI``unsigned int baseminor`` first of the requested 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.chKhj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubj)}(h<``unsigned int count`` the number of minor numbers required 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.chKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubj)}(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.chKhjubj)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjBubj)}(hT``const struct file_operations *fops`` file operations associated with this devices h](j)}(h&``const struct file_operations *fops``h]j)}(hj/h]h"const struct file_operations *fops}(hj1hhhNhNubah}(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)ubj)}(hhh]h)}(h,file operations associated with this devicesh]h,file operations associated with this devices}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj&ubh)}(hYIf **major** == 0 this functions will dynamically allocate a major and return its number.h](hIf }(hjhhhNhNubj)}(h **major**h]hmajor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM == 0 this functions will dynamically allocate a major and return its number.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj&ubh)}(h|If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success.h](hIf }(hjhhhNhNubj)}(h **major**h]hmajor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhp > 0 this function will attempt to reserve a device with the given major number and will return zero on success.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj&ubh)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj&ubh)}(hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h]hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it’s ok to use e.g. the name of the module here.}(hjhhhNhNubah}(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&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%unregister_chrdev_region (C function)c.unregister_chrdev_regionhNtauh1hhjm hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM,ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM,ubjg)}(hunregister_chrdev_regionh]jm)}(hunregister_chrdev_regionh]hunregister_chrdev_region}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM,ubj)}(h(dev_t from, unsigned count)h](j)}(h dev_t fromh](h)}(hhh]jm)}(hdev_th]hdev_t}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE j#sbc.unregister_chrdev_regionasbuh1hhj9ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hfromh]hfrom}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM,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,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjm hNhNubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM-hjubj)}(hhh]h)}(h/the first in the range of numbers to unregisterh]h/the first in the range of numbers to unregister}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM-hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM-hjubj)}(h>``unsigned count`` the number of device numbers to unregister h](j)}(h``unsigned count``h]j)}(hjGh]hunsigned count}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM.hjAubj)}(hhh]h)}(h*the number of device numbers to unregisterh]h*the number of device numbers to unregister}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM.hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM.hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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 }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh device numbers, starting with }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hjhhhNhNubeh}(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&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __unregister_chrdev (C function)c.__unregister_chrdevhNtauh1hhjm hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMBubjg)}(h__unregister_chrdevh]jm)}(h__unregister_chrdevh]h__unregister_chrdev}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMBubj)}(hR(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j)}(hunsigned int majorh](j )}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubjm)}(hmajorh]hmajor}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int baseminorh](j )}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubjm)}(h baseminorh]h baseminor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMBhjhhubj)}(hhh]h)}(hunregister and destroy a cdevh]hunregister and destroy a cdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMBhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjm hNhNubj)}(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)}(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.chMFhjubj)}(hhh](j)}(h+``unsigned int major`` major device number h](j)}(h``unsigned int major``h]j)}(hjh]hunsigned int major}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMChjubj)}(hhh]h)}(hmajor device numberh]hmajor device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(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.chMDhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(hJ``unsigned int count`` the number of minor numbers this cdev is occupying h](j)}(h``unsigned int count``h]j)}(hj<h]hunsigned int count}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMEhj6ubj)}(hhh]h)}(h2the number of minor numbers this cdev is occupyingh]h2the number of minor numbers this cdev is occupying}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMEhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMEhjubj)}(h3``const char *name`` name of this range of devices h](j)}(h``const char *name``h]j)}(hjuh]hconst char *name}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMFhjoubj)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMHhjubh)}(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 }(hjhhhNhNubj)}(h **major**h]hmajor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **baseminor**h]h baseminor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5. This function undoes what __register_chrdev() did.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_add (C function) c.cdev_addhNtauh1hhjm hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj'hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj9hMubjg)}(hcdev_addh]jm)}(hcdev_addh]hcdev_add}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj9hMubj)}(h+(struct cdev *p, dev_t dev, unsigned count)h](j)}(hstruct cdev *ph](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(hcdevh]hcdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jNsb c.cdev_addasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(h dev_t devh](h)}(hhh]jm)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.cdev_addasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhj9hMhj hhubj)}(hhh]h)}(hadd a char device to the systemh]hadd a char device to the system}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjm hNhNubj)}(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)}(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.chMhjubj)}(hhh](j)}(h5``struct cdev *p`` the cdev structure for the device h](j)}(h``struct cdev *p``h]j)}(hjh]hstruct cdev *p}(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.chMhjubj)}(hhh]h)}(h!the cdev structure for the deviceh]h!the cdev structure for the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hK``dev_t dev`` the first device number for which this device is responsible 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&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubj)}(hhh]h)}(hdevt 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)}(hjGh]hstruct cdev *cdev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM hjAubj)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM hj>ubj)}(h,``struct device *dev`` the device structure h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(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 hjzubj)}(hhh]h)}(hthe device structureh]hthe device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM hj>ubeh}(h]h ]h"]h$]h&]uh1jhj"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: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 }(hjhhhNhNubj)}(h**cdev**h]hcdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 to the system, just as cdev_add does. It then adds }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX  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.}(hjhhhNhNubeh}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_device_del (C function)c.cdev_device_delhNtauh1hhjm hhhNhNubh)}(hhh](j)}(hdevt 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)}(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.chM5hj 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 ubj)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM2hj ubah}(h]h ]h"]h$]h&]uh1jhj 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 !ubj)}(hhh]h)}(hthe device structureh]hthe device structure}(hj,!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(!hM3hj)!ubah}(h]h ]h"]h$]h&]uh1jhj !ubeh}(h]h ]h"]h$]h&]uh1jhj(!hM3hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjN!h]h Description}(hjP!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL!ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM5hj 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.}(hjd!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM4hj 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.}(hjs!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM7hj 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.chM:hj 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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM;hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_del (C function) c.cdev_delhNtauh1hhjm hhhNhNubh)}(hhh](j)}(hvoid cdev_del (struct cdev *p)h]j)}(hvoid cdev_del(struct cdev *p)h](j )}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMLubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj!hMLubjg)}(hcdev_delh]jm)}(hcdev_delh]hcdev_del}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj!hMLubj)}(h(struct cdev *p)h]j)}(hstruct cdev *ph](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hcdevh]hcdev}(hj$"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&"modnameN classnameNjI jL )}jO ]jR )}jE j!sb c.cdev_delasbuh1hhj"ubj)}(h h]h }(hjD"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjR"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hjh]hp}(hj_"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhj!hhhj!hMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj!hMLubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hMLhj!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.chMLhj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhjm hNhNubj)}(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&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMPhj"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&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMMhj"ubj)}(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&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"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.chMOhj"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.chMNhj"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.chMQhj"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.}(hjS#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMRhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_alloc (C function) c.cdev_allochNtauh1hhjm hhhNhNubh)}(hhh](j)}(hstruct cdev * cdev_alloc (void)h]j)}(hstruct cdev *cdev_alloc(void)h](j)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~#hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMyubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~#hhhj#hMyubh)}(hhh]jm)}(hcdevh]hcdev}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]jR )}jE cdev_allocsb c.cdev_allocasbuh1hhj~#hhhj#hMyubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~#hhhj#hMyubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~#hhhj#hMyubjg)}(h cdev_alloch]jm)}(hj#h]h cdev_alloc}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~#hhhj#hMyubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhj~#hhhj#hMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjz#hhhj#hMyubah}(h]ju#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hMyhjw#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&]uh1jhjw#hhhj#hMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>$jj>$jjjuh1hhhhjm hNhNubj)}(hu**Parameters** ``void`` no arguments **Description** Allocates and returns a cdev structure, or NULL on failure.h](h)}(h**Parameters**h]j)}(hjH$h]h Parameters}(hjJ$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF$ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM}hjB$ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjg$h]hvoid}(hji$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje$ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhja$ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|$hKhj}$ubah}(h]h ]h"]h$]h&]uh1jhja$ubeh}(h]h ]h"]h$]h&]uh1jhj|$hKhj^$ubah}(h]h ]h"]h$]h&]uh1jhjB$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.chKhjB$ubh)}(h;Allocates and returns a cdev structure, or NULL on failure.h]h;Allocates and returns a cdev structure, or NULL on failure.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMzhjB$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjm hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_init (C function) c.cdev_inithNtauh1hhjm hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj$hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$hhhj$hMubjg)}(h cdev_inith]jm)}(h cdev_inith]h cdev_init}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$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 %ubj)}(h h]h }(hj1%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj %ubh)}(hhh]jm)}(hcdevh]hcdev}(hjB%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjD%modnameN classnameNjI jL )}jO ]jR )}jE j %sb c.cdev_initasbuh1hhj %ubj)}(h h]h }(hjb%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj %ubj)}(hjh]h*}(hjp%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj %ubjm)}(hcdevh]hcdev}(hj}%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj %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%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]j^% c.cdev_initasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hfopsh]hfops}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%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)jhuh1hhj$hMhj$hhubj)}(hhh]h)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hj2&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&]jjjjJ&jjJ&jjjuh1hhhhjm hNhNubj)}(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)}(hjT&h]h Parameters}(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.chMhjN&ubj)}(hhh](j)}(h2``struct cdev *cdev`` the structure to initialize h](j)}(h``struct cdev *cdev``h]j)}(hjs&h]hstruct cdev *cdev}(hju&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq&ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjm&ubj)}(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&]uh1jhjm&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjj&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.chMhj&ubj)}(hhh]h)}(h#the file_operations for this deviceh]h#the file_operations for this device}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjj&ubeh}(h]h ]h"]h$]h&]uh1jhjN&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.chMhjN&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.chMhjN&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjm hhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM\ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hjB'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 }(hjP'hhhNhNubh)}(h:c:type:`struct clk `h]j)}(hjZ'h]h struct clk}(hj\'hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjX'ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjclkuh1hhhhMdhjP'ubh 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.}(hjP'hhhNhNubeh}(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 }(hj'hhhNhNubjx)}(h*retention mode*h]hretention mode}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj'ubh. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.}(hj'hhhNhNubeh}(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.}(hj'hhhNhNubah}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj?'hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_notifier (C struct)c.clk_notifierhNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h clk_notifierh]j)}(hstruct clk_notifierh](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.hhKubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj'hKubjg)}(h clk_notifierh]jm)}(hj'h]h clk_notifier}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj'hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj'hKubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hKhj'hhubj)}(hhh]h)}(hassociate a clk with a notifierh]hassociate a clk with a notifier}(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&]uh1jhj'hhhj'hKubeh}(h]h ](jstructeh"]h$]h&]jjjj0(jj0(jjjuh1hhhhj?'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}(hj<(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8(ubh:}(hj8(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hj4(ubj#C)}(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; };}hjU(sbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK2hj4(ubh)}(h **Members**h]j)}(hjf(h]hMembers}(hjh(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8hj4(ubj)}(hhh](j)}(h4``clk`` struct clk * to associate the notifier with h](j)}(h``clk``h]j)}(hj(h]hclk}(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.hhK.hj(ubj)}(hhh]h)}(h+struct clk * to associate the notifier withh]h+struct clk * to associate the notifier with}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hK.hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hK.hj|(ubj)}(h8``notifier_head`` a blocking_notifier_head for this clk h](j)}(h``notifier_head``h]j)}(hj(h]h notifier_head}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK/hj(ubj)}(hhh]h)}(h%a blocking_notifier_head for this clkh]h%a blocking_notifier_head for this clk}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hK/hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hK/hj|(ubj)}(h``node`` linked list pointersh](j)}(h``node``h]j)}(hj(h]hnode}(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.hhK/hj(ubj)}(hhh]h)}(hlinked list pointersh]hlinked list pointers}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hj )ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj )hK/hj|(ubeh}(h]h ]h"]h$]h&]uh1jhj4(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(h**Description**h]j)}(hj:)h]h Description}(hj<)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8)ubah}(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 }(hjP)hhhNhNubj)}(h**clk**h]hclk}(hjX)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP)ubh. Future notifiers on that }(hjP)hhhNhNubj)}(h**clk**h]hclk}(hjj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP)ubh are added to the }(hjP)hhhNhNubj)}(h**notifier_head**h]h notifier_head}(hj|)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP)ubh.}(hjP)hhhNhNubeh}(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](hclk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hclk_notifier_datah]j)}(hstruct clk_notifier_datah](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.hhK8ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj)hK8ubjg)}(hclk_notifier_datah]jm)}(hj)h]hclk_notifier_data}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj)hK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj)hK8ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hK8hj)hhubj)}(hhh]h)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(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&]uh1jhj)hhhj)hK8ubeh}(h]h ](jstructeh"]h$]h&]jjjj*jj*jjjuh1hhhhj?'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}(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:389: ./include/linux/clk.hhKAhj *ubj#C)}(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; };}hj-*sbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKChj *ubh)}(h **Members**h]j)}(hj>*h]hMembers}(hj@*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.hhKIhj *ubj)}(hhh](j)}(h#``clk`` struct clk * being changed h](j)}(h``clk``h]j)}(hj]*h]hclk}(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.hhK?hjW*ubj)}(hhh]h)}(hstruct clk * being changedh]hstruct clk * being changed}(hjv*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr*hK?hjs*ubah}(h]h ]h"]h$]h&]uh1jhjW*ubeh}(h]h ]h"]h$]h&]uh1jhjr*hK?hjT*ubj)}(h'``old_rate`` previous rate of this clk h](j)}(h ``old_rate``h]j)}(hj*h]hold_rate}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hj*ubj)}(hhh]h)}(hprevious rate of this clkh]hprevious rate of this clk}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hK@hj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hK@hjT*ubj)}(h!``new_rate`` new rate of this clkh](j)}(h ``new_rate``h]j)}(hj*h]hnew_rate}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hj*ubj)}(hhh]h)}(hnew rate of this clkh]hnew rate of this clk}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hK@hjT*ubeh}(h]h ]h"]h$]h&]uh1jhj *ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(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.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).}(hj(+hhhNhNubah}(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](hclk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h clk_bulk_datah]j)}(hstruct clk_bulk_datah](j)}(hjh]hstruct}(hjP+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL+hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIubj)}(h h]h }(hj^+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL+hhhj]+hKIubjg)}(h clk_bulk_datah]jm)}(hjJ+h]h clk_bulk_data}(hjp+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjL+hhhj]+hKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjH+hhhj]+hKIubah}(h]jC+ah ](jjeh"]h$]h&]jj)jhuh1hhj]+hKIhjE+hhubj)}(hhh]h)}(h"Data used for bulk clk operations.h]h"Data used for bulk clk operations.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKNhj+hhubah}(h]h ]h"]h$]h&]uh1jhjE+hhhj]+hKIubeh}(h]h ](jstructeh"]h$]h&]jjjj+jj+jjjuh1hhhhj?'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}(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:389: ./include/linux/clk.hhKRhj+ubj#C)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hj+sbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKThj+ubh)}(h **Members**h]j)}(hj+h]hMembers}(hj+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.hhKYhj+ubj)}(hhh](j)}(h``id`` clock consumer ID h](j)}(h``id``h]j)}(hj+h]hid}(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.hhKQhj+ubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKQhj,ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj,hKQhj+ubj)}(h2``clk`` struct clk * to store the associated clockh](j)}(h``clk``h]j)}(hj8,h]hclk}(hj:,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKQhj2,ubj)}(hhh]h)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hjQ,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhjN,ubah}(h]h ]h"]h$]h&]uh1jhj2,ubeh}(h]h ]h"]h$]h&]uh1jhjM,hKQhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(h**Description**h]j)}(hj{,h]h Description}(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.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.}(hj,hhhNhNubah}(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](h"clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhj?'hhhNhNubh)}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK_ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj,hK_ubjg)}(hclk_notifier_registerh]jm)}(hclk_notifier_registerh]hclk_notifier_register}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj,hK_ubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(hclkh]hclk}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE j,sbc.clk_notifier_registerasbuh1hhj,ubj)}(h h]h }(hj4-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hjB-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hclkh]hclk}(hjO-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hstruct notifier_block *nbh](j)}(hjh]hstruct}(hjh-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd-ubj)}(h h]h }(hju-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd-ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]j0-c.clk_notifier_registerasbuh1hhjd-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd-ubjm)}(hnbh]hnb}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj,hK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hK_ubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hK_hj,hhubj)}(hhh]h)}(h.register a clock rate-change notifier callbackh]h.register a clock rate-change notifier callback}(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&]uh1jhj,hhhj,hK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhj?'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)}(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.hhKchj.ubj)}(hhh](j)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(hj*.h]hstruct clk *clk}(hj,.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK`hj$.ubj)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hjC.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?.hK`hj@.ubah}(h]h ]h"]h$]h&]uh1jhj$.ubeh}(h]h ]h"]h$]h&]uh1jhj?.hK`hj!.ubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hjc.h]hstruct notifier_block *nb}(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:389: ./include/linux/clk.hhKahj].ubj)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hj|.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx.hKahjy.ubah}(h]h ]h"]h$]h&]uh1jhj].ubeh}(h]h ]h"]h$]h&]uh1jhjx.hKahj!.ubeh}(h]h ]h"]h$]h&]uh1jhj.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.hhKchj.ubh)}(hProTip: debugging across notifier chains can be frustrating. Make sure that your notifier callback function prints a nice big warning in case of failure.h]hProTip: debugging across notifier chains can be frustrating. Make sure that your notifier callback function prints a nice big warning in case of failure.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKbhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hHint clk_notifier_unregister (struct clk *clk, struct notifier_block *nb)h]j)}(hGint clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj.hKjubjg)}(hclk_notifier_unregisterh]jm)}(hclk_notifier_unregisterh]hclk_notifier_unregister}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hKjubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj-/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hclkh]hclk}(hj>/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@/modnameN classnameNjI jL )}jO ]jR )}jE j/sbc.clk_notifier_unregisterasbuh1hhj/ubj)}(h h]h }(hj^/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hjl/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hclkh]hclk}(hjy/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hstruct notifier_block *nbh](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/modnameN classnameNjI jL )}jO ]jZ/c.clk_notifier_unregisterasbuh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hnbh]hnb}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hKjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj.hKjubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj.hKjhj.hhubj)}(hhh]h)}(h0unregister a clock rate-change notifier callbackh]h0unregister a clock rate-change notifier callback}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKjhj0hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hKjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+0jj+0jjjuh1hhhhj?'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)}(hj50h]h Parameters}(hj70hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj30ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKnhj/0ubj)}(hhh](j)}(hD``struct clk *clk`` clock whose rate we are no longer interested in h](j)}(h``struct clk *clk``h]j)}(hjT0h]hstruct clk *clk}(hjV0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKkhjN0ubj)}(hhh]h)}(h/clock whose rate we are no longer interested inh]h/clock whose rate we are no longer interested in}(hjm0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji0hKkhjj0ubah}(h]h ]h"]h$]h&]uh1jhjN0ubeh}(h]h ]h"]h$]h&]uh1jhji0hKkhjK0ubj)}(hG``struct notifier_block *nb`` notifier block which will be unregisteredh](j)}(h``struct notifier_block *nb``h]j)}(hj0h]hstruct notifier_block *nb}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKmhj0ubj)}(hhh]h)}(h)notifier block which will be unregisteredh]h)notifier block which will be unregistered}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKlhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKmhjK0ubeh}(h]h ]h"]h$]h&]uh1jhj/0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhj?'hhhNhNubh)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKqubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhj0hKqubjg)}(hdevm_clk_notifier_registerh]jm)}(hdevm_clk_notifier_registerh]hdevm_clk_notifier_register}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhj0hKqubj)}(h@(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj$1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubj)}(h h]h }(hj11hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 1ubh)}(hhh]jm)}(hdeviceh]hdevice}(hjB1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjD1modnameN classnameNjI jL )}jO ]jR )}jE j 1sbc.devm_clk_notifier_registerasbuh1hhj 1ubj)}(h h]h }(hjb1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 1ubj)}(hjh]h*}(hjp1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 1ubjm)}(hdevh]hdev}(hj}1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hclkh]hclk}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]j^1c.devm_clk_notifier_registerasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hclkh]hclk}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct notifier_block *nbh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj$2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&2modnameN classnameNjI jL )}jO ]j^1c.devm_clk_notifier_registerasbuh1hhj2ubj)}(h h]h }(hjB2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjP2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hnbh]hnb}(hj]2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hKqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hKqubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hKqhj0hhubj)}(hhh]h)}(h0register a managed rate-change notifier callbackh]h0register a managed rate-change notifier callback}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKqhj2hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hKqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj?'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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKuhj2ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj2h]hstruct device *dev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKrhj2ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKrhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKrhj2ubj)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(hj3h]hstruct clk *clk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKshj2ubj)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKshj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hKshj2ubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hj:3h]hstruct notifier_block *nb}(hj<3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj83ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKthj43ubj)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hjS3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO3hKthjP3ubah}(h]h ]h"]h$]h&]uh1jhj43ubeh}(h]h ]h"]h$]h&]uh1jhjO3hKthj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hju3h]h Description}(hjw3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKvhj2ubh)}(h'Returns 0 on success, -EERROR otherwiseh]h'Returns 0 on success, -EERROR otherwise}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKuhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h'long clk_get_accuracy (struct clk *clk)h]j)}(h&long clk_get_accuracy(struct clk *clk)h](j )}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhj3hK|ubjg)}(hclk_get_accuracyh]jm)}(hclk_get_accuracyh]hclk_get_accuracy}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj3hK|ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(hclkh]hclk}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE j3sbc.clk_get_accuracyasbuh1hhj3ubj)}(h h]h }(hj54hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjC4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hclkh]hclk}(hjP4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hK|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hK|ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hK|hj3hhubj)}(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.}(hjz4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|hjw4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hK|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhKhj4ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj4h]hstruct clk *clk}(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.hhK~hj4ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hK~hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hK~hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(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:389: ./include/linux/clk.hhKhj4ubh)}(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 5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_phase (C function)c.clk_set_phasehNtauh1hhj?'hhhNhNubh)}(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;5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj75hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjJ5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj75hhhjI5hKubjg)}(h clk_set_phaseh]jm)}(h clk_set_phaseh]h clk_set_phase}(hj\5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj75hhhjI5hKubj)}(h(struct clk *clk, int degrees)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjx5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt5ubh)}(hhh]jm)}(hclkh]hclk}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE j^5sbc.clk_set_phaseasbuh1hhjt5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt5ubjm)}(hclkh]hclk}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjt5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjp5ubj)}(h int degreesh](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hdegreesh]hdegrees}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjp5ubeh}(h]h ]h"]h$]h&]jjuh1jhj75hhhjI5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj35hhhjI5hKubah}(h]j.5ah ](jjeh"]h$]h&]jj)jhuh1hhjI5hKhj05hhubj)}(hhh]h)}(h(adjust the phase shift of a clock signalh]h(adjust the phase shift of a clock signal}(hj06hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj-6hhubah}(h]h ]h"]h$]h&]uh1jhj05hhhjI5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjH6jjH6jjjuh1hhhhj?'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)}(hjR6h]h Parameters}(hjT6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjL6ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hjq6h]hstruct clk *clk}(hjs6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjk6ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhjk6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjh6ubj)}(h8``int degrees`` number of degrees the signal is shifted h](j)}(h``int degrees``h]j)}(hj6h]h int degrees}(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.hhKhj6ubj)}(hhh]h)}(h'number of degrees the signal is shiftedh]h'number of degrees the signal is shifted}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhjh6ubeh}(h]h ]h"]h$]h&]uh1jhjL6ubh)}(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:389: ./include/linux/clk.hhKhjL6ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjL6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_phase (C function)c.clk_get_phasehNtauh1hhj?'hhhNhNubh)}(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*7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj97hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&7hhhj87hKubjg)}(h clk_get_phaseh]jm)}(h clk_get_phaseh]h clk_get_phase}(hjK7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&7hhhj87hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjg7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc7ubj)}(h h]h }(hjt7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc7ubh)}(hhh]jm)}(hclkh]hclk}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jM7sbc.clk_get_phaseasbuh1hhjc7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc7ubjm)}(hclkh]hclk}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_7ubah}(h]h ]h"]h$]h&]jjuh1jhj&7hhhj87hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"7hhhj87hKubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj87hKhj7hhubj)}(hhh]h)}(h(return the phase shift of a clock signalh]h(return the phase shift of a clock signal}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj7hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj87hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhj?'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 8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj8ubj)}(hhh]j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj+8h]hstruct clk *clk}(hj-8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj%8ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjD8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@8hKhjA8ubah}(h]h ]h"]h$]h&]uh1jhj%8ubeh}(h]h ]h"]h$]h&]uh1jhj@8hKhj"8ubah}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hjf8h]h Description}(hjh8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj8ubh)}(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|8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhj?'hhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhj8hKubjg)}(hclk_set_duty_cycleh]jm)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj8hKubj)}(h5(struct clk *clk, unsigned int num, unsigned int den)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hclkh]hclk}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE j8sbc.clk_set_duty_cycleasbuh1hhj8ubj)}(h h]h }(hj&9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj49hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hclkh]hclk}(hjA9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hunsigned int numh](j )}(hunsignedh]hunsigned}(hjZ9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjV9ubj)}(h h]h }(hjh9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV9ubj )}(hinth]hint}(hjv9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjV9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV9ubjm)}(hnumh]hnum}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjV9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hunsigned int denh](j )}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hdenh]hden}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hKubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hKhj8hhubj)}(hhh]h)}(h-adjust the duty cycle ratio of a clock signalh]h-adjust the duty cycle ratio 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&]uh1jhj8hhhj8hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%:jj%:jjjuh1hhhhj?'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)}(hj/:h]h Parameters}(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:389: ./include/linux/clk.hhKhj):ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hjN:h]hstruct clk *clk}(hjP:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjH:ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjg:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc:hKhjd:ubah}(h]h ]h"]h$]h&]uh1jhjH:ubeh}(h]h ]h"]h$]h&]uh1jhjc:hKhjE:ubj)}(hE``unsigned int num`` numerator of the duty cycle ratio to be applied h](j)}(h``unsigned int num``h]j)}(hj:h]hunsigned int num}(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:ubj)}(hhh]h)}(h/numerator of the duty cycle ratio to be appliedh]h/numerator of the duty cycle ratio to be applied}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjE:ubj)}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j)}(h``unsigned int den``h]j)}(hj:h]hunsigned int den}(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:ubj)}(hhh]h)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjE:ubeh}(h]h ]h"]h$]h&]uh1jhj):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.hhKhj):ubh)}(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.}(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](h&clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhj?'hhhNhNubh)}(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}(hj@;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj<;hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjO;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<;hhhjN;hKubjg)}(hclk_get_scaled_duty_cycleh]jm)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hja;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj];ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<;hhhjN;hKubj)}(h%(struct clk *clk, unsigned int scale)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj};hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy;ubh)}(hhh]jm)}(hclkh]hclk}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jR )}jE jc;sbc.clk_get_scaled_duty_cycleasbuh1hhjy;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy;ubjm)}(hclkh]hclk}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjy;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhju;ubj)}(hunsigned int scaleh](j )}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj )}(hinth]hint}(hj <hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubjm)}(hscaleh]hscale}(hj'<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhju;ubeh}(h]h ]h"]h$]h&]jjuh1jhj<;hhhjN;hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8;hhhjN;hKubah}(h]j3;ah ](jjeh"]h$]h&]jj)jhuh1hhjN;hKhj5;hhubj)}(hhh]h)}(h-return the duty cycle ratio of a clock signalh]h-return the duty cycle ratio of a clock signal}(hjQ<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjN<hhubah}(h]h ]h"]h$]h&]uh1jhj5;hhhjN;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjji<jji<jjjuh1hhhhj?'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)}(hjs<h]h Parameters}(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:389: ./include/linux/clk.hhKhjm<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<ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj<ubj)}(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<h]hunsigned int scale}(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<ubj)}(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}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj<ubeh}(h]h ]h"]h$]h&]uh1jhjm<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.hhKhjm<ubh)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjm<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_is_match (C function)c.clk_is_matchhNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj >hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]hstruct}(hj.>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj;>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(hclkh]hclk}(hjL>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjN>modnameN classnameNjI jL )}jO ]j=c.clk_is_matchasbuh1hhj>ubj)}(h h]h }(hjj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjx>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hjch]hq}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjG=hhhjX=hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjC=hhhjX=hKubah}(h]j>=ah ](jjeh"]h$]h&]jj)jhuh1hhjX=hKhj@=hhubj)}(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>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@=hhhjX=hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhj?'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)}(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/``const struct clk *p`` clk compared against q h](j)}(h``const struct clk *p``h]j)}(hj>h]hconst struct clk *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:389: ./include/linux/clk.hhKhj>ubj)}(hhh]h)}(hclk compared against qh]hclk compared against q}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj?ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhj>ubj)}(h/``const struct clk *q`` clk compared against p h](j)}(h``const struct clk *q``h]j)}(hj(?h]hconst struct clk *q}(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"?ubj)}(hhh]h)}(hclk compared against ph]hclk compared against p}(hjA?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=?hKhj>?ubah}(h]h ]h"]h$]h&]uh1jhj"?ubeh}(h]h ]h"]h$]h&]uh1jhj=?hKhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hjc?h]h Description}(hje?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj>ubh)}(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 }(hjy?hhhNhNubj)}(h**p**h]hp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy?ubh and }(hjy?hhhNhNubj)}(h**q**h]hq}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy?ubh share the same }(hjy?hhhNhNubh)}(h$:c:type:`struct clk_core `h]j)}(hj?h]hstruct clk_core}(hj?hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjclk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjy?ubh object.}(hjy?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj?hKhj>ubh)}(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.}(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](h#clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhj?'hhhNhNubh)}(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}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj @hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhj @hKubjg)}(hclk_rate_exclusive_geth]jm)}(hclk_rate_exclusive_geth]hclk_rate_exclusive_get}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhj @hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj;@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7@ubj)}(h h]h }(hjH@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7@ubh)}(hhh]jm)}(hclkh]hclk}(hjY@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjV@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[@modnameN classnameNjI jL )}jO ]jR )}jE j!@sbc.clk_rate_exclusive_getasbuh1hhj7@ubj)}(h h]h }(hjy@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7@ubjm)}(hclkh]hclk}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3@ubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhj @hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj @hKubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhj @hKhj?hhubj)}(hhh]h)}(h3get exclusivity over the rate control of a producerh]h3get exclusivity over the rate control of a producer}(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@jjjuh1hhhhj?'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)}(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 source h](j)}(h``struct clk *clk``h]j)}(hj@h]hstruct 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.hhKhj@ubj)}(hhh]h)}(h clock sourceh]h clock source}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hj:Ah]h Description}(hjDubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjDhKubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhjDhKhjChhubj)}(hhh]h)}(h7release exclusivity over the rate control of a producerh]h7release exclusivity over the rate control of a producer}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjDhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhj?'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)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjDubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj Eh]hstruct clk *clk}(hj EhhhNhNubah}(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.hhKhjEubj)}(hhh]h)}(h clock sourceh]h clock source}(hj#EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhj Eubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjEEh]h Description}(hjGEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjDubh)}(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[EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjDubh)}(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.}(hjjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjDubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjyEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_save_context (C function)c.clk_save_contexthNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hint clk_save_context (void)h]j)}(hint clk_save_context(void)h](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjEhKubjg)}(hclk_save_contexth]jm)}(hclk_save_contexth]hclk_save_context}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjEhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]noemphjjuh1jhjEubah}(h]h ]h"]h$]h&]jjuh1jhjEhhhjEhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjEhKubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjEhKhjEhhubj)}(hhh]h)}(hsave clock context for poweroffh]hsave clock context for poweroff}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj Fhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'Fjj'Fjjjuh1hhhhj?'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)}(hj1Fh]h Parameters}(hj3FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Fubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj+Fubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjPFh]hvoid}(hjRFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjJFubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjiFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeFhKhjfFubah}(h]h ]h"]h$]h&]uh1jhjJFubeh}(h]h ]h"]h$]h&]uh1jhjeFhKhjGFubah}(h]h ]h"]h$]h&]uh1jhj+Fubh)}(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:389: ./include/linux/clk.hhKhj+Fubh)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj+Fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h clk_restore_context (C function)c.clk_restore_contexthNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hvoid clk_restore_context (void)h]j)}(hvoid clk_restore_context(void)h](j )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjFhKubjg)}(hclk_restore_contexth]jm)}(hclk_restore_contexth]hclk_restore_context}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Gubah}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjFhKhjFhhubj)}(hhh]h)}(h$restore clock context after poweroffh]h$restore clock context after poweroff}(hj7GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj4Ghhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOGjjOGjjjuh1hhhhj?'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)}(hjYGh]h Parameters}(hj[GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjSGubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjxGh]hvoid}(hjzGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjrGubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjGubah}(h]h ]h"]h$]h&]uh1jhjrGubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjoGubah}(h]h ]h"]h$]h&]uh1jhjSGubh)}(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:389: ./include/linux/clk.hhKhjSGubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjSGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_prepare (C function) c.clk_preparehNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h!int clk_prepare (struct clk *clk)h]j)}(h int clk_prepare(struct clk *clk)h](j )}(hinth]hint}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjHhMDubjg)}(h clk_prepareh]jm)}(h clk_prepareh]h clk_prepare}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjHhMDubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj5HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Hubj)}(h h]h }(hjBHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Hubh)}(hhh]jm)}(hclkh]hclk}(hjSHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUHmodnameN classnameNjI jL )}jO ]jR )}jE jHsb c.clk_prepareasbuh1hhj1Hubj)}(h h]h }(hjsHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Hubjm)}(hclkh]hclk}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-Hubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhjHhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjHhMDubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjHhMDhjGhhubj)}(hhh]h)}(hprepare a clock sourceh]hprepare a clock source}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjHhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMHhjHubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjHh]hstruct clk *clk}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMEhjHubj)}(hhh]h)}(h clock sourceh]h clock source}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMEhjIubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjIhMEhjHubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]j)}(hj4Ih]h Description}(hj6IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Iubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMGhjHubh)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hjJIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMFhjHubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjYIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMHhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_unprepare (C function)c.clk_unpreparehNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h$void clk_unprepare (struct clk *clk)h]j)}(h#void clk_unprepare(struct clk *clk)h](j )}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMNubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhjIhMNubjg)}(h clk_unprepareh]jm)}(h clk_unprepareh]h clk_unprepare}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhjIhMNubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubh)}(hhh]jm)}(hclkh]hclk}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE jIsbc.clk_unprepareasbuh1hhjIubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hclkh]hclk}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubah}(h]h ]h"]h$]h&]jjuh1jhjIhhhjIhMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhMNubah}(h]j{Iah ](jjeh"]h$]h&]jj)jhuh1hhjIhMNhj}Ihhubj)}(hhh]h)}(h"undo preparation of a clock sourceh]h"undo preparation of a clock source}(hjHJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMNhjEJhhubah}(h]h ]h"]h$]h&]uh1jhj}IhhhjIhMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`Jjj`Jjjjuh1hhhhj?'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)}(hjjJh]h Parameters}(hjlJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMRhjdJubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjJh]hstruct clk *clk}(hjJhhhNhNubah}(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.hhMOhjJubj)}(hhh]h)}(h clock sourceh]h clock source}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMOhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMOhjJubah}(h]h ]h"]h$]h&]uh1jhjdJubh)}(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:389: ./include/linux/clk.hhMQhjdJubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMPhjdJubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMShjdJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhj?'hhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]ubj)}(h h]h }(hj&KhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhj%KhM]ubjg)}(hclk_is_enabled_when_preparedh]jm)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hj8KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4Kubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhj%KhM]ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjTKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPKubj)}(h h]h }(hjaKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPKubh)}(hhh]jm)}(hclkh]hclk}(hjrKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtKmodnameN classnameNjI jL )}jO ]jR )}jE j:Ksbc.clk_is_enabled_when_preparedasbuh1hhjPKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPKubjm)}(hclkh]hclk}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLKubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhj%KhM]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhj%KhM]ubah}(h]j Kah ](jjeh"]h$]h&]jj)jhuh1hhj%KhM]hj Khhubj)}(hhh]h)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjKhhubah}(h]h ]h"]h$]h&]uh1jhj Khhhj%KhM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhj?'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)}(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.hhMahjKubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjLh]hstruct clk *clk}(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.hhM^hjLubj)}(hhh]h)}(h clock sourceh]h clock source}(hj1LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-LhM^hj.Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhj-LhM^hjLubah}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjSLh]h Description}(hjULhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjKubh)}(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.}(hjiLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM_hjKubh)}(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.}(hjxLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMbhjKubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMfhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get (C function) c.clk_gethNtauh1hhj?'hhhNhNubh)}(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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLhhhjLhMubh)}(hhh]jm)}(hclkh]hclk}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE clk_getsb c.clk_getasbuh1hhjLhhhjLhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLhhhjLhMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMubjg)}(hclk_geth]jm)}(hjLh]hclk_get}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLhhhjLhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj0MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Mubj)}(h h]h }(hj=MhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Mubh)}(hhh]jm)}(hdeviceh]hdevice}(hjNMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPMmodnameN classnameNjI jL )}jO ]jL c.clk_getasbuh1hhj,Mubj)}(h h]h }(hjlMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Mubj)}(hjh]h*}(hjzMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Mubjm)}(hdevh]hdev}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Mubj)}(hconst char *idh](j)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj )}(hcharh]hchar}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hidh]hid}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Mubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjLhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhjLhhubj)}(hhh]h)}(h2lookup and obtain a reference to a clock producer.h]h2lookup and obtain a 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.hhMhj Nhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&Njj&Njjjuh1hhhhj?'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)}(hj0Nh]h Parameters}(hj2NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj*Nubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjONh]hstruct device *dev}(hjQNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjINubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdNhMhjeNubah}(h]h ]h"]h$]h&]uh1jhjINubeh}(h]h ]h"]h$]h&]uh1jhjdNhMhjFNubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjNh]hconst char *id}(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.hhMhjNubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjFNubeh}(h]h ]h"]h$]h&]uh1jhj*Nubh)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj*Nubh)}(hXDReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjNhhhNhNubj)}(h**dev**h]hdev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh and }(hjNhhhNhNubj)}(h**id**h]hid}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjNhhhNhNubj)}(h**id**h]hid}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubhY may be identical strings, but clk_get may return different clock producers depending on }(hjNhhhNhNubj)}(h**dev**h]hdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh.)}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj*Nubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj0OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj*Nubh)}(h;clk_get should not be called from within interrupt context.h]h;clk_get should not be called from within interrupt context.}(hj?OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj*Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_get (C function)c.clk_bulk_gethNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hOint clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hNint clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjnOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj}OhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjOhhhj|OhMubjg)}(h clk_bulk_geth]jm)}(h clk_bulk_geth]h clk_bulk_get}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjOhhhj|OhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hdeviceh]hdevice}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE jOsbc.clk_bulk_getasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hdevh]hdev}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h int num_clksh](j )}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hj+PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hnum_clksh]hnum_clks}(hj9PhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjRPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNPubj)}(h h]h }(hj_PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNPubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjpPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrPmodnameN classnameNjI jL )}jO ]jOc.clk_bulk_getasbuh1hhjNPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNPubjm)}(hclksh]hclks}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjjOhhhj|OhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfOhhhj|OhMubah}(h]jaOah ](jjeh"]h$]h&]jj)jhuh1hhj|OhMhjcOhhubj)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjcOhhhj|OhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMhjPubj)}(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.hhMhjQubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj-QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)QhMhj*Qubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhj)QhMhj Qubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjMQh]h int num_clks}(hjOQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjGQubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjfQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbQhMhjcQubah}(h]h ]h"]h$]h&]uh1jhjGQubeh}(h]h ]h"]h$]h&]uh1jhjbQhMhj Qubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjQh]hstruct clk_bulk_data *clks}(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.hhMhjQubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj Qubeh}(h]h ]h"]h$]h&]uh1jhjPubh)}(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.hhMhjPubh)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPubh)}(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 }(hjQhhhNhNubj)}(h**dev**h]hdev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh and }(hjQhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjQhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh field.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj+RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPubh)}(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.}(hj:RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_get_all (C function)c.clk_bulk_get_allhNtauh1hhj?'hhhNhNubh)}(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}(hjiRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjxRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeRhhhjwRhMubjg)}(hclk_bulk_get_allh]jm)}(hclk_bulk_get_allh]hclk_bulk_get_all}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjeRhhhjwRhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(hdeviceh]hdevice}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE jRsbc.clk_bulk_get_allasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hdevh]hdev}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hj%ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj6ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3Subah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8SmodnameN classnameNjI jL )}jO ]jRc.clk_bulk_get_allasbuh1hhjSubj)}(h h]h }(hjTShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjbShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjoShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hclksh]hclks}(hj|ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjeRhhhjwRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjaRhhhjwRhMubah}(h]j\Rah ](jjeh"]h$]h&]jj)jhuh1hhjwRhMhj^Rhhubj)}(hhh]h)}(h=lookup and obtain all available references to clock producer.h]h=lookup and obtain all available references to clock producer.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjShhubah}(h]h ]h"]h$]h&]uh1jhj^RhhhjwRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhj?'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)}(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.hhMhjSubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjSh]hstruct device *dev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjSubj)}(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 Th]hstruct clk_bulk_data **clks}(hj"ThhhNhNubah}(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.hhMhjTubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj9ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ThMhj6Tubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhj5ThMhjSubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hj[Th]h Description}(hj]ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYTubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(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.}(hjqThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(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 }(hjThhhNhNubj)}(h**clks**h]hclks}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"clk_bulk_get_optional (C function)c.clk_bulk_get_optionalhNtauh1hhj?'hhhNhNubh)}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjThMubjg)}(hclk_bulk_get_optionalh]jm)}(hclk_bulk_get_optionalh]hclk_bulk_get_optional}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjThMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj)UhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hdeviceh]hdevice}(hj:UhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7Uubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(hdeviceh]hdevice}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jWsbc.devm_clk_bulk_getasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hdevh]hdev}(hj XhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(h int num_clksh](j )}(hinth]hint}(hj&XhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"Xubj)}(h h]h }(hj4XhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"Xubjm!)}(hnum_clksh]hnum_clks}(hjBXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"Xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hj[XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWXubj)}(h h]h }(hjhXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWXubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjyXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{XmodnameN classnameNjI jL )}jO ]jWc.devm_clk_bulk_getasbuh1hhjWXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWXubjm)}(hclksh]hclks}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjsWhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjoWhhhjWhMubah}(h]jjWah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhjlWhhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjlWhhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1hhhhj?'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)}(hjXh]h Parameters}(hjYhhhNhNubah}(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.hhMhjXubj)}(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.hhMhjYubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj6YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2YhMhj3Yubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhj2YhMhjYubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjVYh]h int num_clks}(hjXYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPYubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjoYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkYhMhjlYubah}(h]h ]h"]h$]h&]uh1jhjPYubeh}(h]h ]h"]h$]h&]uh1jhjkYhMhjYubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjYh]hstruct clk_bulk_data *clks}(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.hhMhjYubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjYubeh}(h]h ]h"]h$]h&]uh1jhjXubh)}(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:389: ./include/linux/clk.hhMhjXubh)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjXubh)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhj?'hhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj-ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhj,ZhMubjg)}(hdevm_clk_bulk_get_optionalh]jm)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_bulk_get_optional}(hj?ZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Zubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhj,ZhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj[ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWZubj)}(h h]h }(hjhZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWZubh)}(hhh]jm)}(hdeviceh]hdevice}(hjyZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{ZmodnameN classnameNjI jL )}jO ]jR )}jE jAZsbc.devm_clk_bulk_get_optionalasbuh1hhjWZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWZubjm)}(hdevh]hdev}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSZubj)}(h int num_clksh](j )}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubjm)}(hnum_clksh]hnum_clks}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSZubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj [hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"[modnameN classnameNjI jL )}jO ]jZc.devm_clk_bulk_get_optionalasbuh1hhjZubj)}(h h]h }(hj>[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjL[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hclksh]hclks}(hjY[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSZubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhj,ZhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhj,ZhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj,ZhMhjZhhubj)}(hhh]h)}(h-managed get multiple optional consumer clocksh]h-managed get multiple optional consumer clocks}(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&]uh1jhjZhhhj,ZhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhj?'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)}(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)}(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[ubj)}(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&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj[ubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj[h]h int num_clks}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj[ubj)}(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&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj[ubj)}(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)}(hj6\h]hstruct clk_bulk_data *clks}(hj8\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj0\ubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjO\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK\hMhjL\ubah}(h]h ]h"]h$]h&]uh1jhj0\ubeh}(h]h ]h"]h$]h&]uh1jhjK\hMhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[ubh)}(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.hhMhj[ubh)}(hBehaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional.h]hBehaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj[ubh)}(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 }(hj\hhhNhNubj)}(h**dev**h]hdev}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh and }(hj\hhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hj\hhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh field.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj[ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj[ubh)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(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](h.devm_clk_bulk_get_optional_enable (C function)#c.devm_clk_bulk_get_optional_enablehNtauh1hhj?'hhhNhNubh)}(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}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj(]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]hhhj']hMubjg)}(h!devm_clk_bulk_get_optional_enableh]jm)}(h!devm_clk_bulk_get_optional_enableh]h!devm_clk_bulk_get_optional_enable}(hj:]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhj']hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjV]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR]ubj)}(h h]h }(hjc]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR]ubh)}(hhh]jm)}(hdeviceh]hdevice}(hjt]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjv]modnameN classnameNjI jL )}jO ]jR )}jE j<]sb#c.devm_clk_bulk_get_optional_enableasbuh1hhjR]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR]ubjm)}(hdevh]hdev}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN]ubj)}(h int num_clksh](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hnum_clksh]hnum_clks}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN]ubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hj ^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]j]#c.devm_clk_bulk_get_optional_enableasbuh1hhj]ubj)}(h h]h }(hj9^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hjG^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hclksh]hclks}(hjT^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN]ubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhj']hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj']hMubah}(h]j ]ah ](jjeh"]h$]h&]jj)jhuh1hhj']hMhj]hhubj)}(hhh]h)}(h-Get and enable optional bulk clocks (managed)h]h-Get and enable optional bulk clocks (managed)}(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^jjjuh1hhhhj?'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)}(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)}(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^ubj)}(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&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj^ubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj^h]h int num_clks}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj^ubj)}(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&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj _hMhj^ubj)}(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)}(hj1_h]hstruct clk_bulk_data *clks}(hj3_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj+_ubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjJ_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF_hMhjG_ubah}(h]h ]h"]h$]h&]uh1jhj+_ubeh}(h]h ]h"]h$]h&]uh1jhjF_hMhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubh)}(h**Description**h]j)}(hjl_h]h Description}(hjn_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj^ubh)}(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.}(hj_hhhNhNubah}(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)}(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.hhMhj^ubh)}(h0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully, or for any clk there was no clk provider available. Otherwise returns valid IS_ERR() condition containing errno.h]h0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully, or for any clk there was no clk provider available. Otherwise returns valid IS_ERR() condition containing errno.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhj?'hhhNhNubh)}(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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhj_hM ubjg)}(hdevm_clk_bulk_get_allh]jm)}(hdevm_clk_bulk_get_allh]hdevm_clk_bulk_get_all}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhj_hM ubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj"`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hdeviceh]hdevice}(hj3`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5`modnameN classnameNjI jL )}jO ]jR )}jE j_sbc.devm_clk_bulk_get_allasbuh1hhj`ubj)}(h h]h }(hjS`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hja`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hdevh]hdev}(hjn`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj `ubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`modnameN classnameNjI jL )}jO ]jO`c.devm_clk_bulk_get_allasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hclksh]hclks}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`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)jhuh1hhj_hM hj_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.hhM hjahhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-ajj-ajjjuh1hhhhj?'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)}(hj7ah]h Parameters}(hj9ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5aubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj1aubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjVah]hstruct device *dev}(hjXahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjPaubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjoahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkahM hjlaubah}(h]h ]h"]h$]h&]uh1jhjPaubeh}(h]h ]h"]h$]h&]uh1jhjkahM hjMaubj)}(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)}(hjah]hstruct clk_bulk_data **clks}(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.hhM hjaubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjMaubeh}(h]h ]h"]h$]h&]uh1jhj1aubh)}(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.hhMhj1aubh)}(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 }(hjahhhNhNubj)}(h**clks**h]hclks}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hj1aubh)}(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.hhMhj1aubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhj?'hhhNhNubh)}(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}(hj0bhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,bhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj?bhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,bhhhj>bhMubjg)}(hdevm_clk_bulk_get_all_enabledh]jm)}(hdevm_clk_bulk_get_all_enabledh]hdevm_clk_bulk_get_all_enabled}(hjQbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,bhhhj>bhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjmbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjibubj)}(h h]h }(hjzbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjibubh)}(hhh]jm)}(hdeviceh]hdevice}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE jSbsbc.devm_clk_bulk_get_all_enabledasbuh1hhjibubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjibubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjibubjm)}(hdevh]hdev}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjibubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjebubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jbc.devm_clk_bulk_get_all_enabledasbuh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hj)chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hj6chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hclksh]hclks}(hjCchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjebubeh}(h]h ]h"]h$]h&]jjuh1jhj,bhhhj>bhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(bhhhj>bhMubah}(h]j#bah ](jjeh"]h$]h&]jj)jhuh1hhj>bhMhj%bhhubj)}(hhh]h)}(h3Get and enable all clocks of the consumer (managed)h]h3Get and enable all clocks of the consumer (managed)}(hjmchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjjchhubah}(h]h ]h"]h$]h&]uh1jhj%bhhhj>bhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMhjcubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjch]hstruct device *dev}(hjchhhNhNubah}(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.hhMhjcubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubj)}(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)}(hjch]hstruct clk_bulk_data **clks}(hjchhhNhNubah}(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.hhMhjcubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hj"dh]h Description}(hj$dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj dubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubh)}(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 }(hj8dhhhNhNubj)}(h**clks**h]hclks}(hj@dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8dubhN field. Returns 0 if there’re none and a negative value if something failed.}(hj8dhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubh)}(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.}(hjYdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM"hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevm_clk_get (C function)c.devm_clk_gethNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h>struct clk * devm_clk_get (struct device *dev, const char *id)h]j)}(hehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjLehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hdevh]hdev}(hjYehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hconst char *idh](j)}(hjh]hconst}(hjrehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjneubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjneubj )}(hcharh]hchar}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjneubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjneubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjneubjm)}(hidh]hid}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjneubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhM-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhM-ubah}(h]j{dah ](jjeh"]h$]h&]jj)jhuh1hhjdhM-hj}dhhubj)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM-hjehhubah}(h]h ]h"]h$]h&]uh1jhj}dhhhjdhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhj?'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)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjeubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj!fh]hstruct device *dev}(hj#fhhhNhNubah}(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.hhM.hjfubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj:fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6fhM.hj7fubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhj6fhM.hjfubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjZfh]hconst char *id}(hj\fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM/hjTfubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjsfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjofhM/hjpfubah}(h]h ]h"]h$]h&]uh1jhjTfubeh}(h]h ]h"]h$]h&]uh1jhjofhM/hjfubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h **Context**h]j)}(hjfh]hContext}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjeubh)}(h May sleep.h]h May sleep.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjeubh)}(h **Return**h]j)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hjeubh)}(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 }(hjfhhhNhNubj)}(h**dev**h]hdev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh and }(hjfhhhNhNubj)}(h**id**h]hid}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjfhhhNhNubj)}(h**id**h]hid}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhY may be identical strings, but clk_get may return different clock producers depending on }(hjfhhhNhNubj)}(h**dev**h]hdev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh.)}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3hjeubh)}(h**Description**h]j)}(hj+gh]h Description}(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:389: ./include/linux/clk.hhM9hjeubh)}(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.}(hjAghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hjeubh)}(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.}(hjPghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_clk_get_prepared (C function)c.devm_clk_get_preparedhNtauh1hhj?'hhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ghhhjghMBubh)}(hhh]jm)}(hclkh]hclk}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_preparedsbc.devm_clk_get_preparedasbuh1hhj{ghhhjghMBubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ghhhjghMBubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ghhhjghMBubjg)}(hdevm_clk_get_preparedh]jm)}(hjgh]hdevm_clk_get_prepared}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{ghhhjghMBubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jgc.devm_clk_get_preparedasbuh1hhjgubj)}(h h]h }(hj5hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjChhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hdevh]hdev}(hjPhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hconst char *idh](j)}(hjh]hconst}(hjihhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehubj)}(h h]h }(hjvhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehubj )}(hcharh]hchar}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehubjm)}(hidh]hid}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjehubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj{ghhhjghMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwghhhjghMBubah}(h]jrgah ](jjeh"]h$]h&]jj)jhuh1hhjghMBhjtghhubj)}(hhh]h)}(hdevm_clk_get() + clk_prepare()h]hdevm_clk_get() + clk_prepare()}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBhjhhhubah}(h]h ]h"]h$]h&]uh1jhjtghhhjghMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMFhjhubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjih]hstruct device *dev}(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.hhMChjiubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj1ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ihMChj.iubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhj-ihMChjiubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjQih]hconst char *id}(hjSihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhjKiubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfihMDhjgiubah}(h]h ]h"]h$]h&]uh1jhjKiubeh}(h]h ]h"]h$]h&]uh1jhjfihMDhjiubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h **Context**h]j)}(hjih]hContext}(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.hhMFhjhubh)}(h May sleep.h]h May sleep.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMFhjhubh)}(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:389: ./include/linux/clk.hhMHhjhubh)}(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 }(hjihhhNhNubj)}(h**dev**h]hdev}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh and }(hjihhhNhNubj)}(h**id**h]hid}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjihhhNhNubj)}(h**id**h]hid}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhY may be identical strings, but clk_get may return different clock producers depending on }(hjihhhNhNubj)}(h**dev**h]hdev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh.)}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMHhjhubh)}(h**Description**h]j)}(hj"jh]h Description}(hj$jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj jubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMNhjhubh)}(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.}(hj8jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMMhjhubh)}(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.}(hjGjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMPhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!devm_clk_get_enabled (C function)c.devm_clk_get_enabledhNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hFstruct clk * devm_clk_get_enabled (struct device *dev, const char *id)h]j)}(hDstruct clk *devm_clk_get_enabled(struct device *dev, const char *id)h](j)}(hjh]hstruct}(hjvjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMWubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrjhhhjjhMWubh)}(hhh]jm)}(hclkh]hclk}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_enabledsbc.devm_clk_get_enabledasbuh1hhjrjhhhjjhMWubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrjhhhjjhMWubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrjhhhjjhMWubjg)}(hdevm_clk_get_enabledh]jm)}(hjjh]hdevm_clk_get_enabled}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrjhhhjjhMWubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubh)}(hhh]jm)}(hdeviceh]hdevice}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj kubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jjc.devm_clk_get_enabledasbuh1hhjjubj)}(h h]h }(hj,khhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hj:khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hdevh]hdev}(hjGkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hconst char *idh](j)}(hjh]hconst}(hj`khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\kubj)}(h h]h }(hjmkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\kubj )}(hcharh]hchar}(hj{khhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\kubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\kubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\kubjm)}(hidh]hid}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjrjhhhjjhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnjhhhjjhMWubah}(h]jijah ](jjeh"]h$]h&]jj)jhuh1hhjjhMWhjkjhhubj)}(hhh]h)}(h%devm_clk_get() + clk_prepare_enable()h]h%devm_clk_get() + clk_prepare_enable()}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMWhjkhhubah}(h]h ]h"]h$]h&]uh1jhjkjhhhjjhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1hhhhj?'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)}(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.hhM[hjkubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjlh]hstruct device *dev}(hjlhhhNhNubah}(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.hhMXhj lubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj(lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$lhMXhj%lubah}(h]h ]h"]h$]h&]uh1jhj lubeh}(h]h ]h"]h$]h&]uh1jhj$lhMXhjlubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjHlh]hconst char *id}(hjJlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMYhjBlubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjalhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]lhMYhj^lubah}(h]h ]h"]h$]h&]uh1jhjBlubeh}(h]h ]h"]h$]h&]uh1jhj]lhMYhjlubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h **Context**h]j)}(hjlh]hContext}(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.hhM[hjkubh)}(h May sleep.h]h May sleep.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM[hjkubh)}(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:389: ./include/linux/clk.hhM]hjkubh)}(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 }(hjlhhhNhNubj)}(h**dev**h]hdev}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh and }(hjlhhhNhNubj)}(h**id**h]hid}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjlhhhNhNubj)}(h**id**h]hid}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhY may be identical strings, but clk_get may return different clock producers depending on }(hjlhhhNhNubj)}(h**dev**h]hdev}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh.)}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjkubh)}(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.hhMchjkubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hj/mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMbhjkubh)}(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>mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMdhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_clk_get_optional (C function)c.devm_clk_get_optionalhNtauh1hhj?'hhhNhNubh)}(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}(hjmmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjimhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMkubj)}(h h]h }(hj{mhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjimhhhjzmhMkubh)}(hhh]jm)}(hclkh]hclk}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_optionalsbc.devm_clk_get_optionalasbuh1hhjimhhhjzmhMkubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjimhhhjzmhMkubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjimhhhjzmhMkubjg)}(hdevm_clk_get_optionalh]jm)}(hjmh]hdevm_clk_get_optional}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjimhhhjzmhMkubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(hdeviceh]hdevice}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jmc.devm_clk_get_optionalasbuh1hhjmubj)}(h h]h }(hj#nhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hj1nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hdevh]hdev}(hj>nhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hconst char *idh](j)}(hjh]hconst}(hjWnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSnubj)}(h h]h }(hjdnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSnubj )}(hcharh]hchar}(hjrnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSnubjm)}(hidh]hid}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhjimhhhjzmhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjemhhhjzmhMkubah}(h]j`mah ](jjeh"]h$]h&]jj)jhuh1hhjzmhMkhjbmhhubj)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMkhjnhhubah}(h]h ]h"]h$]h&]uh1jhjbmhhhjzmhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhj?'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)}(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.hhMohjnubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjoh]hstruct device *dev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMmhjoubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMmhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMmhjnubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj?oh]hconst char *id}(hjAohhhNhNubah}(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.hhMnhj9oubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjXohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTohMnhjUoubah}(h]h ]h"]h$]h&]uh1jhj9oubeh}(h]h ]h"]h$]h&]uh1jhjTohMnhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h **Context**h]j)}(hjzoh]hContext}(hj|ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMphjnubh)}(h May sleep.h]h May sleep.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMphjnubh)}(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:389: ./include/linux/clk.hhMrhjnubh)}(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 }(hjohhhNhNubj)}(h**dev**h]hdev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh and }(hjohhhNhNubj)}(h**id**h]hid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh 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().}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMrhjnubh)}(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.hhMyhjnubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMxhjnubh)}(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](h+devm_clk_get_optional_prepared (C function) c.devm_clk_get_optional_preparedhNtauh1hhj?'hhhNhNubh)}(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}(hj@phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|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](hclk_enable (C function) c.clk_enablehNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h int clk_enable (struct clk *clk)h]j)}(hint clk_enable(struct clk *clk)h](j )}(hinth]hint}(hjm|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj||hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji|hhhj{|hMubjg)}(h clk_enableh]jm)}(h clk_enableh]h clk_enable}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhji|hhhj{|hMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(hclkh]hclk}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jR )}jE j|sb c.clk_enableasbuh1hhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hclkh]hclk}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|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)jhuh1hhj{|hMhjb|hhubj)}(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&]uh1jhjb|hhhj{|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjE}jjE}jjjuh1hhhhj?'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)}(hjO}h]h Parameters}(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:389: ./include/linux/clk.hhMhjI}ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjn}h]hstruct clk *clk}(hjp}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjh}ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjh}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhje}ubah}(h]h ]h"]h$]h&]uh1jhjI}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.hhMhjI}ubh)}(hEIf the clock can not be enabled/disabled, this should return success.h]hEIf the clock can not be enabled/disabled, this should return success.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjI}ubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjI}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.hhMhjI}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_enable (C function)c.clk_bulk_enablehNtauh1hhj?'hhhNhNubh)}(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}(hj ~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhj~hMubjg)}(hclk_bulk_enableh]jm)}(hclk_bulk_enableh]hclk_bulk_enable}(hj-~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhj~hMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjI~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjE~ubj)}(h h]h }(hjW~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjE~ubjm)}(hnum_clksh]hnum_clks}(hje~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjE~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjA~ubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hj~~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz~ubj)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz~ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE j/~sbc.clk_bulk_enableasbuh1hhjz~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz~ubjm)}(hclksh]hclks}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjA~ubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhj~hMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhj~hMhj~hhubj)}(hhh]h)}(h9inform the system when the set of clks should be running.h]h9inform the system when the set of clks should be running.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj?'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)}(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.hhMhj8ubj)}(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.hhMhjWubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(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.hhMhj8ubh)}(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.hhMhj8ubh)}(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.hhMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_disable (C function) c.clk_disablehNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj!hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj3hMubjg)}(h clk_disableh]jm)}(h clk_disableh]h clk_disable}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj3hMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jHsb c.clk_disableasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubah}(h]h ]h"]h$]h&]jjuh1jhj!hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj3hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhjhhubj)}(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&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?'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}(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.hhMhj ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjwhhhNhNubah}(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)}(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.}(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](hclk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhj?'hhhNhNubh)}(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}(hjāhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjӁhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjҁhMubjg)}(hclk_bulk_disableh]jm)}(hclk_bulk_disableh]hclk_bulk_disable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjҁhMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_bulk_disableasbuh1hhj2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(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)jhuh1hhjҁhMhjhhubj)}(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.}(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&]jjjjjjjjjuh1hhhhj?'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)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj ubj)}(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)}(hjNh]h const struct clk_bulk_data *clks}(hjPhhhNhNubah}(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.hhMhjHubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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 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.}(hjhhhNhNubah}(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)}(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.}(hjhhhNhNubah}(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](hclk_get_rate (C function)c.clk_get_ratehNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h clk_get_rateh]jm)}(h clk_get_rateh]h clk_get_rate}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(hclkh]hclk}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE j+sbc.clk_get_rateasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(htobtain the current clock rate (in Hz) for a clock source. This is only valid once the clock source has been enabled.h]htobtain the current clock rate (in Hz) for a clock source. This is only valid once the clock source has been enabled.}(hjȄhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjńhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?'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)}(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.hhMhjubj)}(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.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_put (C function) c.clk_puthNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hvoid clk_put (struct clk *clk)h]j)}(hvoid clk_put(struct clk *clk)h](j )}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjqhMubjg)}(hclk_puth]jm)}(hclk_puth]hclk_put}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjqhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.clk_putasbuh1hhjubj)}(h h]h }(hjޅhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj_hhhjqhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjqhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhjXhhubj)}(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&]uh1jhjXhhhjqhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhj?'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)}(hjEh]h Parameters}(hjGhhhNhNubah}(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.hhMhj?ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjdh]hstruct clk *clk}(hjfhhhNhNubah}(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.hhMhj^ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubh)}(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.hhMhj?ubh)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj?ubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjĆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM!hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_put (C function)c.clk_bulk_puthNtauh1hhj?'hhhNhNubh)}(hhh](j)}(hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubjm)}(hnum_clksh]hnum_clks}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_bulk_putasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(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)jhuh1hhjhM&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&]jjjjjjjjjuh1hhhhj?'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)}(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.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#ubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM'hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM'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)}(hjbh]hstruct clk_bulk_data *clks}(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.hhM(hj\ubj)}(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&]uh1hhjwhM(hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM(hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hjhhhNhNubah}(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.}(hjˆhhhNhNubah}(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](hclk_bulk_put_all (C function)c.clk_bulk_put_allhNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM3ubjg)}(hclk_bulk_put_allh]jm)}(hclk_bulk_put_allh]hclk_bulk_put_all}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM3ubj)}(h*(int num_clks, struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubjm)}(hnum_clksh]hnum_clks}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_bulk_put_allasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjm)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(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)jhuh1hhjhM3hjhhubj)}(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&]jjjjjjjjjuh1hhhhj?'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}(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.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!ubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM4hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM4hjubj)}(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}(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.hhM5hjZubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM5hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM5hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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](hdevm_clk_put (C function)c.devm_clk_puthNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM@ubjg)}(h devm_clk_puth]jm)}(h devm_clk_puth]h devm_clk_put}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM@ubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(hdeviceh]hdevice}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.devm_clk_putasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jfc.devm_clk_putasbuh1hhjubj)}(h h]h }(hjڋhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM@hjhhubj)}(hhh]h)}(h"free" a managed clock sourceh]h!“free” a managed clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM@hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMDhj;ubj)}(hhh](j)}(h8``struct device *dev`` device used to acquire the clock h](j)}(h``struct device *dev``h]j)}(hj`h]hstruct device *dev}(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.hhMAhjZubj)}(hhh]h)}(h device used to acquire the clockh]h device used to acquire the clock}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMAhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMAhjWubj)}(h>``struct clk *clk`` clock source acquired with devm_clk_get() 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.hhMBhjubj)}(hhh]h)}(h)clock source acquired with devm_clk_get()h]h)clock source acquired with devm_clk_get()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Note**h]j)}(hjԌh]hNote}(hj֌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.hhMDhj;ubh)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhj;ubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMHhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_round_rate (C function)c.clk_round_ratehNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMRubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$hhhj6hMRubjg)}(hclk_round_rateh]jm)}(hclk_round_rateh]hclk_round_rate}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj6hMRubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.clk_round_rateasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hj׍hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjӍubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjӍubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjӍubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjӍubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjӍubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hMRhjhhubj)}(hhh]h)}(h3adjust a rate to the exact rate a clock can provideh]h3adjust a rate to the exact rate a clock can provide}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMRhj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhj?'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}(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.hhMVhjUubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjzh]hstruct clk *clk}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMShjtubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMShjqubj)}(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.hhMThjubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hj̎hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȎhMThjɎubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȎhMThjqubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(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.hhMVhjUubh)}(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}(hj hhhNhNubah}(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.hhMUhjUubj)}(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&]uh1jhj7hMYhjUubh)}(hand:h]hand:}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM[hjUubj)}(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);}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjMubah}(h]h ]h"]h$]h&]uh1jhj_hM]hjUubh)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjUubh)}(h4Returns rounded clock rate in Hz, or negative errno.h]h4Returns rounded clock rate in Hz, or negative errno.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMchjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate (C function)c.clk_set_ratehNtauh1hhj?'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMiubjg)}(h clk_set_rateh]jm)}(h clk_set_rateh]h clk_set_rate}(hjŏhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMiubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݏubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݏubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jǏsbc.clk_set_rateasbuh1hhjݏubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݏubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݏubjm)}(hclkh]hclk}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݏubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjُubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj )}(hlongh]hlong}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjُubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMiubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMihjhhubj)}(hhh]h)}(h%set the clock rate for a clock sourceh]h%set the clock rate 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.hhMihjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjj͐jj͐jjjuh1hhhhj?'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)}(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.hhMmhjѐubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMjhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMjhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMjhjubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hj/h]hunsigned long rate}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMkhj)ubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMkhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMkhjubeh}(h]h ]h"]h$]h&]uh1jhjѐubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMmhjѐubh)}(hUpdating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating.h]hUpdating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMlhjѐubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMohjѐubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhj?'hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuubj)}(h h]h }(hj͑hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj̑hMuubjg)}(hclk_set_rate_exclusiveh]jm)}(hclk_set_rate_exclusiveh]hclk_set_rate_exclusive}(hjߑhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۑubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj̑hMuubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_set_rate_exclusiveasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj̑hMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj̑hMuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj̑hMuhjhhubj)}(hhh]h)}(h:set the clock rate and claim exclusivity over clock sourceh]h:set the clock rate and claim exclusivity over clock source}(hjϒhhhNhNubah}(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&]uh1jhjhhhj̑hMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?'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)}(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.hhMwhj ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMwhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMwhjubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjIh]hunsigned long rate}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMxhjCubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMxhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMxhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hjhhhNhNubah}(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()}(hjhhhNhNubah}(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.}(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](hclk_has_parent (C function)c.clk_has_parenthNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hclk_has_parenth]jm)}(hclk_has_parenth]hclk_has_parent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jR )}jE j sbc.clk_has_parentasbuh1hhjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct clk *parenth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj˔hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjؔhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jxc.clk_has_parentasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hparenth]hparent}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjߓhhhjhMubah}(h]jړah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjܓhhubj)}(hhh]h)}(h1check if a clock is a possible parent for anotherh]h1check if a clock is a possible parent for another}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjܓhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMhjhubj)}(hhh](j)}(h'``const struct clk *clk`` clock source h](j)}(h``const struct clk *clk``h]j)}(hjh]hconst struct 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.hhMhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``const struct clk *parent`` parent clock source h](j)}(h``const struct clk *parent``h]j)}(hjƕh]hconst struct clk *parent}(hjȕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĕubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjߕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjەhMhjܕubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjەhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(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.hhMhjhubh)}(hThis function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent.h]hThis function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhubh)}(hMReturns true if **parent** is a possible parent for **clk**, false otherwise.h](hReturns true if }(hj&hhhNhNubj)}(h **parent**h]hparent}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh is a possible parent for }(hj&hhhNhNubj)}(h**clk**h]hclk}(hj@hhhNhNubah}(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.hhMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhj?'hhhNhNubh)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhMubjg)}(hclk_set_rate_rangeh]jm)}(hclk_set_rate_rangeh]hclk_set_rate_range}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhMubj)}(h7(struct clk *clk, unsigned long min, unsigned long max)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjÖhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjԖhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjіubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj֖modnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_set_rate_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long minh](j )}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubjm)}(hminh]hmin}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long maxh](j )}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubjm)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjnhhubj)}(hhh]h)}(h#set a rate range for a clock sourceh]h#set a rate range 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&]uh1jhjnhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?'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)}(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.hhMhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(hB``unsigned long min`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long min``h]j)}(hjUh]hunsigned long min}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjOubj)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubj)}(hB``unsigned long max`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long max``h]j)}(hjh]hunsigned long max}(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.hhMhjubj)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMhjubh)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMubjg)}(hclk_set_min_rateh]jm)}(hclk_set_min_rateh]hclk_set_min_rate}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hclkh]hclk}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.clk_set_min_rateasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj˙hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjٙhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+set a minimum clock rate for a clock sourceh]h+set a minimum clock rate for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMhj;ubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj`h]hstruct clk *clk}(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.hhMhjZubj)}(hhh]h)}(h clock sourceh]h clock source}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubj)}(hC``unsigned long rate`` desired minimum clock rate in Hz, inclusive 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.hhMhjubj)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubeh}(h]h ]h"]h$]h&]uh1jhj;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)}(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.hhMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h:int clk_set_max_rate (struct clk *clk, unsigned long rate)h]j)}(h9int clk_set_max_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj'hMubjg)}(hclk_set_max_rateh]jm)}(hclk_set_max_rateh]hclk_set_max_rate}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'hMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(hclkh]hclk}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE j<sbc.clk_set_max_rateasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjțhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjěubj)}(h h]h }(hj֛hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjěubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjěubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjěubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjěubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'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&]jjjjBjjBjjjuh1hhhhj?'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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjFubj)}(hhh](j)}(h!``struct clk *clk`` clock source 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.hhMhjeubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(hC``unsigned long rate`` desired maximum clock rate in Hz, inclusive 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.hhMhjubj)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(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:389: ./include/linux/clk.hhMhjFubh)}(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.hhMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_parent (C function)c.clk_set_parenthNtauh1hhj?'hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj2hMubjg)}(hclk_set_parenth]jm)}(hclk_set_parenth]hclk_set_parent}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj2hMubj)}(h%(struct clk *clk, struct clk *parent)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.clk_set_parentasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hstruct clk *parenth](j)}(hjh]hstruct}(hjӝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϝubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjϝubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.clk_set_parentasbuh1hhjϝubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjϝubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϝubjm)}(hparenth]hparent}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjϝ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)jhuh1hhj2hMhjhhubj)}(hhh]h)}(h*set the parent clock source for this clockh]h*set the parent clock source for this clock}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMhjpubj)}(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.hhMhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``struct clk *parent`` parent clock source h](j)}(h``struct clk *parent``h]j)}(hjΞh]hstruct clk *parent}(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Ȟubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjȞubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(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:389: ./include/linux/clk.hhMhjpubh)}(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.hhMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_parent (C function)c.clk_get_parenthNtauh1hhj?'hhhNhNubh)}(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}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj[hMubh)}(hhh]jm)}(hclkh]hclk}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]jR )}jE clk_get_parentsbc.clk_get_parentasbuh1hhjJhhhj[hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj[hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhj[hMubjg)}(hclk_get_parenth]jm)}(hjh]hclk_get_parent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhj[hMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjȟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjğubj)}(h h]h }(hj՟hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjğubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.clk_get_parentasbuh1hhjğubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjğubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjğubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjğubeh}(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)jhuh1hhj[hMhjChhubj)}(hhh]h)}(h*get the parent clock source for this clockh]h*get the parent clock source for this clock}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMhjeubj)}(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.hhMhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubh)}(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.hhMhjeubh)}(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.}(hj۠hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_sys (C function) c.clk_get_syshNtauh1hhj?'hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hclkh]hclk}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE clk_get_syssb c.clk_get_sysasbuh1hhjhhhjhMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h clk_get_sysh]jm)}(hjGh]h clk_get_sys}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h((const char *dev_id, const char *con_id)h](j)}(hconst char *dev_idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdev_idh]hdev_id}(hjȡhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hconst char *con_idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݡubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݡubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjݡubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݡubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݡubjm)}(hcon_idh]hcon_id}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݡ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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h&get a clock based upon the device nameh]h&get a clock based upon the device name}(hjOhhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhj?'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)}(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:389: ./include/linux/clk.hhMhjkubj)}(hhh](j)}(h#``const char *dev_id`` device name h](j)}(h``const char *dev_id``h]j)}(hjh]hconst char *dev_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.hhMhjubj)}(hhh]h)}(h device nameh]h device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjǢubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjâubj)}(hhh]h)}(h connection IDh]h connection ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjޢhMhjߢubah}(h]h ]h"]h$]h&]uh1jhjâubeh}(h]h ]h"]h$]h&]uh1jhjޢhMhjubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(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.hhMhjkubh)}(hXIReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjhhhNhNubj)}(h **dev_id**h]hdev_id}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkubh)}(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.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_drop_range (C function)c.clk_drop_rangehNtauh1hhj?'hhhNhNubh)}(hhh](j)}(h$int clk_drop_range (struct clk *clk)h]j)}(h#int clk_drop_range(struct clk *clk)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hclk_drop_rangeh]jm)}(hclk_drop_rangeh]hclk_drop_range}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjȣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjģubj)}(h h]h }(hjգhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjģubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_drop_rangeasbuh1hhjģubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjģubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjģubjm)}(hclkh]hclk}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjģubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h!Reset any range set on that clockh]h!Reset any range set on that clock}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj?'hNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjgubj)}(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.hhMhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubh)}(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.hhMhjgubh)}(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.hhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?'hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_optional (C function)c.clk_get_optionalhNtauh1hhj?'hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hclkh]hclk}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE clk_get_optionalsbc.clk_get_optionalasbuh1hhjhhhjhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hclk_get_optionalh]jm)}(hjIh]hclk_get_optional}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jGc.clk_get_optionalasbuh1hhjubj)}(h h]h }(hj¥hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjХhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjݥhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidh]hid}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(hhhhNhNubah}(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.hhKhj6ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hAs an accident of implementation, an RCU Tasks Trace grace period also acts as an RCU grace period. However, this could change at any time. Code relying on this accident must call this function to verify that this accident is still happening.h]hAs an accident of implementation, an RCU Tasks Trace grace period also acts as an RCU grace period. However, this could change at any time. Code relying on this accident must call this function to verify that this accident is still happening.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hYou have been warned!h]hYou have been warned!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#cond_resched_tasks_rcu_qs (C macro)c.cond_resched_tasks_rcu_qshNtauh1hhj^hhhNhNubh)}(hhh](j)}(hcond_resched_tasks_rcu_qsh]j)}(hcond_resched_tasks_rcu_qsh]jg)}(hcond_resched_tasks_rcu_qsh]jm)}(hjŪh]hcond_resched_tasks_rcu_qs}(hjϪhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj˪ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjǪhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjêhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h ``cond_resched_tasks_rcu_qs ()``h]j)}(hjh]hcond_resched_tasks_rcu_qs ()}(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^hhubj)}(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&]uh1jhj-hKhjubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjLhhhNhNubah}(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&]uh1jhj-hKhj^hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!rcu_softirq_qs_periodic (C macro)c.rcu_softirq_qs_periodichNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_softirq_qs_periodich]j)}(hrcu_softirq_qs_periodich]jg)}(hrcu_softirq_qs_periodich]jm)}(hjth]hrcu_softirq_qs_periodic}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h$``rcu_softirq_qs_periodic (old_ts)``h]j)}(hjh]h rcu_softirq_qs_periodic (old_ts)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj^hhubj)}(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}(hjʫhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjƫubah}(h]h ]h"]h$]h&]uh1jhjثhKhj^hhubj)}(hX**Parameters** ``old_ts`` jiffies at start of processing. **Description** This helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as **old_ts** at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument. Because regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled. The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won't achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj߫ubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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 }(hjUhhhNhNubj)}(h **old_ts**h]hold_ts}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh 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.}(hjUhhhNhNubeh}(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.}(hjvhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_LOCKDEP_WARN (C macro)c.RCU_LOCKDEP_WARNhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hRCU_LOCKDEP_WARNh]j)}(hRCU_LOCKDEP_WARNh]jg)}(hRCU_LOCKDEP_WARNh]jm)}(hjh]hRCU_LOCKDEP_WARN}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMoubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjˬhMoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjˬhMohjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjˬhMoubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h``RCU_LOCKDEP_WARN (c, s)``h]j)}(hjh]hRCU_LOCKDEP_WARN (c, s)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMqhj^hhubj)}(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.hhMohjubah}(h]h ]h"]h$]h&]uh1jhjhMohj^hhubj)}(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}(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.hhMshjubj)}(hhh](j)}(h``c`` condition to check h](j)}(h``c``h]j)}(hj>h]hc}(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.hhMphj8ubj)}(hhh]h)}(hcondition to checkh]hcondition to check}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMphjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMphj5ubj)}(h``s`` informative message h](j)}(h``s``h]j)}(hjwh]hs}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMqhjqubj)}(hhh]h)}(hinformative messageh]hinformative message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMqhj5ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMshjubh)}(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.}(hjȭhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)lockdep_assert_in_rcu_read_lock (C macro)!c.lockdep_assert_in_rcu_read_lockhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlockdep_assert_in_rcu_read_lockh]j)}(hlockdep_assert_in_rcu_read_lockh]jg)}(hlockdep_assert_in_rcu_read_lockh]jm)}(hjh]hlockdep_assert_in_rcu_read_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj'jj'jjjuh1hhhhj^hNhNubh)}(h&``lockdep_assert_in_rcu_read_lock ()``h]j)}(hj-h]h"lockdep_assert_in_rcu_read_lock ()}(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^hhubj)}(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()}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjGubah}(h]h ]h"]h$]h&]uh1jhjYhMhjCubh)}(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.hhMhjCubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjCubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj^hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,lockdep_assert_in_rcu_read_lock_bh (C macro)$c.lockdep_assert_in_rcu_read_lock_bhhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h"lockdep_assert_in_rcu_read_lock_bhh]j)}(h"lockdep_assert_in_rcu_read_lock_bhh]jg)}(h"lockdep_assert_in_rcu_read_lock_bhh]jm)}(hjh]h"lockdep_assert_in_rcu_read_lock_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj֮jj֮jjjuh1hhhhj^hNhNubh)}(h)``lockdep_assert_in_rcu_read_lock_bh ()``h]j)}(hjܮh]h%lockdep_assert_in_rcu_read_lock_bh ()}(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^hhubj)}(h WARN if not protected by rcu_read_lock_bh() **Description** Splats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required. h](j)}(h,WARN if not protected by rcu_read_lock_bh() h]h)}(h+WARN if not protected by rcu_read_lock_bh()h]h+WARN if not protected by rcu_read_lock_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.h]hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.}(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 ]h"]h$]h&]uh1jhjhMhj^hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/lockdep_assert_in_rcu_read_lock_sched (C macro)'c.lockdep_assert_in_rcu_read_lock_schedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h%lockdep_assert_in_rcu_read_lock_schedh]j)}(h%lockdep_assert_in_rcu_read_lock_schedh]jg)}(h%lockdep_assert_in_rcu_read_lock_schedh]jm)}(hjOh]h%lockdep_assert_in_rcu_read_lock_sched}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjlhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjJhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjJhhhjlhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h,``lockdep_assert_in_rcu_read_lock_sched ()``h]j)}(hjh]h(lockdep_assert_in_rcu_read_lock_sched ()}(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^hhubj)}(hX WARN if not protected by rcu_read_lock_sched() **Description** Splats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required. h](j)}(h/WARN if not protected by rcu_read_lock_sched() h]h)}(h.WARN if not protected by rcu_read_lock_sched()h]h.WARN if not protected by rcu_read_lock_sched()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(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)}(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.}(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 ]h"]h$]h&]uh1jhjhMhj^hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&lockdep_assert_in_rcu_reader (C macro)c.lockdep_assert_in_rcu_readerhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlockdep_assert_in_rcu_readerh]j)}(hlockdep_assert_in_rcu_readerh]jg)}(hlockdep_assert_in_rcu_readerh]jm)}(hjh]hlockdep_assert_in_rcu_reader}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj4jj4jjjuh1hhhhj^hNhNubh)}(h#``lockdep_assert_in_rcu_reader ()``h]j)}(hj:h]hlockdep_assert_in_rcu_reader ()}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(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}(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&]uh1jhjfhMhjPubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjPubh)}(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.hhMhjPubh)}(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.hhMhjPubeh}(h]h ]h"]h$]h&]uh1jhjfhMhj^hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunrcu_pointer (C macro)c.unrcu_pointerhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h unrcu_pointerh]j)}(h unrcu_pointerh]jg)}(h unrcu_pointerh]jm)}(hjh]h unrcu_pointer}(hjưhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj°ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjٰhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjٰhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjٰhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h``unrcu_pointer (p)``h]j)}(hjh]hunrcu_pointer (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(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&]uh1jhj hMhj^hhubj)}(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)}(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)}(h1``p`` pointer needing to lose its __rcu property h](j)}(h``p``h]j)}(hjLh]hp}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjFubj)}(hhh]h)}(h*pointer needing to lose its __rcu propertyh]h*pointer needing to lose its __rcu property}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubah}(h]h ]h"]h$]h&]uh1jhj'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)}(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}(hjhhhNhNubah}(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.hhMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_INITIALIZER (C macro)c.RCU_INITIALIZERhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hRCU_INITIALIZERh]j)}(hRCU_INITIALIZERh]jg)}(hRCU_INITIALIZERh]jm)}(hjرh]hRCU_INITIALIZER}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjޱubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjڱ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)jhuh1hhjhMhjӱhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjӱhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(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.hhMhj^hhubj)}(h7statically initialize an RCU-protected global variable h]h)}(h6statically initialize an RCU-protected global variableh]h6statically initialize an RCU-protected global variable}(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<hMhj^hhubj)}(h@**Parameters** ``v`` The value to statically initialize with.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjCubj)}(hhh]j)}(h.``v`` The value to statically initialize with.h](j)}(h``v``h]j)}(hjhh]hv}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjbubj)}(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.hhMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_assign_pointer (C macro)c.rcu_assign_pointerhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_assign_pointerh]j)}(hrcu_assign_pointerh]jg)}(hrcu_assign_pointerh]jm)}(hjh]hrcu_assign_pointer}(hjƲhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj²ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjٲhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjٲhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjٲhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h``rcu_assign_pointer (p, v)``h]j)}(hjh]hrcu_assign_pointer (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(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&]uh1jhj hMhj^hhubj)}(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)}(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.hhM hj'ubj)}(hhh](j)}(h``p`` pointer to assign to h](j)}(h``p``h]j)}(hjLh]hp}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjFubj)}(hhh]h)}(hpointer to assign toh]hpointer to assign to}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubj)}(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.hhMhjubj)}(hhh]h)}(hvalue to assign (publish)h]hvalue to assign (publish)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubh)}(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.hhM hj'ubh)}(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.}(hjֳhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj'ubh)}(hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.h]hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM#hj'ubh)}(hXIn some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details.h]hXIn some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM)hj'ubh)}(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.hhM1hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_replace_pointer (C macro)c.rcu_replace_pointerhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_replace_pointerh]j)}(hrcu_replace_pointerh]jg)}(hrcu_replace_pointerh]jm)}(hj,h]hrcu_replace_pointer}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMFubah}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhjIhMFubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhjIhMFhj'hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj'hhhjIhMFubeh}(h]h ](jmacroeh"]h$]h&]jjjjbjjbjjjuh1hhhhj^hNhNubh)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j)}(hjhh]h%rcu_replace_pointer (rcu_ptr, ptr, c)}(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.hhMHhj^hhubj)}(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.hhMFhj~ubah}(h]h ]h"]h$]h&]uh1jhjhMFhj^hhubj)}(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.hhMJhjubj)}(hhh](j)}(h5``rcu_ptr`` RCU pointer, whose old value is returned h](j)}(h ``rcu_ptr``h]j)}(hjh]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMGhjubj)}(hhh]h)}(h(RCU pointer, whose old value is returnedh]h(RCU pointer, whose old value is returned}(hjմhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѴhMGhjҴubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѴhMGhjubj)}(h``ptr`` regular pointer h](j)}(h``ptr``h]j)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMHhjubj)}(hhh]h)}(hregular pointerh]hregular pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMHhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMHhjubj)}(hI``c`` the lockdep conditions under which the dereference will take place h](j)}(h``c``h]j)}(hj.h]hc}(hj0hhhNhNubah}(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.hhMIhj(ubj)}(hhh]h)}(hBthe lockdep conditions under which the dereference will take placeh]hBthe lockdep conditions under which the dereference will take place}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMIhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMIhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMKhjubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is returned, and }(hjhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to }(hjhhhNhNubj)}(h**ptr**h]hptr}(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.hhMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_access_pointer (C macro)c.rcu_access_pointerhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_access_pointerh]j)}(hrcu_access_pointerh]jg)}(hrcu_access_pointerh]jm)}(hjh]hrcu_access_pointer}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMXubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMXhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMXubeh}(h]h ](jmacroeh"]h$]h&]jjjj8jj8jjjuh1hhhhj^hNhNubh)}(h``rcu_access_pointer (p)``h]j)}(hj>h]hrcu_access_pointer (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.hhMZhj^hhubj)}(h(fetch RCU pointer with no dereferencing h]h)}(h'fetch RCU pointer with no dereferencingh]h'fetch RCU pointer with no dereferencing}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMXhjTubah}(h]h ]h"]h$]h&]uh1jhjfhMXhj^hhubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM\hjmubj)}(hhh]j)}(h``p`` The pointer to read 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.hhMYhjubj)}(hhh]h)}(hThe pointer to readh]hThe pointer to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjmubh)}(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.hhM[hjmubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMZhjmubh)}(hX!It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen.h]hX!It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMdhjmubh)}(hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.h]hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMjhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_check (C macro)c.rcu_dereference_checkhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_checkh]j)}(hrcu_dereference_checkh]jg)}(hrcu_dereference_checkh]jm)}(hj*h]hrcu_dereference_check}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMuubah}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhjGhMuubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMuhj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhjGhMuubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1hhhhj^hNhNubh)}(h ``rcu_dereference_check (p, c)``h]j)}(hjfh]hrcu_dereference_check (p, c)}(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.hhMwhj^hhubj)}(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.hhMuhj|ubah}(h]h ]h"]h$]h&]uh1jhjhMuhj^hhubj)}(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.hhMyhjubj)}(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.hhMvhjubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjӷhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϷhMvhjзubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϷhMvhjubj)}(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.hhMwhjubj)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMyhjubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMxhjubh)}(h For example:h]h For example:}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(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(}(hjfhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjph]h foo->lock}(hjrhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjfubh));}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjbubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(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.hhMhjubh)}(hNote that the list of conditions may also include indications of when a lock need not be held, for example during initialisation or destruction of the target struct:h]hNote that the list of conditions may also include indications of when a lock need not be held, for example during initialisation or destruction of the target struct:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(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(}(hjǸhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjѸh]h foo->lock}(hjӸhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjϸubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjǸubh) ||}(hjǸhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjøubj)}(hhh]h)}(h.atomic_read(:c:type:`foo->usage `) == 0);h](h atomic_read(}(hjhhhNhNubh)}(h:c:type:`foo->usage `h]j)}(hjh]h foo->usage}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjfoouh1hhjhMhjubh) == 0);}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjøubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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.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.}(hjFhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_dereference_bh_check (C macro)c.rcu_dereference_bh_checkhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_bh_checkh]j)}(hrcu_dereference_bh_checkh]jg)}(hrcu_dereference_bh_checkh]jm)}(hjoh]hrcu_dereference_bh_check}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h#``rcu_dereference_bh_check (p, c)``h]j)}(hjh]hrcu_dereference_bh_check (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(h'rcu_dereference_bh with debug checking h]h)}(h&rcu_dereference_bh with debug checkingh]h&rcu_dereference_bh with debug checking}(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&]uh1jhjӹhMhj^hhubj)}(hX'**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hj8h]hc}(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.hhMhj2ubj)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubeh}(h]h ]h"]h$]h&]uh1jhjڹubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjڹubh)}(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.hhMhjڹubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%rcu_dereference_sched_check (C macro)c.rcu_dereference_sched_checkhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_sched_checkh]j)}(hrcu_dereference_sched_checkh]jg)}(hrcu_dereference_sched_checkh]jm)}(hjh]hrcu_dereference_sched_check}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjϺhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjϺhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjϺhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h&``rcu_dereference_sched_check (p, c)``h]j)}(hjh]h"rcu_dereference_sched_check (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(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&]uh1jhjhMhj^hhubj)}(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)}(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)}(hjBh]hp}(hjDhhhNhNubah}(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<ubj)}(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&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#rcu_dereference_all_check (C macro)c.rcu_dereference_all_checkhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_all_checkh]j)}(hrcu_dereference_all_checkh]jg)}(hrcu_dereference_all_checkh]jm)}(hjh]hrcu_dereference_all_check}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj+jj+jjjuh1hhhhj^hNhNubh)}(h$``rcu_dereference_all_check (p, c)``h]j)}(hj1h]h rcu_dereference_all_check (p, c)}(hj3hhhNhNubah}(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^hhubj)}(h(rcu_dereference_all with debug checking h]h)}(h'rcu_dereference_all with debug checkingh]h'rcu_dereference_all with debug checking}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjGubah}(h]h ]h"]h$]h&]uh1jhjYhMhj^hhubj)}(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)}(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:398: ./include/linux/rcupdate.hhMhj`ubj)}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubj)}(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.hhMhjubj)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hj׼hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӼhMhjԼubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӼhMhj|ubeh}(h]h ]h"]h$]h&]uh1jhj`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)}(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.hhMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#rcu_dereference_protected (C macro)c.rcu_dereference_protectedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_protectedh]j)}(hrcu_dereference_protectedh]jg)}(hrcu_dereference_protectedh]jm)}(hj8h]hrcu_dereference_protected}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj: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)jhuh1hhjUhMhj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhjUhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1hhhhj^hNhNubh)}(h$``rcu_dereference_protected (p, c)``h]j)}(hjth]h rcu_dereference_protected (p, c)}(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.hhMhj^hhubj)}(h)fetch RCU pointer when updates prevented h]h)}(h(fetch RCU pointer when updates preventedh]h(fetch RCU pointer when updates prevented}(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&]uh1jhjhMhj^hhubj)}(hX**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** Return the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does *not* prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks. This function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjȽh]hp}(hjʽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƽubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj½ubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjݽhMhj޽ubah}(h]h ]h"]h$]h&]uh1jhj½ubeh}(h]h ]h"]h$]h&]uh1jhjݽhMhjubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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 }(hjRhhhNhNubjx)}(h*not*h]hnot}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjRubh prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.}(hjRhhhNhNubeh}(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.}(hjshhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference (C macro)c.rcu_dereferencehNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereferenceh]j)}(hrcu_dereferenceh]jg)}(hrcu_dereferenceh]jm)}(hjh]hrcu_dereference}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjҾjjҾjjjuh1hhhhj^hNhNubh)}(h``rcu_dereference (p)``h]j)}(hjؾh]hrcu_dereference (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.hhMhj^hhubj)}(h.fetch RCU-protected pointer for dereferencing h]h)}(h-fetch RCU-protected pointer for dereferencingh]h-fetch RCU-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj^hhubj)}(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)}(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:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hj,h]hp}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj&ubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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:398: ./include/linux/rcupdate.hhMhjubh)}(h8This is a simple wrapper around rcu_dereference_check().h]h8This is a simple wrapper around rcu_dereference_check().}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_bh (C macro)c.rcu_dereference_bhhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_bhh]j)}(hrcu_dereference_bhh]jg)}(hrcu_dereference_bhh]jm)}(hjh]hrcu_dereference_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjÿhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjÿhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjÿhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjܿjjܿjjjuh1hhhhj^hNhNubh)}(h``rcu_dereference_bh (p)``h]j)}(hjh]hrcu_dereference_bh (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(h4fetch an RCU-bh-protected pointer for dereferencing h]h)}(h3fetch an RCU-bh-protected pointer for dereferencingh]h3fetch an RCU-bh-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj hMhj^hhubj)}(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)}(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.hhMhj0ubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_sched (C macro)c.rcu_dereference_schedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_schedh]j)}(hrcu_dereference_schedh]jg)}(hrcu_dereference_schedh]jm)}(hjh]hrcu_dereference_sched}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h``rcu_dereference_sched (p)``h]j)}(hjh]hrcu_dereference_sched (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(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.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj^hhubj)}(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)}(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:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hj@h]hp}(hjBhhhNhNubah}(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:ubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_all (C macro)c.rcu_dereference_allhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_dereference_allh]j)}(hrcu_dereference_allh]jg)}(hrcu_dereference_allh]jm)}(hjh]hrcu_dereference_all}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h``rcu_dereference_all (p)``h]j)}(hjh]hrcu_dereference_all (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(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.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhj^hhubj)}(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)}(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)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjJh]hp}(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.hhMhjDubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%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)}(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.hhMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_pointer_handoff (C macro)c.rcu_pointer_handoffhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_pointer_handoffh]j)}(hrcu_pointer_handoffh]jg)}(hrcu_pointer_handoffh]jm)}(hjh]hrcu_pointer_handoff}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h``rcu_pointer_handoff (p)``h]j)}(hjh]hrcu_pointer_handoff (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hj^hhubj)}(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.hhM hjubah}(h]h ]h"]h$]h&]uh1jhj(hM hj^hhubj)}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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 hand off h](j)}(h``p``h]j)}(hjTh]hp}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hjNubj)}(hhh]h)}(hThe pointer to hand offh]hThe pointer to hand off}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM hjKubah}(h]h ]h"]h$]h&]uh1jhj/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)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hj/ubj#C)}(hrcu_read_lock(); p = rcu_dereference(gp); long_lived = is_long_lived(p); if (long_lived) { if (!atomic_inc_not_zero(p->refcnt)) long_lived = false; else p = rcu_pointer_handoff(p); } rcu_read_unlock();h]hrcu_read_lock(); p = rcu_dereference(gp); long_lived = is_long_lived(p); if (long_lived) { if (!atomic_inc_not_zero(p->refcnt)) long_lived = false; else p = rcu_pointer_handoff(p); } rcu_read_unlock();}hjsbah}(h]h ]h"]h$]h&]jjuh1j"Ch]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_lock (C function)c.rcu_read_lockhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock (void)h]j)}(hvoid rcu_read_lock(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM!ubjg)}(h rcu_read_lockh]jm)}(h rcu_read_lockh]h rcu_read_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM!ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(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)jhuh1hhjhM!hjhhubj)}(hhh]h)}(h7mark the beginning of an RCU read-side critical sectionh]h7mark the beginning of an RCU read-side critical section}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM!hjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhj^hNhNubj)}(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)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM%hjfubj)}(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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubh)}(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.hhKhjfubh)}(hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.h]hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM"hjfubh)}(hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.h]hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM*hjfubh)}(hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.h]hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM.hjfubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM:hjfubh)}(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.hhM>hjfubh)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMChjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_unlock (C function)c.rcu_read_unlockhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_read_unlock (void)h]j)}(hvoid rcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMbubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjdhMbubjg)}(hrcu_read_unlockh]jm)}(hrcu_read_unlockh]hrcu_read_unlock}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjdhMbubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhMbubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhMbhjKhhubj)}(hhh]h)}(h3marks the end of an RCU read-side critical section.h]h3marks the end of an RCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled. See rcu_read_lock() for more information.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMfhjubj)}(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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hX!In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.h]hX#In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler’s runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMchjubh)}(h)See rcu_read_lock() for more information.h]h)See rcu_read_lock() for more information.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_lock_bh (C function)c.rcu_read_lock_bhhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_bh (void)h]j)}(hvoid rcu_read_lock_bh(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMwubjg)}(hrcu_read_lock_bhh]jm)}(hrcu_read_lock_bhh]hrcu_read_lock_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMwubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMwhjhhubj)}(hhh]h)}(h0mark the beginning of an RCU-bh critical sectionh]h0mark the beginning of an RCU-bh critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj^hNhNubj)}(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.hhM{hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj5h]hvoid}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj/ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.hhMxhjubh)}(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.hhM~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_unlock_bh (C function)c.rcu_read_unlock_bhhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_read_unlock_bh (void)h]j)}(hvoid rcu_read_unlock_bh(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrcu_read_unlock_bhh]jm)}(hrcu_read_unlock_bhh]hrcu_read_unlock_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h4marks the end of a softirq-only RCU critical sectionh]h4marks the end of a softirq-only RCU critical section}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhj^hNhNubj)}(hf**Parameters** ``void`` no arguments **Description** See rcu_read_lock_bh() for more information.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjGubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjlh]hvoid}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjfubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubh)}(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.hhKhjGubh)}(h,See rcu_read_lock_bh() for more information.h]h,See rcu_read_lock_bh() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_read_lock_sched (C function)c.rcu_read_lock_schedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_sched (void)h]j)}(hvoid rcu_read_lock_sched(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrcu_read_lock_schedh]jm)}(hrcu_read_lock_schedh]hrcu_read_lock_sched}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubah}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(h2mark the beginning of a RCU-sched critical sectionh]h2mark the beginning of a RCU-sched critical section}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1hhhhj^hNhNubj)}(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)}(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:398: ./include/linux/rcupdate.hhMhjoubj)}(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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubh)}(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.hhKhjoubh)}(hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.h]hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjoubh)}(hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.h]hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_read_unlock_sched (C function)c.rcu_read_unlock_schedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h!void rcu_read_unlock_sched (void)h]j)}(h void rcu_read_unlock_sched(void)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj1hMubjg)}(hrcu_read_unlock_schedh]jm)}(hrcu_read_unlock_schedh]hrcu_read_unlock_sched}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj1hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhjhhubj)}(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&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(hi**Parameters** ``void`` no arguments **Description** See rcu_read_lock_sched() for more information.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_INIT_POINTER (C macro)c.RCU_INIT_POINTERhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hRCU_INIT_POINTERh]j)}(hRCU_INIT_POINTERh]jg)}(hRCU_INIT_POINTERh]jm)}(hjEh]hRCU_INIT_POINTER}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjbhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhj@hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@hhhjbhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1hhhhj^hNhNubh)}(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.hhMhj^hhubj)}(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&]uh1jhjhMhj^hhubj)}(hX<**Parameters** ``p`` The pointer to be initialized. ``v`` The value to initialized the pointer to. **Description** Initialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are: 1. This use of RCU_INIT_POINTER() is NULLing out the pointer *or* 2. The caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or* 3. The referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and* a. You have not made *any* reader-visible changes to this structure since then *or* b. It is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) Failure to follow these rules governing use of RCU_INIT_POINTER() will result in impossible-to-diagnose memory corruption. As in the structures will look OK in crash dumps, but any concurrent RCU readers might see pre-initialized values of the referenced data structure. So please be very careful how you use RCU_INIT_POINTER()!!! If you are creating an RCU-protected linked structure that is accessed by a single external-to-structure RCU-protected pointer, then you may use RCU_INIT_POINTER() to initialize the internal RCU-protected pointers, but you must use rcu_assign_pointer() to initialize the external-to-structure pointer *after* you have completely initialized the reader-accessible portions of the linked structure. Note that unlike rcu_assign_pointer(), RCU_INIT_POINTER() provides no ordering guarantees for either the CPU or the compiler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.hhMhjubj)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h(The value to initialized the pointer to.h]h(The value to initialized the pointer to.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMhjubh)}(hInitialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are:h]hInitialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are:}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubjG)}(hhh](j)}(h>This use of RCU_INIT_POINTER() is NULLing out the pointer *or*h]h)}(hjsh](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(hjuhhhNhNubjx)}(h*or*h]hor}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjuubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjqubah}(h]h ]h"]h$]h&]uh1jhjnubj)}(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 }(hjhhhNhNubjx)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubeh}(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&]uh1jhjnubj)}(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() }(hjhhhNhNubjx)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubjG)}(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 }(hjhhhNhNubjx)}(h*any*h]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubh5 reader-visible changes to this structure since then }(hjhhhNhNubjx)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubeh}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]jiHjjkHhjlHjmHuh1jGhjubeh}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]jiHjjHjkHhjlHjmHuh1jGhjubh)}(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()!!!}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hXIf you are creating an RCU-protected linked structure that is accessed by a single external-to-structure RCU-protected pointer, then you may use RCU_INIT_POINTER() to initialize the internal RCU-protected pointers, but you must use rcu_assign_pointer() to initialize the external-to-structure pointer *after* you have completely initialized the reader-accessible portions of the linked structure.h](hX-If you are creating an RCU-protected linked structure that is accessed by a single external-to-structure RCU-protected pointer, then you may use RCU_INIT_POINTER() to initialize the internal RCU-protected pointers, but you must use rcu_assign_pointer() to initialize the external-to-structure pointer }(hjUhhhNhNubjx)}(h*after*h]hafter}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjUubhX you have completely initialized the reader-accessible portions of the linked structure.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(h}Note that unlike rcu_assign_pointer(), RCU_INIT_POINTER() provides no ordering guarantees for either the CPU or the compiler.h]h}Note that unlike rcu_assign_pointer(), RCU_INIT_POINTER() provides no ordering guarantees for either the CPU or the compiler.}(hjvhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!RCU_POINTER_INITIALIZER (C macro)c.RCU_POINTER_INITIALIZERhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hRCU_POINTER_INITIALIZERh]j)}(hRCU_POINTER_INITIALIZERh]jg)}(hRCU_POINTER_INITIALIZERh]jm)}(hjh]hRCU_POINTER_INITIALIZER}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/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)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h"``RCU_POINTER_INITIALIZER (p, v)``h]j)}(hjh]hRCU_POINTER_INITIALIZER (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj^hhubj)}(h/statically initialize an RCU protected pointer h]h)}(h.statically initialize an RCU protected pointerh]h.statically initialize an RCU protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj^hhubj)}(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.hhMhj ubj)}(hhh](j)}(h%``p`` The pointer to be initialized. h](j)}(h``p``h]j)}(hj/h]hp}(hj1hhhNhNubah}(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)ubj)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj&ubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjhh]hv}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjbubj)}(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&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj 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)}(hKGCC-style initialization for an RCU-protected pointer in a structure field.h]hKGCC-style initialization for an RCU-protected pointer in a structure field.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfree_rcu (C macro) c.kfree_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h kfree_rcuh]j)}(h kfree_rcuh]jg)}(h kfree_rcuh]jm)}(hjh]h kfree_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM"ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM"ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM"hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM"ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h``kfree_rcu (ptr, rhf)``h]j)}(hjh]hkfree_rcu (ptr, rhf)}(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.hhM$hj^hhubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM"hj4ubah}(h]h ]h"]h$]h&]uh1jhjFhM"hj^hhubj)}(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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM&hjMubj)}(hhh](j)}(h:``ptr`` pointer to kfree for double-argument invocations. h](j)}(h``ptr``h]j)}(hjrh]hptr}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM#hjlubj)}(hhh]h)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjiubj)}(hD``rhf`` the name of the struct rcu_head within the type of **ptr**. h](j)}(h``rhf``h]j)}(hjh]hrhf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM$hjubj)}(hhh]h)}(h;the name of the struct rcu_head within the type of **ptr**.h](h3the name of the struct rcu_head within the type of }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjiubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(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&hjMubh)}(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.hhM%hjMubh)}(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.hhM*hjMubh)}(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().}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM4hjMubh)}(hh]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.hhMDhjubh)}(hWhen it comes to head-less variant, only one argument is passed and that is just a pointer which has to be freed after a grace period. Therefore the semantic ish]hWhen it comes to head-less variant, only one argument is passed and that is just a pointer which has to be freed after a grace period. Therefore the semantic is}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMChjubj)}(hkfree_rcu_mightsleep(ptr); h]h)}(hkfree_rcu_mightsleep(ptr);h]hkfree_rcu_mightsleep(ptr);}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMGhjcubah}(h]h ]h"]h$]h&]uh1jhjuhMGhjubh)}(h5where **ptr** is the pointer to be freed by kvfree().h](hwhere }(hj|hhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh( is the pointer to be freed by kvfree().}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMIhjubh)}(hPlease note, head-less way of freeing is permitted to use from a context that has to follow might_sleep() annotation. Otherwise, please switch and embed the rcu_head structure within the type of **ptr**.h](hPlease note, head-less way of freeing is permitted to use from a context that has to follow might_sleep() annotation. Otherwise, please switch and embed the rcu_head structure within the type of }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(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.hhMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_head_init (C function)c.rcu_head_inithNtauh1hhj^hhhNhNubh)}(hhh](j)}(h)void rcu_head_init (struct rcu_head *rhp)h]j)}(h(void rcu_head_init(struct rcu_head *rhp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h rcu_head_inith]jm)}(h rcu_head_inith]h rcu_head_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_head_initasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrhph]hrhp}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` The rcu_head structure to initialize. **Description** If you intend to invoke rcu_head_after_call_rcu() to test whether a given rcu_head structure has already been passed to call_rcu(), then you must also invoke this rcu_head_init() function on it just after allocating that structure. Calls to this function must not race with calls to call_rcu(), rcu_head_after_call_rcu(), or callback invocation.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h?``struct rcu_head *rhp`` The rcu_head structure to initialize. h](j)}(h``struct rcu_head *rhp``h]j)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h%The rcu_head structure to initialize.h]h%The rcu_head structure to initialize.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(hj0hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$rcu_head_after_call_rcu (C function)c.rcu_head_after_call_rcuhNtauh1hhj^hhhNhNubh)}(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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhjlhMubjg)}(hrcu_head_after_call_rcuh]jm)}(hrcu_head_after_call_rcuh]hrcu_head_after_call_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhjlhMubj)}(h((struct rcu_head *rhp, rcu_callback_t f)h](j)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_head_after_call_rcuasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hrcu_callback_t fh](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.rcu_head_after_call_rcuasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hfh]hf}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjlhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjThhubj)}(hhh]h)}(h,Has this rcu_head been passed to call_rcu()?h]h,Has this rcu_head been passed to call_rcu()?}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjchhubah}(h]h ]h"]h$]h&]uh1jhjThhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhj^hNhNubj)}(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)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(hThe rcu_head structure to test.h]hThe rcu_head structure to test.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hK``rcu_callback_t f`` The function passed to call_rcu() along with **rhp**. h](j)}(h``rcu_callback_t f``h]j)}(hjh]hrcu_callback_t f}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h5The function passed to call_rcu() along with **rhp**.h](h-The function passed to call_rcu() along with }(hjhhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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 }(hjChhhNhNubj)}(h**true**h]htrue}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh if the }(hjChhhNhNubj)}(h**rhp**h]hrhp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh$ has been passed to call_rcu() with }(hjChhhNhNubj)}(h**func**h]hfunc}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh, and }(hjChhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhI otherwise. Emits a warning in any other case, including the case where }(hjChhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhX0 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 }(hjChhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh.}(hjChhhNhNubeh}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_softirq_qs (C function)c.rcu_softirq_qshNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_softirq_qs (void)h]j)}(hvoid rcu_softirq_qs(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hrcu_softirq_qsh]jm)}(hrcu_softirq_qsh]hrcu_softirq_qs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h;Provide a set of RCU quiescent states in softirq processingh]h;Provide a set of RCU quiescent states in softirq processing}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj^hNhNubj)}(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)}(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:400: ./kernel/rcu/tree.chKhjaubj)}(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.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubh)}(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.chKhjaubh)}(hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.h]hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjaubh)}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjaubj#C)}(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}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjaubh)}(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.chKhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,rcu_watching_snap_stopped_since (C function)!c.rcu_watching_snap_stopped_sincehNtauh1hhj^hhhNhNubh)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM,ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/hhhj@hM,ubjg)}(hrcu_watching_snap_stopped_sinceh]jm)}(hrcu_watching_snap_stopped_sinceh]hrcu_watching_snap_stopped_since}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/hhhj@hM,ubj)}(h (struct rcu_data *rdp, int snap)h](j)}(hstruct rcu_data *rdph](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(hrcu_datah]hrcu_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jUsb!c.rcu_watching_snap_stopped_sinceasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hrdph]hrdp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hint snaph](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsnaph]hsnap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(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)jhuh1hhj@hM,hj(hhubj)}(hhh]h)}(hBHas RCU stopped watching a given CPU since the specified **snap**?h](h9Has RCU stopped watching a given CPU since the specified }(hj'hhhNhNubj)}(h**snap**h]hsnap}(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:400: ./kernel/rcu/tree.chM,hj$hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj@hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhj^hNhNubj)}(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)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM0hjUubj)}(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)}(hjzh]hstruct rcu_data *rdp}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM/hjtubj)}(hhh]h)}(h=The rcu_data corresponding to the CPU for which to check EQS.h]h=The rcu_data corresponding to the CPU for which to check EQS.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjqubj)}(hH``int snap`` rcu_watching snapshot taken when the CPU wasn't in an EQS. h](j)}(h ``int snap``h]j)}(hjh]hint snap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM0hjubj)}(hhh]h)}(h:rcu_watching snapshot taken when the CPU wasn't in an EQS.h]hrcu_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)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhj4ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjYh]hvoid}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjSubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(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.chKhj4ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM~hj4ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhj4ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_is_watching (C function)c.rcu_is_watchinghNtauh1hhj^hhhNhNubh)}(hhh](j)}(h#notrace bool rcu_is_watching (void)h]j)}(h"notrace bool rcu_is_watching(void)h](hnotrace}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(hrcu_is_watchingh]jm)}(hrcu_is_watchingh]hrcu_is_watching}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubah}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(h9RCU read-side critical sections permitted on current CPU?h]h9RCU read-side critical sections permitted on current CPU?}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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 }(hjhhhNhNubj)}(h**true**h]htrue}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( if RCU is watching the running CPU and }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. An }(hjhhhNhNubj)}(h**true**h]htrue}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM return means that this CPU can safely enter RCU read-side critical sections.}(hjhhhNhNubeh}(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 }(hjFhhhNhNubj)}(h**true**h]htrue}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh, 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 }(hjFhhhNhNubj)}(h **false**h]hfalse}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh.}(hjFhhhNhNubeh}(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.}(hjyhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_set_gpwrap_lag (C function)c.rcu_set_gpwrap_laghNtauh1hhj^hhhNhNubh)}(hhh](j)}(h/void rcu_set_gpwrap_lag (unsigned long lag_gps)h]j)}(h.void rcu_set_gpwrap_lag(unsigned long lag_gps)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hrcu_set_gpwrap_lagh]jm)}(hrcu_set_gpwrap_lagh]hrcu_set_gpwrap_lag}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(unsigned long lag_gps)h]j)}(hunsigned long lag_gpsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlag_gpsh]hlag_gps}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM hjhhubj)}(hhh]h)}(h'Set RCU GP sequence overflow lag value.h]h'Set RCU GP sequence overflow lag value.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjDhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhj^hNhNubj)}(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)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjcubj)}(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 hjubj)}(hhh]h)}(hSet overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](h~Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. }(hjhhhNhNubj)}(h **lag_gps**h]hlag_gps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 = 0 means we reset it back to the boot-time value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu_hurry (C function)c.call_rcu_hurryhNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM\ ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM\ ubjg)}(hcall_rcu_hurryh]jm)}(hcall_rcu_hurryh]hcall_rcu_hurry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM\ ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.call_rcu_hurryasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jkc.call_rcu_hurryasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM\ hjhhubj)}(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.}(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&]uh1jhjhhhjhM\ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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}(hj hhhNhNubah}(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)}(hj=h]hstruct rcu_head *head}(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.chM` hj7ubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM` hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM` hj4ubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjvh]hrcu_callback_t func}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMa hjpubj)}(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&]uh1hhjhMa hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMa hj4ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu (C function) c.call_rcuhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMy ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMy ubjg)}(hcall_rcuh]jm)}(hcall_rcuh]hcall_rcu}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMy ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE j(sb c.call_rcuasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j| c.call_rcuasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMy ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMy ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMy hjhhubj)}(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().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMy hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMy ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1hhhhj^hNhNubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(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} hj)ubj)}(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)}(hjNh]hstruct rcu_head *head}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM~ hjHubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM~ hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM~ hjEubj)}(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 hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjEubeh}(h]h ]h"]h$]h&]uh1jhj)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.chM hj)ubh)}(hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.h]hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj)ubh)}(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.}(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 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 hj)ubh)}(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 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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj)ubh)}(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().}(hj2hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_rcu (C function)c.synchronize_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid synchronize_rcu (void)h]j)}(hvoid synchronize_rcu(void)h](j )}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]hhhjohM ubjg)}(hsynchronize_rcuh]jm)}(hsynchronize_rcuh]hsynchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhjohM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohM ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohM hjVhhubj)}(hhh]h)}(h&wait until a grace period has elapsed.h]h&wait until a grace period has elapsed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj h]hvoid}(hj hhhNhNubah}(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.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubh)}(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.}(hjZhhhNhNubah}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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 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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/get_completed_synchronize_rcu_full (C function)$c.get_completed_synchronize_rcu_fullhNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM= ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM= ubjg)}(h"get_completed_synchronize_rcu_fullh]jm)}(h"get_completed_synchronize_rcu_fullh]h"get_completed_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM= ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jsb$c.get_completed_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosph]hrgosp}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM= hjhhubj)}(hhh]h)}(h/Return a full pre-completed polled state cookieh]h/Return a full pre-completed polled state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM= hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM= ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.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)}(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> hjubj)}(hhh]h)}(hPlace to put state cookieh]hPlace to put state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM> hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM> hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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@ 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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&get_state_synchronize_rcu (C function)c.get_state_synchronize_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h.unsigned long get_state_synchronize_rcu (void)h]j)}(h-unsigned long get_state_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chML ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhML ubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhjfhML ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhML ubjg)}(hget_state_synchronize_rcuh]jm)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhML ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhML ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhML ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhML hjMhhubj)}(hhh]h)}(hSnapshot current RCU stateh]hSnapshot current RCU state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chML hjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhML ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.chMP hjubj)}(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.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+get_state_synchronize_rcu_full (C function) c.get_state_synchronize_rcu_fullhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM^ ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM^ ubjg)}(hget_state_synchronize_rcu_fullh]jm)}(hget_state_synchronize_rcu_fullh]hget_state_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM^ ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.get_state_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosph]hrgosp}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjhM^ hjhhubj)}(hhh]h)}(h-Snapshot RCU state, both normal and expeditedh]h-Snapshot RCU state, both normal and expedited}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM^ hjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM^ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhj^hNhNubj)}(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)}(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.chMb hjxubj)}(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_ hjubj)}(hhh]h)}(h>location to place combined normal/expedited grace-period stateh]h>location to place combined normal/expedited grace-period state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_ hjubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(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.chMa hjxubh)}(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 }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX. 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM` hjxubh)}(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 hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'start_poll_synchronize_rcu (C function)c.start_poll_synchronize_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h/unsigned long start_poll_synchronize_rcu (void)h]j)}(h.unsigned long start_poll_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhM ubj )}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhjLhM ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhM ubjg)}(hstart_poll_synchronize_rcuh]jm)}(hstart_poll_synchronize_rcuh]hstart_poll_synchronize_rcu}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhM ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhM hj3hhubj)}(hhh]h)}(h#Snapshot and start RCU grace periodh]h#Snapshot and start RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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)}(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.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(hjShhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,start_poll_synchronize_rcu_full (C function)!c.start_poll_synchronize_rcu_fullhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj~hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhjhM ubjg)}(hstart_poll_synchronize_rcu_fullh]jm)}(hstart_poll_synchronize_rcu_fullh]hstart_poll_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhM ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.start_poll_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhM ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjwhhubj)}(hhh]h)}(h/Take a full snapshot and start RCU grace periodh]h/Take a full snapshot and start RCU grace period}(hjBhhhNhNubah}(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&]uh1jhjwhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhj^hNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj^ubj)}(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 hj}ubj)}(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&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjzubah}(h]h ]h"]h$]h&]uh1jhj^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.chM hj^ubh)}(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 }(hjhhhNhNubj)}(h ***rgos**h]h*rgos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXK. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'poll_state_synchronize_rcu (C function)c.poll_state_synchronize_rcuhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj"hM ubjg)}(hpoll_state_synchronize_rcuh]jm)}(hpoll_state_synchronize_rcuh]hpoll_state_synchronize_rcu}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj"hM ubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj )}(hlongh]hlong}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubjm)}(holdstateh]holdstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hM hj hhubj)}(hhh]h)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``unsigned long oldstate`` value from get_state_synchronize_rcu() or start_poll_synchronize_rcu() **Description** If a full RCU grace period has elapsed since the earlier call from which **oldstate** was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **oldstate** to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state. In addition, because oldstate compresses the grace-period state for both normal and expedited grace periods into a single unsigned long, it can miss a grace period when synchronize_rcu() runs concurrently with synchronize_rcu_expedited(). If this is unacceptable, please instead use the _full() variant of these polling APIs. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate**, and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubj)}(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)}(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.chM hjubj)}(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()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(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)}(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 }(hjEhhhNhNubj)}(h **oldstate**h]holdstate}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh was obtained, return }(hjEhhhNhNubj)}(h**true**h]htrue}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh, otherwise return }(hjEhhhNhNubj)}(h **false**h]hfalse}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh. If }(hjEhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjEhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjEhhhNhNubj)}(h **oldstate**h]holdstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh 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.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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&]uh1jhjubh0, and that returned at the end of this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,poll_state_synchronize_rcu_full (C function)!c.poll_state_synchronize_rcu_fullhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj,hM ubjg)}(hpoll_state_synchronize_rcu_fullh]jm)}(hpoll_state_synchronize_rcu_fullh]hpoll_state_synchronize_rcu_full}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj,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&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]jR )}jE jAsb!c.poll_state_synchronize_rcu_fullasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj,hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hM hjhhubj)}(hhh]h)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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}(hj!hhhNhNubah}(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 hjubj)}(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()}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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 }(hjphhhNhNubjx)}(h$*rgosp was obtained, return **true**h]h"rgosp was obtained, return **true*}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjpubh, otherwise return }(hjphhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh. If }(hjphhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjphhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjphhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(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 }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX, 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 }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF, then the root rcu_node structure is the one that needs to be polled.}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!cond_synchronize_rcu (C function)c.cond_synchronize_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h2void cond_synchronize_rcu (unsigned long oldstate)h]j)}(h1void cond_synchronize_rcu(unsigned long oldstate)h](j )}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhjIhMubjg)}(hcond_synchronize_rcuh]jm)}(hcond_synchronize_rcuh]hcond_synchronize_rcu}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhjIhMubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(holdstateh]holdstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhjIhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjIhMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhMhj0hhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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)}(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.chMhjubj)}(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()}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM"hjubh)}(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'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&cond_synchronize_rcu_full (C function)c.cond_synchronize_rcu_fullhNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM5ubjg)}(hcond_synchronize_rcu_fullh]jm)}(hcond_synchronize_rcu_fullh]hcond_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM5ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE jsbc.cond_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosph]hrgosp}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hjhhubj)}(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&]uh1jhjhhhjhM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.chM9hjubj)}(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)}(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.chM6hjubj)}(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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM8hjubh)}(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}(hj%hhhNhNubah}(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.chM7hjubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM=hjubh)}(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 }(hjMhhhNhNubj)}(h **rgosp**h]hrgosp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh/ and that returned at the end of this function.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_barrier (C function) c.rcu_barrierhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_barrier (void)h]j)}(hvoid rcu_barrier(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h rcu_barrierh]jm)}(h rcu_barrierh]h rcu_barrier}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h7Wait until all in-flight call_rcu() callbacks complete.h]h7Wait until all in-flight call_rcu() callbacks complete.}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj^hNhNubj)}(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)}(hj6h]hvoid}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhj0ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjqh]h Description}(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.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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_barrier_throttled (C function)c.rcu_barrier_throttledhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h!void rcu_barrier_throttled (void)h]j)}(h void rcu_barrier_throttled(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMLubjg)}(hrcu_barrier_throttledh]jm)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMLubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMLhjhhubj)}(hhh]h)}(h-Do rcu_barrier(), but limit to one per secondh]h-Do rcu_barrier(), but limit to one per second}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMLhj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhj^hNhNubj)}(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)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMPhjHubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjmh]hvoid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjgubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(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.chKhjHubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMMhjHubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMShjHubh)}(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!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMWhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&synchronize_rcu_expedited (C function)c.synchronize_rcu_expeditedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h%void synchronize_rcu_expedited (void)h]j)}(h$void synchronize_rcu_expedited(void)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsynchronize_rcu_expeditedh]jm)}(hsynchronize_rcu_expeditedh]hsynchronize_rcu_expedited}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubah}(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)jhuh1hhjhMhjhhubj)}(hhh]h)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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.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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhKhjubh)}(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.hhMhjubh)}(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.hhMhjubh)}(hKThis has the same semantics as (but is more brutal than) synchronize_rcu().h]hKThis has the same semantics as (but is more brutal than) synchronize_rcu().}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h1start_poll_synchronize_rcu_expedited (C function)&c.start_poll_synchronize_rcu_expeditedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h9unsigned long start_poll_synchronize_rcu_expedited (void)h]j)}(h8unsigned long start_poll_synchronize_rcu_expedited(void)h](j )}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hMubj )}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhj_hMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hMubjg)}(h$start_poll_synchronize_rcu_expeditedh]jm)}(h$start_poll_synchronize_rcu_expeditedh]h$start_poll_synchronize_rcu_expedited}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj_hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhj_hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj_hMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhjFhhubj)}(hhh]h)}(h;Snapshot current RCU state and start expedited grace periodh]h;Snapshot current RCU state 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&]uh1jhjFhhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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)}(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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhKhjubh)}(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.}(hjfhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h6start_poll_synchronize_rcu_expedited_full (C function)+c.start_poll_synchronize_rcu_expedited_fullhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h)start_poll_synchronize_rcu_expedited_fullh]jm)}(h)start_poll_synchronize_rcu_expedited_fullh]h)start_poll_synchronize_rcu_expedited_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb+c.start_poll_synchronize_rcu_expedited_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosph]hrgosp}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhj^hNhNubj)}(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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjqubj)}(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.hhMhjubj)}(hhh]h)}(h+Place to put snapshot of grace-period stateh]h+Place to put snapshot of grace-period state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubh)}(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.hhMhjqubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+cond_synchronize_rcu_expedited (C function) c.cond_synchronize_rcu_expeditedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhj 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 ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj 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)}(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.}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chM;hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+get_completed_synchronize_srcu (C function) c.get_completed_synchronize_srcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h3unsigned long get_completed_synchronize_srcu (void)h]j)}(h2unsigned long get_completed_synchronize_srcu(void)h](j )}(hunsignedh]hunsigned}(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKbubj)}(h h]h }(hjq hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ hhhjp hKbubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ hhhjp hKbubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ hhhjp hKbubjg)}(hget_completed_synchronize_srcuh]jm)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^ hhhjp hKbubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj^ hhhjp hKbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZ hhhjp hKbubah}(h]jU ah ](jjeh"]h$]h&]jj)jhuh1hhjp hKbhjW hhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKbhj hhubah}(h]h ]h"]h$]h&]uh1jhjW hhhjp hKbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj^hNhNubj)}(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}(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.hhKfhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj&h]hvoid}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(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.hhKhjubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(same_state_synchronize_srcu (C function)c.same_state_synchronize_srcuhNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKuubjg)}(hsame_state_synchronize_srcuh]jm)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKuubj)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j)}(hunsigned long oldstate1h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h oldstate1h]h oldstate1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long oldstate2h](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj )}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(h oldstate2h]h oldstate2}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKuhjhhubj)}(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&]uh1jhjhhhjhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhKyhjubj)}(hhh](j)}(h3``unsigned long oldstate1`` First old-state value. h](j)}(h``unsigned long oldstate1``h]j)}(hjh]hunsigned long oldstate1}(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.hhKvhjubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKwhj ubj)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKwhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKwhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKyhjubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns }(hj`hhhNhNubj)}(h**true**h]htrue}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh% if the two values are identical and }(hj`hhhNhNubj)}(h **false**h]hfalse}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_read_lock_held (C function)c.srcu_read_lock_heldhNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hsrcu_read_lock_heldh]jm)}(hsrcu_read_lock_heldh]hsrcu_read_lock_held}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(const struct srcu_struct *ssp)h]j)}(hconst struct srcu_struct *ssph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_lock_heldasbuh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h/might we be in SRCU read-side critical section?h]h/might we be in 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.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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)}(hE``const struct srcu_struct *ssp`` The srcu_struct structure to check h](j)}(h!``const struct srcu_struct *ssp``h]j)}(hjh]hconst struct 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.hhKhjubj)}(hhh]h)}(h"The srcu_struct structure to checkh]h"The srcu_struct structure to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhKhjubh)}(hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.h]hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubh)}(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.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubh)}(hNote that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h]hNote that SRCU is based on its own statemachine and it doesn’t relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.}(hj>hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_dereference_check (C macro)c.srcu_dereference_checkhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hsrcu_dereference_checkh]j)}(hsrcu_dereference_checkh]jg)}(hsrcu_dereference_checkh]jm)}(hjgh]hsrcu_dereference_check}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjhKubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h&``srcu_dereference_check (p, ssp, c)``h]j)}(hjh]h"srcu_dereference_check (p, ssp, c)}(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^hhubj)}(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&]uh1jhjhKhj^hhubj)}(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)}(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.hhKhjubj)}(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&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(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)}(hj0h]hssp}(hj2hhhNhNubah}(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.hhKhj*ubj)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjubj)}(h-``c`` condition to check for update-side use h](j)}(h``c``h]j)}(hjjh]hc}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjdubj)}(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&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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 }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh evaluates to 1. The }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hjhhhNhNubeh}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_dereference (C macro)c.srcu_dereferencehNtauh1hhj^hhhNhNubh)}(hhh](j)}(hsrcu_dereferenceh]j)}(hsrcu_dereferenceh]jg)}(hsrcu_dereferenceh]jm)}(hjh]hsrcu_dereference}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj%hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj%hKubeh}(h]h ](jmacroeh"]h$]h&]jjjj>jj>jjjuh1hhhhj^hNhNubh)}(h``srcu_dereference (p, ssp)``h]j)}(hjDh]hsrcu_dereference (p, ssp)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj^hhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjZubah}(h]h ]h"]h$]h&]uh1jhjlhKhj^hhubj)}(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)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjsubj)}(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.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(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.hhKhjsubh)}(hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h]hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_dereference_notrace (C macro)c.srcu_dereference_notracehNtauh1hhj^hhhNhNubh)}(hhh](j)}(hsrcu_dereference_notraceh]j)}(hsrcu_dereference_notraceh]jg)}(hsrcu_dereference_notraceh]jm)}(hjLh]hsrcu_dereference_notrace}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjihMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjGhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjGhhhjihMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(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.hhMhj^hhubj)}(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&]uh1jhjhMhj^hhubj)}(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)}(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)}(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.hhMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.hhMhjubj)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_read_lock (C function)c.srcu_read_lockhNtauh1hhj^hhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhj|hM ubjg)}(hsrcu_read_lockh]jm)}(hsrcu_read_lockh]hsrcu_read_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhj|hM ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_lockasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjjhhhj|hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hM ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hM hjchhubj)}(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&]uh1jhjchhhj|hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1hhhhj^hNhNubj)}(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)}(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:406: ./include/linux/srcu.hhMhjJubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjoh]hstruct srcu_struct *ssp}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM hjiubj)}(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&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubh)}(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.hhMhjJubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM hjJubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_read_lock_fast (C function)c.srcu_read_lock_fasthNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM+ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM+ubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE srcu_read_lock_fastsbc.srcu_read_lock_fastasbuh1hhjhhhj hM+ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM+ubh__percpu}(hjhhhNhNubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM+ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM+ubjg)}(hsrcu_read_lock_fasth]jm)}(hj;h]hsrcu_read_lock_fast}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hM+ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j9c.srcu_read_lock_fastasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hM+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM+hjhhubj)}(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+hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhj^hNhNubj)}(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)}(hjLh]hstruct srcu_struct *ssp}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM,hjFubj)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM,hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM,hjCubah}(h]h ]h"]h$]h&]uh1jhj'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.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().}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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().}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'srcu_read_lock_fast_updown (C function)c.srcu_read_lock_fast_updownhNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMQubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE srcu_read_lock_fast_updownsbc.srcu_read_lock_fast_updownasbuh1hhjhhhjhMQubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMQubh__percpu}(hjhhhNhNubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMQubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMQubjg)}(hsrcu_read_lock_fast_updownh]jm)}(hj6h]hsrcu_read_lock_fast_updown}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMQubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j4c.srcu_read_lock_fast_updownasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMQubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMQhjhhubj)}(hhh]h)}(h8register a new reader for an SRCU-fast-updown structure.h]h8register a new reader for an SRCU-fast-updown structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(hjGh]hstruct srcu_struct *ssp}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMRhjAubj)}(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&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMRhj>ubah}(h]h ]h"]h$]h&]uh1jhj"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.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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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().}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_down_read_fast (C function)c.srcu_down_read_fasthNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE srcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhjhhhjhMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh__percpu}(hjhhhNhNubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hsrcu_down_read_fasth]jm)}(hj1h]hsrcu_down_read_fast}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j/c.srcu_down_read_fastasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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.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)}(hjBh]hstruct srcu_struct *ssp}(hjDhhhNhNubah}(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<ubj)}(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&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(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.}(hjhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#srcu_read_lock_nmisafe (C function)c.srcu_read_lock_nmisafehNtauh1hhj^hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsrcu_read_lock_nmisafeh]jm)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_lock_nmisafeasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hssph]hssp}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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)jhuh1hhjhMhjhhubj)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(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)}(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.hhMhjubh)}(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.}(hj2hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_down_read (C function)c.srcu_down_readhNtauh1hhj^hhhNhNubh)}(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}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]hhhjohMubjg)}(hsrcu_down_readh]jm)}(hsrcu_down_readh]hsrcu_down_read}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhjohMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_down_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjVhhubj)}(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&]uh1jhjVhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9 jj9 jjjuh1hhhhj^hNhNubj)}(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)}(hjC h]h Parameters}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA 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)}(hjb h]hstruct srcu_struct *ssp}(hjd 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\ ubj)}(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&]uh1hhjw hMhjx ubah}(h]h ]h"]h$]h&]uh1jhj\ ubeh}(h]h ]h"]h$]h&]uh1jhjw hMhjY ubah}(h]h ]h"]h$]h&]uh1jhj= 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().}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_read_unlock (C function)c.srcu_read_unlockhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj!hMubjg)}(hsrcu_read_unlockh]jm)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hj!!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj 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&]uh1jhj9!ubj)}(h h]h }(hjJ!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9!ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj[!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]!modnameN classnameNjI jL )}jO ]jR )}jE j#!sbc.srcu_read_unlockasbuh1hhj9!ubj)}(h h]h }(hj{!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9!ubjm)}(hssph]hssp}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5!ubj)}(hint idxh](j )}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubjm)}(hidxh]hidx}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5!ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj!hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj!hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj!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 hhhj!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj "jj "jjjuh1hhhhj^hNhNubj)}(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)}(hj6"h]hstruct srcu_struct *ssp}(hj8"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4"ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj0"ubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjO"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK"hMhjL"ubah}(h]h ]h"]h$]h&]uh1jhj0"ubeh}(h]h ]h"]h$]h&]uh1jhjK"hMhj-"ubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hjo"h]hint idx}(hjq"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm"ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhji"ubj)}(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&]uh1jhji"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj-"ubeh}(h]h ]h"]h$]h&]uh1jhj"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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_read_unlock_fast (C function)c.srcu_read_unlock_fasthNtauh1hhj^hhhNhNubh)}(hhh](j)}(hSvoid srcu_read_unlock_fast (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]j)}(hRvoid srcu_read_unlock_fast(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj"hMubjg)}(hsrcu_read_unlock_fasth]jm)}(hsrcu_read_unlock_fasth]hsrcu_read_unlock_fast}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj #ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"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(#ubj)}(h h]h }(hj9#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(#ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjJ#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjL#modnameN classnameNjI jL )}jO ]jR )}jE j#sbc.srcu_read_unlock_fastasbuh1hhj(#ubj)}(h h]h }(hjj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(#ubj)}(hjh]h*}(hjx#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(#ubjm)}(hssph]hssp}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$#ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]jf#c.srcu_read_unlock_fastasbuh1hhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh__percpu}(hj#hhhNhNubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hscph]hscp}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#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)jhuh1hhj"hMhj"hhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj1$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&]jjjjI$jjI$jjjuh1hhhhj^hNhNubj)}(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)}(hjS$h]h Parameters}(hjU$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ$ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjM$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)}(hjr$h]hstruct srcu_struct *ssp}(hjt$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp$ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjl$ubj)}(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&]uh1jhjl$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhji$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$ubj)}(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&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhji$ubeh}(h]h ]h"]h$]h&]uh1jhjM$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.hhMhjM$ubh)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight 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.hhMhjM$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)srcu_read_unlock_fast_updown (C function)c.srcu_read_unlock_fast_updownhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj'%hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hj:%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'%hhhj9%hMubjg)}(hsrcu_read_unlock_fast_updownh]jm)}(hsrcu_read_unlock_fast_updownh]hsrcu_read_unlock_fast_updown}(hjL%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'%hhhj9%hMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjh%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd%ubj)}(h h]h }(hju%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd%ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE jN%sbc.srcu_read_unlock_fast_updownasbuh1hhjd%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjd%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd%ubjm)}(hssph]hssp}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`%ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]j%c.srcu_read_unlock_fast_updownasbuh1hhj%ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh__percpu}(hj%hhhNhNubj)}(h h]h }(hj(&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj6&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hscph]hscp}(hjC&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`%ubeh}(h]h ]h"]h$]h&]jjuh1jhj'%hhhj9%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#%hhhj9%hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj9%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.}(hjm&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjj&hhubah}(h]h ]h"]h$]h&]uh1jhj %hhhj9%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhj^hNhNubj)}(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&ubj)}(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&]uh1jhj&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)}(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&ubj)}(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&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&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.}(hj8'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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_up_read_fast (C function)c.srcu_up_read_fasthNtauh1hhj^hhhNhNubh)}(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}(hjg'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc'hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjv'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc'hhhju'hMubjg)}(hsrcu_up_read_fasth]jm)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjc'hhhju'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'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.srcu_up_read_fastasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hssph]hssp}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj#(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hj4(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6(modnameN classnameNjI jL )}jO ]j'c.srcu_up_read_fastasbuh1hhj(ubj)}(h h]h }(hjR(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh__percpu}(hj(hhhNhNubj)}(h h]h }(hjd(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjr(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hscph]hscp}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjc'hhhju'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_'hhhju'hMubah}(h]jZ'ah ](jjeh"]h$]h&]jj)jhuh1hhju'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\'hhhju'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhj^hNhNubj)}(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)}(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(ubj)}(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&]uh1jhj(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)ubj)}(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&]uh1hhj8)hMhj9)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj8)hMhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(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)}(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().}(hjt)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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%srcu_read_unlock_nmisafe (C function)c.srcu_read_unlock_nmisafehNtauh1hhj^hhhNhNubh)}(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}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM(ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj)hM(ubjg)}(hsrcu_read_unlock_nmisafeh]jm)}(hsrcu_read_unlock_nmisafeh]hsrcu_read_unlock_nmisafe}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj)hM(ubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]jR )}jE j)sbc.srcu_read_unlock_nmisafeasbuh1hhj)ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hj,*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hssph]hssp}(hj9*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hint idxh](j )}(hinth]hint}(hjR*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjN*ubj)}(h h]h }(hj`*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN*ubjm)}(hidxh]hidx}(hjn*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjN*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)jhuh1hhj)hM(hj)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.hhM(hj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhj^hNhNubj)}(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)}(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)}(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.hhM)hj*ubj)}(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*hM)hj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hM)hj*ubj)}(hF``int idx`` return value from corresponding srcu_read_lock_nmisafe(). 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.hhM*hj +ubj)}(hhh]h)}(h9return value from corresponding srcu_read_lock_nmisafe().h]h9return value from corresponding srcu_read_lock_nmisafe().}(hj++hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'+hM*hj(+ubah}(h]h ]h"]h$]h&]uh1jhj +ubeh}(h]h ]h"]h$]h&]uh1jhj'+hM*hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]j)}(hjM+h]h Description}(hjO+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK+ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM,hj*ubh)}(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.}(hjc+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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_up_read (C function)c.srcu_up_readhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h4void srcu_up_read (struct srcu_struct *ssp, int idx)h]j)}(h3void srcu_up_read(struct srcu_struct *ssp, int idx)h](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM@ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+hhhj+hM@ubjg)}(h srcu_up_readh]jm)}(h srcu_up_readh]h srcu_up_read}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+hhhj+hM@ubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE j+sbc.srcu_up_readasbuh1hhj+ubj)}(h h]h }(hj ,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjm)}(hssph]hssp}(hj(,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hint idxh](j )}(hinth]hint}(hjA,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=,ubj)}(h h]h }(hjO,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=,ubjm)}(hidxh]hidx}(hj],hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=,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)jhuh1hhj+hM@hj+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.hhM@hj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhj^hNhNubj)}(hX'**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``int idx`` return value from corresponding srcu_read_lock(). **Description** Exit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMDhj,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.hhMAhj,ubj)}(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,hMAhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMAhj,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.hhMBhj,ubj)}(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-hMBhj-ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj-hMBhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,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.hhMDhj,ubh)}(hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().h]hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().}(hjR-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMChj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+smp_mb__after_srcu_read_unlock (C function) c.smp_mb__after_srcu_read_unlockhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h*void smp_mb__after_srcu_read_unlock (void)h]j)}(h)void smp_mb__after_srcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}-hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}-hhhj-hMQubjg)}(hsmp_mb__after_srcu_read_unlockh]jm)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}-hhhj-hMQubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubah}(h]h ]h"]h$]h&]jjuh1jhj}-hhhj-hMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjy-hhhj-hMQubah}(h]jt-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMQhjv-hhubj)}(hhh]h)}(h+ensure full ordering after srcu_read_unlockh]h+ensure full ordering after srcu_read_unlock}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMQhj-hhubah}(h]h ]h"]h$]h&]uh1jhjv-hhhj-hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhj^hNhNubj)}(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)}(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)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj).h]hvoid}(hj+.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'.ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj#.ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjB.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>.hKhj?.ubah}(h]h ]h"]h$]h&]uh1jhj#.ubeh}(h]h ]h"]h$]h&]uh1jhj>.hKhj .ubah}(h]h ]h"]h$]h&]uh1jhj.ubh)}(h**Description**h]j)}(hjd.h]h Description}(hjf.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb.ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj.ubh)}(hFConverts the preceding srcu_read_unlock into a two-way memory barrier.h]hFConverts the preceding srcu_read_unlock into a two-way memory barrier.}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMRhj.ubh)}(hCall this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.h]hCall this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMThj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)smp_mb__after_srcu_read_lock (C function)c.smp_mb__after_srcu_read_lockhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h(void smp_mb__after_srcu_read_lock (void)h]j)}(h'void smp_mb__after_srcu_read_lock(void)h](j )}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM_ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj.hM_ubjg)}(hsmp_mb__after_srcu_read_lockh]jm)}(hsmp_mb__after_srcu_read_lockh]hsmp_mb__after_srcu_read_lock}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hM_ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.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)jhuh1hhj.hM_hj.hhubj)}(hhh]h)}(h)ensure full ordering after srcu_read_lockh]h)ensure full ordering after srcu_read_lock}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM_hj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7/jj7/jjjuh1hhhhj^hNhNubj)}(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)}(hjA/h]h Parameters}(hjC/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.hhMchj;/ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj`/h]hvoid}(hjb/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.hhKhjZ/ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjy/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju/hKhjv/ubah}(h]h ]h"]h$]h&]uh1jhjZ/ubeh}(h]h ]h"]h$]h&]uh1jhju/hKhjW/ubah}(h]h ]h"]h$]h&]uh1jhj;/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.hhKhj;/ubh)}(hDConverts the preceding srcu_read_lock into a two-way memory barrier.h]hDConverts the preceding srcu_read_lock into a two-way memory barrier.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM`hj;/ubh)}(hCall this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.h]hCall this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMbhj;/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hinit_srcu_struct (C function)c.init_srcu_structhNtauh1hhj^hhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMDubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/hhhj/hMDubjg)}(hinit_srcu_structh]jm)}(hinit_srcu_structh]hinit_srcu_struct}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/hhhj/hMDubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj,0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(0ubj)}(h h]h }(hj90hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(0ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjJ0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjL0modnameN classnameNjI jL )}jO ]jR )}jE j0sbc.init_srcu_structasbuh1hhj(0ubj)}(h h]h }(hjj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(0ubj)}(hjh]h*}(hjx0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(0ubjm)}(hssph]hssp}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$0ubah}(h]h ]h"]h$]h&]jjuh1jhj/hhhj/hMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhj/hMDubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj/hMDhj/hhubj)}(hhh]h)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMDhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj^hNhNubj)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMHhj0ubj)}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj0h]hstruct srcu_struct *ssp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMEhj0ubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMEhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj1hMEhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj+1h]h Description}(hj-1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)1ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMGhj0ubh)}(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.}(hjA1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMFhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"init_srcu_struct_fast (C function)c.init_srcu_struct_fasthNtauh1hhj^hhhNhNubh)}(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}(hjp1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjl1hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMVubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjl1hhhj~1hMVubjg)}(hinit_srcu_struct_fasth]jm)}(hinit_srcu_struct_fasth]hinit_srcu_struct_fast}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjl1hhhj~1hMVubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.init_srcu_struct_fastasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hssph]hssp}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhjl1hhhj~1hMVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjh1hhhj~1hMVubah}(h]jc1ah ](jjeh"]h$]h&]jj)jhuh1hhj~1hMVhje1hhubj)}(hhh]h)}(h,initialize a fast-reader sleep-RCU structureh]h,initialize a fast-reader sleep-RCU structure}(hj02hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMVhj-2hhubah}(h]h ]h"]h$]h&]uh1jhje1hhhj~1hMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjjH2jjH2jjjuh1hhhhj^hNhNubj)}(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)}(hjR2h]h Parameters}(hjT2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP2ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMZhjL2ubj)}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjq2h]hstruct srcu_struct *ssp}(hjs2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo2ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMWhjk2ubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMWhj2ubah}(h]h ]h"]h$]h&]uh1jhjk2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMWhjh2ubah}(h]h ]h"]h$]h&]uh1jhjL2ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMYhjL2ubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMXhjL2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)init_srcu_struct_fast_updown (C function)c.init_srcu_struct_fast_updownhNtauh1hhj^hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMgubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMgubjg)}(hinit_srcu_struct_fast_updownh]jm)}(hinit_srcu_struct_fast_updownh]hinit_srcu_struct_fast_updown}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hMgubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj.3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*3ubj)}(h h]h }(hj;3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*3ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjL3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjN3modnameN classnameNjI jL )}jO ]jR )}jE j3sbc.init_srcu_struct_fast_updownasbuh1hhj*3ubj)}(h h]h }(hjl3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*3ubj)}(hjh]h*}(hjz3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*3ubjm)}(hssph]hssp}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&3ubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hMgubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMghj2hhubj)}(hhh]h)}(h4initialize a fast-reader up/down sleep-RCU structureh]h4initialize a fast-reader up/down sleep-RCU structure}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMghj3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhj^hNhNubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMkhj3ubj)}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj3h]hstruct srcu_struct *ssp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhhj3ubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhhj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hj-4h]h Description}(hj/4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+4ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMjhj3ubh)}(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.}(hjC4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMihj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_readers_active (C function)c.srcu_readers_activehNtauh1hhj^hhhNhNubh)}(hhh](j)}(h2bool srcu_readers_active (struct srcu_struct *ssp)h]j)}(h1bool srcu_readers_active(struct srcu_struct *ssp)h](j )}(hj8h]hbool}(hjr4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjn4hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMxubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjn4hhhj4hMxubjg)}(hsrcu_readers_activeh]jm)}(hsrcu_readers_activeh]hsrcu_readers_active}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjn4hhhj4hMxubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE j4sbc.srcu_readers_activeasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hssph]hssp}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubah}(h]h ]h"]h$]h&]jjuh1jhjn4hhhj4hMxubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjj4hhhj4hMxubah}(h]je4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hMxhjg4hhubj)}(hhh]h)}(h6returns true if there are readers. and false otherwiseh]h6returns true if there are readers. and false otherwise}(hj15hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMxhj.5hhubah}(h]h ]h"]h$]h&]uh1jhjg4hhhj4hMxubeh}(h]h ](jfunctioneh"]h$]h&]jjjjI5jjI5jjjuh1hhhhj^hNhNubj)}(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)}(hjS5h]h Parameters}(hjU5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ5ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM|hjM5ubj)}(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)}(hjr5h]hstruct srcu_struct *ssp}(hjt5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMzhjl5ubj)}(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).}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMzhj5ubah}(h]h ]h"]h$]h&]uh1jhjl5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMzhji5ubah}(h]h ]h"]h$]h&]uh1jhjM5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM|hjM5ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM{hjM5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h cleanup_srcu_struct (C function)c.cleanup_srcu_structhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h2void cleanup_srcu_struct (struct srcu_struct *ssp)h]j)}(h1void cleanup_srcu_struct(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj6hMubjg)}(hcleanup_srcu_structh]jm)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj6hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj/6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+6ubj)}(h h]h }(hj<6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+6ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjM6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjO6modnameN classnameNjI jL )}jO ]jR )}jE j6sbc.cleanup_srcu_structasbuh1hhj+6ubj)}(h h]h }(hjm6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+6ubj)}(hjh]h*}(hj{6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+6ubjm)}(hssph]hssp}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'6ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj6hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhj5hhubj)}(hhh]h)}(h!deconstruct a sleep-RCU structureh]h!deconstruct a sleep-RCU structure}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhj^hNhNubj)}(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)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj6ubj)}(hhh]j)}(h3``struct srcu_struct *ssp`` structure to clean up. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj6h]hstruct srcu_struct *ssp}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj6ubj)}(hhh]h)}(hstructure to clean up.h]hstructure to clean up.}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj 7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj.7h]h Description}(hj07hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj6ubh)}(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.}(hjD7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_srcu (C function) c.call_srcuhNtauh1hhj^hhhNhNubh)}(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}(hjs7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjo7hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjo7hhhj7hMubjg)}(h call_srcuh]jm)}(h call_srcuh]h call_srcu}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjo7hhhj7hMubj)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE j7sb c.call_srcuasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hssph]hssp}(hj 8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hj"8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj/8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hj@8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjB8modnameN classnameNjI jL )}jO ]j7 c.call_srcuasbuh1hhj8ubj)}(h h]h }(hj^8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjl8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hrhph]hrhp}(hjy8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]j7 c.call_srcuasbuh1hhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubjm)}(hfunch]hfunc}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjo7hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjk7hhhj7hMubah}(h]jf7ah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhjh7hhubj)}(hhh]h)}(h:Queue a callback for invocation after an SRCU grace periodh]h:Queue a callback for invocation after an SRCU grace period}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjh7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj^hNhNubj)}(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 9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj9ubj)}(hhh](j)}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback h](j)}(h``struct srcu_struct *ssp``h]j)}(hj,9h]hstruct srcu_struct *ssp}(hj.9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj&9ubj)}(hhh]h)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(hjE9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA9hMhjB9ubah}(h]h ]h"]h$]h&]uh1jhj&9ubeh}(h]h ]h"]h$]h&]uh1jhjA9hMhj#9ubj)}(hN``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j)}(h``struct rcu_head *rhp``h]j)}(hje9h]hstruct rcu_head *rhp}(hjg9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj_9ubj)}(hhh]h)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(hj~9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz9hMhj{9ubah}(h]h ]h"]h$]h&]uh1jhj_9ubeh}(h]h ]h"]h$]h&]uh1jhjz9hMhj#9ubj)}(hK``rcu_callback_t func`` function to be invoked after the SRCU grace period h](j)}(h``rcu_callback_t func``h]j)}(hj9h]hrcu_callback_t func}(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.chMhj9ubj)}(hhh]h)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj#9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hj9h]h Description}(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.chMhj9ubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj9ubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj9ubh)}(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.}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'synchronize_srcu_expedited (C function)c.synchronize_srcu_expeditedhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h9void synchronize_srcu_expedited (struct srcu_struct *ssp)h]j)}(h8void synchronize_srcu_expedited(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hj<:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8:hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hjK:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8:hhhjJ:hMubjg)}(hsynchronize_srcu_expeditedh]jm)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(hj]:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjY:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8:hhhjJ:hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjy:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhju:ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]jR )}jE j_:sbc.synchronize_srcu_expeditedasbuh1hhju:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhju:ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju:ubjm)}(hssph]hssp}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhju:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjq:ubah}(h]h ]h"]h$]h&]jjuh1jhj8:hhhjJ:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4:hhhjJ:hMubah}(h]j/:ah ](jjeh"]h$]h&]jj)jhuh1hhjJ:hMhj1:hhubj)}(hhh]h)}(hBrute-force SRCU grace periodh]hBrute-force SRCU grace period}(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&]uh1jhj1:hhhjJ:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhj^hNhNubj)}(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)}(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)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. 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.chMhj7;ubj)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjV;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR;hMhjS;ubah}(h]h ]h"]h$]h&]uh1jhj7;ubeh}(h]h ]h"]h$]h&]uh1jhjR;hMhj4;ubah}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]j)}(hjx;h]h Description}(hjz;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv;ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj;ubh)}(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;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj;ubh)}(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().}(hj;hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_srcu (C function)c.synchronize_srcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h/void synchronize_srcu (struct srcu_struct *ssp)h]j)}(h.void synchronize_srcu(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhj;hMubjg)}(hsynchronize_srcuh]jm)}(hsynchronize_srcuh]hsynchronize_srcu}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhj;hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj <hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj'<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)<modnameN classnameNjI jL )}jO ]jR )}jE j;sbc.synchronize_srcuasbuh1hhj<ubj)}(h h]h }(hjG<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hjU<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjm)}(hssph]hssp}(hjb<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<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)jhuh1hhj;hMhj;hhubj)}(hhh]h)}(h9wait for prior SRCU read-side critical-section completionh]h9wait for prior SRCU read-side critical-section completion}(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&]uh1jhj;hhhj;hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhj^hNhNubj)}(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<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)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. 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<ubj)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<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.chMhj<ubh)}(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 - }(hj=hhhNhNubh)}(h:c:type:`ssp->sda `h]j)}(hj(=h]hssp->sda}(hj*=hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj&=ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjsspuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj=ubhs->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjE=hMhj<ubh)}(h/Can block; must be called from process context.h]h/Can block; must be called from process context.}(hjP=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj<ubh)}(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.}(hj_=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj<ubh)}(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.}(hjn=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj<ubh)}(hXJFurthermore, if CPU A invoked synchronize_srcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_srcu(). This guarantee applies even if CPU A and CPU B are the same CPU, but again only if the system has more than one CPU.h]hXJFurthermore, if CPU A invoked synchronize_srcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_srcu(). This guarantee applies even if CPU A and CPU B are the same CPU, but again only if the system has more than one CPU.}(hj}=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM*hj<ubh)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM0hj<ubh)}(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().}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM4hj<ubh)}(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=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM7hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'get_state_synchronize_srcu (C function)c.get_state_synchronize_srcuhNtauh1hhj^hhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMHubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhj=hMHubj )}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhj=hMHubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhj=hMHubjg)}(hget_state_synchronize_srcuh]jm)}(hget_state_synchronize_srcuh]hget_state_synchronize_srcu}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj=hMHubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj2>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.>ubj)}(h h]h }(hj?>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.>ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjP>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjR>modnameN classnameNjI jL )}jO ]jR )}jE j>sbc.get_state_synchronize_srcuasbuh1hhj.>ubj)}(h h]h }(hjp>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.>ubj)}(hjh]h*}(hj~>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.>ubjm)}(hssph]hssp}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*>ubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhj=hMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj=hMHubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMHhj=hhubj)}(hhh]h)}(h%Provide an end-of-grace-period cookieh]h%Provide an end-of-grace-period cookie}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMHhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhj^hNhNubj)}(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)}(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.chMLhj>ubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. 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.chMIhj>ubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ?hMIhj ?ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj ?hMIhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hj1?h]h Description}(hj3?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.chMKhj>ubh)}(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().}(hjG?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMJhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(start_poll_synchronize_srcu (C function)c.start_poll_synchronize_srcuhNtauh1hhj^hhhNhNubh)}(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}(hjv?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjr?hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM[ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr?hhhj?hM[ubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjr?hhhj?hM[ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr?hhhj?hM[ubjg)}(hstart_poll_synchronize_srcuh]jm)}(hstart_poll_synchronize_srcuh]hstart_poll_synchronize_srcu}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjr?hhhj?hM[ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]jR )}jE j?sbc.start_poll_synchronize_srcuasbuh1hhj?ubj)}(h h]h }(hj @hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hssph]hssp}(hj(@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubah}(h]h ]h"]h$]h&]jjuh1jhjr?hhhj?hM[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjn?hhhj?hM[ubah}(h]ji?ah ](jjeh"]h$]h&]jj)jhuh1hhj?hM[hjk?hhubj)}(hhh]h)}(h%Provide cookie and start grace periodh]h%Provide cookie and start grace period}(hjR@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM[hjO@hhubah}(h]h ]h"]h$]h&]uh1jhjk?hhhj?hM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj@jjj@jjjuh1hhhhj^hNhNubj)}(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)}(hjt@h]h Parameters}(hjv@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr@ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM_hjn@ubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. 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@ubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM\hj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hM\hj@ubah}(h]h ]h"]h$]h&]uh1jhjn@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^hjn@ubh)}(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@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM]hjn@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(poll_state_synchronize_srcu (C function)c.poll_state_synchronize_srcuhNtauh1hhj^hhhNhNubh)}(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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMkubj)}(h h]h }(hj!AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhj AhMkubjg)}(hpoll_state_synchronize_srcuh]jm)}(hpoll_state_synchronize_srcuh]hpoll_state_synchronize_srcu}(hj3AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/Aubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhj AhMkubj)}(h/(struct srcu_struct *ssp, unsigned long cookie)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjOAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKAubj)}(h h]h }(hj\AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKAubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjmAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjoAmodnameN classnameNjI jL )}jO ]jR )}jE j5Asbc.poll_state_synchronize_srcuasbuh1hhjKAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKAubjm)}(hssph]hssp}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGAubj)}(hunsigned long cookieh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hcookieh]hcookie}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGAubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhj AhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj Ahhhj AhMkubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhj AhMkhjAhhubj)}(hhh]h)}(h Has cookie's grace period ended?h]h"Has cookie’s grace period ended?}(hj#BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMkhj Bhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhj AhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;Bjj;Bjjjuh1hhhhj^hNhNubj)}(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)}(hjEBh]h Parameters}(hjGBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCBubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMohj?Bubj)}(hhh](j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjdBh]hstruct srcu_struct *ssp}(hjfBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMlhj^Bubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj}BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyBhMlhjzBubah}(h]h ]h"]h$]h&]uh1jhj^Bubeh}(h]h ]h"]h$]h&]uh1jhjyBhMlhj[Bubj)}(hj``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). h](j)}(h``unsigned long cookie``h]j)}(hjBh]hunsigned long cookie}(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.chMmhjBubj)}(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().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMmhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMmhj[Bubeh}(h]h ]h"]h$]h&]uh1jhj?Bubh)}(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.chMohj?Bubh)}(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 }(hjBhhhNhNubj)}(h**true**h]htrue}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubhL if an SRCU grace period elapsed since the time that the cookie was created.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMnhj?Bubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMshj?Bubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM|hj?Bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_barrier (C function)c.srcu_barrierhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h+void srcu_barrier (struct srcu_struct *ssp)h]j)}(h*void srcu_barrier(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hjMChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIChhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hj\ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIChhhj[ChMubjg)}(h srcu_barrierh]jm)}(h srcu_barrierh]h srcu_barrier}(hjnChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIChhhj[ChMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE jpCsbc.srcu_barrierasbuh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hssph]hssp}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhjIChhhj[ChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEChhhj[ChMubah}(h]j@Cah ](jjeh"]h$]h&]jj)jhuh1hhj[ChMhjBChhubj)}(hhh]h)}(h8Wait until all in-flight call_srcu() callbacks complete.h]h8Wait until all in-flight call_srcu() callbacks complete.}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj Dhhubah}(h]h ]h"]h$]h&]uh1jhjBChhhj[ChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%Djj%Djjjuh1hhhhj^hNhNubj)}(hc**Parameters** ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.h](h)}(h**Parameters**h]j)}(hj/Dh]h Parameters}(hj1DhhhNhNubah}(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)}(hQ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.h](j)}(h``struct srcu_struct *ssp``h]j)}(hjNDh]hstruct srcu_struct *ssp}(hjPDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjHDubj)}(hhh]h)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hjgDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjdDubah}(h]h ]h"]h$]h&]uh1jhjHDubeh}(h]h ]h"]h$]h&]uh1jhjcDhMhjEDubah}(h]h ]h"]h$]h&]uh1jhj)Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_expedite_current (C function)c.srcu_expedite_currenthNtauh1hhj^hhhNhNubh)}(hhh](j)}(h4void srcu_expedite_current (struct srcu_struct *ssp)h]j)}(h3void srcu_expedite_current(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjDhMubjg)}(hsrcu_expedite_currenth]jm)}(hsrcu_expedite_currenth]hsrcu_expedite_current}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjDhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE jDsbc.srcu_expedite_currentasbuh1hhjDubj)}(h h]h }(hj#EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hj1EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hssph]hssp}(hj>EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjDhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjDhhubj)}(hhh]h)}(h&Expedite the current SRCU grace periodh]h&Expedite the current SRCU grace period}(hjhEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjeEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj^hNhNubj)}(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)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjEubj)}(hhh]j)}(h5``struct srcu_struct *ssp`` srcu_struct to expedite. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjEh]hstruct srcu_struct *ssp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjEubj)}(hhh]h)}(hsrcu_struct to expedite.h]hsrcu_struct to expedite.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjEubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#srcu_batches_completed (C function)c.srcu_batches_completedhNtauh1hhj^hhhNhNubh)}(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}(hj)FhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%FhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hj8FhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%Fhhhj7FhMubj )}(hlongh]hlong}(hjFFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%Fhhhj7FhMubj)}(h h]h }(hjTFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%Fhhhj7FhMubjg)}(hsrcu_batches_completedh]jm)}(hsrcu_batches_completedh]hsrcu_batches_completed}(hjfFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%Fhhhj7FhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Fubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~Fubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jR )}jE jhFsbc.srcu_batches_completedasbuh1hhj~Fubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~Fubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Fubjm)}(hssph]hssp}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~Fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzFubah}(h]h ]h"]h$]h&]jjuh1jhj%Fhhhj7FhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!Fhhhj7FhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhj7FhMhjFhhubj)}(hhh]h)}(hreturn batches completed.h]hreturn batches completed.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj7FhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhj^hNhNubj)}(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)}(hj'Gh]h Parameters}(hj)GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Gubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj!Gubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct on which to report batch completion. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjFGh]hstruct srcu_struct *ssp}(hjHGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj@Gubj)}(hhh]h)}(h0srcu_struct on which to report batch completion.h]h0srcu_struct on which to report batch completion.}(hj_GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[GhMhj\Gubah}(h]h ]h"]h$]h&]uh1jhj@Gubeh}(h]h ]h"]h$]h&]uh1jhj[GhMhj=Gubah}(h]h ]h"]h$]h&]uh1jhj!Gubh)}(h**Description**h]j)}(hjGh]h Description}(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.chMhj!Gubh)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj!Gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_bl_del_rcu (C function)c.hlist_bl_del_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjGhKubjg)}(hhlist_bl_del_rcuh]jm)}(hhlist_bl_del_rcuh]hhlist_bl_del_rcu}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjGhKubj)}(h(struct hlist_bl_node *n)h]j)}(hstruct hlist_bl_node *nh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h hlist_bl_nodeh]h hlist_bl_node}(hj!HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#HmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.hlist_bl_del_rcuasbuh1hhjGubj)}(h h]h }(hjAHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjOHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hjyh]hn}(hj\HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhKhjGhhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhj^hNhNubj)}(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)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK hjHubj)}(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)}(hjHh]hstruct hlist_bl_node *n}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhjHubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhKhjHubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Note**h]j)}(hjIh]hNote}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhjHubh)}(hhlist_bl_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hhlist_bl_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhjHubh)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hj&IhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK#hjHubh)}(hXbThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry().h]hXbThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry().}(hj5IhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK&hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlist_bl_add_head_rcu (C function)c.hlist_bl_add_head_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hMvoid hlist_bl_add_head_rcu (struct hlist_bl_node *n, struct hlist_bl_head *h)h]j)}(hLvoid hlist_bl_add_head_rcu(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j )}(hvoidh]hvoid}(hjdIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`Ihhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK5ubj)}(h h]h }(hjsIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`IhhhjrIhK5ubjg)}(hhlist_bl_add_head_rcuh]jm)}(hhlist_bl_add_head_rcuh]hhlist_bl_add_head_rcu}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`IhhhjrIhK5ubj)}(h2(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j)}(hstruct hlist_bl_node *nh](j)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubh)}(hhh]jm)}(h hlist_bl_nodeh]h hlist_bl_node}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE jIsbc.hlist_bl_add_head_rcuasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hjyh]hn}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hstruct hlist_bl_head *hh](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(h hlist_bl_headh]h hlist_bl_head}(hj0JhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-Jubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2JmodnameN classnameNjI jL )}jO ]jIc.hlist_bl_add_head_rcuasbuh1hhjJubj)}(h h]h }(hjNJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hj\JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hhh]hh}(hjiJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhj`IhhhjrIhK5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\IhhhjrIhK5ubah}(h]jWIah ](jjeh"]h$]h&]jj)jhuh1hhjrIhK5hjYIhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYIhhhjrIhK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1hhhhj^hNhNubj)}(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)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK9hjJubj)}(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)}(hjJh]hstruct hlist_bl_node *n}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK6hjJubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhK6hjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhK6hjJubj)}(h0``struct hlist_bl_head *h`` the list to add to. h](j)}(h``struct hlist_bl_head *h``h]j)}(hjJh]hstruct hlist_bl_head *h}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK7hjJubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhK7hjKubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjKhK7hjJubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hj9Kh]h Description}(hj;KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Kubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK9hjJubh)}(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.}(hjOKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK9hjJubh)}(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().}(hj^KhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK` 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)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK\hjKubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjLh]htpos}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKYhjLubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj0LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,LhKYhj-Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhj,LhKYhjLubj)}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjPLh]hpos}(hjRLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNLubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKZhjJLubj)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hjiLhhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hjsLh]hstruct hlist_bl_node}(hjuLhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjqLubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj hlist_bl_nodeuh1hhjeLhKZhjiLubh to use as a loop cursor.}(hjiLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjeLhKZhjfLubah}(h]h ]h"]h$]h&]uh1jhjJLubeh}(h]h ]h"]h$]h&]uh1jhjeLhKZhjLubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjLh]hhead}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK[hjLubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhK[hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK[hjLubj)}(h;``member`` the name of the hlist_bl_node within the struct.h](j)}(h ``member``h]j)}(hjLh]hmember}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK]hjLubj)}(hhh]h)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK\hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK]hjLubeh}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_for_each_rcu (C macro)c.list_for_each_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_for_each_rcuh]j)}(hlist_for_each_rcuh]jg)}(hlist_for_each_rcuh]jm)}(hj9Mh]hlist_for_each_rcu}(hjCMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?Mubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;Mhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK.ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj7MhhhjVMhK.ubah}(h]j2Mah ](jjeh"]h$]h&]jj)jhuh1hhjVMhK.hj4Mhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj4MhhhjVMhK.ubeh}(h]h ](jmacroeh"]h$]h&]jjjjoMjjoMjjjuh1hhhhj^hNhNubh)}(h!``list_for_each_rcu (pos, head)``h]j)}(hjuMh]hlist_for_each_rcu (pos, head)}(hjwMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hj^hhubj)}(h+Iterate over a list in an RCU-safe fashion h]h)}(h*Iterate over a list in an RCU-safe fashionh]h*Iterate over a list in an RCU-safe fashion}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK.hjMubah}(h]h ]h"]h$]h&]uh1jhjMhK.hj^hhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK2hjMubj)}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjMh]hpos}(hjMhhhNhNubah}(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.hhK/hjMubj)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjMhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjMh]hstruct list_head}(hjMhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj list_headuh1hhjMhK/hjMubh to use as a loop cursor.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhK/hjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhK/hjMubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hj%Nh]hhead}(hj'NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Nubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK1hjNubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj>NhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hj;Nubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhj:NhK1hjMubeh}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_tail_rcu (C macro)c.list_tail_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h list_tail_rcuh]j)}(h list_tail_rcuh]jg)}(h list_tail_rcuh]jm)}(hjyNh]h list_tail_rcu}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{Nhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjwNhhhjNhK8ubah}(h]jrNah ](jjeh"]h$]h&]jj)jhuh1hhjNhK8hjtNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjtNhhhjNhK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjNjjNjjjuh1hhhhj^hNhNubh)}(h``list_tail_rcu (head)``h]j)}(hjNh]hlist_tail_rcu (head)}(hjNhhhNhNubah}(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.hhK:hj^hhubj)}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8hjNubah}(h]h ]h"]h$]h&]uh1jhjNhK8hj^hhubj)}(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)}(hjNh]h Parameters}(hjNhhhNhNubah}(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.hhK**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)}(hjSh]h Parameters}(hjShhhNhNubah}(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.hhKhjSubj)}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hj3Sh]hstruct list_head *new}(hj5ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Subah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj-Subj)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hjLShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHShKhjISubah}(h]h ]h"]h$]h&]uh1jhj-Subeh}(h]h ]h"]h$]h&]uh1jhjHShKhj*Subj)}(h6``struct list_head *head`` list head to add it before h](j)}(h``struct list_head *head``h]j)}(hjlSh]hstruct list_head *head}(hjnShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjfSubj)}(hhh]h)}(hlist head to add it beforeh]hlist head to add it before}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjfSubeh}(h]h ]h"]h$]h&]uh1jhjShKhj*Subeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(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.hhKhjSubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjSubh)}(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().}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_del_rcu (C function)c.list_del_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjShhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj ThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjShhhj ThKubjg)}(h list_del_rcuh]jm)}(h list_del_rcuh]h list_del_rcu}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhj ThKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hj8ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Tubj)}(h h]h }(hjEThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4Tubh)}(hhh]jm)}(h list_headh]h list_head}(hjVThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXTmodnameN classnameNjI jL )}jO ]jR )}jE jTsbc.list_del_rcuasbuh1hhj4Tubj)}(h h]h }(hjvThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4Tubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Tubjm)}(hentryh]hentry}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0Tubah}(h]h ]h"]h$]h&]jjuh1jhjShhhj ThKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhj ThKubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhj ThKhjShhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhj ThKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhj^hNhNubj)}(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)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjTubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjTh]hstruct list_head *entry}(hjThhhNhNubah}(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.hhKhjTubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjUubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjUhKhjTubah}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Note**h]j)}(hj7Uh]hNote}(hj9UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Uubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjTubh)}(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.}(hjMUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjTubh)}(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\UhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjTubh)}(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().}(hjkUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjTubh)}(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.}(hjzUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_bidir_del_rcu (C function)c.list_bidir_del_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjUhKubjg)}(hlist_bidir_del_rcuh]jm)}(hlist_bidir_del_rcuh]hlist_bidir_del_rcu}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(h list_headh]h list_head}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.list_bidir_del_rcuasbuh1hhjUubj)}(h h]h }(hj$VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hj2VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hentryh]hentry}(hj?VhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubah}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhKubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhKhjUhhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hjiVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjfVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhj^hNhNubj)}(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)}(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.hhKhjVubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjVh]hstruct list_head *entry}(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.hhKhjVubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jhjVubh)}(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.hhKhjVubh)}(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().}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjVubh)}(h**Note**h]j)}(hj Wh]hNote}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Wubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjVubh)}(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.}(hj"WhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjVubh)}(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().}(hj1WhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjVubh)}(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.}(hj@WhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjVubh)}(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.}(hjOWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_del_init_rcu (C function)c.hlist_del_init_rcuhNtauh1hhj^hhhNhNubh)}(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~WhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzWhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzWhhhjWhKubjg)}(hhlist_del_init_rcuh]jm)}(hhlist_del_init_rcuh]hhlist_del_init_rcu}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzWhhhjWhKubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jWsbc.hlist_del_init_rcuasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hjyh]hn}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjzWhhhjWhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvWhhhjWhKubah}(h]jqWah ](jjeh"]h$]h&]jj)jhuh1hhjWhKhjsWhhubj)}(hhh]h)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hj=XhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj:Xhhubah}(h]h ]h"]h$]h&]uh1jhjsWhhhjWhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUXjjUXjjjuh1hhhhj^hNhNubj)}(hXG**Parameters** ``struct hlist_node *n`` the element to delete from the hash list. **Note** list_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hj_Xh]h Parameters}(hjaXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Xubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjYXubj)}(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~Xh]hstruct hlist_node *n}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Xubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjxXubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjXubah}(h]h ]h"]h$]h&]uh1jhjxXubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjuXubah}(h]h ]h"]h$]h&]uh1jhjYXubh)}(h**Note**h]j)}(hjXh]hNote}(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.hhKhjYXubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjYXubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjYXubh)}(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().}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjYXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_replace_rcu (C function)c.list_replace_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj+YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhj*YhKubjg)}(hlist_replace_rcuh]jm)}(hlist_replace_rcuh]hlist_replace_rcu}(hj=YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9Yubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhj*YhKubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hjh]hstruct}(hjYYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUYubj)}(h h]h }(hjfYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUYubh)}(hhh]jm)}(h list_headh]h list_head}(hjwYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjyYmodnameN classnameNjI jL )}jO ]jR )}jE j?Ysbc.list_replace_rcuasbuh1hhjUYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUYubjm)}(holdh]hold}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQYubj)}(hstruct list_head *newh](j)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(h list_headh]h list_head}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jYc.list_replace_rcuasbuh1hhjYubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hnewh]hnew}(hj"ZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhj*YhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhj*YhKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhj*YhKhjYhhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjLZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjIZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhj*YhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdZjjdZjjjuh1hhhhj^hNhNubj)}(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)}(hjnZh]h Parameters}(hjpZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjhZubj)}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hjZh]hstruct list_head *old}(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.hhKhjZubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhKhjZubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hjZh]hstruct list_head *new}(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.hhKhjZubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhKhjZubeh}(h]h ]h"]h$]h&]uh1jhjhZubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjhZubh)}(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 }(hj[hhhNhNubj)}(h**old**h]hold}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh! entry will be replaced with the }(hj[hhhNhNubj)}(h**new**h]hnew}(hj1[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjhZubh)}(h**Note**h]j)}(hjL[h]hNote}(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:412: ./include/linux/rculist.hhKhjhZubh)}(h**old** should not be empty.h](j)}(h**old**h]hold}(hjf[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb[ubh should not be empty.}(hjb[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjhZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__list_splice_init_rcu (C function)c.__list_splice_init_rcuhNtauh1hhj^hhhNhNubh)}(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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhj[hM ubjg)}(h__list_splice_init_rcuh]jm)}(h__list_splice_init_rcuh]h__list_splice_init_rcu}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhj[hM 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}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubh)}(hhh]jm)}(h list_headh]h list_head}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jR )}jE j[sbc.__list_splice_init_rcuasbuh1hhj[ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hj(\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hlisth]hlist}(hj5\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct list_head *prevh](j)}(hjh]hstruct}(hjN\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ\ubj)}(h h]h }(hj[\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJ\ubh)}(hhh]jm)}(h list_headh]h list_head}(hjl\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjn\modnameN classnameNjI jL )}jO ]j\c.__list_splice_init_rcuasbuh1hhjJ\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJ\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ\ubjm)}(hprevh]hprev}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct list_head *nexth](j)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(h list_headh]h list_head}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]j\c.__list_splice_init_rcuasbuh1hhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hnexth]hnext}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj.]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*]ubj)}(h h]h }(hj<]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*]ubj)}(hj8h]h(}(hjJ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*]ubj)}(hjh]h*}(hjW]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*]ubjm)}(hsynch]hsync}(hjd]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*]ubj)}(hj9h]h)}(hjr]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*]ubj)}(hj8h]h(}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*]ubj )}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*]ubj)}(hj9h]h)}(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)jhuh1hhj[hM hj[hhubj)}(hhh]h)}(h1join an RCU-protected list into an existing list.h]h1join an RCU-protected list into an existing list.}(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&]uh1jhj[hhhj[hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj^hNhNubj)}(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)}(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.hhM hj]ubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hj^h]hstruct list_head *list}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hj]ubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hj]ubj)}(hK``struct list_head *prev`` points to the last element of the existing list h](j)}(h``struct list_head *prev``h]j)}(hj=^h]hstruct list_head *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.hhM hj7^ubj)}(hhh]h)}(h/points to the last element of the existing listh]h/points to the last element of the existing list}(hjV^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR^hM hjS^ubah}(h]h ]h"]h$]h&]uh1jhj7^ubeh}(h]h ]h"]h$]h&]uh1jhjR^hM hj]ubj)}(hL``struct list_head *next`` points to the first element of the existing list h](j)}(h``struct list_head *next``h]j)}(hjv^h]hstruct list_head *next}(hjx^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjp^ubj)}(hhh]h)}(h0points to the first element of the existing listh]h0points to the first element of the existing list}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jhjp^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hj]ubj)}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j)}(h``void (*sync)(void)``h]j)}(hj^h]hvoid (*sync)(void)}(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^ubj)}(hhh]h)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hM hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]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)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hj_hhhNhNubj)}(h**prev**h]hprev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh and }(hj_hhhNhNubj)}(h**next**h]hnext}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh; can be RCU-read traversed concurrently with this function.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj]ubh)}(hNote that this function blocks.h]hNote that this function blocks.}(hj3_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj]ubh)}(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.}(hjB_hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!list_splice_init_rcu (C function)c.list_splice_init_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjq_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjm_hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMEubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjm_hhhj_hMEubjg)}(hlist_splice_init_rcuh]jm)}(hlist_splice_init_rcuh]hlist_splice_init_rcu}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjm_hhhj_hMEubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(h list_headh]h list_head}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]jR )}jE j_sbc.list_splice_init_rcuasbuh1hhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjm)}(hlisth]hlist}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hj `hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj-`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(h list_headh]h list_head}(hj>`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@`modnameN classnameNjI jL )}jO ]j_c.list_splice_init_rcuasbuh1hhj`ubj)}(h h]h }(hj\`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hjj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hheadh]hhead}(hjw`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hj8h]h(}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hsynch]hsync}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubj)}(hj9h]h)}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hj8h]h(}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj )}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(hj9h]h)}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhjm_hhhj_hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhji_hhhj_hMEubah}(h]jd_ah ](jjeh"]h$]h&]jj)jhuh1hhj_hMEhjf_hhubj)}(hhh]h)}(hHsplice an RCU-protected list into an existing list, designed for stacks.h]hHsplice an RCU-protected list into an existing list, designed for stacks.}(hj%ahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMEhj"ahhubah}(h]h ]h"]h$]h&]uh1jhjf_hhhj_hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=ajj=ajjjuh1hhhhj^hNhNubj)}(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)}(hjGah]h Parameters}(hjIahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMIhjAaubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjfah]hstruct list_head *list}(hjhahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdaubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMGhj`aubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ahMGhj|aubah}(h]h ]h"]h$]h&]uh1jhj`aubeh}(h]h ]h"]h$]h&]uh1jhj{ahMGhj]aubj)}(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)}(hjah]hstruct list_head *head}(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.hhMHhjaubj)}(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)}(hj^eh]h Parameters}(hj`ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\eubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMghjXeubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hj}eh]hptr}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{eubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMdhjweubj)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjehhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjeh]hstruct list_head}(hjehhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj list_headuh1hhjehMdhjeubh pointer.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehMdhjeubah}(h]h ]h"]h$]h&]uh1jhjweubeh}(h]h ]h"]h$]h&]uh1jhjehMdhjteubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjeh]htype}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMehjeubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMehjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMehjteubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjfh]hmember}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMfhj fubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj+fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'fhMfhj(fubah}(h]h ]h"]h$]h&]uh1jhj fubeh}(h]h ]h"]h$]h&]uh1jhj'fhMfhjteubeh}(h]h ]h"]h$]h&]uh1jhjXeubh)}(h**Description**h]j)}(hjMfh]h Description}(hjOfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhhjXeubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hjcfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMghjXeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h list_first_or_null_rcu (C macro)c.list_first_or_null_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_first_or_null_rcuh]j)}(hlist_first_or_null_rcuh]jg)}(hlist_first_or_null_rcuh]jm)}(hjfh]hlist_first_or_null_rcu}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhjfhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjfhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjfjjfjjjuh1hhhhj^hNhNubh)}(h.``list_first_or_null_rcu (ptr, type, member)``h]j)}(hjfh]h*list_first_or_null_rcu (ptr, type, member)}(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.hhMhj^hhubj)}(h"get the first element from a list h]h)}(h!get the first element from a listh]h!get the first element from a list}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfhMhj^hhubj)}(hX**Parameters** ``ptr`` the list head to take the element from. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** Note that if the list is empty, it returns NULL. This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(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.hhMhjfubj)}(hhh](j)}(h0``ptr`` the list head to take the element from. h](j)}(h``ptr``h]j)}(hjgh]hptr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubj)}(hhh]h)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hj5ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ghMhj2gubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhj1ghMhjgubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjUgh]htype}(hjWghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOgubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjnghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjghMhjkgubah}(h]h ]h"]h$]h&]uh1jhjOgubeh}(h]h ]h"]h$]h&]uh1jhjjghMhjgubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjgh]hmember}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjfubh)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjfubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hjghhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_next_or_null_rcu (C macro)c.list_next_or_null_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_next_or_null_rcuh]j)}(hlist_next_or_null_rcuh]jg)}(hlist_next_or_null_rcuh]jm)}(hjhh]hlist_next_or_null_rcu}(hj!hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj4hhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhj4hhMhjhhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhhj4hhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjMhjjMhjjjuh1hhhhj^hNhNubh)}(h3``list_next_or_null_rcu (head, ptr, type, member)``h]j)}(hjShh]h/list_next_or_null_rcu (head, ptr, type, member)}(hjUhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(h!get the next element from a list h]h)}(h get the next element from a listh]h get the next element from a list}(hjmhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjihubah}(h]h ]h"]h$]h&]uh1jhj{hhMhj^hhubj)}(hX**Parameters** ``head`` the head for the list. ``ptr`` the list head to take the next element from. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** Note that if the ptr is at the end of the list, NULL is returned. This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubj)}(hhh](j)}(h ``head`` the head for the list. h](j)}(h``head``h]j)}(hjhh]hhead}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubj)}(hhh]h)}(hthe head for the list.h]hthe head for the list.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubj)}(h5``ptr`` the list head to take the next element from. h](j)}(h``ptr``h]j)}(hjhh]hptr}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubj)}(hhh]h)}(h,the list head to take the next element from.h]h,the list head to take the next element from.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjih]htype}(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.hhMhjiubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj2ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ihMhj/iubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhj.ihMhjhubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjRih]hmember}(hjTihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjLiubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjkihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgihMhjhiubah}(h]h ]h"]h$]h&]uh1jhjLiubeh}(h]h ]h"]h$]h&]uh1jhjgihMhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubh)}(hANote that if the ptr is at the end of the list, NULL is returned.h]hANote that if the ptr is at the end of the list, NULL is returned.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!list_for_each_entry_rcu (C macro)c.list_for_each_entry_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_rcuh]j)}(hlist_for_each_entry_rcuh]jg)}(hlist_for_each_entry_rcuh]jm)}(hjih]hlist_for_each_entry_rcu}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjihMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjjjuh1hhhhj^hNhNubh)}(h8``list_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjjh]h4list_for_each_entry_rcu (pos, head, member, cond...)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(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}(hj1jhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj-jubah}(h]h ]h"]h$]h&]uh1jhj?jhMhj^hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. ``cond...`` optional lockdep expression if called from non-RCU protection. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjLjh]h Parameters}(hjNjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjkjh]hpos}(hjmjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjijubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjejubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjejubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjbjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjjh]hhead}(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.hhMhjjubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjbjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjjh]hmember}(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.hhMhjjubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjbjubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hjkh]hcond...}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjkubj)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hj/khhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+khMhj,kubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhj+khMhjbjubeh}(h]h ]h"]h$]h&]uh1jhjFjubh)}(h**Description**h]j)}(hjQkh]h Description}(hjSkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFjubh)}(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().}(hjgkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjFjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"list_for_each_entry_srcu (C macro)c.list_for_each_entry_srcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_srcuh]j)}(hlist_for_each_entry_srcuh]jg)}(hlist_for_each_entry_srcuh]jm)}(hjkh]hlist_for_each_entry_srcu}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjkhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjkhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjkhhhjkhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjkjjkjjjuh1hhhhj^hNhNubh)}(h6``list_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hjkh]h2list_for_each_entry_srcu (pos, head, member, cond)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkhMhj^hhubj)}(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)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjkubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj lh]hpos}(hj"lhhhNhNubah}(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.hhMhjlubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj9lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5lhMhj6lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj5lhMhjlubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjYlh]hhead}(hj[lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWlubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjSlubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjrlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnlhMhjolubah}(h]h ]h"]h$]h&]uh1jhjSlubeh}(h]h ]h"]h$]h&]uh1jhjnlhMhjlubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjlh]hmember}(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.hhMhjlubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hjlh]hcond}(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.hhMhjlubj)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjkubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_entry_lockless (C macro)c.list_entry_locklesshNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_entry_locklessh]j)}(hlist_entry_locklessh]jg)}(hlist_entry_locklessh]jm)}(hjEmh]hlist_entry_lockless}(hjOmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGmhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjCmhhhjbmhMubah}(h]j>mah ](jjeh"]h$]h&]jj)jhuh1hhjbmhMhj@mhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@mhhhjbmhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj{mjj{mjjjuh1hhhhj^hNhNubh)}(h+``list_entry_lockless (ptr, type, member)``h]j)}(hjmh]h'list_entry_lockless (ptr, type, member)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(hget the struct for this entry h]h)}(hget the struct for this entryh]hget the struct for this entry}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmhMhj^hhubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjmubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hjmh]hptr}(hjmhhhNhNubah}(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.hhMhjmubj)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjmhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjmh]hstruct list_head}(hjmhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj list_headuh1hhjmhMhjmubh pointer.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj1nh]htype}(hj3nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/nubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj+nubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjJnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFnhMhjGnubah}(h]h ]h"]h$]h&]uh1jhj+nubeh}(h]h ]h"]h$]h&]uh1jhjFnhMhjmubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjjnh]hmember}(hjlnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjdnubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjdnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(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.hhMhjmubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&list_for_each_entry_lockless (C macro)c.list_for_each_entry_locklesshNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_locklessh]j)}(hlist_for_each_entry_locklessh]jg)}(hlist_for_each_entry_locklessh]jm)}(hjnh]hlist_for_each_entry_lockless}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjohMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjohMubeh}(h]h ](jmacroeh"]h$]h&]jjjjojjojjjuh1hhhhj^hNhNubh)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j)}(hj oh]h0list_for_each_entry_lockless (pos, head, member)}(hj"ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hj:ohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj6oubah}(h]h ]h"]h$]h&]uh1jhjHohMhj^hhubj)}(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)}(hjUoh]h Parameters}(hjWohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSoubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOoubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjtoh]hpos}(hjvohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjroubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjnoubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjnoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjkoubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjoh]hhead}(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.hhMhjoubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjkoubj)}(h:``member`` the name of the list_struct within the struct. h](j)}(h ``member``h]j)}(hjoh]hmember}(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.hhMhjoubj)}(hhh]h)}(h.the name of the list_struct within the struct.h]h.the name of the list_struct within the struct.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjkoubeh}(h]h ]h"]h$]h&]uh1jhjOoubh)}(h**Description**h]j)}(hj!ph]h Description}(hj#phhhNhNubah}(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.hhMhjOoubh)}(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.}(hj7phhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*list_for_each_entry_continue_rcu (C macro)"c.list_for_each_entry_continue_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h list_for_each_entry_continue_rcuh]j)}(h list_for_each_entry_continue_rcuh]jg)}(h list_for_each_entry_continue_rcuh]jm)}(hj`ph]h list_for_each_entry_continue_rcu}(hjjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbphhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj^phhhj}phMubah}(h]jYpah ](jjeh"]h$]h&]jj)jhuh1hhj}phMhj[phhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[phhhj}phMubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhj^hNhNubh)}(h8``list_for_each_entry_continue_rcu (pos, head, member)``h]j)}(hjph]h4list_for_each_entry_continue_rcu (pos, head, member)}(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.hhMhj^hhubj)}(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}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjpubah}(h]h ]h"]h$]h&]uh1jhjphMhj^hhubj)}(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)}(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,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjph]hpos}(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.hhMhjpubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjpubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj)qh]hhead}(hj+qhhhNhNubah}(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.hhMhj#qubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjBqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>qhMhj?qubah}(h]h ]h"]h$]h&]uh1jhj#qubeh}(h]h ]h"]h$]h&]uh1jhj>qhMhjpubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjbqh]hmember}(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.hhMhj\qubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj{qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwqhMhjxqubah}(h]h ]h"]h$]h&]uh1jhj\qubeh}(h]h ]h"]h$]h&]uh1jhjwqhMhjpubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjpubh)}(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 }(hjqhhhNhNubjx)}(h*and*h]hand}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjqubh in the list.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjpubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&list_for_each_entry_from_rcu (C macro)c.list_for_each_entry_from_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_from_rcuh]j)}(hlist_for_each_entry_from_rcuh]jg)}(hlist_for_each_entry_from_rcuh]jm)}(hjqh]hlist_for_each_entry_from_rcu}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjrhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjrhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj3rjj3rjjjuh1hhhhj^hNhNubh)}(h4``list_for_each_entry_from_rcu (pos, head, member)``h]j)}(hj9rh]h0list_for_each_entry_from_rcu (pos, head, member)}(hj;rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7rubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(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}(hjSrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjOrubah}(h]h ]h"]h$]h&]uh1jhjarhMhj^hhubj)}(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)}(hjnrh]h Parameters}(hjprhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhrubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjrh]hpos}(hjrhhhNhNubah}(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.hhMhjrubj)}(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&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjrh]hhead}(hjrhhhNhNubah}(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.hhMhjrubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrubj)}(h8``member`` the name of the list_node within the struct. h](j)}(h ``member``h]j)}(hjrh]hmember}(hjshhhNhNubah}(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.hhMhjrubj)}(hhh]h)}(h,the name of the list_node within the struct.h]h,the name of the list_node within the struct.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjshMhjrubeh}(h]h ]h"]h$]h&]uh1jhjhrubh)}(h**Description**h]j)}(hj:sh]h Description}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:uhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM?ubj)}(h h]h }(hjMuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:uhhhjLuhM?ubjg)}(hhlist_replace_rcuh]jm)}(hhlist_replace_rcuh]hhlist_replace_rcu}(hj_uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[uubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:uhhhjLuhM?ubj)}(h0(struct hlist_node *old, struct hlist_node *new)h](j)}(hstruct hlist_node *oldh](j)}(hjh]hstruct}(hj{uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwuubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jR )}jE jausbc.hlist_replace_rcuasbuh1hhjwuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwuubjm)}(holdh]hold}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsuubj)}(hstruct hlist_node *newh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hj vhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj vmodnameN classnameNjI jL )}jO ]juc.hlist_replace_rcuasbuh1hhjuubj)}(h h]h }(hj)vhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hj7vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hnewh]hnew}(hjDvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsuubeh}(h]h ]h"]h$]h&]jjuh1jhj:uhhhjLuhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6uhhhjLuhM?ubah}(h]j1uah ](jjeh"]h$]h&]jj)jhuh1hhjLuhM?hj3uhhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjnvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM?hjkvhhubah}(h]h ]h"]h$]h&]uh1jhj3uhhhjLuhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj^hNhNubj)}(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)}(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.hhMChjvubj)}(hhh](j)}(h6``struct hlist_node *old`` the element to be replaced h](j)}(h``struct hlist_node *old``h]j)}(hjvh]hstruct hlist_node *old}(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.hhM@hjvubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM@hjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM@hjvubj)}(h5``struct hlist_node *new`` the new element to insert h](j)}(h``struct hlist_node *new``h]j)}(hjvh]hstruct hlist_node *new}(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.hhMAhjvubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMAhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMAhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hj#wh]h Description}(hj%whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!wubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMChjvubh)}(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 }(hj9whhhNhNubj)}(h**old**h]hold}(hjAwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9wubh! entry will be replaced with the }(hj9whhhNhNubj)}(h**new**h]hnew}(hjSwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9wubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.#}(hj9whhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMBhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlists_swap_heads_rcu (C function)c.hlists_swap_heads_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMUubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjwhMUubjg)}(hhlists_swap_heads_rcuh]jm)}(hhlists_swap_heads_rcuh]hhlists_swap_heads_rcu}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjwhMUubj)}(h3(struct hlist_head *left, struct hlist_head *right)h](j)}(hstruct hlist_head *lefth](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE jwsbc.hlists_swap_heads_rcuasbuh1hhjwubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hlefth]hleft}(hj"xhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hstruct hlist_head *righth](j)}(hjh]hstruct}(hj;xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7xubj)}(h h]h }(hjHxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7xubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hjYxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[xmodnameN classnameNjI jL )}jO ]jxc.hlists_swap_heads_rcuasbuh1hhj7xubj)}(h h]h }(hjwxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7xubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7xubjm)}(hrighth]hright}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhMUubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjwhMUhjwhhubj)}(hhh]h)}(h'swap the lists the hlist heads point toh]h'swap the lists the hlist heads point to}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMUhjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhj^hNhNubj)}(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)}(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.hhMYhjxubj)}(hhh](j)}(h7``struct hlist_head *left`` The hlist head on the left h](j)}(h``struct hlist_head *left``h]j)}(hjxh]hstruct hlist_head *left}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMVhjxubj)}(hhh]h)}(hThe hlist head on the lefth]hThe hlist head on the left}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMVhjyubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjyhMVhjxubj)}(h9``struct hlist_head *right`` The hlist head on the right h](j)}(h``struct hlist_head *right``h]j)}(hj6yh]hstruct hlist_head *right}(hj8yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4yubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMWhj0yubj)}(hhh]h)}(hThe hlist head on the righth]hThe hlist head on the right}(hjOyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKyhMWhjLyubah}(h]h ]h"]h$]h&]uh1jhj0yubeh}(h]h ]h"]h$]h&]uh1jhjKyhMWhjxubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjqyh]h Description}(hjsyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMYhjxubj)}(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 [}(hjyhhhNhNubj)}(h**left**h]hleft}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh ][node1 ... ] and}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMXhjyubj)}(hhh]h)}(h[**right** ][node2 ... ]h](h[}(hjyhhhNhNubj)}(h **right**h]hright}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh ][node2 ... ]}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMYhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMXhjyubj)}(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 [}(hjyhhhNhNubj)}(h**left**h]hleft}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh ][node2 ... ]}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMZhjyubj)}(hhh]h)}(h[**right** ][node1 ... ]h](h[}(hjzhhhNhNubj)}(h **right**h]hright}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh ][node1 ... ]}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM[hjzubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjzhMZhjyubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_add_head_rcu (C function)c.hlist_add_head_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjZzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVzhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMqubj)}(h h]h }(hjizhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVzhhhjhzhMqubjg)}(hhlist_add_head_rcuh]jm)}(hhlist_add_head_rcuh]hhlist_add_head_rcu}(hj{zhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVzhhhjhzhMqubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]jR )}jE j}zsbc.hlist_add_head_rcuasbuh1hhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hjyh]hn}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hstruct hlist_head *hh](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hj&{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj({modnameN classnameNjI jL )}jO ]jzc.hlist_add_head_rcuasbuh1hhj{ubj)}(h h]h }(hjD{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hjR{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjm)}(hjkJh]hh}(hj_{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjVzhhhjhzhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRzhhhjhzhMqubah}(h]jMzah ](jjeh"]h$]h&]jj)jhuh1hhjhzhMqhjOzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOzhhhjhzhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhj^hNhNubj)}(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.hhMuhj{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)}(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.hhMrhj{ubj)}(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{hMrhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMrhj{ubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hj{h]hstruct hlist_head *h}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMshj{ubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj |hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMshj |ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hMshj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h**Description**h]j)}(hj.|h]h Description}(hj0|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.hhMuhj{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.}(hjD|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMuhj{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().}(hjS|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMxhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_add_tail_rcu (C function)c.hlist_add_tail_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hDvoid hlist_add_tail_rcu (struct hlist_node *n, struct hlist_head *h)h]j)}(hCvoid hlist_add_tail_rcu(struct hlist_node *n, struct hlist_head *h)h](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~|hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~|hhhj|hMubjg)}(hhlist_add_tail_rcuh]jm)}(hhlist_add_tail_rcuh]hhlist_add_tail_rcu}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~|hhhj|hMubj)}(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|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jR )}jE j|sbc.hlist_add_tail_rcuasbuh1hhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj }hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hjyh]hn}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hstruct hlist_head *hh](j)}(hjh]hstruct}(hj0}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,}ubj)}(h h]h }(hj=}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,}ubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hjN}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjP}modnameN classnameNjI jL )}jO ]j|c.hlist_add_tail_rcuasbuh1hhj,}ubj)}(h h]h }(hjl}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,}ubj)}(hjh]h*}(hjz}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,}ubjm)}(hjkJh]hh}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj~|hhhj|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjz|hhhj|hMubah}(h]ju|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhjw|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjw|hhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhj^hNhNubj)}(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)}(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.hhMhj}ubj)}(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}hMhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj}ubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hj~h]hstruct hlist_head *h}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj~ubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj4~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0~hMhj1~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj0~hMhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]j)}(hjV~h]h Description}(hjX~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT~ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjl~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().}(hj{~hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!hlist_add_before_rcu (C function)c.hlist_add_before_rcuhNtauh1hhj^hhhNhNubh)}(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}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhj~hMubjg)}(hhlist_add_before_rcuh]jm)}(hhlist_add_before_rcuh]hhlist_add_before_rcu}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhj~hMubj)}(h/(struct hlist_node *n, struct hlist_node *next)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j~sbc.hlist_add_before_rcuasbuh1hhj~ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjm)}(hjyh]hn}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct hlist_node *nexth](j)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]j!c.hlist_add_before_rcuasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hnexth]hnext}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(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)jhuh1hhj~hMhj~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj~hhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the new element to add to the hash list. ``struct hlist_node *next`` the existing element to add the new element before. **Description** Adds the specified element to the specified hlist before the specified node while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjubj)}(hhh](j)}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hj h]hstruct hlist_node *n}(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.hhMhjubj)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hP``struct hlist_node *next`` the existing element to add the new element before. h](j)}(h``struct hlist_node *next``h]j)}(hjDh]hstruct hlist_node *next}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj>ubj)}(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&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:412: ./include/linux/rculist.hhMhjubh)}(hoAdds the specified element to the specified hlist before the specified node while permitting racing traversals.h]hoAdds the specified element to the specified hlist before the specified node while permitting racing traversals.}(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.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.}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!hlist_add_behind_rcu (C function)c.hlist_add_behind_rcuhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjπhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjπhhhjhMubjg)}(hhlist_add_behind_rcuh]jm)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjπhhhjhMubj)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jR )}jE jsbc.hlist_add_behind_rcuasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hjyh]hn}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_node *prevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jJc.hlist_add_behind_rcuasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjˁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hprevh]hprev}(hj؁hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(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)jhuh1hhjhMhjȀhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjȀhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the new element to add to the hash list. ``struct hlist_node *prev`` the existing element to add the new element after. **Description** Adds the specified element to the specified hlist after the specified node while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjubj)}(hhh](j)}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hj4h]hstruct hlist_node *n}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj.ubj)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(hO``struct hlist_node *prev`` the existing element to add the new element after. h](j)}(h``struct hlist_node *prev``h]j)}(hjmh]hstruct hlist_node *prev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubj)}(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&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(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.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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlist_for_each_entry_rcu (C macro)c.hlist_for_each_entry_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_rcuh]j)}(hhlist_for_each_entry_rcuh]jg)}(hhlist_for_each_entry_rcuh]jm)}(hjh]hhlist_for_each_entry_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj,jj,jjjuh1hhhhj^hNhNubh)}(h9``hlist_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hj2h]h5hlist_for_each_entry_rcu (pos, head, member, cond...)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjHubah}(h]h ]h"]h$]h&]uh1jhjZhMhj^hhubj)}(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)}(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.hhMhjaubj)}(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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}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.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԃhMhj}ubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjubj)}(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&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj}ubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hj1h]hcond...}(hj3hhhNhNubah}(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+ubj)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(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:412: ./include/linux/rculist.hhMhjaubh)}(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.hhMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#hlist_for_each_entry_srcu (C macro)c.hlist_for_each_entry_srcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_srcuh]j)}(hhlist_for_each_entry_srcuh]jg)}(hhlist_for_each_entry_srcuh]jm)}(hjh]hhlist_for_each_entry_srcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjȄhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjȄhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjȄhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h7``hlist_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hjh]h3hlist_for_each_entry_srcu (pos, head, member, cond)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^hhubj)}(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&]uh1jhjhMhj^hhubj)}(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.hhMhjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj;h]hpos}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj5ubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjth]hhead}(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.hhMhjnubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubj)}(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.hhMhjubj)}(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…hMhjÅubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj…hMhj2ubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hjh]hcond}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjubj)}(hhh]h)}(h>lockdep expression for the lock required to traverse the list.h]h>lockdep expression for the lock required to traverse the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hj7hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*hlist_for_each_entry_rcu_notrace (C macro)"c.hlist_for_each_entry_rcu_notracehNtauh1hhj^hhhNhNubh)}(hhh](j)}(h hlist_for_each_entry_rcu_notraceh]j)}(h hlist_for_each_entry_rcu_notraceh]jg)}(h hlist_for_each_entry_rcu_notraceh]jm)}(hj`h]h hlist_for_each_entry_rcu_notrace}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj}hMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj}hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(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.hhMhj^hhubj)}(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.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjĆhMhj^hhubj)}(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&]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.hhMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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#ubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#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)}(hjbh]hmember}(hjdhhhNhNubah}(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\ubj)}(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&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjubeh}(h]h ]h"]h$]h&]uh1jhjˆ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)}(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ˆubh)}(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!hjˆubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_for_each_entry_rcu_bh (C macro)c.hlist_for_each_entry_rcu_bhhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_rcu_bhh]j)}(hhlist_for_each_entry_rcu_bhh]jg)}(hhlist_for_each_entry_rcu_bhh]jm)}(hjh]hhlist_for_each_entry_rcu_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM-ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM-hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM-ubeh}(h]h ](jmacroeh"]h$]h&]jjjj!jj!jjjuh1hhhhj^hNhNubh)}(h3``hlist_for_each_entry_rcu_bh (pos, head, member)``h]j)}(hj'h]h/hlist_for_each_entry_rcu_bh (pos, head, member)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM/hj^hhubj)}(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}(hjAhhhNhNubah}(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&]uh1jhjOhM-hj^hhubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM1hjVubj)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM.hjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjrubj)}(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.hhM/hjubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj͈hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɈhM/hjʈubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɈhM/hjrubj)}(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.hhM0hjubj)}(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&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(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.hhM2hjVubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM1hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+hlist_for_each_entry_continue_rcu (C macro)#c.hlist_for_each_entry_continue_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h!hlist_for_each_entry_continue_rcuh]j)}(h!hlist_for_each_entry_continue_rcuh]jg)}(h!hlist_for_each_entry_continue_rcuh]jm)}(hjgh]h!hlist_for_each_entry_continue_rcu}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM>ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjhM>ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhjhM>hjbhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbhhhjhM>ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h3``hlist_for_each_entry_continue_rcu (pos, member)``h]j)}(hjh]h/hlist_for_each_entry_continue_rcu (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM@hj^hhubj)}(h4iterate over a hlist continuing after current point h]h)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM>hjubah}(h]h ]h"]h$]h&]uh1jhjˉhM>hj^hhubj)}(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.hhMBhj҉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.hhM?hjubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM?hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM?hjubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hj0h]hmember}(hj2hhhNhNubah}(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.hhMAhj*ubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjIhhhNhNubah}(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&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMAhjubeh}(h]h ]h"]h$]h&]uh1jhj҉ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.hlist_for_each_entry_continue_rcu_bh (C macro)&c.hlist_for_each_entry_continue_rcu_bhhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h$hlist_for_each_entry_continue_rcu_bhh]j)}(h$hlist_for_each_entry_continue_rcu_bhh]jg)}(h$hlist_for_each_entry_continue_rcu_bhh]jm)}(hjh]h$hlist_for_each_entry_continue_rcu_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j)}(hjh]h2hlist_for_each_entry_continue_rcu_bh (pos, member)}(hjŠhhhNhNubah}(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.hhMLhj^hhubj)}(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.hhMJhj֊ubah}(h]h ]h"]h$]h&]uh1jhjhMJhj^hhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.hhMKhjubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMKhj ubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjMh]hmember}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMMhjGubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMLhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'hlist_for_each_entry_from_rcu (C macro)c.hlist_for_each_entry_from_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_from_rcuh]j)}(hhlist_for_each_entry_from_rcuh]jg)}(hhlist_for_each_entry_from_rcuh]jm)}(hjh]hhlist_for_each_entry_from_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMVubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMVubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMVhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](jmacroeh"]h$]h&]jjjj׋jj׋jjjuh1hhhhj^hNhNubh)}(h/``hlist_for_each_entry_from_rcu (pos, member)``h]j)}(hj݋h]h+hlist_for_each_entry_from_rcu (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.hhMXhj^hhubj)}(h3iterate over a hlist continuing from current point h]h)}(h2iterate over a hlist continuing from current pointh]h2iterate over a hlist continuing from current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMVhjubah}(h]h ]h"]h$]h&]uh1jhjhMVhj^hhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMZhj ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj1h]hpos}(hj3hhhNhNubah}(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.hhMWhj+ubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMWhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMWhj(ubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjjh]hmember}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMYhjdubj)}(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.hhMXhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMYhj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_del_init_rcu (C function)c.hlist_nulls_del_init_rcuhNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj)}(h h]h }(hjӌhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjҌhKubjg)}(hhlist_nulls_del_init_rcuh]jm)}(hhlist_nulls_del_init_rcuh]hhlist_nulls_del_init_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjҌhKubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsbc.hlist_nulls_del_init_rcuasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)jhuh1hhjҌhKhjhhubj)}(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&]uh1jhjhhhjҌhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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&]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)}(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.hhKhjubj)}(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&]uh1hhjٍhKhjڍubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjٍhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjhhhNhNubah}(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.}(hj$hhhNhNubah}(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().}(hj3hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_nulls_first_rcu (C macro)c.hlist_nulls_first_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_nulls_first_rcuh]j)}(hhlist_nulls_first_rcuh]jg)}(hhlist_nulls_first_rcuh]jm)}(hj\h]hhlist_nulls_first_rcu}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjyhK*ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjyhK*hjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjyhK*ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(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,hj^hhubj)}(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&]uh1jhjhK*hj^hhubj)}(h0**Parameters** ``head`` the head 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.hhK.hjǎubj)}(hhh]j)}(h``head`` the head of the list.h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK0hjubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubah}(h]h ]h"]h$]h&]uh1jhjǎubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_nulls_next_rcu (C macro)c.hlist_nulls_next_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_nulls_next_rcuh]j)}(hhlist_nulls_next_rcuh]jg)}(hhlist_nulls_next_rcuh]jm)}(hj@h]hhlist_nulls_next_rcu}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK1ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj]hK1ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj]hK1hj;hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj;hhhj]hK1ubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1hhhhj^hNhNubh)}(h``hlist_nulls_next_rcu (node)``h]j)}(hj|h]hhlist_nulls_next_rcu (node)}(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.hhK3hj^hhubj)}(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&]uh1jhjhK1hj^hhubj)}(h/**Parameters** ``node`` element of the list.h](h)}(h**Parameters**h]j)}(hjÏh]h Parameters}(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.hhK5hjubj)}(hhh]j)}(h``node`` element of the list.h](j)}(h``node``h]j)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK7hj܏ubj)}(hhh]h)}(helement of the list.h]helement of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK2hjubah}(h]h ]h"]h$]h&]uh1jhj܏ubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjُubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_nulls_pprev_rcu (C macro)c.hlist_nulls_pprev_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_nulls_pprev_rcuh]j)}(hhlist_nulls_pprev_rcuh]jg)}(hhlist_nulls_pprev_rcuh]jm)}(hj6h]hhlist_nulls_pprev_rcu}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjShK8ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjShK8hj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhjShK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1hhhhj^hNhNubh)}(h ``hlist_nulls_pprev_rcu (node)``h]j)}(hjrh]hhlist_nulls_pprev_rcu (node)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK:hj^hhubj)}(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&]uh1jhjhK8hj^hhubj)}(h/**Parameters** ``node`` element of the list.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.hhKhjҐubj)}(hhh]h)}(helement of the list.h]helement of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK9hjubah}(h]h ]h"]h$]h&]uh1jhjҐubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjϐubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h hlist_nulls_del_rcu (C function)c.hlist_nulls_del_rcuhNtauh1hhj^hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK?ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hK?ubjg)}(hhlist_nulls_del_rcuh]jm)}(hhlist_nulls_del_rcuh]hhlist_nulls_del_rcu}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hK?ubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.hlist_nulls_del_rcuasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hjyh]hn}(hjȑhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj@hK?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj@hK?ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hK?hj'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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK?hjhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to delete from the hash list. **Note** hlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKChj ubj)}(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)}(hj2h]hstruct hlist_nulls_node *n}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK@hj,ubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhK@hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhK@hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Note**h]j)}(hjmh]hNote}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKBhj ubh)}(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.hhKBhj ubh)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKFhj ubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKIhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_add_head_rcu (C function)c.hlist_nulls_add_head_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjВhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj̒hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKXubj)}(h h]h }(hjߒhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̒hhhjޒhKXubjg)}(hhlist_nulls_add_head_rcuh]jm)}(hhlist_nulls_add_head_rcuh]hhlist_nulls_add_head_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj̒hhhjޒhKXubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE jsbc.hlist_nulls_add_head_rcuasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hjyh]hn}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_head *hh](j)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hhlist_nulls_headh]hhlist_nulls_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jGc.hlist_nulls_add_head_rcuasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjȓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hjkJh]hh}(hjՓhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj̒hhhjޒhKXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjȒhhhjޒhKXubah}(h]jÒah ](jjeh"]h$]h&]jj)jhuh1hhjޒhKXhjŒhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjŒhhhjޒhKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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\hj ubj)}(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)}(hj0h]hstruct hlist_nulls_node *n}(hj2hhhNhNubah}(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.hhKYhj*ubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKYhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKYhj'ubj)}(h3``struct hlist_nulls_head *h`` the list to add to. h](j)}(h``struct hlist_nulls_head *h``h]j)}(hjih]hstruct hlist_nulls_head *h}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKZhjcubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKZhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKZhj'ubeh}(h]h ]h"]h$]h&]uh1jhj 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:414: ./include/linux/rculist_nulls.hhK\hj ubh)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK\hj 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 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().}(hjɔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK_hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_add_tail_rcu (C function)c.hlist_nulls_add_tail_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hVvoid hlist_nulls_add_tail_rcu (struct hlist_nulls_node *n, struct hlist_nulls_head *h)h]j)}(hUvoid hlist_nulls_add_tail_rcu(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKwubjg)}(hhlist_nulls_add_tail_rcuh]jm)}(hhlist_nulls_add_tail_rcuh]hhlist_nulls_add_tail_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKwubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.hlist_nulls_add_tail_rcuasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hstruct hlist_nulls_head *hh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hhlist_nulls_headh]hhlist_nulls_head}(hjĕhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjƕmodnameN classnameNjI jL )}jO ]joc.hlist_nulls_add_tail_rcuasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjkJh]hh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKwhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhj^hNhNubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK{hj3ubj)}(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)}(hjXh]hstruct hlist_nulls_node *n}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKxhjRubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKxhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKxhjOubj)}(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.hhKyhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKyhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hj̖h]h Description}(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{hj3ubh)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK{hj3ubh)}(hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK~hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$hlist_nulls_replace_rcu (C function)c.hlist_nulls_replace_rcuhNtauh1hhj^hhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj.hKubjg)}(hhlist_nulls_replace_rcuh]jm)}(hhlist_nulls_replace_rcuh]hhlist_nulls_replace_rcu}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj.hKubj)}(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&]uh1jhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jR )}jE jCsbc.hlist_nulls_replace_rcuasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hstruct hlist_nulls_node *newh](j)}(hjh]hstruct}(hjϗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˗ubj)}(h h]h }(hjܗhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj˗ubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.hlist_nulls_replace_rcuasbuh1hhj˗ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj˗ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˗ubjm)}(hnewh]hnew}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj˗ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj.hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj.hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj.hKhjhhubj)}(hhh]h)}(h!replace an old entry by a new oneh]h!replace an old entry by a new one}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj^hNhNubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjlubj)}(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.hhKhjubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hjʘh]hstruct hlist_nulls_node *new}(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Ęubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߘhKhjubah}(h]h ]h"]h$]h&]uh1jhjĘubeh}(h]h ]h"]h$]h&]uh1jhjߘhKhjubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(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.hhKhjlubh)}(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.hhKhjlubh)}(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().}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)hlist_nulls_replace_init_rcu (C function)c.hlist_nulls_replace_init_rcuhNtauh1hhj^hhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjghKubjg)}(hhlist_nulls_replace_init_rcuh]jm)}(hhlist_nulls_replace_init_rcuh]hhlist_nulls_replace_init_rcu}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjghKubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j|sbc.hlist_nulls_replace_init_rcuasbuh1hhjubj)}(h h]h }(hjԙhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_node *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jЙc.hlist_nulls_replace_init_rcuasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghKhjNhhubj)}(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&]uh1jhjNhhhjghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(hjʚh]hstruct hlist_nulls_node *old}(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Ěubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߚhKhjubah}(h]h ]h"]h$]h&]uh1jhjĚubeh}(h]h ]h"]h$]h&]uh1jhjߚhKhjubj)}(h;``struct hlist_nulls_node *new`` the new element to insert h](j)}(h ``struct hlist_nulls_node *new``h]j)}(hjh]hstruct hlist_nulls_node *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj>h]h Description}(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)}(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.}(hjThhhNhNubah}(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)}(hjeh]hNote}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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&]uh1jhj{ubh must be hashed.}(hj{hhhNhNubeh}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(hlist_nulls_for_each_entry_rcu (C macro) c.hlist_nulls_for_each_entry_rcuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_nulls_for_each_entry_rcuh]j)}(hhlist_nulls_for_each_entry_rcuh]jg)}(hhlist_nulls_for_each_entry_rcuh]jm)}(hjh]hhlist_nulls_for_each_entry_rcu}(hj˛hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjǛubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjÛhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjޛhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjޛhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjޛhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(h<``hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)``h]j)}(hjh]h8hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj^hhubj)}(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.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj%hKhj^hhubj)}(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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjQh]htpos}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjKubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKؕhjHubj)}(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.hhKhjubj)}(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&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjhlist_nulls_nodeuh1hhjhKhjubh to use as a loop cursor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjHubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjHubj)}(h?``member`` the name of the hlist_nulls_node within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(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.hhKhjubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hKhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hjZh]h Description}(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.hhKhj,ubh)}(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}(hjphhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)hlist_nulls_for_each_entry_safe (C macro)!c.hlist_nulls_for_each_entry_safehNtauh1hhj^hhhNhNubh)}(hhh](j)}(hhlist_nulls_for_each_entry_safeh]j)}(hhlist_nulls_for_each_entry_safeh]jg)}(hhlist_nulls_for_each_entry_safeh]jm)}(hjh]hhlist_nulls_for_each_entry_safe}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhb/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)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjϝjjϝjjjuh1hhhhj^hNhNubh)}(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.hhKhj^hhubj)}(hCiterate over list of given type safe against removal of list entry h]h)}(hBiterate over list of given type safe against removal of list entryh]hBiterate over list of given type safe against removal of list entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj^hhubj)}(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)}(hj h]h Parameters}(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.hhKhjubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hj)h]htpos}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj#ubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj ubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjbh]hpos}(hjdhhhNhNubah}(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\ubj)}(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&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjhlist_nulls_nodeuh1hhjwhKhj{ubh to use as a loop cursor.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjwhKhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhj ubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӞhKhj ubj)}(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.hhKhjubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_is_idle (C function)c.rcu_sync_is_idlehNtauh1hhj^hhhNhNubh)}(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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj^hKubjg)}(hrcu_sync_is_idleh]jm)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj^hKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jssbc.rcu_sync_is_idleasbuh1hhjubj)}(h h]h }(hj˟hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjٟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhj^hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj^hKubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj^hKhjFhhubj)}(hhh]h)}(h-Are readers permitted to use their fastpaths?h]h-Are readers permitted to use their fastpaths?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj^hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhj^hNhNubj)}(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)}(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:416: ./include/linux/rcu_sync.hhKhj,ubj)}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(hjQh]hstruct rcu_sync *rsp}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjKubj)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjHubah}(h]h ]h"]h$]h&]uh1jhj,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:416: ./include/linux/rcu_sync.hhKhj,ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_init (C function)c.rcu_sync_inithNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj͠hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj͠hhhjߠhKubjg)}(h rcu_sync_inith]jm)}(h rcu_sync_inith]h rcu_sync_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj͠hhhjߠhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_sync_initasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hrsph]hrsp}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj͠hhhjߠhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjɠhhhjߠhKubah}(h]jĠah ](jjeh"]h$]h&]jj)jhuh1hhjߠhKhjƠ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ƠhhhjߠhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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&]uh1jhjСubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj̡ubj)}(hhh]h)}(h/Pointer to rcu_sync structure to be initializedh]h/Pointer to rcu_sync structure to be initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubah}(h]h ]h"]h$]h&]uh1jhj̡ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjɡubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_func (C function)c.rcu_sync_funchNtauh1hhj^hhhNhNubh)}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK#ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(hhhj:hK#ubjg)}(h rcu_sync_funch]jm)}(h rcu_sync_funch]h rcu_sync_func}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj:hK#ubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jOsbc.rcu_sync_funcasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hrhph]hrhp}(hj¢hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhj(hhhj:hK#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj:hK#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj:hK#hj!hhubj)}(hhh]h)}(h4Callback function managing reader access to fastpathh]h4Callback function managing reader access to fastpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK#hjhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` Pointer to rcu_head in rcu_sync structure to use for synchronization **Description** This function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit. If it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path. If it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period. If another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(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)}(hj-h]hstruct rcu_head *rhp}(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.chK$hj'ubj)}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhK$hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhK$hj$ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK&hjubh)}(hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.h]hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK%hjubh)}(haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.h]haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK)hjubh)}(hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.h]hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK,hjubh)}(hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.h]hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_enter (C function)c.rcu_sync_enterhNtauh1hhj^hhhNhNubh)}(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}(hjڣhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj֣hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj֣hhhjhK[ubjg)}(hrcu_sync_enterh]jm)}(hrcu_sync_enterh]hrcu_sync_enter}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj֣hhhjhK[ubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_sync_enterasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrsph]hrsp}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj֣hhhjhK[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjңhhhjhK[ubah}(h]jͣah ](jjeh"]h$]h&]jj)jhuh1hhjhK[hjϣhhubj)}(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&]uh1jhjϣhhhjhK[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.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)}(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.chK\hjդubj)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjդubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjҤubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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.}(hj,hhhNhNubah}(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().}(hj;hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_exit (C function)c.rcu_sync_exithNtauh1hhj^hhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhKubjg)}(h rcu_sync_exith]jm)}(h rcu_sync_exith]h rcu_sync_exit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjxhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjťhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj¥ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjǥmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_sync_exitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhKubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhKhj_hhubj)}(hhh]h)}(h4Allow readers back onto fast path after grace periodh]h4Allow readers back onto fast path after grace period}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj'hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhj^hNhNubj)}(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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjFubj)}(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)}(hjkh]hstruct rcu_sync *rsp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhKhjbubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(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:418: ./kernel/rcu/sync.chKhjFubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_dtor (C function)c.rcu_sync_dtorhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h)void rcu_sync_dtor (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_dtor(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h rcu_sync_dtorh]jm)}(h rcu_sync_dtorh]h rcu_sync_dtor}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_sync_dtorasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jަah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjçjjçjjjuh1hhhhj^hNhNubj)}(hY**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](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.chKhjǧubj)}(hhh]j)}(hG``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](j)}(h``struct rcu_sync *rsp``h]j)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubj)}(hhh]h)}(h.Pointer to rcu_sync structure to be cleaned uph]h.Pointer to rcu_sync structure to be cleaned up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjǧubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_tasks_percpu (C struct)c.rcu_tasks_percpuhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hrcu_tasks_percpuh]j)}(hstruct rcu_tasks_percpuh](j)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjShKubjg)}(hrcu_tasks_percpuh]jm)}(hj@h]hrcu_tasks_percpu}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjShKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjShKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjShKhj;hhubj)}(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&]uh1jhj;hhhjShKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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.hhKhjubj#C)}(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&]jjuh1j"ChW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubh)}(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.hhK/hjubj)}(hhh](j)}(h``cblist`` Callback list. h](j)}(h ``cblist``h]j)}(hjh]hcblist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj)}(hhh]h)}(hCallback list.h]hCallback list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h0``lock`` Lock protecting per-CPU callback list. h](j)}(h``lock``h]j)}(hj.h]hlock}(hj0hhhNhNubah}(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(ubj)}(hhh]h)}(h&Lock protecting per-CPU callback list.h]h&Lock protecting per-CPU callback list.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKhjubj)}(h6``rtp_jiffies`` Jiffies counter value for statistics. h](j)}(h``rtp_jiffies``h]j)}(hjgh]h rtp_jiffies}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjaubj)}(hhh]h)}(h%Jiffies counter value for statistics.h]h%Jiffies counter value for statistics.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhjubj)}(h8``rtp_n_lock_retries`` Rough lock-contention statistic. h](j)}(h``rtp_n_lock_retries``h]j)}(hjh]hrtp_n_lock_retries}(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.hhKhjubj)}(hhh]h)}(h Rough lock-contention statistic.h]h Rough lock-contention statistic.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h,``lazy_timer`` Timer to unlazify callbacks. h](j)}(h``lazy_timer``h]j)}(hj٩h]h lazy_timer}(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өubj)}(hhh]h)}(hTimer to unlazify callbacks.h]hTimer to unlazify callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjөubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``urgent_gp`` Number of additional non-lazy grace periods. h](j)}(h ``urgent_gp``h]j)}(hjh]h urgent_gp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj ubj)}(hhh]h)}(h,Number of additional non-lazy grace periods.h]h,Number of additional non-lazy grace periods.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhjubj)}(h0``rtp_work`` Work queue for invoking callbacks. h](j)}(h ``rtp_work``h]j)}(hjKh]hrtp_work}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK hjEubj)}(hhh]h)}(h"Work queue for invoking callbacks.h]h"Work queue for invoking callbacks.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hK hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hK hjubj)}(h6``rtp_irq_work`` IRQ work queue for deferred wakeups. h](j)}(h``rtp_irq_work``h]j)}(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!hj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhK!hjubj)}(h7``barrier_q_head`` RCU callback for barrier operation. h](j)}(h``barrier_q_head``h]j)}(hjh]hbarrier_q_head}(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"hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҪhK"hjubj)}(h5``rtp_blkd_tasks`` List of tasks blocked as readers. h](j)}(h``rtp_blkd_tasks``h]j)}(hjh]hrtp_blkd_tasks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK#hjubj)}(hhh]h)}(h!List of tasks blocked as readers.h]h!List of tasks blocked as readers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK#hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK#hjubj)}(hD``rtp_exit_list`` List of tasks in the latter portion of do_exit(). h](j)}(h``rtp_exit_list``h]j)}(hj/h]h rtp_exit_list}(hj1hhhNhNubah}(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)ubj)}(hhh]h)}(h1List of tasks in the latter portion of do_exit().h]h1List of tasks in the latter portion of do_exit().}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhK$hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhK$hjubj)}(h0``cpu`` CPU number corresponding to this entry. h](j)}(h``cpu``h]j)}(hjhh]hcpu}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK%hjbubj)}(hhh]h)}(h'CPU number corresponding to this entry.h]h'CPU number corresponding to this entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hK%hj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hK%hjubj)}(hG``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. h](j)}(h ``index``h]j)}(hjh]hindex}(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&hjubj)}(hhh]h)}(hhjubj#C)}(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&]jjuh1j"ChW/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)}(hjh]hcbs_wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKRCU wait allowing a new callback to get kthread’s attention.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjOubj)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhK>hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhK>hjڬubj)}(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@hjubj)}(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&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjڬubj)}(hB``gp_sleep`` Per-grace-period sleep to prevent CPU-bound looping. h](j)}(h ``gp_sleep``h]j)}(hjǭh]hgp_sleep}(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.hhKAhjubj)}(hhh]h)}(h4Per-grace-period sleep to prevent CPU-bound looping.h]h4Per-grace-period sleep to prevent CPU-bound looping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܭhKAhjݭubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܭhKAhjڬubj)}(h/``init_fract`` Initial backoff sleep interval. h](j)}(h``init_fract``h]j)}(hjh]h init_fract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKBhjubj)}(hhh]h)}(hInitial backoff sleep interval.h]hInitial backoff sleep interval.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKBhjڬubj)}(h5``gp_jiffies`` Time of last **gp_state** transition. h](j)}(h``gp_jiffies``h]j)}(hj9h]h gp_jiffies}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKChj3ubj)}(hhh]h)}(h%Time of last **gp_state** transition.h](h Time of last }(hjRhhhNhNubj)}(h **gp_state**h]hgp_state}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh transition.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjNhKChjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKChjڬubj)}(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.hhKDhj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKDhjڬubj)}(hM``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. h](j)}(h``tasks_gp_seq``h]j)}(hjh]h tasks_gp_seq}(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.hhKEhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҮhKEhjڬubj)}(hB``n_ipis`` Number of IPIs sent to encourage grace periods to end. h](j)}(h ``n_ipis``h]j)}(hjh]hn_ipis}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKFhjubj)}(hhh]h)}(h6Number of IPIs sent to encourage grace periods to end.h]h6Number of IPIs sent to encourage grace periods to end.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKFhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKFhjڬubj)}(h.``n_ipis_fails`` Number of IPI-send failures. h](j)}(h``n_ipis_fails``h]j)}(hj/h]h n_ipis_fails}(hj1hhhNhNubah}(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.hhKGhj)ubj)}(hhh]h)}(hNumber of IPI-send failures.h]hNumber of IPI-send failures.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKGhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKGhjڬubj)}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j)}(h``kthread_ptr``h]j)}(hjhh]h kthread_ptr}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKHhjbubj)}(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&]uh1hhj}hKHhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKHhjڬubj)}(hB``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. h](j)}(h``lazy_jiffies``h]j)}(hjh]h lazy_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKIhjubj)}(hhh]h)}(h0Number of jiffies to allow callbacks to be lazy.h]h0Number of jiffies to allow callbacks to be lazy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjڬubj)}(h6``gp_func`` This flavor's grace-period-wait function. h](j)}(h ``gp_func``h]j)}(hjگh]hgp_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.hhK?hjԯubj)}(hhh]h)}(h)This flavor's grace-period-wait function.h]h+This flavor’s grace-period-wait function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjԯubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjڬubj)}(hC``pregp_func`` This flavor's pre-grace-period function (optional). h](j)}(h``pregp_func``h]j)}(hjh]h pregp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKJhj ubj)}(hhh]h)}(h3This flavor's pre-grace-period function (optional).h]h5This flavor’s pre-grace-period function (optional).}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKJhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKJhjڬubj)}(hB``pertask_func`` This flavor's per-task scan function (optional). h](j)}(h``pertask_func``h]j)}(hjLh]h pertask_func}(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.hhKKhjFubj)}(hhh]h)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKKhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahKKhjڬubj)}(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.hhKLhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjڬubj)}(hG``holdouts_func`` This flavor's holdout-list scan function (optional). h](j)}(h``holdouts_func``h]j)}(hjh]h holdouts_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.hhKMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӰhKMhjڬubj)}(hE``postgp_func`` This flavor's post-grace-period function (optional). h](j)}(h``postgp_func``h]j)}(hjh]h postgp_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.hhKNhjubj)}(hhh]h)}(h4This flavor's post-grace-period function (optional).h]h6This flavor’s post-grace-period function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKNhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKNhjڬubj)}(h<``call_func`` This flavor's call_rcu()-equivalent function. h](j)}(h ``call_func``h]j)}(hj0h]h call_func}(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.hhKOhj*ubj)}(hhh]h)}(h-This flavor's call_rcu()-equivalent function.h]h/This flavor’s call_rcu()-equivalent function.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKOhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKOhjڬubj)}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j)}(h``wait_state``h]j)}(hjih]h wait_state}(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.hhKPhjcubj)}(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&]uh1hhj~hKPhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKPhjڬubj)}(h5``rtpcpu`` This flavor's rcu_tasks_percpu structure. h](j)}(h ``rtpcpu``h]j)}(hjh]hrtpcpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKQhjubj)}(hhh]h)}(h)This flavor's rcu_tasks_percpu structure.h]h+This flavor’s rcu_tasks_percpu structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjڬubj)}(h^``rtpcp_array`` Array of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask. h](j)}(h``rtpcp_array``h]j)}(hj۱h]h rtpcp_array}(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.hhKRhjձubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjձubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjڬubj)}(hO``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. h](j)}(h``percpu_enqueue_shift``h]j)}(hjh]hpercpu_enqueue_shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKShjubj)}(hhh]h)}(h5Shift down CPU ID this much when enqueuing callbacks.h]h5Shift down CPU ID this much when enqueuing callbacks.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKShj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKShjڬubj)}(hO``percpu_enqueue_lim`` Number of per-CPU callback queues in use for enqueuing. h](j)}(h``percpu_enqueue_lim``h]j)}(hjMh]hpercpu_enqueue_lim}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKThjGubj)}(hhh]h)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKThjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKThjڬubj)}(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.hhKUhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKUhjڬubj)}(hZ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. h](j)}(h``percpu_dequeue_gpseq``h]j)}(hjh]hpercpu_dequeue_gpseq}(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.hhKVhjubj)}(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.}(hjزhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԲhKVhjղubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԲhKVhjڬubj)}(h2``barrier_q_mutex`` Serialize barrier operations. h](j)}(h``barrier_q_mutex``h]j)}(hjh]hbarrier_q_mutex}(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.hhKWhjubj)}(hhh]h)}(hSerialize barrier operations.h]hSerialize barrier operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKWhjڬubj)}(h6``barrier_q_count`` Number of queues being waited on. h](j)}(h``barrier_q_count``h]j)}(hj1h]hbarrier_q_count}(hj3hhhNhNubah}(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.hhKXhj+ubj)}(hhh]h)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKXhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKXhjڬubj)}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j)}(h``barrier_q_completion``h]j)}(hjjh]hbarrier_q_completion}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKYhjdubj)}(hhh]h)}(hBarrier wait/wakeup mechanism.h]hBarrier wait/wakeup mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjڬubj)}(h:``barrier_q_seq`` Sequence number for barrier operations. h](j)}(h``barrier_q_seq``h]j)}(hjh]h barrier_q_seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKZhjubj)}(hhh]h)}(h'Sequence number for barrier operations.h]h'Sequence number for barrier operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjڬubj)}(h:``barrier_q_start`` Most recent barrier start in jiffies. h](j)}(h``barrier_q_start``h]j)}(hjܳh]hbarrier_q_start}(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ֳubj)}(hhh]h)}(h%Most recent barrier start in jiffies.h]h%Most recent barrier start in jiffies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjֳubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjڬubj)}(h%``name`` This flavor's textual name. h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK\hjubj)}(hhh]h)}(hThis flavor's textual name.h]hThis flavor’s textual name.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hK\hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hK\hjڬubj)}(h%``kname`` This flavor's kthread name.h](j)}(h ``kname``h]j)}(hjNh]hkname}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK\hjHubj)}(hhh]h)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK]hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchK\hjڬubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu_tasks (C function)c.call_rcu_taskshNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hcall_rcu_tasksh]jm)}(hcall_rcu_tasksh]hcall_rcu_tasks}(hjɴhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŴubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j˴sbc.call_rcu_tasksasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrhph]hrhp}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjݴubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]jc.call_rcu_tasksasbuh1hhjSubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(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)jhuh1hhjhMhjhhubj)}(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&]jjjjȵjjȵjjjuh1hhhhj^hNhNubj)}(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&]uh1jhjеubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj̵ubj)}(hhh](j)}(hL``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *rhp``h]j)}(hjh]hstruct rcu_head *rhp}(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.hhMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hj*h]hrcu_callback_t 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.hhMhj$ubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjubeh}(h]h ]h"]h$]h&]uh1jhj̵ubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj̵ubh)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj̵ubh)}(h^See the description of call_rcu() for more detailed information on memory ordering guarantees.h]h^See the description of call_rcu() for more detailed information on memory ordering guarantees.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj̵ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"synchronize_rcu_tasks (C function)c.synchronize_rcu_taskshNtauh1hhj^hhhNhNubh)}(hhh](j)}(h!void synchronize_rcu_tasks (void)h]j)}(h void synchronize_rcu_tasks(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjȶhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjǶhMubjg)}(hsynchronize_rcu_tasksh]jm)}(hsynchronize_rcu_tasksh]hsynchronize_rcu_tasks}(hjڶhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjֶubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjǶhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(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)jhuh1hhjǶhMhjhhubj)}(hhh]h)}(h1wait until an rcu-tasks grace period has elapsed.h]h1wait until an rcu-tasks grace period has elapsed.}(hj hhhNhNubah}(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&]uh1jhjhhhjǶhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhj^hNhNubj)}(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)}(hjBh]h Parameters}(hjDhhhNhNubah}(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.hhMhj<ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjah]hvoid}(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.hhKhj[ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj<ubh)}(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.hhMhj<ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj<ubh)}(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.}(hjзhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_barrier_tasks (C function)c.rcu_barrier_taskshNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_barrier_tasks (void)h]j)}(hvoid rcu_barrier_tasks(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(hrcu_barrier_tasksh]jm)}(hrcu_barrier_tasksh]hrcu_barrier_tasks}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(h.Wait for in-flight call_rcu_tasks() callbacks.h]h.Wait for in-flight call_rcu_tasks() callbacks.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhj^hNhNubj)}(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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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)}(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.}(hjhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'synchronize_rcu_tasks_rude (C function)c.synchronize_rcu_tasks_rudehNtauh1hhj^hhhNhNubh)}(hhh](j)}(h&void synchronize_rcu_tasks_rude (void)h]j)}(h%void synchronize_rcu_tasks_rude(void)h](j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMgubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj5hMgubjg)}(hsynchronize_rcu_tasks_rudeh]jm)}(hsynchronize_rcu_tasks_rudeh]hsynchronize_rcu_tasks_rude}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hMgubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hMghjhhubj)}(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&]uh1jhjhhhj5hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(hjϹh]hvoid}(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ɹubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjɹubeh}(h]h ]h"]h$]h&]uh1jhjhKhjƹubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(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 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().}(hj hhhNhNubah}(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.}(hj/hhhNhNubah}(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.}(hj>hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_cpu_stall_reset (C function)c.rcu_cpu_stall_resethNtauh1hhj^hhhNhNubh)}(hhh](j)}(hvoid rcu_cpu_stall_reset (void)h]j)}(hvoid rcu_cpu_stall_reset(void)h](j )}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjihhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjihhhj{hKubjg)}(hrcu_cpu_stall_reseth]jm)}(hrcu_cpu_stall_reseth]hrcu_cpu_stall_reset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhj{hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjihhhj{hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj{hKubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj{hKhjbhhubj)}(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&]uh1jhjbhhhj{hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhKhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjubh)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjubh)}(h"The caller must disable hard irqs.h]h"The caller must disable hard irqs.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.rcu_stall_chain_notifier_register (C function)#c.rcu_stall_chain_notifier_registerhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h@int rcu_stall_chain_notifier_register (struct notifier_block *n)h]j)}(h?int rcu_stall_chain_notifier_register(struct notifier_block *n)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMlubjg)}(h!rcu_stall_chain_notifier_registerh]jm)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hjŻhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMlubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݻubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݻubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jǻsb#c.rcu_stall_chain_notifier_registerasbuh1hhjݻubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݻubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݻubjm)}(hjyh]hn}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݻubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٻubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMlhjhhubj)}(hhh]h)}(hAdd an RCU CPU stall notifierh]hAdd an RCU CPU stall notifier}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMlhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhj^hNhNubj)}(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)}(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.hhMmhjubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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 }(hjhhhNhNubj)}(h **action**h]haction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh passed to a notifier will be }(hjhhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or friends. The }(hjhhhNhNubj)}(h**data**h]hdata}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hjhhhNhNubeh}(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, }(hj:hhhNhNubj)}(h ``-EEXIST``h]h-EEXIST}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh on error.}(hj:hhhNhNubeh}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h0rcu_stall_chain_notifier_unregister (C function)%c.rcu_stall_chain_notifier_unregisterhNtauh1hhj^hhhNhNubh)}(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}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjhMubjg)}(h#rcu_stall_chain_notifier_unregisterh]jm)}(h#rcu_stall_chain_notifier_unregisterh]h#rcu_stall_chain_notifier_unregister}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjhMubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjŽhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hjֽhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjӽubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjؽmodnameN classnameNjI jL )}jO ]jR )}jE jsb%c.rcu_stall_chain_notifier_unregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjphhubj)}(hhh]h)}(h Remove an RCU CPU stall notifierh]h Remove an RCU CPU stall notifier}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1hhhhj^hNhNubj)}(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)}(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:422: ./kernel/rcu/tree_stall.hhMhjVubj)}(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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjuubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubh)}(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.hhMhjVubh)}(h@Removes an RCU CPU stall notifier from an atomic notifier chain.h]h@Removes an RCU CPU stall notifier from an atomic notifier chain.}(hj̾hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjVubh)}(h0Returns zero on success, ``-ENOENT`` on failure.h](hReturns zero on success, }(hj۾hhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۾ubh on failure.}(hj۾hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&rcu_read_lock_tasks_trace (C function)c.rcu_read_lock_tasks_tracehNtauh1hhj^hhhNhNubh)}(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&ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj)hK&ubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jR )}jE rcu_read_lock_tasks_tracesbc.rcu_read_lock_tasks_traceasbuh1hhjhhhj)hK&ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj)hK&ubh__percpu}(hjhhhNhNubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj)hK&ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hK&ubjg)}(hrcu_read_lock_tasks_traceh]jm)}(hjYh]hrcu_read_lock_tasks_trace}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj)hK&ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hK&ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj)hK&hjhhubj)}(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&hjϿhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhK*hjubj)}(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.hhKhj ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK'hjubh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(rcu_read_unlock_tasks_trace (C function)c.rcu_read_unlock_tasks_tracehNtauh1hhj^hhhNhNubh)}(hhh](j)}(h@void rcu_read_unlock_tasks_trace (struct srcu_ctr __percpu *scp)h]j)}(h?void rcu_read_unlock_tasks_trace(struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKBubjg)}(hrcu_read_unlock_tasks_traceh]jm)}(hrcu_read_unlock_tasks_traceh]hrcu_read_unlock_tasks_trace}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKBubj)}(h(struct srcu_ctr __percpu *scp)h]j)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_read_unlock_tasks_traceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__percpu}(hjhhhNhNubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hscph]hscp}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKBhjhhubj)}(hhh]h)}(h0mark end of RCU-trace read-side critical sectionh]h0mark end of RCU-trace read-side critical section}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKBhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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}(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.hhKChjubj)}(hhh]h)}(hubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h4Wait for in-flight call_rcu_tasks_trace() callbacks.h]h4Wait for in-flight call_rcu_tasks_trace() callbacks.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-rcu_tasks_trace_expedite_current (C function)"c.rcu_tasks_trace_expedite_currenthNtauh1hhj^hhhNhNubh)}(hhh](j)}(h,void rcu_tasks_trace_expedite_current (void)h]j)}(h+void rcu_tasks_trace_expedite_current(void)h](j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj?hKubjg)}(h rcu_tasks_trace_expedite_currenth]jm)}(h rcu_tasks_trace_expedite_currenth]h rcu_tasks_trace_expedite_current}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj?hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjfubah}(h]h ]h"]h$]h&]jjuh1jhj-hhhj?hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj?hKubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj?hKhj&hhubj)}(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&]uh1jhj&hhhj?hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hj*hhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_rcu_mult (C macro)c.synchronize_rcu_multhNtauh1hhj^hhhNhNubh)}(hhh](j)}(hsynchronize_rcu_multh]j)}(hsynchronize_rcu_multh]jg)}(hsynchronize_rcu_multh]jm)}(hjSh]hsynchronize_rcu_mult}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK'ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjphK'ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjphK'hjNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNhhhjphK'ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubh)}(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)hj^hhubj)}(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&]uh1jhjhK'hj^hhubj)}(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)}(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:426: ./include/linux/rcupdate_wait.hhK+hjubj)}(hhh]j)}(hL``...`` List of call_rcu() functions for different grace periods to wait on h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK(hjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]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:426: ./include/linux/rcupdate_wait.hhK*hjubh)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK)hjubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK0hjubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_init (C function) c.rcuref_inithNtauh1hhj^hhhNhNubh)}(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 ]jah"]h$]h&]uh1j hj}hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}hhhjhKubjg)}(h rcuref_inith]jm)}(h rcuref_inith]h rcuref_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhjhKubj)}(h!(rcuref_t *ref, unsigned int cnt)h](j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.rcuref_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cnth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcnth]hcnt}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhKubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjvhhubj)}(hhh]h)}(hBInitialize a rcuref reference count with the given reference counth]hBInitialize a rcuref reference count with the given reference count}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjthhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhKhjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h>``unsigned int cnt`` The initial reference count typically '1'h](j)}(h``unsigned int cnt``h]j)}(hjh]hunsigned int cnt}(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.hhKhjubj)}(hhh]h)}(h)The initial reference count typically '1'h]h-The initial reference count typically ‘1’}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_read (C function) c.rcuref_readhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h(unsigned int rcuref_read (rcuref_t *ref)h]j)}(h'unsigned int rcuref_read(rcuref_t *ref)h](j )}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjYhKubj )}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhjYhKubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjYhKubjg)}(h rcuref_readh]jm)}(h rcuref_readh]h rcuref_read}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjYhKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.rcuref_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhKubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhKhj@hhubj)}(hhh]h)}(h4Read the number of held reference counts of a rcurefh]h4Read the number of held reference counts of a rcuref}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhj^hNhNubj)}(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)}(hj.h]h Parameters}(hj0hhhNhNubah}(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)}(hjMh]h rcuref_t *ref}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjGubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjDubah}(h]h ]h"]h$]h&]uh1jhj(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.hhK!hj(ubh)}(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!hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_is_dead (C function)c.rcuref_is_deadhNtauh1hhj^hhhNhNubh)}(hhh](j)}(h#bool rcuref_is_dead (rcuref_t *ref)h]j)}(h"bool rcuref_is_dead(rcuref_t *ref)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK0ubjg)}(hrcuref_is_deadh]jm)}(hrcuref_is_deadh]hrcuref_is_dead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK0ubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcuref_is_deadasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK0hjhhubj)}(hhh]h)}(h0Check if the rcuref has been already marked deadh]h0Check if the rcuref has been already marked dead}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0hjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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.hhK1hjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.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.}(hjhhhNhNubah}(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&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_get (C function) c.rcuref_gethNtauh1hhj^hhhNhNubh)}(hhh](j)}(hbool rcuref_get (rcuref_t *ref)h]j)}(hbool rcuref_get(rcuref_t *ref)h](j )}(hj8h]hbool}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKBubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj?hKBubjg)}(h rcuref_geth]jm)}(h rcuref_geth]h rcuref_get}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj?hKBubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE jTsb c.rcuref_getasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj?hKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj?hKBubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj?hKBhj'hhubj)}(hhh]h)}(h1Acquire one reference on a rcuref reference counth]h1Acquire one reference on 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.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj?hKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhKFhjubj)}(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.hhKChjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKChj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKChjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKEhjubh)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKDhjubh)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKFhjubj)}(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&]uh1jhjhKKhjubh)}(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.hhKMhjubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_put_rcusafe (C function)c.rcuref_put_rcusafehNtauh1hhj^hhhNhNubh)}(hhh](j)}(h'bool rcuref_put_rcusafe (rcuref_t *ref)h]j)}(h&bool rcuref_put_rcusafe(rcuref_t *ref)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKyubjg)}(hrcuref_put_rcusafeh]jm)}(hrcuref_put_rcusafeh]hrcuref_put_rcusafe}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKyubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcuref_put_rcusafeasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKyubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKyhjhhubj)}(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.hhKyhjubaĄh}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKyhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(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.hhKzhjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKzhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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|hjubh)}(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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK{hjubh)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjLubah}(h]h ]h"]h$]h&]uh1jhj^hKhjubh)}(h **Return**h]j)}(hjgh]hReturn}(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)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_put (C function) c.rcuref_puthNtauh1hhj^hhhNhNubh)}(hhh](j)}(hbool rcuref_put (rcuref_t *ref)h]j)}(hbool rcuref_put(rcuref_t *ref)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h rcuref_puth]jm)}(h rcuref_puth]h rcuref_put}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.rcuref_putasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hhh]j)}(h2Release one reference for a rcuref reference counth]h)}(hjUh]h2Release one reference for a rcuref reference count}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjSubah}(h]h ]h"]h$]h&]uh1jhjPhhhjdhNubah}(h]h ]h"]h$]h&]jjuh1jhjdhKhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhj^hNhNubj)}(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.hhKhj~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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~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.hhKhj~ubh)}(h Can be invoked from any context.h]h Can be invoked from any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj~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.hhKhj~ubj)}(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.hhKhjubh)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h]hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhj$hKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,same_state_synchronize_rcu_full (C function)!c.same_state_synchronize_rcu_fullhNtauh1hhj^hhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK3ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjghK3ubjg)}(hsame_state_synchronize_rcu_fullh]jm)}(hsame_state_synchronize_rcu_fullh]hsame_state_synchronize_rcu_full}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjghK3ubj)}(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&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j|sb!c.same_state_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosp1h]hrgosp1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rcu_gp_oldstate *rgosp2h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]j!c.same_state_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosp2h]hrgosp2}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjghK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjghK3ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjghK3hjOhhubj)}(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&]uh1jhjOhhhjghK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj^hNhNubj)}(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)}(hjh]hstruct rcu_gp_oldstate *rgosp1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK4hjubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjubj)}(h;``struct rcu_gp_oldstate *rgosp2`` Second old-state value. h](j)}(h"``struct rcu_gp_oldstate *rgosp2``h]j)}(hjh]hstruct rcu_gp_oldstate *rgosp2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK5hjubj)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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: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 }(hjThhhNhNubj)}(h**true**h]htrue}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh% if the two values are identical and }(hjThhhNhNubj)}(h **false**h]hfalse}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh 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.}(hjThhhNhNubeh}(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}j<](j <jI>esnameids}(jjjjj,`j)`jjjjj j j1ej.ej>j<jljljoxjlxjʅjDžjjj4j4jjjjj)j&j j j1j1j4j4jmjmjmjmjƤjäjjjjjjjjjjjjjjjjjjjE'jB'jjj%j%j='j:'j.*j+*jxjxj|j|jj jg j<'j9'jJjGjjjju nametypes}(jjj,`jjj j1ej>jljoxjʅjj4jjj)j j1j4jmjmjƤjjjjjjjjjjE'jj%j='j.*jxj|jj j<'jJjjuh}(jhjhj)`hhjjjjjj j j j jdjijjjnjsjMjRjjj@jEj j j)$j.$j&j&j(j(jD+jI+j-j-j`0je0j2j2j|5j5j7j7j9j9jp=ju=j>@jC@jmCjrCjIjIjLjLjNjNjQPjVPjQjQjSjSj3Wj8WjEZjJZj]j]jj/`jL`jQ`j!bj&bj1gj6gjqijvijjjjjnjnj!qj&qjvtj{tjvjvjByjGyj{j{j}j}jjjցjہjjjzjjjjj jjjjjj#jkjpjjjvj{jjjrjwjjjZj_jߣjjQjVjLjQjjjUjZjjjjjjjmjrjjjjjjjþjȾj{jj<jAjjj(j-jjjjjjjjjjj%j*jDjIjjjhjmj jjjjjjjjjjjj jjj!j4j9j*j/jAjFj6j;j+j0j j%j2j7jDjIjVj[jgjljxj}jjjjjjjjjjjvj{j.ej jo jt jjjojjjjj jj j j%j%j'j'j"*j'*j,j,j6/j;/j 3j3j<j <jS>jI>j<j>j?j?j CjCjFjFjJjJjNjNjaSjfSjUjUjdXjiXj&[j+[jl\jq\j^j^jajajlj4ejQejVejgjgjbjjgjjlxjljljljmjmjiojnojspjxpjrjrjsjsjujujvjvjDžjrxjxjxj|j|jjjjͅjjj8j=jjjwj|jjjjjejjjjjjj4jjjjjjUjZjѝj֝jkjpjjjjj6j;jϥjԥjKjPjjjTjYjcjhjQjVjNjSj<jAjjjjjjjjŻjNjSj'j,jjjjjjjdjij,j1jj j;j@jjjjjjjjjjj6j;jjjjjjjjjjj`jejjjfjkjjjFjKjjj!j&j&jjjjjjjj0j5j:j?jSjXj]jbjgjljjjjj j,jIjNjDjIjIjNjc jh j j j1j j< jA jjjjj@jEjjjjjjjjjjj"j"j#j#j%j%jW'j\'j(j(j+*j0*j+j+j,j-jH/jM/j4j"1j?1jD1j2j2jmj4jmj4j4j4j 6j6j7j7j ;j;jW=j\=j @j@jCjCjYGj^GjJjKj)Mj.Mj9Oj>OjcQjhQjSjSjTVjYVjXjXjZjZj,]j1]jh_jm_jcjcjej ejijijKkjPkjäjmjjnjnj#nj;oj@ojpjpjuqjzqjrjrjtj$tjujujujujvjvjwjwjxjxjyjyjzjzj{j{j|j|j}j}j~j~jjjjjjj?jDjjjjjrjwjĈjɈjjjhjmjjjjj]jbjjjjjRjWj:j?j"j'j-j2jjjjjjjyj~j(j-jjɤjjjj jjj)j.j jj9j>jޱjjhjmjjjGjLjjjVj[jjj;j@jƿj˿jPjUjjjjjyj~jjjjjAjFjljqjjjjj-j2jjjjjjjjjjjjjjjB'jjjjjjjj%jj2j7jjjRjWjjjjj@jEjjjjjjjjjYj^j7j<jjjjj j j j j4j9jjjVj[jjjsjxjdjijjj}!j!j:'j%j<%jA%j+*jH'je'jj'j(j(jf+jk+jw-j|-j/j/j1j1j2j2j84j=4j5j5jX7j]7j8j8jx:j}:j<j <j=j=jAjAjCjCjjFjoFjIjIjLjLjNjNjPjPjmTjrTjYj!Yj\j\j_j_jajajcj#cjejejgjgjijjjljljnjnjupjzpj5rj:rjtjtjvjwjLyjQyj{j {j|j|j,~j1~jjjujzjAjFjjjۊjjbjgjjjjj(j-jܖjj jj6j;jjjjjjj|jjjjjjljqjjjjjjjȷjͷjjjljqjjjAjFj#j(j9j>jjjjj!j&jjjjjjjjjjjOjTjjjkjpjsjxjjjjj,j1jjj7j<jmjrjjjjj)j.j?jDjjjhjmj j j j jPjUj jj>jCjBjGjjjjjjj#j(jjj"j "j#j#j%j%jC'jH'j0*j5*ju,jz,j.j.j1j1j2j2j5j5j8j8j;;j@;j=j=j@?jE?j@j@j2Cj7CjkEjpEj$Gj)Gj5Jj:JjEMjJMjNjOjPjPjpRjuRjHVjMVjYjYj\j \j]j]j_j_jbj bjcjcj0ej5ejfjfj}hjhjjjjjljljojojsjsjRujWujvjvjxjyj5{j:{j}j~jjjIjNj_jdjjjƈjˈj\jajjjjjLjQj{jj#j(jtjyj)j.jjjljqjOjTjejjjȭjͭjjjjj\jajj jjj0j5jXj]jjjjj4j9jjjj#jojtjjjujzjFjKjjjjj9j>jjjjj jjjj,j1jdjijjjjjj j=jBjKjPjtjyjj!jjjjjjj^jcj j j j j j jjjjj7j<jjj`jejj jjj,j1jjj#j(jKjPj!j!j\$ja$j(j(jxj1*jN*jS*j-j -j/j/j1j1j-3j23j6j6j:j:j<j<j{>j>j?j@jWAj\AjBjBj5Ej:EjFjFj@HjEHjKjKj^MjcMjNjNjQjQjSjSjUjVjXjYjZjZj\j\j,^j1^jajajbjbjRdjWdjfjfjgjgjjjjj mjmjMnjRnjpjpjsjsjtjtj"vj'vj|jxjxjxjYzj^zj{j{jg j|j}j}j(j-jjjjājijnjjjjjFjKj*j/jjjjjCjHjjjj"jÖjȖjDjIj,j1j+j0jȞj͞jjjijnj jjjjjjjjjjjjjjjjmjrjɷjηj%j*jjj1j6jIjNj-j2jjjjj8j=jjjj!jvj{j jj.j3j,j1j4j9jjjjj(j-jjjjjljqjAjFjjjjjjjjjjj,j1jWj\jajfjjjPjUj9'jm j j j j jjjjjjjj#jjjjj\jaj!j!ju#jz#j$j$jGj?'j'j'j)j)jC+jH+j,j,j.j.j0j0j3j3j.5j35j7j"7j8j8j3;j8;j>=jC=j?j?jAjAjCjDjEjEjFjFjGjGj{IjIj KjKjLjLjaOjfOj\RjaRjTjTjjWjoWjZjZj ]j]j_j_j#bj(bj{djdjrgjwgjijjnjj`mjemj3pj8pjsj sjujuj6yj;yj`|je|j}j~jjjjj߃jjVj[jjjjjjjj jjjjjړjߓjljqjjj jjjjAjFjjj~jjjjjMjj^j{jjjjjêjmjrjjjjjjjHjMjjjjjѱjֱjjj%j*jjj#j(jhjmjjjjj1j6jjjjjjjjjjjjjIjNjjjjjjjjj>jCjjjjjljqjjjRjWjjj&j+jkjpjjjjjjjjjjjjjTjYjjjKjPjjj1j6jujzjj jjj.j3jjjjjjjjjDjIjjj jjjj\jaj/j4jWj\jjjjjjj6j;jjj j j j j j jU jZ jjjjj`jejjjEjJjajfjjjjjjjjjTjYj j j"j"j%j#%jZ'j_'j)j)j+j+jt-jy-j.j.j/j/jc1jh1j2j2je4jj4j5j5jf7jk7j/:j4:j;j;j=j=ji?jn?jAj Aj@CjECjDjDjFj!FjGjGjWIj\IjKjKj2Mj7MjrNjwNj|OjOjQjQjSjSjUjUjqWjvWjYjYj[j[jd_ji_j%bj*bjdjdjfjfjhjhjijijkjkj>mjCmjnjnjYpj^pjqjqjsjsj1uj6ujwjwjMzjRzju|jz|j~j~jƀjˀjjjjjYj^jjj`jej}jjjjjjUjZj9j>j/j4j%j*jÒjȒjjjjjLjQjjjjjDjIjĠjɠjj$jͣjңj]jbjަjj9j>j'j,jjjjjjjjj`jejjjnjsjjjjj7j<jnjsjjjjjjj$j)jLjQjtjyj>jCjjj%j*jjjjjMjRu footnote_refs}j;](j <jI>es citation_refs} autofootnotes]j>aautofootnote_refs](j <jI>esymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j KsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.