%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.chKgubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhjhhhjhKgubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKgubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKgubj )}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKgubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKgubh 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:spacepreserveuh1jfhjhhhjhKgubhdesc_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&]jjuh1jhjhhhjhKgubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhjhKgubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhjhKghhhhubh 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.chKghjhhubah}(h]h ]h"]h$]h&]uh1jhhhhhjhKgubeh}(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.chKkhjubhdefinition_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.chKhhjubh definition)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhhjubj)}(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.chKihj<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&]uh1hhjWhKihjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKihjubj)}(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.chKjhjuubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKjhjubeh}(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.chKlhjubh)}(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.chKkhjubeh}(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.chKvubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKvubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKvubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKvubjg)}(hsimple_strtoulh]jm)}(hsimple_strtoulh]hsimple_strtoul}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKvubj)}(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 hKvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKvhjhhubj)}(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.chKvhj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKvubeh}(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.chKzhj~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.chKwhjubj)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(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.chKxhjubj)}(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&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(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.chKyhjubj)}(hhh]h)}(hThe number base to useh]hThe number base to use}(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&]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.chKzhj~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 function returns the number of characters written into **buf**. 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 function returns the number of characters written into **buf**. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.h](h;The function returns the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE. 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 function returns the number of characters written into **buf**. 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 function returns the number of characters written into **buf**. Use snprintf() or scnprintf() in order to avoid buffer overflows.h](h;The function returns the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC. 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.chM ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhj[hM ubjg)}(h vbin_printfh]jm)}(h vbin_printfh]h vbin_printf}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhj[hM 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[hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hM ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hM 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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hM 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.chM! 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&]uh1hhj5hM! hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM! 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.chM" 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&]uh1hhjnhM" hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM" 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.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# 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.chM+ 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.chM, 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 'YyTt1NnFf0', 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 'YyTt1NnFf0', 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 ‘YyTt1NnFf0’, 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.chKhj;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.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>ubh)}(hNCaller takes responsibility for freeing **array** when it is no longer needed.h](h(Caller takes responsibility for freeing }(hj @hhhNhNubj)}(h **array**h]harray}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj @ubh when it is no longer needed.}(hj @hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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.chMhj,Bubj)}(hhh]h)}(hdestination buffer (unescaped)h]hdestination buffer (unescaped)}(hjKBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGBhMhjHBubah}(h]h ]h"]h$]h&]uh1jhj,Bubeh}(h]h ]h"]h$]h&]uh1jhjGBhMhjAubj)}(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.chM0hjEubh)}(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.chM3hjEubh)}(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.chMHubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNhhhjNhMHubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMHubjg)}(h skip_spacesh]jm)}(h skip_spacesh]h skip_spaces}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhjNhMHubj)}(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&]jjuh1jhjNhhhjNhMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMHubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhMHhjNhhubj)}(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.chMHhjvOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMHubeh}(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.chMLhjOubj)}(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.chMIhjOubj)}(hhh]h)}(hThe string to be stripped.h]hThe string to be stripped.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMIhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMIhjOubah}(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.chMKhjOubh)}(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.chMJhjOubeh}(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.chMVubj)}(h h]h }(hjmPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZPhhhjlPhMVubj)}(hjh]h*}(hj{PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZPhhhjlPhMVubjg)}(hstrimh]jm)}(hstrimh]hstrim}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZPhhhjlPhMVubj)}(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&]jjuh1jhjZPhhhjlPhMVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVPhhhjlPhMVubah}(h]jQPah ](jjeh"]h$]h&]jj)jhuh1hhjlPhMVhjSPhhubj)}(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.chMVhjPhhubah}(h]h ]h"]h$]h&]uh1jhjSPhhhjlPhMVubeh}(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.chMZhj(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.chMWhjGQubj)}(hhh]h)}(hThe string to be stripped.h]hThe string to be stripped.}(hjfQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbQhMWhjcQubah}(h]h ]h"]h$]h&]uh1jhjGQubeh}(h]h ]h"]h$]h&]uh1jhjbQhMWhjDQubah}(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.chMYhj(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.chMXhj(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.chMpubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQhhhjRhMpubjg)}(h sysfs_streqh]jm)}(h sysfs_streqh]h sysfs_streq}(hj#RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjRhMpubj)}(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&]jjuh1jhjQhhhjRhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjRhMpubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjRhMphjQhhubj)}(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.chMphjShhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjRhMpubeh}(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.chMthj&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.chMqhjESubj)}(hhh]h)}(h one stringh]h one string}(hjdShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ShMqhjaSubah}(h]h ]h"]h$]h&]uh1jhjESubeh}(h]h ]h"]h$]h&]uh1jhj`ShMqhjBSubj)}(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.chMrhj~Subj)}(hhh]h)}(hanother stringh]hanother string}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMrhjSubah}(h]h ]h"]h$]h&]uh1jhj~Subeh}(h]h ]h"]h$]h&]uh1jhjShMrhjBSubeh}(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.chMthj&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.chMshj&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.hhMOubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjjhMOubjg)}(hstrlcath]jm)}(hjjh]hstrlcat}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjjhMOubj)}(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&]jjuh1jhjjhhhjjhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMOubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMOhjjhhubj)}(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.hhMOhj6lhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMOubeh}(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.hhMShjUlubj)}(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.hhMQhjtlubj)}(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&]uh1hhjlhMQhjlubah}(h]h ]h"]h$]h&]uh1jhjtlubeh}(h]h ]h"]h$]h&]uh1jhjlhMQhjqlubj)}(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.hhMRhjlubj)}(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&]uh1hhjlhMRhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMRhjqlubj)}(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.hhMShj 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%mhMShj&mubah}(h]h ]h"]h$]h&]uh1jhj mubeh}(h]h ]h"]h$]h&]uh1jhj%mhMShjqlubeh}(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.hhMUhjUlubh)}(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.hhMThjUlubh)}(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.hhM[hjUlubh)}(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)}(hI**Parameters** ``const char *path`` path to extract the filename from.h](h)}(h**Parameters**h]j)}(hjſh]h Parameters}(hjǿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÿubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjubj)}(hhh]j)}(h7``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.hhMyhj޿ubj)}(hhh]h)}(h"path to extract the filename from.h]h"path to extract the filename from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMuhjubah}(h]h ]h"]h$]h&]uh1jhj޿ubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjۿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj8h]h strtomem_pad}(hjBhhhNhNubah}(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.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!``strtomem_pad (dest, src, pad)``h]j)}(hjth]hstrtomem_pad (dest, src, pad)}(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.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.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)}(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)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hM``pad`` Padding character to fill any remaining bytes of **dest** after copy h](j)}(h``pad``h]j)}(hj:h]hpad}(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)}(hDPadding character to fill any remaining bytes of **dest** after copyh](h1Padding character to fill any remaining bytes of }(hjShhhNhNubj)}(h**dest**h]hdest}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh after copy}(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.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)}(hjh]hstrtomem}(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&]jjjj/jj/jjjuh1hhhhj/`hNhNubh)}(h``strtomem (dest, src)``h]j)}(hj5h]hstrtomem (dest, src)}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhj]hMhj/`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)}(hjjh]h Parameters}(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.hhMhjdubj)}(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)}(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)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjdubh)}(hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().h]hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjdubh)}(hrNote that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](hNote that the size of }(hj"hhhNhNubj)}(h**dest**h]hdest}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh& is not an argument, as the length of }(hj"hhhNhNubj)}(h**dest**h]hdest}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh& must be discoverable by the compiler.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjdubeh}(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)}(hjoh]hmemtostr}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.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``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.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)}(hj8h]hsrc}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj2ubj)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.h]hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be known at compile-time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]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)}(hjh]h memtostr_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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h``memtostr_pad (dest, src)``h]j)}(hj!h]hmemtostr_pad (dest, src)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.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}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhjIhMhj/`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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjPubj)}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjuh]hdest}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjPubh)}(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.hhMhjPubh)}(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}(hj(hhhNhNubah}(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.hhMhjPubeh}(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)}(hj[h]h memset_after}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjxhMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjxhMubeh}(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&]uh1jhjhMhj/`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)}(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.hhMhjubj)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hj$h]hv}(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.hhMhjubj)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h<``member`` after which struct member to start writing bytes 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.hhMhjWubj)}(hhh]h)}(h0after which struct member to start writing bytesh]h0after which struct member to start writing bytes}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubeh}(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)}(hjh]hmemset_startat}(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&]jjjj jj jjjuh1hhhhj/`hNhNubh)}(h#``memset_startat (obj, v, member)``h]j)}(hjh]hmemset_startat (obj, v, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`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}(hj-hhhNhNubah}(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&]uh1jhj;hMhj/`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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjBubj)}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hjgh]hobj}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjaubj)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj^ubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj^ubj)}(h-``member`` struct member to start writing at h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh]h)}(h!struct member to start writing ath]h!struct member to start writing at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj^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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjBubh)}(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.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjBubeh}(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}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jR )}jE str_has_prefixsbc.str_has_prefixasbuh1hhjUhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhj}hMubjg)}(hstr_has_prefixh]jm)}(hjzh]hstr_has_prefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhj}hMubj)}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](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 }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprefixh]hprefix}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhj}hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhj}hMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjNhhubj)}(hhh]h)}(h#Test if a string has a given prefixh]h#Test if a string has a given prefix}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjshhubah}(h]h ]h"]h$]h&]uh1jhjNhhhj}hMubeh}(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)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h(The string to see if **str** starts withh](hThe string to see if }(hj hhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh starts with}(hj hhhNhNubeh}(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&]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:}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjVubj)}(hhh]h)}(h(strncmp(str, prefix, sizeof(prefix) - 1)h]h(strncmp(str, prefix, sizeof(prefix) - 1)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjSubah}(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.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh](j)}(h4strlen(**prefix**) if **str** starts with **prefix**h]h)}(hjh](hstrlen(}(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh starts with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h+0 if **str** does not start with **prefix**h]h)}(hjh](h0 if }(hjhhhNhNubj)}(h**str**h]hstr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh does not start with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhM!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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM,ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjkhM,ubjg)}(h strstartsh]jm)}(h strstartsh]h strstarts}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjkhM,ubj)}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](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)}(hprefixh]hprefix}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjkhM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjkhM,ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjkhM,hjShhubj)}(hhh]h)}(h#does **str** start with **prefix**?h](hdoes }(hjehhhNhNubj)}(h**str**h]hstr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh start with }(hjehhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh?}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM,hjbhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjkhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(he**Parameters** ``const char *str`` string to examine ``const char *prefix`` prefix to look for.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.hhM0hjubj)}(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.hhM-hjubj)}(hhh]h)}(hstring to examineh]hstring to examine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h*``const char *prefix`` prefix to look for.h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM/hjubj)}(hhh]h)}(hprefix to look for.h]hprefix to look for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjkhKKubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhKKubjg)}(hkstrduph]jm)}(hkstrduph]hkstrdup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjkhKKubj)}(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 jsb c.kstrdupasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjkhKKubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhKKhjRhhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKhj[hhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj/`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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjzubj)}(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.chKLhjubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.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&]uh1jhjhKMhjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(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.chKOhjzubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hj)hhhNhNubj)}(h**s**h]hs}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh or }(hj)hhhNhNubj)}(h``NULL``h]hNULL}(hjChhhNhNubah}(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.chKOhjzubeh}(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}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhKYubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhhjhKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhKYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhKYubjg)}(h kstrdup_consth]jm)}(h kstrdup_consth]h kstrdup_const}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhKYubj)}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(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}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.kstrdup_constasbuh1hhj9ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hgfph]hgfp}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhKYubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhKYhjqhhubj)}(hhh]h)}(h0conditionally duplicate an existing const stringh]h0conditionally duplicate an existing const string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYhjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhKYubeh}(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[hj 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'hK[hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hK[hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hjMh]hNote}(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.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().}(hjchhhNhNubah}(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)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubh)}(hHsource string if it is in .rodata section otherwise fallback to kstrdup.h]hHsource string if it is in .rodata section otherwise fallback to kstrdup.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubeh}(h]h ] kernelindentah"]h$]h&]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 }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t maxh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.kstrndupasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubjm)}(hmaxh]hmax}(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 ]j~ c.kstrndupasbuh1hhjubj)}(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&]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)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKqhjubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjCh]h const char *s}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKnhj=ubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKnhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKnhj:ubj)}(h5``size_t max`` read at most **max** chars from **s** h](j)}(h``size_t max``h]j)}(hj|h]h size_t max}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKohjvubj)}(hhh]h)}(h%read at most **max** chars from **s**h](h read at most }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh chars from }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhKohjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKohj:ubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.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&]uh1jhjhKphj: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&]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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(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 }(hjMhhhNhNubj)}(h**s**h]hs}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh or }(hjMhhhNhNubj)}(h``NULL``h]hNULL}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh in case of error}(hjMhhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/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&]uh1jhjhhhjhK}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK}ubjg)}(hkmemduph]jm)}(hkmemduph]hkmemdup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK}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*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(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}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.kmemdupasbuh1hhjCubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hlenh]hlen}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(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 ]jf c.kmemdupasbuh1hhjubj)}(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&]jjuh1jhjhhhjhK}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK}hjhhubj)}(hhh]h)}(hduplicate region of memoryh]hduplicate region of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK}ubeh}(h]h ](jfunctioneh"]h$]h&]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)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h/``const void *src`` memory region to duplicate 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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj%ubj)}(hhh]h)}(hmemory region to duplicateh]hmemory region to duplicate}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj"ubj)}(h$``size_t len`` memory region length 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)}(hmemory region lengthh]hmemory region length}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj"ubj)}(h``gfp_t gfp`` GFP mask to use h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hGFP mask to useh]hGFP mask to use}(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&]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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhKubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjOhKubjg)}(h kmemdup_nulh]jm)}(h kmemdup_nulh]h kmemdup_nul}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhKubj)}(h&(const char *s, size_t len, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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 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 jqsb c.kmemdup_nulasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]j c.kmemdup_nulasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(hgfph]hgfp}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhKubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhKhj6hhubj)}(hhh]h)}(h5Create a NUL-terminated string from unterminated datah]h5Create a NUL-terminated string from unterminated data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX **Parameters** ``const char *s`` The data to stringify ``size_t len`` The size of the data ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Return** newly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h(``const char *s`` The data to stringify h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.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)}(hj=h]h gfp_t gfp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj7ubj)}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjxh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hOnewly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with NUL-termination or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]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&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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 }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh__user}(hj'hhhNhNubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(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 ]jR )}jE jsb c.memdup_userasbuh1hhjubj)}(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'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&]jjjj jj jjjuh1hhhhj/`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)}(hj6h]hconst void __user *src}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj0ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj-ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjoh]h size_t len}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjiubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhKhj-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&]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*}(hj hhhNhNubah}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh__user}(hj5hhhNhNubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(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 jsbc.vmemdup_userasbuh1hhjubj)}(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&]noemphjjuh1jhj1ubeh}(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)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjDh]hconst void __user *src}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj>ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj;ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hj}h]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjwubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhKhj;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&]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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubjg)}(h strndup_userh]jm)}(h strndup_userh]h strndup_user}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(const char __user *s, long n)h](j)}(hconst char __user *sh](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh__user}(hjChhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(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&]noemphjjuh1jhj?ubeh}(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,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&]uh1jhjhhhj hMubeh}(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)}(hj;h]hconst char __user *s}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhj5ubj)}(hhh]h)}(hThe string to duplicateh]hThe string to duplicate}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(hH``long n`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h ``long n``h]j)}(hjth]hlong n}(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.chMhjnubj)}(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*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM$ubjg)}(hmemdup_user_nulh]jm)}(hmemdup_user_nulh]hmemdup_user_nul}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM$ubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh__user}(hjLhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(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 j6sbc.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&]noemphjjuh1jhjHubeh}(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&]jjjj2jj2jjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM(hj6ubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM&hjUubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM&hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM&hjRubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM'hjubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(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)hj6ubh)}(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)hj6ubeh}(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&]uh1hhj hhhhhK/ubh)}(h7The Linux kernel provides more basic utility functions.h]h7The Linux kernel provides more basic utility functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hj hhubh)}(hhh](h)}(hBit Operationsh]hBit Operations}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hhhhhK4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_bit (C function) c.set_bithNtauh1hhj*hhhNhNubh)}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjbhKubjg)}(hset_bith]jm)}(hset_bith]hset_bit}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhKubj)}(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)}(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 }(hj hhhNhNubah}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhKhjIhhubj)}(hhh]h)}(hAtomically set a bit in memoryh]hAtomically set a bit in memory}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjNhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj*hNhNubj)}(hX>**Parameters** ``long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjmubj)}(hhh](j)}(h``long nr`` the bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.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&]uh1jhjhKhjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.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&]uh1jhjhKhjubeh}(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&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjmubh)}(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.hhKhjmubh)}(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}(hj3hhhNhNubah}(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.hhKhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit (C function) c.clear_bithNtauh1hhj*hhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjzhK!ubjg)}(h clear_bith]jm)}(h clear_bith]h clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjzhK!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 }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(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&]jjuh1jhjhhhhjzhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhK!ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhK!hjahhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!hjehhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK"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&]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#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&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(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$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hchange_bit (C function) c.change_bithNtauh1hhj*hhhNhNubh)}(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}(hjbhhhNhNubah}(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 }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjphK.ubjg)}(h change_bith]jm)}(h change_bith]h change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjphK.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}(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)}(haddrh]haddr}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphK.ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphK.hjWhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle 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&]uh1jhjWhhhjphK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj*hNhNubj)}(hX9**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]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.hhK2hjzubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK/hjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(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&]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&]uh1jhjhK0hjubeh}(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.hhK2hjzubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK1hjzubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hj8hhhNhNubj)}(h**nr**h]hnr}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK3hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_set_bit (C function)c.test_and_set_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(h=bool test_and_set_bit (long nr, volatile unsigned long *addr)h]j)}(hubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhK>ubjg)}(htest_and_set_bith]jm)}(htest_and_set_bith]htest_and_set_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhK>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}(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)}(haddrh]haddr}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhK>ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjnhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK>hjqhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjubj)}(hhh](j)}(h``long nr`` Bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK?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&]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:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(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.hhKAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_clear_bit (C function)c.test_and_clear_bithNtauh1hhj*hhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhj{hKLubjg)}(htest_and_clear_bith]jm)}(htest_and_clear_bith]htest_and_clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhj{hKLubj)}(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 }(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&]jjuh1jhjjhhhj{hKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj{hKLubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj{hKLhjchhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear 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.hhKLhjfhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj{hKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKMhjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.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&]uh1jhjhKNhjubeh}(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&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h test_and_change_bit (C function)c.test_and_change_bithNtauh1hhj*hhhNhNubh)}(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}(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.hhKZubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjphKZubjg)}(htest_and_change_bith]jm)}(htest_and_change_bith]htest_and_change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjphKZubj)}(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}(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)}(haddrh]haddr}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjphKZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjphKZubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjphKZhjXhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change 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.hhKZhj[hhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjphKZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]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^hjzubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK[hjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(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&]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.hhK^hjzubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK]hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___set_bit (C function) c.___set_bithNtauh1hhj*hhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhKubjg)}(h ___set_bith]jm)}(h ___set_bith]h ___set_bit}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhKubj)}(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*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhKhjMhhubj)}(hhh]h)}(hSet a bit in memoryh]hSet a bit in memory}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjmhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX,**Parameters** ``unsigned long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh](j)}(h$``unsigned long nr`` the bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.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&]uh1jhjhKhjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.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&]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&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubh)}(hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___clear_bit (C function)c.___clear_bithNtauh1hhj*hhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhK!ubjg)}(h ___clear_bith]jm)}(h ___clear_bith]h ___clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjxhK!ubj)}(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}(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)}(haddrh]haddr}(hjXhhhNhNubah}(h]%h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhK!ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhK!hj_hhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!hjhhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX0**Parameters** ``unsigned long nr`` the bit to clear ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjubj)}(hhh](j)}(h&``unsigned long nr`` the bit to clear h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK"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&]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:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjubh)}(hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___change_bit (C function)c.___change_bithNtauh1hhj*hhhNhNubh)}(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}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjhK1ubjg)}(h ___change_bith]jm)}(h ___change_bith]h ___change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhK1ubj)}(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}(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&]jjuh1jhjxhhhjhK1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhK1ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhK1hjqhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhK1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX2**Parameters** ``unsigned long nr`` the bit to change ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK5hjubj)}(hhh](j)}(h'``unsigned long nr`` the bit to change h](j)}(h``unsigned long nr``h]j)}(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&]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.hhK3hjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hK3hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hK3hjubeh}(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&]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.}(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.hhK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ___test_and_set_bit (C function)c.___test_and_set_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hIbool ___test_and_set_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hHbool ___test_and_set_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKYubjg)}(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&]jjuh1jfhjhhhjhKYubj)}(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 }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(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&]jjuh1jhjhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKYhjhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK]hjubj)}(hhh](j)}(h ``unsigned long nr`` Bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK[hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hK[hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hK[hjubeh}(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: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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"___test_and_clear_bit (C function)c.___test_and_clear_bithNtauh1hhj*hhhNhNubh)}(hhh](j)}(hKbool ___test_and_clear_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hJbool ___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/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&]uh1jhjhhhjhKhubjg)}(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&]jjuh1jfhjhhhjhKhubj)}(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}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj )}(hlongh]hlong}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hjqhhhNhNubah}(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&]jjuh1jhjhhhjhKhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhhjhhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h 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&]uh1hhj hKihj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKihjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj0h]hvolatile unsigned long *addr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKjhj*ubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKjhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKjhjubeh}(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&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#___test_and_change_bit (C function)c.___test_and_change_bithNtauh1hhj*hhhNhNubh)}(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}(hj$hhhNhNubah}(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&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKwhjhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubj)}(hhh](j)}(h#``unsigned long nr`` Bit to change h](j)}(h``unsigned long nr``h]j)}(hjh]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.hhKxhjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hj!hhhNhNubah}(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)}(hjAh]hvolatile unsigned long *addr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKyhj;ubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKyhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKyhjubeh}(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:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h_test_bit (C function) c._test_bithNtauh1hhj*hhhNhNubh)}(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 }(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)}(hnrh]hnr}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(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&]jjjj jj jjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjh]h 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)}(hj4h]hunsigned long nr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKhj+ubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjmh]h"const volatile unsigned long *addr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjgubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h_test_bit_acquire (C function)c._test_bit_acquirehNtauh1hhj*hhhNhNubh)}(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 }(hj-hhhNhNubah}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(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&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjh]h 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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj4ubj)}(hhh]h)}(hbit number to testh]hbit number to test}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhj1ubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjsh]h"const volatile unsigned long *addr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjmubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit_unlock (C function)c.clear_bit_unlockhNtauh1hhj*hhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hlongh]hlong}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(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&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX7**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(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)}(hj9h]hvolatile unsigned long *addr}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK!hj3ubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhK!hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhK!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&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubh)}(hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h]hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"test_and_set_bit_lock (C function)c.test_and_set_bit_lockhNtauh1hhj*hhhNhNubh)}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj )}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj )}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj)}(hjh]h*}(hj}hhhNhNubah}(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&]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&]jjjjjjjjjuh1hhhhj*hNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h](h)}(h**Parameters**h]j)}(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&]uh1hhj hK0hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK0hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj.h]hvolatile unsigned long *addr}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK1hj(ubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChK1hjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChK1hjubeh}(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.hhK3hjubh)}(hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h]hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(xor_unlock_is_negative_byte (C function)c.xor_unlock_is_negative_bytehNtauh1hhj*hhhNhNubh)}(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}(hj"hhhNhNubah}(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&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj )}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(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)}(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.}(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&]jjjjjjjjjuh1hhhhj*hNhNubj)}(hX-**Parameters** ``unsigned long mask`` Change the bits which are set in this mask. ``volatile unsigned long *addr`` The address of the word containing the byte to change. **Description** Changes some of bits 0-6 in the word pointed to by **addr**. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock. **Return** Whether the top bit of the byte is set.h](h)}(h**Parameters**h]j)}(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.hhKBhjubj)}(hhh](j)}(hC``unsigned long mask`` Change the bits which are set in this mask. h](j)}(h``unsigned long mask``h]j)}(hjh]hunsigned long mask}(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+Change the bits which are set in this mask.h]h+Change the bits which are set in this mask.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(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}(hjAhhhNhNubah}(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.hhKAhj9ubj)}(hhh]h)}(h6The address of the word containing the byte to change.h]h6The address of the word containing the byte to change.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKAhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKAhjubeh}(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&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKChjubh)}(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 }(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKBhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKHhjubh)}(h'Whether the top bit of the byte is set.h]h'Whether the top bit of the byte is set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj*hhhNhNubeh}(h]bit-operationsah ]h"]bit operationsah$]h&]uh1hhj hhhhhK4ubh)}(hhh](h)}(hBitmap Operationsh]hBitmap Operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK@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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhjhhubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhjhhubh)}(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.hhKzhjhhubh)}(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:}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK!hjhhubh)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK$hjhhubj#C)}(hX 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_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]hX 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_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}hjRsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK)hjhhubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhKYhjhhubh)}(hAAlso the following operations in asm/bitops.h apply to bitmaps.::h]h@Also the following operations in asm/bitops.h apply to bitmaps.:}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKchjhhubj#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)}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKehjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__bitmap_shift_right (C function)c.__bitmap_shift_righthNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKRubjg)}(h__bitmap_shift_righth]jm)}(h__bitmap_shift_righth]h__bitmap_shift_right}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKRubj)}(hN(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned 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}(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)}(hdsth]hdst}(hj) hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjB hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj> ubj)}(h h]h }(hjO hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj> ubj )}(hunsignedh]hunsigned}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj> ubj)}(h h]h }(hjk hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj> ubj )}(hlongh]hlong}(hjy 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&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKRhjhhubj)}(hhh]h)}(h+logical right shift of the bits in a bitmaph]h+logical right shift of the bits in a bitmap}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKRhj3 hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjN jjN jjjuh1hhhhjhNhNubj)}(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)}(hjX h]h Parameters}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKVhjR ubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjw h]hunsigned long *dst}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKShjq ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKShj ubah}(h]h ]h"]h$]h&]uh1jhjq ubeh}(h]h ]h"]h$]h&]uh1jhj hKShjn 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 hKThjn 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 hKUhjn 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}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7 hKVhj8 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj7 hKVhjn ubeh}(h]h ]h"]h$]h&]uh1jhjR 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.chKXhjR 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.}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKWhjR ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __bitmap_shift_left (C function)c.__bitmap_shift_lefthNtauh1hhjhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chK~ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hK~ubjg)}(h__bitmap_shift_lefth]jm)}(h__bitmap_shift_lefth]h__bitmap_shift_left}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hK~ubj)}(hV(unsigned long *dst, const unsigned long *src, unsigned int shift, 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 *srch](j)}(hjh]hconst}(hj= hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9 ubj)}(h h]h }(hjJ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9 ubj )}(hunsignedh]hunsigned}(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9 ubj)}(h h]h }(hjf hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9 ubj )}(hlongh]hlong}(hjt hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9 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)}(hsrch]hsrc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9 ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int 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 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)}(hshifth]hshift}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 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 }(hj1 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 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*logical left shift of the bits in a bitmaph]h*logical left shift of the bits in a bitmap}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chK~hjf hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hK~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(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}(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.chKhj ubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hj h]hunsigned long *dst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(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 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.chKhj ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(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 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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hKhj ubj)}(h,``unsigned int nbits`` bitmap size, in bits h](j)}(h``unsigned int nbits``h]j)}(hjUh]hunsigned int nbits}(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)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhj 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:78: ./lib/bitmap.chKhj ubh)}(hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h]hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_cut (C function) c.bitmap_cuthNtauh1hhjhhhNhNubh)}(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 }(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*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdsth]hdst}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int cuth](j )}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hcuth]hcut}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned long sizeh](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)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj )}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hnrh]hnr}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned long align_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)}(h align_maskh]h align_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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 }(hj hhhNhNubah}(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&]noemphjjuh1jhj6ubeh}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj^ubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjh]hunsigned long *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj}ubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(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&]uh1jhjhMhjzubj)}(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&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjzubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hj.h]hunsigned int nr}(hj0hhhNhNubah}(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+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjzubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjgh]hunsigned long align_mask}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjaubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjzubj)}(h?``unsigned long align_offset`` Alignment offset for zero area. h](j)}(h``unsigned long align_offset``h]j)}(hjh]hunsigned long align_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubeh}(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:78: ./lib/bitmap.chMhj^ubh)}(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}(hj hhhNhNubah}(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.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_remap (C function)c.bitmap_remaphNtauh1hhjhhhNhNubh)}(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}(hjDhhhNhNubah}(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 }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMubjg)}(h bitmap_remaph]jm)}(h bitmap_remaph]h bitmap_remap}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMubj)}(hv(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]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}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(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 }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj )}(hunsignedh]hunsigned}(hjshhhNhNubah}(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&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(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*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj )}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubjm)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(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)}(h8Apply map defined by a pair of bitmaps to another bitmaph]h8Apply map defined by a pair of bitmaps to another bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.chMhj ubj)}(hhh]h)}(hsubset to be remappedh]hsubset to be remapped}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hj_h]hconst unsigned long *old}(hjahhhNhNubah}(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.chMhjYubj)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjh]hconst unsigned long *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(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}(hjNhhhNhNubah}(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}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh is less than the weight of }(hj"hhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh*, map the position of the n-th set bit in }(hj"hhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh( to the position of the m-th set bit in }(hj"hhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh, where m == n % w.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hIf either of the **old** and **new** bitmaps are empty, or if **src** and **dst** point to the same location, then this routine copies **src** to **dst**.h](hIf either of the }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bitmaps are empty, or if }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 point to the same location, then this routine copies }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**dst**h]hdst}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hj<hhhNhNubj)}(h**old**h]hold}(hjDhhhNhNubah}(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 }(hj]hhhNhNubj)}(h**src**h]hsrc}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh, placing the result in }(hj]hhhNhNubj)}(h**dst**h]hdst}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh&, clearing any bits previously set in }(hj]hhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.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 }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh has bits 4 through 7 set, and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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 }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 comes into this routine with bits 1, 5 and 7 set, then }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) should leave with bits 1, 13 and 15 set.}(hjhhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_bitremap (C function)c.bitmap_bitremaphNtauh1hhjhhhNhNubh)}(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}(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)}(hbitmap_bitremaph]jm)}(hbitmap_bitremaph]hbitmap_bitremap}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'hMubj)}(hJ(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j)}(h int oldbith](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubjm)}(holdbith]holdbit}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *oldh](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)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hint bitsh](j )}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(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)}(h6Apply map defined by a pair of bitmaps to a single bith]h6Apply map defined by a pair of bitmaps to a single bit}(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&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.chM hjubj)}(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.chM hjubj)}(hhh]h)}(hbit position to be mappedh]hbit position to be mapped}(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)}(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.chM hj7 ubj)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(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 hjubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjv h]hconst unsigned long *new}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hjp ubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(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 hjubj)}(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.chM hj 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 hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM 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&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hj!hhhNhNubj)}(h**old**h]hold}(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}(hjP!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh is less than the weight of }(hj!hhhNhNubj)}(h**old**h]hold}(hjb!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh*, map the position of the n-th set bit in }(hj!hhhNhNubj)}(h**old**h]hold}(hjt!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.chM hjubh)}(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)}(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.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_arr32 (C function)c.bitmap_from_arr32hNtauh1hhjhhhNhNubh)}(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}(hjF"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB"hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hjU"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB"hhhjT"hMubjg)}(hbitmap_from_arr32h]jm)}(hbitmap_from_arr32h]hbitmap_from_arr32}(hjg"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjB"hhhjT"hMubj)}(h;(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](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)}(hbitmaph]hbitmap}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{"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 ji"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&]noemphjjuh1jhj{"ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjS#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO#ubj)}(h h]h }(hja#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO#ubj )}(hinth]hint}(hjo#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO#ubj)}(h h]h }(hj}#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO#ubjm)}(hnbitsh]hnbits}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{"ubeh}(h]h ]h"]h$]h&]jjuh1jhjB"hhhjT"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>"hhhjT"hMubah}(h]j9"ah ](jjeh"]h$]h&]jj)jhuh1hhjT"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;"hhhjT"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjhNhNubj)}(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}(hj1$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}(hjH$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD$hMhjE$ubah}(h]h ]h"]h$]h&]uh1jhj)$ubeh}(h]h ]h"]h$]h&]uh1jhjD$hMhj#ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hjh$h]hunsigned int nbits}(hjj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjb$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.chMhj~$ubah}(h]h ]h"]h$]h&]uh1jhjb$ubeh}(h]h ]h"]h$]h&]uh1jhj}$hMhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr32 (C function)c.bitmap_to_arr32hNtauh1hhjhhhNhNubh)}(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 }(hj0%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj %ubj)}(hjh]h*}(hj>%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj %ubjm)}(hbufh]hbuf}(hjK%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj %ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hjd%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`%ubj)}(h h]h }(hjq%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)}(hbitmaph]hbitmap}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`%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&]jjjjW&jjW&jjjuh1hhhhjhNhNubj)}(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)}(hja&h]h Parameters}(hjc&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_&ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM*hj[&ubj)}(hhh](j)}(h@``u32 *buf`` array of u32 (in host byte order), the dest bitmap h](j)}(h ``u32 *buf``h]j)}(hj&h]hu32 *buf}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM'hjz&ubj)}(hhh]h)}(h2array of u32 (in host byte order), the dest bitmaph]h2array of u32 (in host byte order), the dest bitmap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM'hj&ubah}(h]h ]h"]h$]h&]uh1jhjz&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM'hjw&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(hjw&ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj&h]hunsigned int nbits}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM*hj&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'hM*hjw&ubeh}(h]h ]h"]h$]h&]uh1jhj[&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_arr64 (C function)c.bitmap_from_arr64hNtauh1hhjhhhNhNubh)}(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}(hjZ'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjV'hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM?ubj)}(h h]h }(hji'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV'hhhjh'hM?ubjg)}(hbitmap_from_arr64h]jm)}(hbitmap_from_arr64h]hbitmap_from_arr64}(hj{'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjw'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjV'hhhjh'hM?ubj)}(h;(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](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)}(hbitmaph]hbitmap}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'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 j}'sbc.bitmap_from_arr64asbuh1hhj'ubj)}(h h]h }(hj3(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjA(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hbufh]hbuf}(hjN(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjg(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc(ubj)}(h h]h }(hju(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc(ubj )}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc(ubjm)}(hnbitsh]hnbits}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjV'hhhjh'hM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjR'hhhjh'hM?ubah}(h]jM'ah ](jjeh"]h$]h&]jj)jhuh1hhjh'hM?hjO'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.chM?hj(hhubah}(h]h ]h"]h$]h&]uh1jhjO'hhhjh'hM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhjhNhNubj)}(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.chMChj(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.chM@hj)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)hM@hj )ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM@hj)ubj)}(hH``const u64 *buf`` array of u64 (in host byte order), the source bitmap h](j)}(h``const u64 *buf``h]j)}(hjC)h]hconst u64 *buf}(hjE)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMAhj=)ubj)}(hhh]h)}(h4array of u64 (in host byte order), the source bitmaph]h4array of u64 (in host byte order), the source bitmap}(hj\)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX)hMAhjY)ubah}(h]h ]h"]h$]h&]uh1jhj=)ubeh}(h]h ]h"]h$]h&]uh1jhjX)hMAhj)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&]uh1jhjz)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMChjv)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.chMBhj)ubah}(h]h ]h"]h$]h&]uh1jhjv)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMChj)ubeh}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr64 (C function)c.bitmap_to_arr64hNtauh1hhjhhhNhNubh)}(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.chM]ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj)hM]ubjg)}(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)hM]ubj)}(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 }(hjD*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjR*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}(hjx*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt*ubj )}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjt*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt*ubj )}(hlongh]hlong}(hj*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&]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 u64 array of bitsh]h2copy the contents of bitmap to a u64 array of bits}(hjS+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM]hjP+hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjk+jjk+jjjuh1hhhhjhNhNubj)}(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)}(hju+h]h Parameters}(hjw+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs+ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMahjo+ubj)}(hhh](j)}(h@``u64 *buf`` array of u64 (in host byte order), the dest bitmap h](j)}(h ``u64 *buf``h]j)}(hj+h]hu64 *buf}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM^hj+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+hM^hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM^hj+ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj+h]hconst unsigned long *bitmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM_hj+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_hj+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.chMahj,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,hMahj+ubeh}(h]h ]h"]h$]h&]uh1jhjo+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_pos_to_ord (C function)c.bitmap_pos_to_ordhNtauh1hhjhhhNhNubh)}(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}(hjn,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjj,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&]uh1jhjj,hhhj|,hMubjg)}(hbitmap_pos_to_ordh]jm)}(hbitmap_pos_to_ordh]hbitmap_pos_to_ord}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjj,hhhj|,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&]noemphjjuh1jhj,ubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj$-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj -ubj)}(h h]h }(hj2-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj -ubj )}(hinth]hint}(hj@-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj -ubj)}(h h]h }(hjN-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj -ubjm)}(hposh]hpos}(hj\-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj -ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hju-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq-ubj )}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq-ubjm)}(hnbitsh]hnbits}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjj,hhhj|,hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjf,hhhj|,hMubah}(h]ja,ah ](jjeh"]h$]h&]jj)jhuh1hhj|,hMhjc,hhubj)}(hhh]h)}(h3find ordinal of set bit at given position in bitmaph]h3find ordinal of set bit at given position in bitmap}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjc,hhhj|,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjhNhNubj)}(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)}(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:81: ./lib/bitmap.chMhj-ubj)}(hhh](j)}(h1``const unsigned long *buf`` pointer to a bitmap h](j)}(h``const unsigned long *buf``h]j)}(hj.h]hconst unsigned long *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:81: ./lib/bitmap.chMhj.ubj)}(hhh]h)}(hpointer to a bitmaph]hpointer to a bitmap}(hj1.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-.hMhj..ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj-.hMhj.ubj)}(hJ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) h](j)}(h``unsigned int pos``h]j)}(hjQ.h]hunsigned int pos}(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:81: ./lib/bitmap.chMhjK.ubj)}(hhh]h)}(h4a bit position in **buf** (0 <= **pos** < **nbits**)h](ha bit position in }(hjj.hhhNhNubj)}(h**buf**h]hbuf}(hjr.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj.ubh (0 <= }(hjj.hhhNhNubj)}(h**pos**h]hpos}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj.ubh < }(hjj.hhhNhNubj)}(h **nbits**h]hnbits}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj.ubh)}(hjj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjf.hMhjg.ubah}(h]h ]h"]h$]h&]uh1jhjK.ubeh}(h]h ]h"]h$]h&]uh1jhjf.hMhj.ubj)}(h@``unsigned int nbits`` number of valid bit positions in **buf** 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:81: ./lib/bitmap.chMhj.ubj)}(hhh]h)}(h(number of valid bit positions in **buf**h](h!number of valid bit positions in }(hj.hhhNhNubj)}(h**buf**h]hbuf}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(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:81: ./lib/bitmap.chMhj-ubh)}(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 }(hj/hhhNhNubj)}(h**pos**h]hpos}(hj'/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh in }(hj/hhhNhNubj)}(h**buf**h]hbuf}(hj9/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh (of length }(hj/hhhNhNubj)}(h **nbits**h]hnbits}(hjK/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhA) to the ordinal of which set bit it is. If it is not set or if }(hj/hhhNhNubj)}(h**pos**h]hpos}(hj]/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh( is not a valid bit position, map to -1.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubh)}(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 }(hjv/hhhNhNubj)}(h**buf**h]hbuf}(hj~/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh, then }(hjv/hhhNhNubj)}(h**pos**h]hpos}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubhL values 4 through 7 will get mapped to 0 through 3, respectively, and other }(hjv/hhhNhNubj)}(h**pos**h]hpos}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh% values will get mapped to -1. When }(hjv/hhhNhNubj)}(h**pos**h]hpos}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh" value 7 gets mapped to (returns) }(hjv/hhhNhNubj)}(h**ord**h]hord}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubhZ value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in }(hjv/hhhNhNubj)}(h**buf**h]hbuf}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv/ubh.}(hjv/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubh)}(hDThe bit positions 0 through **bits** are valid positions in **buf**.h](hThe bit positions 0 through }(hj/hhhNhNubj)}(h**bits**h]hbits}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh are valid positions in }(hj/hhhNhNubj)}(h**buf**h]hbuf}(hj 0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_onto (C function) c.bitmap_ontohNtauh1hhjhhhNhNubh)}(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}(hjD0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@0hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM/ubj)}(h h]h }(hjS0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@0hhhjR0hM/ubjg)}(h bitmap_ontoh]jm)}(h bitmap_ontoh]h bitmap_onto}(hje0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@0hhhjR0hM/ubj)}(h_(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}0ubj )}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}0ubjm)}(hdsth]hdst}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj )}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj )}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj$1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj21hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(horigh]horig}(hj?1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubj)}(hconst unsigned long *relmaph](j)}(hjh]hconst}(hjX1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT1ubj)}(h h]h }(hje1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT1ubj )}(hunsignedh]hunsigned}(hjs1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT1ubj )}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT1ubjm)}(hrelmaph]hrelmap}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj )}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}( h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hbitsh]hbits}(hj 2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy0ubeh}(h]h ]h"]h$]h&]jjuh1jhj@0hhhjR0hM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<0hhhjR0hM/ubah}(h]j70ah ](jjeh"]h$]h&]jj)jhuh1hhjR0hM/hj90hhubj)}(hhh]h)}(h(translate one bitmap relative to anotherh]h(translate one bitmap relative to another}(hj32hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM/hj02hhubah}(h]h ]h"]h$]h&]uh1jhj90hhhjR0hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjK2jjK2jjjuh1hhhhjhNhNubj)}(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)}(hjU2h]h Parameters}(hjW2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS2ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM3hjO2ubj)}(hhh](j)}(h3``unsigned long *dst`` resulting translated bitmap h](j)}(h``unsigned long *dst``h]j)}(hjt2h]hunsigned long *dst}(hjv2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM0hjn2ubj)}(hhh]h)}(hresulting translated bitmaph]hresulting translated bitmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM0hj2ubah}(h]h ]h"]h$]h&]uh1jhjn2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM0hjk2ubj)}(h;``const unsigned long *orig`` original untranslated bitmap h](j)}(h``const unsigned long *orig``h]j)}(hj2h]hconst unsigned long *orig}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM1hj2ubj)}(hhh]h)}(horiginal untranslated bitmaph]horiginal untranslated bitmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM1hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM1hjk2ubj)}(hD``const unsigned long *relmap`` bitmap relative to which translated h](j)}(h``const unsigned long *relmap``h]j)}(hj2h]hconst unsigned long *relmap}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM2hj2ubj)}(hhh]h)}(h#bitmap relative to which translatedh]h#bitmap relative to which translated}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM2hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM2hjk2ubj)}(h>``unsigned int bits`` number of bits in each of these bitmaps h](j)}(h``unsigned int bits``h]j)}(hj3h]hunsigned int bits}(hj!3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM3hj3ubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj83hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj43hM3hj53ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj43hM3hjk2ubeh}(h]h ]h"]h$]h&]uh1jhjO2ubh)}(h**Description**h]j)}(hjZ3h]h Description}(hj\3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX3ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM5hjO2ubh)}(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 }(hjp3hhhNhNubj)}(h**dst**h]hdst}(hjx3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh3 iff there exists some m such that the n-th bit of }(hjp3hhhNhNubj)}(h **relmap**h]hrelmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh is set, the m-th bit of }(hjp3hhhNhNubj)}(h**orig**h]horig}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh is set, and the n-th bit of }(hjp3hhhNhNubj)}(h **relmap**h]hrelmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubh is also the m-th _set_ bit of }(hjp3hhhNhNubj)}(h **relmap**h]hrelmap}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp3ubhu. (If you understood the previous sentence the first time your read it, you’re overqualified for your current job.)}(hjp3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM4hjO2ubh)}(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, }(hj3hhhNhNubj)}(h**orig**h]horig}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh is mapped onto (surjectively) }(hj3hhhNhNubj)}(h**dst**h]hdst}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh+, using the map { | the n-th bit of }(hj3hhhNhNubj)}(h **relmap**h]hrelmap}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh is the m-th set bit of }(hj3hhhNhNubj)}(h **relmap**h]hrelmap}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh }.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM:hjO2ubh)}(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 }(hj04hhhNhNubj)}(h**orig**h]horig}(hj84hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubhF above bit number W, where W is the weight of (number of set bits in) }(hj04hhhNhNubj)}(h **relmap**h]hrelmap}(hjJ4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh= are mapped nowhere. In particular, if for all bits m set in }(hj04hhhNhNubj)}(h**orig**h]horig}(hj\4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh, m >= W, then }(hj04hhhNhNubj)}(h**dst**h]hdst}(hjn4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh 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 }(hj04hhhNhNubj)}(h**orig**h]horig}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh 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 }(hj04hhhNhNubj)}(h**dst**h]hdst}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh, for each bit (m) set in }(hj04hhhNhNubj)}(h**orig**h]horig}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj04ubh.}(hj04hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM>hjO2ubj)}(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():}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMahj4ubj)}(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 }(hj4hhhNhNubj)}(h **relmap**h]hrelmap}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh has bits 30-39 set, and }(hj4hhhNhNubj)}(h**orig**h]horig}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhG has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, }(hj4hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh* will have bits 31, 33, 35, 37 and 39 set.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMIhj4ubh)}(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 }(hj5hhhNhNubj)}(h**orig**h]horig}(hj#5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh, it means turn on the bit in }(hj5hhhNhNubj)}(h**dst**h]hdst}(hj55hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhJ corresponding to whatever is the first bit (if any) that is turned on in }(hj5hhhNhNubj)}(h **relmap**h]hrelmap}(hjG5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhO. Since bit 0 was off in the above example, we leave off that bit (bit 30) in }(hj5hhhNhNubj)}(h**dst**h]hdst}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMMhj4ubh)}(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 }(hjr5hhhNhNubj)}(h**orig**h]horig}(hjz5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubh8 (as in the above example), it means turn on the bit in }(hjr5hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubhB corresponding to whatever is the second bit that is turned on in }(hjr5hhhNhNubj)}(h **relmap**h]hrelmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubh. The second bit in }(hjr5hhhNhNubj)}(h **relmap**h]hrelmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubhO that was turned on in the above example was bit 31, so we turned on bit 31 in }(hjr5hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr5ubh.}(hjr5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMRhj4ubh)}(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 }(hj5hhhNhNubj)}(h**dst**h]hdst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh?, because they were the 4th, 6th, 8th and 10th set bits set in }(hj5hhhNhNubj)}(h **relmap**h]hrelmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh), and the 4th, 6th, 8th and 10th bits of }(hj5hhhNhNubj)}(h**orig**h]horig}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh) (i.e. bits 3, 5, 7 and 9) were also set.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMXhj4ubh)}(hX When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**.h](hWhen bit 11 is set in }(hj 6hhhNhNubj)}(h**orig**h]horig}(hj(6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh, it means turn on the bit in }(hj 6hhhNhNubj)}(h**dst**h]hdst}(hj:6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubhC corresponding to whatever is the twelfth bit that is turned on in }(hj 6hhhNhNubj)}(h **relmap**h]hrelmap}(hjL6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh?. In the above example, there were only ten bits turned on in }(hj 6hhhNhNubj)}(h **relmap**h]hrelmap}(hj^6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh% (30..39), so that bit 11 was set in }(hj 6hhhNhNubj)}(h**orig**h]horig}(hjp6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh had no affect on }(hj 6hhhNhNubj)}(h**dst**h]hdst}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubh.}(hj 6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM]hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMahj4ubj)}(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():}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj6ubj)}(hhh](h)}(h-Let's say **relmap** has these ten bits set::h](h Let’s say }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh has these ten bits set:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMdhj6ubj#C)}(h40 41 42 43 45 48 53 61 74 95h]h40 41 42 43 45 48 53 61 74 95}hj6sbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMfhj6ubh)}(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.)}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhhj6ubh)}(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 }(hj6hhhNhNubj)}(h**dst**h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh result:}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMkhj6ubj#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);}hj7sbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMohj6ubh)}(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,7hhhNhNubj)}(h**dst**h]hdst}(hj47hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh would be, for various }(hj,7hhhNhNubj)}(h**orig**h]horig}(hjF7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh’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,7hhhNhNubj)}(h**orig**h]horig}(hjX7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh" bitmap modulo ten (the weight of }(hj,7hhhNhNubj)}(h **relmap**h]hrelmap}(hjj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,7ubh):}(hj,7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMthj6ubj)}(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&]colwidthKuh1jehj7ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj7ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj7ubjZf)}(hhh](je)}(hhh](je)}(hhh]h)}(h**orig**h]j)}(hj7h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM{hj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh]h)}(htmph]htmp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM{hj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh]h)}(h**dst**h]j)}(hj7h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhj7hM{hj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h0h]h0}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM|hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(hj8h]h0}(hj-8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#8hM|hj*8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(h40h]h40}(hjC8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#8hM|hj@8ubah}(h]h ]h"]h$]h&]uh1jehj8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h1h]h1}(hjc8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM}hj`8ubah}(h]h ]h"]h$]h&]uh1jehj]8ubje)}(hhh]h)}(hje8h]h1}(hj{8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq8hM}hjx8ubah}(h]h ]h"]h$]h&]uh1jehj]8ubje)}(hhh]h)}(h41h]h41}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq8hM}hj8ubah}(h]h ]h"]h$]h&]uh1jehj]8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h9h]h9}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM~hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(hj8h]h9}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM~hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(h95h]h95}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM~hj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h10h]h10}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj8ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(hj8h]h0}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj8ubje)}(hhh]h)}(h 40 [#f1]_h](h40 }(hj-9hhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hj79hhhNhNubah}(h]id1ah ]h"]h$]h&]autoKrefidf1docnamecore-api/kernel-apiuh1j59hj-9resolvedKubeh}(h]h ]h"]h$]h&]uh1hhj 9hMhj*9ubah}(h]h ]h"]h$]h&]uh1jehj8ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hjd9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhja9ubah}(h]h ]h"]h$]h&]uh1jehj^9ubje)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hj|9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr9hMhjy9ubah}(h]h ]h"]h$]h&]uh1jehj^9ubje)}(hhh]h)}(h 41 43 48 61h]h 41 43 48 61}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj^9ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubje)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubje)}(hhh]h)}(h40 41 42 43 45h]h40 41 42 43 45}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(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.chMhj9ubah}(h]h ]h"]h$]h&]uh1jehj9ubje)}(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&]uh1jehj9ubje)}(hhh]h)}(h 40 61 74 95h]h 40 61 74 95}(hj1:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj.:ubah}(h]h ]h"]h$]h&]uh1jehj9ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 10 20 30h]h 0 10 20 30}(hjQ:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjN:ubah}(h]h ]h"]h$]h&]uh1jehjK:ubje)}(hhh]h)}(hj8h]h0}(hji:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_:hMhjf:ubah}(h]h ]h"]h$]h&]uh1jehjK:ubje)}(hhh]h)}(h40h]h40}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_:hMhj|:ubah}(h]h ]h"]h$]h&]uh1jehjK:ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(hhh](je)}(hhh]h)}(h 0 11 22 33h]h 0 11 22 33}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h0 1 2 3h]h0 1 2 3}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h 40 41 42 43h]h 40 41 42 43}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jehj7ubje)}(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&]uh1jehj7ubje)}(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&]uh1jehj7;ubje)}(hhh]h)}(h1 2 8h]h1 2 8}(hjU;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK;hMhjR;ubah}(h]h ]h"]h$]h&]uh1jehj7;ubje)}(hhh]h)}(h41 42 74 [#f1]_h](h 41 42 74 }(hjl;hhhNhNubj69)}(h[#f1]_h]h1}(hjt;hhhNhNubah}(h]id2ah ]h"]h$]h&]jF9KjG9jH9jI9jJ9uh1j59hjl;jK9Kubeh}(h]h ]h"]h$]h&]uh1hhjK;hMhji;ubah}(h]h ]h"]h$]h&]uh1jehj7;ubeh}(h]h ]h"]h$]h&]uh1jehj7ubeh}(h]h ]h"]h$]h&]uh1jYfhj7ubeh}(h]h ]h"]h$]h&]colsKuh1jehj7ubah}(h]h ]h"]h$]h&]uh1jehj7ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMzhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj4ubeh}(h]h ]h"]h$]h&]uh1jhjO2ubhfootnote)}(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]jH9ah ]h"]f1ah$]h&](jA9j~;ejF9KjI9jJ9uh1j;hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjO2ubh)}(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.chMhjO2ubh)}(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 }(hjD<hhhNhNubj)}(h**orig**h]horig}(hjL<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD<ubh< are in positions m where m >= W, (where W is the weight of }(hjD<hhhNhNubj)}(h **relmap**h]hrelmap}(hj^<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD<ubh) then }(hjD<hhhNhNubj)}(h**dst**h]hdst}(hjp<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD<ubh# will once again be returned empty.}(hjD<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjO2ubh)}(h:All bits in **dst** not set by the above rule are cleared.h](h All bits in }(hj<hhhNhNubj)}(h**dst**h]hdst}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh' not set by the above rule are cleared.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjO2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_fold (C function) c.bitmap_foldhNtauh1hhjhhhNhNubh)}(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 }(hj1=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hj?=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hdsth]hdst}(hjL=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hje=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja=ubj)}(h h]h }(hjr=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja=ubj )}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja=ubj )}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja=ubjm)}(horigh]horig}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja=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}(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}(hjK>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+>ubj)}(h h]h }(hjY>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+>ubjm)}(hnbitsh]hnbits}(hjg>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)}(h6fold larger bitmap into smaller, modulo specified sizeh]h6fold larger bitmap into smaller, modulo specified size}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *dst`` resulting smaller bitmap ``const unsigned long *orig`` original larger bitmap ``unsigned int sz`` specified size ``unsigned int nbits`` number of bits in each of these bitmaps **Description** For each bit oldbit in **orig**, set bit oldbit mod **sz** in **dst**. Clear all other bits in **dst**. See further the comment and Example [2] for bitmap_onto() for why and how to use this.h](h)}(h**Parameters**h]j)}(hj>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:81: ./lib/bitmap.chMhj>ubj)}(hhh](j)}(h0``unsigned long *dst`` resulting smaller bitmap h](j)}(h``unsigned long *dst``h]j)}(hj>h]hunsigned long *dst}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubj)}(hhh]h)}(hresulting smaller bitmaph]hresulting smaller 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)}(h5``const unsigned long *orig`` original larger bitmap h](j)}(h``const unsigned long *orig``h]j)}(hj ?h]hconst unsigned long *orig}(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:81: ./lib/bitmap.chMhj?ubj)}(hhh]h)}(horiginal larger bitmaph]horiginal larger 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#``unsigned int sz`` specified size h](j)}(h``unsigned int sz``h]j)}(hjD?h]hunsigned int sz}(hjF?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB?ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>?ubj)}(hhh]h)}(hspecified sizeh]hspecified size}(hj]?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY?hMhjZ?ubah}(h]h ]h"]h$]h&]uh1jhj>?ubeh}(h]h ]h"]h$]h&]uh1jhjY?hMhj>ubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hj}?h]hunsigned int nbits}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{?ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjw?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&]uh1jhjw?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:81: ./lib/bitmap.chMhj>ubh)}(hFor each bit oldbit in **orig**, set bit oldbit mod **sz** in **dst**. Clear all other bits in **dst**. See further the comment and Example [2] for bitmap_onto() for why and how to use this.h](hFor each bit oldbit in }(hj?hhhNhNubj)}(h**orig**h]horig}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh, set bit oldbit mod }(hj?hhhNhNubj)}(h**sz**h]hsz}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh in }(hj?hhhNhNubj)}(h**dst**h]hdst}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh. Clear all other bits in }(hj?hhhNhNubj)}(h**dst**h]hdst}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubhY. See further the comment and Example [2] for bitmap_onto() for why and how to use this.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'bitmap_find_next_zero_area (C function)c.bitmap_find_next_zero_areahNtauh1hhjhhhNhNubh)}(hhh](j)}(hunsigned long bitmap_find_next_zero_area (unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h]j)}(hunsigned long bitmap_find_next_zero_area(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](j )}(hunsignedh]hunsigned}(hjE@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjA@hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKubj)}(h h]h }(hjT@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA@hhhjS@hKubj )}(hlongh]hlong}(hjb@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjA@hhhjS@hKubj)}(h h]h }(hjp@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA@hhhjS@hKubjg)}(hbitmap_find_next_zero_areah]jm)}(hbitmap_find_next_zero_areah]hbitmap_find_next_zero_area}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjA@hhhjS@hKubj)}(hh(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(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)}(hmaph]hmap}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj&AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hsizeh]hsize}(hj4AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjMAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIAubj)}(h h]h }(hj[AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIAubj )}(hlongh]hlong}(hjiAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIAubj)}(h h]h }(hjwAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIAubjm)}(hstarth]hstart}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hnrh]hnr}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hlongh]hlong}(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(h align_maskh]h align_mask}(hj'BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjA@hhhjS@hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=@hhhjS@hKubah}(h]j8@ah ](jjeh"]h$]h&]jj)jhuh1hhjS@hKhj:@hhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjQBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjNBhhubah}(h]h ]h"]h$]h&]uh1jhj:@hhhjS@hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjiBjjiBjjjuh1hhhhjhNhNubj)}(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)}(hjsBh]h Parameters}(hjuBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqBubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjmBubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjBh]hunsigned long *map}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjBubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjBh]hunsigned long size}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBubj)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjBubj)}(h<``unsigned long start`` The bitnumber to start searching at 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.hhKhjBubj)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChKhjBubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hj=Ch]hunsigned int nr}(hj?ChhhNhNubah}(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.hhKhj7Cubj)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjVChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRChKhjSCubah}(h]h ]h"]h$]h&]uh1jhj7Cubeh}(h]h ]h"]h$]h&]uh1jhjRChKhjBubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjvCh]hunsigned long align_mask}(hjxChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtCubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjpCubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1jhjpCubeh}(h]h ]h"]h$]h&]uh1jhjChKhjBubeh}(h]h ]h"]h$]h&]uh1jhjmBubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjmBubh)}(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 }(hjChhhNhNubj)}(h**align_mask**h]h align_mask}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh 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 }(hjChhhNhNubj)}(h**align_mask**h]h align_mask}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh% of 0 means no alignment is required.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjmBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_or_equal (C function)c.bitmap_or_equalhNtauh1hhjhhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj(DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhj'DhMubjg)}(hbitmap_or_equalh]jm)}(hbitmap_or_equalh]hbitmap_or_equal}(hj:DhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6Dubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhj'DhMubj)}(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}(hjVDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRDubj)}(h h]h }(hjcDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRDubj )}(hunsignedh]hunsigned}(hjqDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRDubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRDubjm)}(hsrc1h]hsrc1}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubj)}(hconst unsigned long *src2h](j)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hj"EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hsrc2h]hsrc2}(hj/EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubj)}(hconst unsigned long *src3h](j)}(hjh]hconst}(hjHEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDEubj)}(h h]h }(hjUEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDEubj )}(hunsignedh]hunsigned}(hjcEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDEubj)}(h h]h }(hjqEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDEubj )}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDEubjm)}(hsrc3h]hsrc3}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hnbitsh]hnbits}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNDubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhj'DhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhj'DhMubah}(h]j Dah ](jjeh"]h$]h&]jj)jhuh1hhj'DhMhjDhhubj)}(hhh]h)}(h7Check whether the or of two bitmaps is equal to a thirdh]h7Check whether the or of two bitmaps is equal to a third}(hj#FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj Fhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj'DhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;Fjj;Fjjjuh1hhhhjhNhNubj)}(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)}(hjEFh]h Parameters}(hjGFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Fubj)}(hhh](j)}(h2``const unsigned long *src1`` Pointer to bitmap 1 h](j)}(h``const unsigned long *src1``h]j)}(hjdFh]hconst unsigned long *src1}(hjfFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj^Fubj)}(hhh]h)}(hPointer to bitmap 1h]hPointer to bitmap 1}(hj}FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyFhMhjzFubah}(h]h ]h"]h$]h&]uh1jhj^Fubeh}(h]h ]h"]h$]h&]uh1jhjyFhMhj[Fubj)}(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)}(hjFh]hconst unsigned long *src2}(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.hhMhjFubj)}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj[Fubj)}(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)}(hjFh]hconst unsigned long *src3}(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.hhMhjFubj)}(hhh]h)}(hCPointer to bitmap 3. Compare to the result of ***src1** | ***src2**h](h.Pointer to bitmap 3. Compare to the result of }(hjFhhhNhNubj)}(h ***src1**h]h*src1}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh | }(hjFhhhNhNubj)}(h ***src2**h]h*src2}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj[Fubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hj/Gh]hunsigned int nbits}(hj1GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Gubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj)Gubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjHGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDGhMhjEGubah}(h]h ]h"]h$]h&]uh1jhj)Gubeh}(h]h ]h"]h$]h&]uh1jhjDGhMhj[Fubeh}(h]h ]h"]h$]h&]uh1jhj?Fubh)}(h **Return**h]j)}(hjjGh]hReturn}(hjlGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhGubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Fubh)}(h=True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h True if (}(hjGhhhNhNubj)}(h ***src1**h]h*src1}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh | }(hjGhhhNhNubj)}(h ***src2**h]h*src2}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh) == }(hjGhhhNhNubj)}(h ***src3**h]h*src3}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh, false otherwise}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_scatter (C function)c.bitmap_scatterhNtauh1hhjhhhNhNubh)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjGhMubjg)}(hbitmap_scatterh]jm)}(hbitmap_scatterh]hbitmap_scatter}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjGhMubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj"HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hj0HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hlongh]hlong}(hj>HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjLHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjZHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hdsth]hdst}(hjgHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|Hubj )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|Hubj )}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Hubjm)}(hsrch]hsrc}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hj"IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hlongh]hlong}(hj0IhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hj>IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjLIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hmaskh]hmask}(hjYIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjrIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnIubj )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnIubjm)}(hnbitsh]hnbits}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhjGhhubj)}(hhh]h)}(h,Scatter a bitmap according to the given maskh]h,Scatter a bitmap according to the given mask}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``unsigned long *dst`` scattered bitmap ``const unsigned long *src`` gathered bitmap ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Scatters bitmap with sequential bits according to the given **mask**. **Example** If **src** bitmap = 0x005a, with **mask** = 0x1313, **dst** will be 0x0302. Or in binary form **src** **mask** **dst** 0000000001011010 0001001100010011 0000001100000010 (Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12) A more 'visual' description of the operation:: src: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010 A relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation.h](h)}(h**Parameters**h]j)}(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)}(h(``unsigned long *dst`` scattered bitmap h](j)}(h``unsigned long *dst``h]j)}(hjJh]hunsigned long *dst}(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.hhMhjJubj)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hj.JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*JhMhj+Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj*JhMhj Jubj)}(h-``const unsigned long *src`` gathered bitmap h](j)}(h``const unsigned long *src``h]j)}(hjNJh]hconst unsigned long *src}(hjPJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjHJubj)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjgJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcJhMhjdJubah}(h]h ]h"]h$]h&]uh1jhjHJubeh}(h]h ]h"]h$]h&]uh1jhjcJhMhj Jubj)}(hZ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjJh]hconst unsigned long *mask}(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.hhMhjJubj)}(hhh]h)}(h;mask representing bits to assign to in the scattered bitmaph]h;mask representing bits to assign to in the scattered bitmap}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj Jubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjJh]hunsigned int nbits}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjJubj)}(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&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj Jubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubh)}(hEScatters bitmap with sequential bits according to the given **mask**.h](h 0000000001011010 0001001100010011 0000001100000010}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubh)}(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)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM#hjIubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM%hjIubj#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}hjKsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM'hjIubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM2hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_gather (C function)c.bitmap_gatherhNtauh1hhjhhhNhNubh)}(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}(hj0LhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,LhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMEubj)}(h h]h }(hj?LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Lhhhj>LhMEubjg)}(h bitmap_gatherh]jm)}(h bitmap_gatherh]h bitmap_gather}(hjQLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,Lhhhj>LhMEubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjmLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiLubj)}(h h]h }(hj{LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiLubj )}(hlongh]hlong}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiLubjm)}(hdsth]hdst}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hsrch]hsrc}(hj+MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjDMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Mubj)}(h h]h }(hjQMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Mubj )}(hunsignedh]hunsigned}(hj_MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@Mubj)}(h h]h }(hjmMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Mubj )}(hlongh]hlong}(hj{MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@Mubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Mubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Mubjm)}(hmaskh]hmask}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@Mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj )}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubjm)}(hnbitsh]hnbits}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeLubeh}(h]h ]h"]h$]h&]jjuh1jhj,Lhhhj>LhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(Lhhhj>LhMEubah}(h]j#Lah ](jjeh"]h$]h&]jj)jhuh1hhj>LhMEhj%Lhhubj)}(hhh]h)}(h'Gather a bitmap according to given maskh]h'Gather a bitmap according to given mask}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMEhjNhhubah}(h]h ]h"]h$]h&]uh1jhj%Lhhhj>LhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7Njj7Njjjuh1hhhhjhNhNubj)}(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)}(hjANh]h Parameters}(hjCNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Nubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMIhj;Nubj)}(hhh](j)}(h'``unsigned long *dst`` gathered bitmap h](j)}(h``unsigned long *dst``h]j)}(hj`Nh]hunsigned long *dst}(hjbNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Nubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMFhjZNubj)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjyNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuNhMFhjvNubah}(h]h ]h"]h$]h&]uh1jhjZNubeh}(h]h ]h"]h$]h&]uh1jhjuNhMFhjWNubj)}(h.``const unsigned long *src`` scattered bitmap h](j)}(h``const unsigned long *src``h]j)}(hjNh]hconst unsigned long *src}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMGhjNubj)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMGhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMGhjWNubj)}(h]``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjNh]hconst unsigned long *mask}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMHhjNubj)}(hhh]h)}(h>mask representing bits to extract from in the scattered bitmaph]h>mask representing bits to extract from in the scattered bitmap}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMHhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMHhjWNubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hj Oh]hunsigned int nbits}(hj OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMIhjOubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj$OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj OhMIhj!Oubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj OhMIhjWNubeh}(h]h ]h"]h$]h&]uh1jhj;Nubh)}(h**Description**h]j)}(hjFOh]h Description}(hjHOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMKhj;Nubh)}(h@Gathers bitmap with sparse bits according to the given **mask**.h](h7Gathers bitmap with sparse bits according to the given }(hj\OhhhNhNubj)}(h**mask**h]hmask}(hjdOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Oubh.}(hj\OhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMJhj;Nubh)}(h **Example**h]j)}(hjOh]hExample}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Oubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMLhj;Nubh)}(hKIf **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a.h](hIf }(hjOhhhNhNubj)}(h**src**h]hsrc}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh bitmap = 0x0302, with }(hjOhhhNhNubj)}(h**mask**h]hmask}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh = 0x1313, }(hjOhhhNhNubj)}(h**dst**h]hdst}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh will be 0x001a.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMMhj;Nubh)}(hOr in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010h](hOr in binary form }(hjOhhhNhNubj)}(h**src**h]hsrc}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh }(hjOhhhNhNubj)}(h**mask**h]hmask}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh }(hjOhhhNhNubj)}(h**dst**h]hdst}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh> 0000001100000010 0001001100010011 0000000000011010}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMOhj;Nubh)}(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)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMShj;Nubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hj.PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMUhj;Nubj#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}hj=Psbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWhj;Nubh)}(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.}(hjLPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMahj;Nubh)}(hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.h]hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.}(hj[PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMehj;Nubh)}(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.}(hjjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMihj;Nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"bitmap_release_region (C function)c.bitmap_release_regionhNtauh1hhjhhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjPhMubjg)}(hbitmap_release_regionh]jm)}(hbitmap_release_regionh]hbitmap_release_region}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hbitmaph]hbitmap}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj4QhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0Qubj)}(h h]h }(hjBQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0Qubj )}(hinth]hint}(hjPQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0Qubj)}(h h]h }(hj^QhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0Qubjm)}(hposh]hpos}(hjlQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0Qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h int orderh](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(horderh]horder}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhjPhhubj)}(hhh]h)}(hrelease allocated bitmap regionh]hrelease allocated bitmap region}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhjhNhNubj)}(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)}(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.hhMhjQubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hj Rh]hunsigned long *bitmap}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Rubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjRubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hj%RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!RhMhj"Rubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhj!RhMhjRubj)}(h8``unsigned int pos`` beginning of bit region to release h](j)}(h``unsigned int pos``h]j)}(hjERh]hunsigned int pos}(hjGRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCRubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj?Rubj)}(hhh]h)}(h"beginning of bit region to releaseh]h"beginning of bit region to release}(hj^RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZRhMhj[Rubah}(h]h ]h"]h$]h&]uh1jhj?Rubeh}(h]h ]h"]h$]h&]uh1jhjZRhMhjRubj)}(hD``int order`` region size (log base 2 of number of bits) to release h](j)}(h ``int order``h]j)}(hj~Rh]h int order}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Rubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjxRubj)}(hhh]h)}(h5region size (log base 2 of number of bits) to releaseh]h5region size (log base 2 of number of bits) to release}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjxRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjRubeh}(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.hhMhjQubh)}(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).}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#bitmap_allocate_region (C function)c.bitmap_allocate_regionhNtauh1hhjhhhNhNubh)}(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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhZ/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&]uh1jhjRhhhj ShMubjg)}(hbitmap_allocate_regionh]jm)}(hbitmap_allocate_regionh]hbitmap_allocate_region}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhj ShMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hj;ShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7Subj)}(h h]h }(hjIShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Subj )}(hlongh]hlong}(hjWShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7Subj)}(h h]h }(hjeShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Subj)}(hjh]h*}(hjsShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Subjm)}(hbitmaph]hbitmap}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3Subj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj )}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hposh]hpos}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3Subj)}(h int orderh](j )}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(horderh]horder}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3Subeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhj ShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhj ShMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhj ShMhjRhhubj)}(hhh]h)}(hallocate bitmap regionh]hallocate bitmap region}(hj0ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj-Thhubah}(h]h ]h"]h$]h&]uh1jhjRhhhj ShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHTjjHTjjjuh1hhhhjhNhNubj)}(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)}(hjRTh]h Parameters}(hjTThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjqTh]hunsigned long *bitmap}(hjsThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjkTubj)}(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&]uh1jhjkTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjhTubj)}(h9``unsigned int pos`` beginning of bit region to allocate h](j)}(h``unsigned int pos``h]j)}(hjTh]hunsigned int pos}(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)}(h#beginning of bit region to allocateh]h#beginning of bit region to allocate}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjhTubj)}(hE``int order`` region size (log base 2 of number of bits) to allocate h](j)}(h ``int order``h]j)}(hjTh]h int order}(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)}(h6region size (log base 2 of number of bits) to allocateh]h6region size (log base 2 of number of bits) to allocate}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjhTubeh}(h]h ]h"]h$]h&]uh1jhjLTubh)}(h**Description**h]j)}(hjUh]h Description}(hj UhhhNhNubah}(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.hhMhjLTubh)}(h6Allocate (set bits in) a specified region of a bitmap.h]h6Allocate (set bits in) a specified region of a bitmap.}(hj4UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubh)}(h **Return**h]j)}(hjEUh]hReturn}(hjGUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubh)}(hU0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h0 on success, or }(hj[UhhhNhNubj)}(h ``-EBUSY``h]h-EBUSY}(hjcUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[Uubh< if specified region wasn’t free (not all bits were zero).}(hj[UhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjLTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bitmap_find_free_region (C function)c.bitmap_find_free_regionhNtauh1hhjhhhNhNubh)}(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}(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_find_free_regionh]jm)}(hbitmap_find_free_regionh]hbitmap_find_free_region}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhMubj)}(h5(unsigned long *bitmap, unsigned int bits, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hbitmaph]hbitmap}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj7VhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3Vubj)}(h h]h }(hjEVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3Vubj )}(hinth]hint}(hjSVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3Vubj)}(h h]h }(hjaVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3Vubjm)}(hbitsh]hbits}(hjoVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3Vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(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&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhjUhhubj)}(hhh]h)}(h$find a contiguous aligned mem regionh]h$find a contiguous aligned mem region}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjhNhNubj)}(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)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjWh]hunsigned long *bitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Wubah}(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$WhMhjWubj)}(h3``unsigned int bits`` number of bits in the bitmap h](j)}(h``unsigned int bits``h]j)}(hjHWh]hunsigned int bits}(hjJWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjBWubj)}(hhh]h)}(hnumber of bits in the bitmaph]hnumber of bits in the bitmap}(hjaWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]WhMhj^Wubah}(h]h ]h"]h$]h&]uh1jhjBWubeh}(h]h ]h"]h$]h&]uh1jhj]WhMhjWubj)}(hA``int order`` region size (log base 2 of number of bits) to find 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.hhMhj{Wubj)}(hhh]h)}(h2region size (log base 2 of number of bits) to findh]h2region size (log base 2 of number of bits) to find}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhj{Wubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(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.hhMhjVubh)}(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 }(hjWhhhNhNubj)}(h **bitmap**h]hbitmap}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh of }(hjWhhhNhNubj)}(h**bits**h]hbits}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhU bits and allocate them (set them to one). Only consider regions of length a power (}(hjWhhhNhNubj)}(h **order**h]horder}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhU) of two, aligned to that power of two, which makes the search algorithm much faster.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubh)}(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.hhMhjVubh)}(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/XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hBITMAP_FROM_U64 (C macro)c.BITMAP_FROM_U64hNtauh1hhjhhhNhNubh)}(hhh](j)}(hBITMAP_FROM_U64h]j)}(hBITMAP_FROM_U64h]jg)}(hBITMAP_FROM_U64h]jm)}(hjXXh]hBITMAP_FROM_U64}(hjbXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^Xubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZXhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjVXhhhjuXhMubah}(h]jQXah ](jjeh"]h$]h&]jj)jhuh1hhjuXhMhjSXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjSXhhhjuXhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjXjjXjjjuh1hhhhjhNhNubh)}(h``BITMAP_FROM_U64 (n)``h]j)}(hjXh]hBITMAP_FROM_U64 (n)}(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.hhMhjhhubj)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXhMhjhhubj)}(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)}(hjXh]h Parameters}(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.hhMhjXubj)}(hhh]j)}(h``n`` u64 value h](j)}(h``n``h]j)}(hjXh]hn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubj)}(hhh]h)}(h u64 valueh]h u64 value}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubh)}(h**Description**h]j)}(hj#Yh]h Description}(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:84: ./include/linux/bitmap.hhMhjXubh)}(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.}(hj9YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(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.}(hjHYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(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.}(hjWYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(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.}(hjfYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubh)}(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.}(hjuYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_u64 (C function)c.bitmap_from_u64hNtauh1hhjhhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjYhMubjg)}(hbitmap_from_u64h]jm)}(hbitmap_from_u64h]hbitmap_from_u64}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjYhMubj)}(h(unsigned long *dst, u64 mask)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hj ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hdsth]hdst}(hj&ZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hu64 maskh](h)}(hhh]jm)}(hu64h]hu64}(hjBZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?Zubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDZmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.bitmap_from_u64asbuh1hhj;Zubj)}(h h]h }(hjbZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Zubjm)}(hmaskh]hmask}(hjpZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhjYhhubj)}(hhh]h)}(h Check and swap words within u64.h]h Check and swap words within u64.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjhNhNubj)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjZh]hunsigned long *dst}(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)}(hdestination bitmaph]hdestination bitmap}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubj)}(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)[hMhjZubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjO[h]h Description}(hjQ[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubh)}(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 }(hje[hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[*]``h]h(u32 *)(:c:type:`val`)[*]}(hjm[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje[ubh7 to read u64 mask, we will get the wrong word. That is }(hje[hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[0]``h]h(u32 *)(:c:type:`val`)[0]}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje[ubh@ gets the upper 32 bits, but we expect the lower 32-bits of u64.}(hje[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_read (C function) c.bitmap_readhNtauh1hhjhhhNhNubh)}(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}(hjH\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj \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)}(hmaph]hmap}(hjq\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 }(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)}(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&]jjjjU]jjU]jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``const unsigned long *map`` address to the bitmap memory region ``unsigned long start`` bit offset of the n-bit value ``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG **Return** value of **nbits** bits located at the **start** bit offset within the **map** memory region. For **nbits** = 0 and **nbits** > BITS_PER_LONG the return value is undefined.h](h)}(h**Parameters**h]j)}(hj_]h]h Parameters}(hja]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.hhMhjY]ubj)}(hhh](j)}(hA``const unsigned long *map`` address to the bitmap memory region h](j)}(h``const unsigned long *map``h]j)}(hj~]h]hconst unsigned long *map}(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.hhMhjx]ubj)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjx]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhju]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]hMhju]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^hMhju]ubeh}(h]h ]h"]h$]h&]uh1jhjY]ubh)}(h **Return**h]j)}(hj+^h]hReturn}(hj-^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjY]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 }(hjA^hhhNhNubj)}(h **nbits**h]hnbits}(hjI^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh bits located at the }(hjA^hhhNhNubj)}(h **start**h]hstart}(hj[^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh bit offset within the }(hjA^hhhNhNubj)}(h**map**h]hmap}(hjm^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh memory region. For }(hjA^hhhNhNubj)}(h **nbits**h]hnbits}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh = 0 and }(hjA^hhhNhNubj)}(h **nbits**h]hnbits}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA^ubh/ > BITS_PER_LONG the return value is undefined.}(hjA^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjY]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_write (C function)c.bitmap_writehNtauh1hhjhhhNhNubh)}(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}(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^hMubjg)}(h bitmap_writeh]jm)}(h bitmap_writeh]h bitmap_write}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj^hMubj)}(hS(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j)}(hunsigned long *maph](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 }(hj1_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj)}(hjh]h*}(hj?_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjm)}(hmaph]hmap}(hjL_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long valueh](j )}(hunsignedh]hunsigned}(hje_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja_ubj)}(h h]h }(hjs_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja_ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja_ubjm)}(hvalueh]hvalue}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja_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 }(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)}(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 }(hj1`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(write n-bit value within a memory regionh]h(write n-bit value within a memory region}(hji`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjf`hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhjhNhNubj)}(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`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 *map`` address to the bitmap memory region h](j)}(h``unsigned long *map``h]j)}(hj`h]hunsigned long *map}(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#address to the bitmap memory regionh]h#address to the bitmap memory region}(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)}(h9``unsigned long value`` value to write, clamped to nbits h](j)}(h``unsigned long value``h]j)}(hj`h]hunsigned long value}(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 value to write, clamped to nbitsh]h value to write, clamped to nbits}(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)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hjah]hunsigned long start}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjaubj)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj5ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ahMhj2aubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj1ahMhj`ubj)}(hM``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. h](j)}(h``unsigned long nbits``h]j)}(hjUah]hunsigned long nbits}(hjWahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjOaubj)}(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.}(hjnahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjahMhjkaubah}(h]h ]h"]h$]h&]uh1jhjOaubeh}(h]h ]h"]h$]h&]uh1jhjjahMhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubh)}(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 }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh+ calls of __assign_bit(), i.e. bits beyond }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh are ignored:}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(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++)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjaubj)}(hhh]h)}(h2__assign_bit(start + bit, bitmap, val & BIT(bit));h]h2__assign_bit(start + bit, bitmap, val & BIT(bit));}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubh)}(hIFor **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](hFor }(hjbhhhNhNubj)}(h **nbits**h]hnbits}(hj%bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh == 0 and }(hjbhhhNhNubj)}(h **nbits**h]hnbits}(hj7bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh) > BITS_PER_LONG no writes are performed.}(hjbhhhNhNubeh}(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&]uh1jhjhhhNhNubeh}(h]bitmap-operationsah ]h"]bitmap operationsah$]h&]uh1hhj hhhhhK@ubh)}(hhh](h)}(hCommand-line Parsingh]hCommand-line Parsing}(hjbbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_bhhhhhKXubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_option (C function) c.get_optionhNtauh1hhj_bhhhNhNubh)}(hhh](j)}(h&int get_option (char **str, int *pint)h]j)}(h%int get_option(char **str, int *pint)h](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjbhK$ubjg)}(h get_optionh]jm)}(h get_optionh]h get_option}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjbhK$ubj)}(h(char **str, int *pint)h](j)}(h char **strh](j )}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hstrh]hstr}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(h int *pinth](j )}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj)}(h h]h }(hj#chhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hj1chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hpinth]hpint}(hj>chhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhK$ubah}(h]j|bah ](jjeh"]h$]h&]jj)jhuh1hhjbhK$hj~bhhubj)}(hhh]h)}(h#Parse integer from an option stringh]h#Parse integer from an option string}(hjhchhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$hjechhubah}(h]h ]h"]h$]h&]uh1jhj~bhhhjbhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj_bhNhNubj)}(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)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjcubj)}(hhh](j)}(h``char **str`` option string h](j)}(h``char **str``h]j)}(hjch]h char **str}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK%hjcubj)}(hhh]h)}(h option stringh]h option string}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchK%hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchK%hjcubj)}(hB``int *pint`` (optional output) integer value parsed from **str** h](j)}(h ``int *pint``h]j)}(hjch]h int *pint}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK&hjcubj)}(hhh]h)}(h3(optional output) integer value parsed from **str**h](h,(optional output) integer value parsed from }(hjchhhNhNubj)}(h**str**h]hstr}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1hhjchK&hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchK&hjcubeh}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjcubj)}(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.}(hjEdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK'hjAdubh)}(hbWhen **pint** is NULL the function can be used as a validator of the current option in the string.h](hWhen }(hjTdhhhNhNubj)}(h**pint**h]hpint}(hj\dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTdubhU is NULL the function can be used as a validator of the current option in the string.}(hjTdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK*hjAdubh)}(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}(hjudhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK-hjAdubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK3hjAdubeh}(h]h ]h"]h$]h&]uh1jhjSdhK'hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_bhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_options (C function) c.get_optionshNtauh1hhj_bhhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjdhKSubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKSubjg)}(h get_optionsh]jm)}(h get_optionsh]h get_options}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjdhKSubj)}(h'(const char *str, int nints, int *ints)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj )}(hcharh]hchar}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdubj)}(h h]h }(hj,ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hj:ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hstrh]hstr}(hjGehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(h int nintsh](j )}(hinth]hint}(hj`ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\eubj)}(h h]h }(hjnehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\eubjm)}(hnintsh]hnints}(hj|ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(h int *intsh](j )}(hinth]hint}(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&]uh1jhjeubjm)}(hintsh]hints}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhKSubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhKShjdhhubj)}(hhh]h)}(h&Parse a string into a list of integersh]h&Parse a string into a list of integers}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKShjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhj_bhNhNubj)}(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)}(hj fh]h Parameters}(hj fhhhNhNubah}(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.chKWhjfubj)}(hhh](j)}(h(``const char *str`` String to be parsed h](j)}(h``const char *str``h]j)}(hj)fh]hconst char *str}(hj+fhhhNhNubah}(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.chKThj#fubj)}(hhh]h)}(hString to be parsedh]hString to be parsed}(hjBfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>fhKThj?fubah}(h]h ]h"]h$]h&]uh1jhj#fubeh}(h]h ]h"]h$]h&]uh1jhj>fhKThj fubj)}(h$``int nints`` size of integer array h](j)}(h ``int nints``h]j)}(hjbfh]h int nints}(hjdfhhhNhNubah}(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.chKUhj\fubj)}(hhh]h)}(hsize of integer arrayh]hsize of integer array}(hj{fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwfhKUhjxfubah}(h]h ]h"]h$]h&]uh1jhj\fubeh}(h]h ]h"]h$]h&]uh1jhjwfhKUhj fubj)}(hF``int *ints`` integer array (must have room for at least one element) h](j)}(h ``int *ints``h]j)}(hjfh]h int *ints}(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.chKVhjfubj)}(hhh]h)}(h7integer array (must have room for at least one element)h]h7integer array (must have room for at least one element)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKVhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKVhj fubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(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.chKXhjfubj)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjfubh)}(hWhen **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below.h](hWhen }(hjfhhhNhNubj)}(h **nints**h]hnints}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh- is 0, the function just validates the given }(hjfhhhNhNubj)}(h**str**h]hstr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhA and returns the amount of parseable integers as described below.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK]hjfubh)}(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 }(hj2ghhhNhNubj)}(h**str**h]hstr}(hj:ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2gubh.}(hj2ghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKahjfubh)}(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 }(hjSghhhNhNubj)}(h**str**h]hstr}(hj[ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSgubh is completely parseable).}(hjSghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKdhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKWhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj_bhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemparse (C function) c.memparsehNtauh1hhj_bhhhNhNubh)}(hhh](j)}(hnhK@ubjg)}(hIS_ERRh]jm)}(hIS_ERRh]hIS_ERR}(hjQnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-nhhhj>nhK@ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjinhhhNhNubj)}(h h]h }(hjqnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjinubj)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjinubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjinubj )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjinubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjinubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjinubjm)}(hptrh]hptr}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjinubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjenubah}(h]h ]h"]h$]h&]jjuh1jhj-nhhhj>nhK@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)nhhhj>nhK@ubah}(h]j$nah ](jjeh"]h$]h&]jj)jhuh1hhj>nhK@hj&nhhubj)}(hhh]h)}(hDetect an error pointer.h]hDetect an error pointer.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK@hjnhhubah}(h]h ]h"]h$]h&]uh1jhj&nhhhj>nhK@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjihNhNubj)}(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)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKDhj oubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hj.oh]h__force const void *ptr}(hj0ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,oubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKAhj(oubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjGohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCohKAhjDoubah}(h]h ]h"]h$]h&]uh1jhj(oubeh}(h]h ]h"]h$]h&]uh1jhjCohKAhj%oubah}(h]h ]h"]h$]h&]uh1jhj oubh)}(h **Return**h]j)}(hjioh]hReturn}(hjkohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKChj oubh)}(h5true if **ptr** is an error pointer, false otherwise.h](htrue if }(hjohhhNhNubj)}(h**ptr**h]hptr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh& is an error pointer, false otherwise.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKBhj oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hIS_ERR_OR_NULL (C function)c.IS_ERR_OR_NULLhNtauh1hhjihhhNhNubh)}(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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKMubj)}(Gh h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjohKMubjg)}(hIS_ERR_OR_NULLh]jm)}(hIS_ERR_OR_NULLh]hIS_ERR_OR_NULL}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjohKMubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjohhhNhNubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj )}(hvoidh]hvoid}(hj)phhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hj7phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjEphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hptrh]hptr}(hjRphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjohKMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohKMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohKMhjohhubj)}(hhh]h)}(h*Detect an error pointer or a null pointer.h]h*Detect an error pointer or a null pointer.}(hj|phhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKMhjyphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohKMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhjihNhNubj)}(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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKQhjpubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hjph]h__force const void *ptr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKNhjpubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphKNhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphKNhjpubah}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKPhjpubh)}(h8Like IS_ERR(), but also returns true for a null pointer.h]h8Like IS_ERR(), but also returns true for a null pointer.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKOhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hERR_CAST (C function) c.ERR_CASThNtauh1hhjihhhNhNubh)}(hhh](j)}(h)void * ERR_CAST (__force const void *ptr)h]j)}(h'void *ERR_CAST(__force const void *ptr)h](j )}(hvoidh]hvoid}(hj=qhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9qhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXubj)}(h h]h }(hjLqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9qhhhjKqhKXubj)}(hjh]h*}(hjZqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9qhhhjKqhKXubjg)}(hERR_CASTh]jm)}(hERR_CASTh]hERR_CAST}(hjkqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9qhhhjKqhKXubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjqhhhNhNubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjm)}(hptrh]hptr}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj9qhhhjKqhKXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5qhhhjKqhKXubah}(h]j0qah ](jjeh"]h$]h&]jj)jhuh1hhjKqhKXhj2qhhubj)}(hhh]h)}(h?Explicitly cast an error-valued pointer to another pointer typeh]h?Explicitly cast an error-valued pointer to another pointer type}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXhjrhhubah}(h]h ]h"]h$]h&]uh1jhj2qhhhjKqhKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhjihNhNubj)}(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)}(hj)rh]h Parameters}(hj+rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'rubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK\hj#rubj)}(hhh]j)}(h1``__force const void *ptr`` The pointer to cast. h](j)}(h``__force const void *ptr``h]j)}(hjHrh]h__force const void *ptr}(hjJrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKYhjBrubj)}(hhh]h)}(hThe pointer to cast.h]hThe pointer to cast.}(hjarhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]rhKYhj^rubah}(h]h ]h"]h$]h&]uh1jhjBrubeh}(h]h ]h"]h$]h&]uh1jhj]rhKYhj?rubah}(h]h ]h"]h$]h&]uh1jhj#rubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK[hj#rubh)}(hyExplicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that's what's going on.h]h}Explicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that’s what’s going on.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKZhj#rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hPTR_ERR_OR_ZERO (C function)c.PTR_ERR_OR_ZEROhNtauh1hhjihhhNhNubh)}(hhh](j)}(h-int PTR_ERR_OR_ZERO (__force const void *ptr)h]j)}(h,int PTR_ERR_OR_ZERO(__force const void *ptr)h](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKeubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjrhKeubjg)}(hPTR_ERR_OR_ZEROh]jm)}(hPTR_ERR_OR_ZEROh]hPTR_ERR_OR_ZERO}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjrhKeubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjshhhNhNubj)}(h h]h }(hj shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hj$shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj )}(hvoidh]hvoid}(hj2shhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hj@shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjNshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hptrh]hptr}(hj[shhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhKeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhKeubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhKehjrhhubj)}(hhh]h)}(h4Extract the error code from a pointer if it has one.h]h4Extract the error code from a pointer if it has one.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKehjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjihNhNubj)}(hX**Parameters** ``__force const void *ptr`` A potential error pointer. **Description** Convenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, ``return PTR_ERR_OR_ZERO(ptr);`` replaces: .. code-block:: c if (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0; **Return** The error code within **ptr** if it is an error pointer; 0 otherwise.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKihjsubj)}(hhh]j)}(h7``__force const void *ptr`` A potential error pointer. h](j)}(h``__force const void *ptr``h]j)}(hjsh]h__force const void *ptr}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKfhjsubj)}(hhh]h)}(hA potential error pointer.h]hA potential error pointer.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKfhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshKfhjsubah}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhhjsubh)}(hConvenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, ``return PTR_ERR_OR_ZERO(ptr);`` replaces:h](hConvenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, }(hjthhhNhNubj)}(h ``return PTR_ERR_OR_ZERO(ptr);``h]hreturn PTR_ERR_OR_ZERO(ptr);}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh replaces:}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKghjsubj#C)}(hDif (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0;h]hDif (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0;}hj8tsbah}(h]h ]h"]h$]h&]jjforcelanguagejhighlight_args}uh1j"ChW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKkhjsubh)}(h **Return**h]j)}(hjMth]hReturn}(hjOthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKrhjsubh)}(hEThe error code within **ptr** if it is an error pointer; 0 otherwise.h](hThe error code within }(hjcthhhNhNubj)}(h**ptr**h]hptr}(hjkthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjctubh( if it is an error pointer; 0 otherwise.}(hjcthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKshjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubeh}(h]error-pointersah ]h"]error pointersah$]h&]uh1hhj hhhhhK^ubh)}(hhh](h)}(hSortingh]hSorting}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhKdubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsort_r (C function)c.sort_rhNtauh1hhjthhhNhNubh)}(hhh](j)}(hsvoid sort_r (void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h]j)}(hrvoid sort_r(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjthMubjg)}(hsort_rh]jm)}(hsort_rh]hsort_r}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjthMubj)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hbaseh]hbase}(hj#uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(h size_t numh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj?uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhj{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|hM>hj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hM>hj{ubj)}(hB``const void *priv`` third argument passed to comparison function h](j)}(h``const void *priv``h]j)}(hj5|h]hconst void *priv}(hj7|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3|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)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hjN|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ|hM?hjK|ubah}(h]h ]h"]h$]h&]uh1jhj/|ubeh}(h]h ]h"]h$]h&]uh1jhjJ|hM?hj{ubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjp|h]h Description}(hjr|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn|ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMAhjzubh)}(hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().h]hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM@hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_sort (C function) c.list_sorthNtauh1hhjthhhNhNubh)}(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}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKcubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhj|hKcubjg)}(h list_sorth]jm)}(h list_sorth]h list_sort}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hKcubj)}(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*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hprivh]hpriv}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hstruct list_head *headh](j)}(hstructh]hstruct}(hj4}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0}ubj)}(h h]h }(hjB}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0}ubh)}(hhh]jm)}(h list_headh]h list_head}(hjS}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjP}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjU}modnameN classnameNjI jL )}jO ]jR )}jE j|sb c.list_sortasbuh1hhj0}ubj)}(h h]h }(hjs}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0}ubjm)}(hheadh]hhead}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hlist_cmp_func_t cmph](h)}(hhh]jm)}(hlist_cmp_func_th]hlist_cmp_func_t}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jo} c.list_sortasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hcmph]hcmp}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hKcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hKcubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hKchj|hhubj)}(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&]uh1jhj|hhhj|hKcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjthNhNubj)}(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)}(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:105: ./lib/list_sort.chKghj~ubj)}(hhh](j)}(hF``void *priv`` private data, opaque to list_sort(), passed to **cmp** h](j)}(h``void *priv``h]j)}(hjA~h]h void *priv}(hjC~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?~ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKdhj;~ubj)}(hhh]h)}(h6private data, opaque to list_sort(), passed to **cmp**h](h/private data, opaque to list_sort(), passed to }(hjZ~hhhNhNubj)}(h**cmp**h]hcmp}(hjb~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ~ubeh}(h]h ]h"]h$]h&]uh1hhjV~hKdhjW~ubah}(h]h ]h"]h$]h&]uh1jhj;~ubeh}(h]h ]h"]h$]h&]uh1jhjV~hKdhj8~ubj)}(h,``struct list_head *head`` the list to sort h](j)}(h``struct list_head *head``h]j)}(hj~h]hstruct list_head *head}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKehj~ubj)}(hhh]h)}(hthe list to sorth]hthe list to sort}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKehj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hKehj8~ubj)}(h9``list_cmp_func_t cmp`` the elements comparison function h](j)}(h``list_cmp_func_t cmp``h]j)}(hj~h]hlist_cmp_func_t cmp}(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:105: ./lib/list_sort.chKfhj~ubj)}(hhh]h)}(h the elements comparison functionh]h the elements comparison function}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKfhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hKfhj8~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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhhj~ubh)}(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}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (”}(hjhhhNhNubj)}(h**a**h]ha}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh > }(hjhhhNhNubj)}(h**b**h]hb}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0” if you want an ascending sort), and <= 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort before }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubhemphasis)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhq 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}(hjhhhNhNubah}(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.chKghj~ubh)}(hX&The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0.h](hThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(}(hj hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }(hj hhhNhNubj)}(h**b**h]hb}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh') must return the opposite sign of cmp(}(hj hhhNhNubj)}(h**b**h]hb}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**a**h]ha}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh). - Transitivity: if cmp(}(hj hhhNhNubj)}(h**a**h]ha}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**b**h]hb}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) <= 0 and cmp(}(hj hhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) <= 0, then cmp(}(hj hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, }hj sbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh) <= 0.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKnhj~ubh)}(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 }(hjЀhhhNhNubj)}(h**cmp**h]hcmp}(hj؀hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЀubh 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).}(hjЀhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKuhj~ubh)}(h0A good way to write a multi-word comparison is::h]h/A good way to write a multi-word comparison is:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK{hj~ubj#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;}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK}hj~ubh)}(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.chKhj~ubh)}(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.chKhj~ubh)}(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.chKhj~ubh)}(hEach time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).h]hEach time we increment “count”, we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubh)}(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:}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj{ubah}(h]h ]h"]h$]h&]uh1jhjxubj)}(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)).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhj~ubh)}(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.chKhj~ubh)}(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.chKhj~ubh)}(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).}(hjЁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubeh}(h]sortingah ]h"]sortingah$]h&]uh1hhj hhhhhKdubh)}(hhh](h)}(hText Searchingh]hText Searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKmubh)}(h INTRODUCTIONh]h INTRODUCTION}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK hjhhubj)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user. h]h)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.h]hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjubah}(h]h ]h"]h$]h&]uh1jhj hKhjhhubh)}(h ARCHITECTUREh]h ARCHITECTURE}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjhhubj#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)}hj6sbah}(h]h ]h"]h$]h&]jjjFtjGtnonejHt}uh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjhhubh)}(hUSAGEh]hUSAGE}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK6hjhhubj)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance. The actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data. Once you're done using a configuration it must be given back via textsearch_destroy. h](h)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.h]hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK8hjVubh)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKAhjVubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKIhjVubeh}(h]h ]h"]h$]h&]uh1jhjhhK8hjhhubh)}(h EXAMPLE::h]hEXAMPLE:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKLhjhhubj#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);}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKNhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h textsearch_register (C function)c.textsearch_registerhNtauh1hhjhhhNhNubh)}(hhh](j)}(h,int textsearch_register (struct ts_ops *ops)h]j)}(h+int textsearch_register(struct ts_ops *ops)h](j )}(hinth]hint}(hjĂhhhNhNubah}(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҂hKubjg)}(htextsearch_registerh]jm)}(htextsearch_registerh]htextsearch_register}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj҂hKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_registerasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hopsh]hops}(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)}(hregister a textsearch moduleh]hregister 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&]uh1jhjhhhj҂hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjŃh]hstruct ts_ops *ops}(hjǃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÃubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(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: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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"textsearch_unregister (C function)c.textsearch_unregisterhNtauh1hhjhhhNhNubh)}(hhh](j)}(h.int textsearch_unregister (struct ts_ops *ops)h]j)}(h-int textsearch_unregister(struct ts_ops *ops)h](j )}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjthKubjg)}(htextsearch_unregisterh]jm)}(htextsearch_unregisterh]htextsearch_unregister}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjthKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjÄmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_unregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjthKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjthKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthKhj[hhubj)}(hhh]h)}(hunregister a textsearch moduleh]hunregister a textsearch module}(hj&hhhNhNubah}(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&]uh1jhj[hhhjthKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjhNhNubj)}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjBubj)}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hjgh]hstruct ts_ops *ops}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjaubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj^ubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjBubh)}(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)}(hj…h]hops}(hjąhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 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&]uh1hhjhKhjBubh)}(hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.h]hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_find_continuous (C function)c.textsearch_find_continuoushNtauh1hhjhhhNhNubh)}(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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj,hKubj)}(h h]h }(hjIhhhNhNubah}(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&]uh1jlhjWubah}(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)}(hj6}h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(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_find_continuousasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hjÆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hconfh]hconf}(hjІhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hstruct ts_state *stateh](j)}(hj6}h]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 reftargetj modnameN classnameNjI jL )}jO ]jc.textsearch_find_continuousasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstateh]hstate}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hconst void *datah](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(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&]noemphjjuh1jhjoubeh}(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&]jjjj0jj0jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state ``const void *data`` data to search in ``unsigned int len`` length of data **Description** A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches. Returns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjYh]hstruct ts_config *conf}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjSubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjPubj)}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjPubj)}(h'``const void *data`` data to search in h](j)}(h``const void *data``h]j)}(hjˈh]hconst 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:114: ./lib/textsearch.chKhjňubj)}(hhh]h)}(hdata to search inh]hdata to search in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjňubeh}(h]h ]h"]h$]h&]uh1jhjhKhjPubj)}(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.chKhjubj)}(hhh]h)}(hlength of datah]hlength of data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(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.chKhj4ubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubh)}(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 }(hjdhhhNhNubj)}(h ``UINT_MAX``h]hUINT_MAX}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh if no occurrence was found.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_prepare (C function)c.textsearch_preparehNtauh1hhjhhhNhNubh)}(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)}(hj6}h]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}(hjĉhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjƉmodnameN classnameNjI jL )}jO ]jR )}jE textsearch_preparesbc.textsearch_prepareasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(htextsearch_prepareh]jm)}(hjh]htextsearch_prepare}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(halgoh]halgo}(hjchhhNhNubah}(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&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hvoidh]hvoid}(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)}(hpatternh]hpattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](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 )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjՊubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՊubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjՊubeh}(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 reftargetj/modnameN classnameNjI jL )}jO ]jc.textsearch_prepareasbuh1hhj&ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(hgfp_maskh]hgfp_mask}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(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)}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjЋjjЋjjjuh1hhhhjhNhNubj)}(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)}(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.``const char *algo`` name of search algorithm h](j)}(h``const char *algo``h]j)}(hjh]hconst char *algo}(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)}(hname of search algorithmh]hname of search algorithm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h%``const void *pattern`` pattern data h](j)}(h``const void *pattern``h]j)}(hj2h]hconst void *pattern}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjubj)}(h'``unsigned int len`` length of pattern h](j)}(h``unsigned int len``h]j)}(hjkh]hunsigned int len}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjeubj)}(hhh]h)}(hlength of patternh]hlength of pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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.chKhjubj)}(hhh]h)}(hallocation maskh]hallocation mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``int flags`` search flags h](j)}(h ``int flags``h]j)}(hj݌h]h int flags}(hjߌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjیubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj׌ubj)}(hhh]h)}(h search flagsh]h search flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj׌ubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjԋubh)}(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.chKhjԋubh)}(h**Note**h]j)}(hj?h]hNote}(hjAhhhNhNubah}(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)}(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.chMhjXubj)}(hhh]h)}(hthe various search algorithms.h]hthe various search algorithms.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjUubah}(h]h ]h"]h$]h&]uh1jhjԋubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhjԋubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_destroy (C function)c.textsearch_destroyhNtauh1hhjhhhNhNubh)}(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 }(hj̍hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjˍhM3ubjg)}(htextsearch_destroyh]jm)}(htextsearch_destroyh]htextsearch_destroy}(hjލhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڍubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjˍhM3ubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_destroyasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjˍhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjˍhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjˍhM3hjhhubj)}(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.chM3hjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjˍhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.chM7hjubj)}(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}(hj׎hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӎhM4hjԎubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӎhM4hjubah}(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.chM6hjubh)}(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.chM5hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_next (C function)c.textsearch_nexthNtauh1hhjhhhNhNubh)}(hhh](j)}(hMunsigned int textsearch_next (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_next(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK^ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhK^ubj )}(hinth]hint}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhjLhK^ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhK^ubjg)}(htextsearch_nexth]jm)}(htextsearch_nexth]htextsearch_next}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhK^ubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j}sbc.textsearch_nextasbuh1hhjubj)}(h h]h }(hjՏhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct ts_state *stateh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_stateh]hts_state}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]jяc.textsearch_nextasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstateh]hstate}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhK^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhK^ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhK^hj3hhubj)}(hhh]h)}(h continue searching for a patternh]h continue 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.hhK^hjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhK^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.hhKbhjubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjːh]hstruct ts_config *conf}(hj͐hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɐubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_hjŐubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK_hjubah}(h]h ]h"]h$]h&]uh1jhjŐubeh}(h]h ]h"]h$]h&]uh1jhjhK_hjubj)}(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.hhK`hjubj)}(hhh]h)}(h search stateh]h search state}(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**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:117: ./include/linux/textsearch.hhKbhjubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKahjubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKehjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_find (C function)c.textsearch_findhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKuubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKuubjg)}(htextsearch_findh]jm)}(htextsearch_findh]htextsearch_find}(hjБhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̑ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKuubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hj6}h]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 jґsbc.textsearch_findasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct ts_state *stateh](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hts_stateh]hts_state}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]j&c.textsearch_findasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(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)}(hstart searching for a patternh]hstart searching for a pattern}(hjߒhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKuhjܒhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKyhjubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hj h]hstruct ts_config *conf}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKvhjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKvhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKvhjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjYh]hstruct ts_state *state}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKwhjSubj)}(hhh]h)}(h search stateh]h search state}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKwhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKwhjubeh}(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:117: ./include/linux/textsearch.hhKyhjubh)}(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.hhKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#textsearch_get_pattern (C function)c.textsearch_get_patternhNtauh1hhjhhhNhNubh)}(hhh](j)}(h6void * textsearch_get_pattern (struct ts_config *conf)h]j)}(h4void *textsearch_get_pattern(struct ts_config *conf)h](j )}(hvoidh]hvoid}(hjٓhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjՓhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՓhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՓhhhjhKubjg)}(htextsearch_get_patternh]jm)}(htextsearch_get_patternh]htextsearch_get_pattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjՓhhhjhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj6}h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.textsearch_get_patternasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjohhhNhNubah}(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&]jjuh1jhjՓhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjѓhhhjhKubah}(h]j̓ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjΓhhubj)}(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&]uh1jhjΓhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hjȔh]h Parameters}(hjʔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƔubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhj”ubj)}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjޔubah}(h]h ]h"]h$]h&]uh1jhj”ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_get_pattern_len (C function)c.textsearch_get_pattern_lenhNtauh1hhjhhhNhNubh)}(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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhKubj )}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhjOhKubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhKubjg)}(htextsearch_get_pattern_lenh]jm)}(htextsearch_get_pattern_lenh]htextsearch_get_pattern_len}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_get_pattern_lenasbuh1hhjubj)}(h h]h }(hjؕhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhKubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhKhj6hhubj)}(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&]uh1jhj6hhhjOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhjhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhj9ubj)}(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.hhKhjXubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]text-searchingah ]h"]text searchingah$]h&]uh1hhj hhhhhKmubeh}(h]basic-kernel-library-functionsah ]h"]basic kernel library functionsah$]h&]uh1hhhhhhhhK/ubh)}(hhh](h)}(hCRC and Math Functions in Linuxh]hCRC and Math Functions in Linux}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKzubh)}(hhh](h)}(hArithmetic Overflow Checkingh]hArithmetic Overflow Checking}(hjÖhhhNhNubah}(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)}(hjh]hcheck_add_overflow}(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.hhK9ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK9ubah}(h]jݖah ](jjeh"]h$]h&]jj)jhuh1hhjhK9hjߖhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjߖhhhjhK9ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_add_overflow (a, b, d)``h]j)}(hj h]hcheck_add_overflow (a, b, d)}(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.hhK;hjhhubj)}(h*Calculate addition with overflow checking h]h)}(h)Calculate addition with overflow checkingh]h)Calculate addition with overflow checking}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK9hj6ubah}(h]h ]h"]h$]h&]uh1jhjHhK9hjhhubj)}(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)}(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:127: ./include/linux/overflow.hhK=hjOubj)}(hhh](j)}(h``a`` first addend h](j)}(h``a``h]j)}(hjth]ha}(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.hhK:hjnubj)}(hhh]h)}(h first addendh]h first addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK:hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK:hjkubj)}(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.hhK;hjubj)}(hhh]h)}(h second addendh]h second addend}(hjƗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj—hK;hj×ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj—hK;hjkubj)}(h``d`` pointer to store sum h](j)}(h``d``h]j)}(hjh]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjOubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK=hjOubh)}(h_***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubhY holds the results of the attempted addition, regardless of whether wrap-around occurred.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK?hjOubeh}(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}(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.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhKGubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhKGhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjhKGubeh}(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.hhKIhjhhubj)}(h*Intentionally perform a wrapping addition h]h)}(h)Intentionally perform a wrapping additionh]h)Intentionally perform a wrapping addition}(hjӘhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKGhjϘubah}(h]h ]h"]h$]h&]uh1jhjhKGhjhhubj)}(h**Parameters** ``type`` type for result of calculation ``a`` first addend ``b`` second addend **Description** Return the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKKhjubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hj h]htype}(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.hhKHhjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKHhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hKHhjubj)}(h``a`` first addend h](j)}(h``a``h]j)}(hjFh]ha}(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.hhKIhj@ubj)}(hhh]h)}(h first addendh]h first addend}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKIhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKIhjubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKJhjyubj)}(hhh]h)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(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.hhKLhjubh)}(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.}(hjЙhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKKhjubeh}(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)}(hjh]hwrapping_assign_add}(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.hhKWubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKWhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKWubeh}(h]h ](jmacroeh"]h$]h&]jjjj/jj/jjjuh1hhhhjhNhNubh)}(h%``wrapping_assign_add (var, offset)``h]j)}(hj5h]h!wrapping_assign_add (var, offset)}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKYhjhhubj)}(h6Intentionally perform a wrapping increment assignment h]h)}(h5Intentionally perform a wrapping increment assignmenth]h5Intentionally perform a wrapping increment assignment}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKWhjKubah}(h]h ]h"]h$]h&]uh1jhj]hKWhjhhubj)}(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)}(hjjh]h Parameters}(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.hhK[hjdubj)}(hhh](j)}(h#``var`` variable to be incremented h](j)}(h``var``h]j)}(hjh]hvar}(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.hhKXhjubj)}(hhh]h)}(hvariable to be incrementedh]hvariable to be incremented}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKXhjubj)}(h``offset`` amount to add h](j)}(h ``offset``h]j)}(hjšh]hoffset}(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.hhKYhjubj)}(hhh]h)}(h amount to addh]h amount to add}(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&]uh1jhjdubh)}(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.hhK[hjdubh)}(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}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKZhjdubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hjXhhhNhNubj)}(h**var**h]hvar}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK]hjdubeh}(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)}(hjh]hcheck_sub_overflow}(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.hhKgubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKghjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKgubeh}(h]h ](jmacroeh"]h$]h&]jjjjɛjjɛjjjuh1hhhhjhNhNubh)}(h ``check_sub_overflow (a, b, d)``h]j)}(hjϛh]hcheck_sub_overflow (a, b, d)}(hjћhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͛ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKihjhhubj)}(h-Calculate subtraction with overflow checking h]h)}(h,Calculate subtraction with overflow checkingh]h,Calculate subtraction with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKghjubah}(h]h ]h"]h$]h&]uh1jhjhKghjhhubj)}(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.hhKkhjubj)}(hhh](j)}(h&``a`` minuend; value to subtract from h](j)}(h``a``h]j)}(hj#h]ha}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhhjubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKhhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hj\h]hb}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKihjVubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjuhhhNhNubj)}(h**a**h]ha}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1hhjqhKihjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKihjubj)}(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.hhKjhjubj)}(hhh]h)}(hpointer to store differenceh]hpointer to store difference}(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}(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.hhKlhjubh)}(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.hhKkhjubh)}(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.hhKmhjubeh}(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)}(hj:h]h wrapping_sub}(hjDhhhNhNubah}(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.hhKuubah}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjWhKuubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjWhKuhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhjWhKuubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhjhNhNubh)}(h``wrapping_sub (type, a, b)``h]j)}(hjvh]hwrapping_sub (type, a, b)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKwhjhhubj)}(h-Intentionally perform a wrapping subtraction h]h)}(h,Intentionally perform a wrapping subtractionh]h,Intentionally perform a wrapping subtraction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKuhjubah}(h]h ]h"]h$]h&]uh1jhjhKuhjhhubj)}(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.hhKyhjubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjʝh]htype}(hj̝hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȝubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKvhjĝubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߝhKvhjubah}(h]h ]h"]h$]h&]uh1jhjĝubeh}(h]h ]h"]h$]h&]uh1jhjߝhKvhjubj)}(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.hhKwhjubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hj<h]hb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKxhj6ubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjUhhhNhNubj)}(h**a**h]ha}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1hhjQhKxhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKxhjubeh}(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.hhKzhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKyhjubeh}(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)}(hjĞh]hwrapping_assign_sub}(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.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&]jjjjjjjjjuh1hhhhjhNhNubh)}(h%``wrapping_assign_sub (var, offset)``h]j)}(hjh]h!wrapping_assign_sub (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.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&]uh1jhj(hKhjhhubj)}(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)}(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:127: ./include/linux/overflow.hhKhj/ubj)}(hhh](j)}(h#``var`` variable to be decremented h](j)}(h``var``h]j)}(hjTh]hvar}(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)}(hvariable to be decrementedh]hvariable to be decremented}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhjKubj)}(h``offset`` amount to subtract 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.hhKhjubj)}(hhh]h)}(hamount to subtracth]hamount to subtract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjKubeh}(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:127: ./include/linux/overflow.hhKhj/ubh)}(hDecrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Decrements }(hjޟhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޟubh by }(hjޟhhhNhNubj)}(h **offset**h]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޟubh2 with wrap-around. Returns the resulting value of }(hjޟhhhNhNubj)}(h**var**h]hvar}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޟubh+. Will not trip any wrap-around sanitizers.}(hjޟhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj/ubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hj#hhhNhNubj)}(h**var**h]hvar}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj/ubeh}(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}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(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\hhhj{hKubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhj{hKhjYhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjYhhhj{hKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_mul_overflow (a, b, d)``h]j)}(hjh]hcheck_mul_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.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&]uh1jhj hKhjhhubj)}(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)}(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``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&]uh1jhjhKhjubj)}(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}(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``d`` pointer to store product h](j)}(h``d``h]j)}(hj`h]hd}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjZubj)}(hhh]h)}(hpointer to store producth]hpointer to store product}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjubeh}(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)}(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.hhKhjɠubh)}(he***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjġhhhNhNubah}(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.hhKhjɠubeh}(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)}(hjh]h wrapping_mul}(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_mul (type, a, b)``h]j)}(hj3h]hwrapping_mul (type, a, b)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Intentionally perform a wrapping multiplication h]h)}(h/Intentionally perform a wrapping multiplicationh]h/Intentionally perform a wrapping multiplication}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjIubah}(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)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjbubj)}(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.hhKhjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj~ubj)}(h``a`` first factor h](j)}(h``a``h]j)}(hjh]ha}(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.hhKhjubj)}(hhh]h)}(h first factorh]h first factor}(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``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~ubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjbubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjbubeh}(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)}(hjsh]hcheck_shl_overflow}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjhKubeh}(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}(hjɣhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjţubah}(h]h ]h"]h$]h&]uh1jhjףhKhjhhubj)}(hX**Parameters** ``a`` Value to be shifted ``s`` How many bits left to shift ``d`` Pointer to where to store the result **Description** Computes ***d** = (**a** << **s**) Returns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions: - '**a** << **s**' causes bits to be lost when stored in ***d**. - '**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0. - '**a**' is negative. - '**a** << **s**' sets the sign bit, if any, in '***d**'. '***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubj)}(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.hhKhjubj)}(hhh]h)}(hValue to be shiftedh]hValue to be shifted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h"``s`` How many bits left to shift h](j)}(h``s``h]j)}(hj<h]hs}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj6ubj)}(hhh]h)}(hHow many bits left to shifth]hHow many bits left to shift}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjubj)}(h+``d`` Pointer to where to store the result h](j)}(h``d``h]j)}(hjuh]hd}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjoubj)}(hhh]h)}(h$Pointer to where to store the resulth]h$Pointer to where to store the result}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubh)}(h"Computes ***d** = (**a** << **s**)h](h Computes }(hjƤhhhNhNubj)}(h***d**h]h*d}(hjΤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƤubh = (}(hjƤhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƤubh << }(hjƤhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƤubh)}(hjƤhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubh)}(hpReturns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions:h](hReturns true if ‘}(hj hhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh&’ cannot hold the result or when ‘}(hj hhhNhNubj)}(h**a**h]ha}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh << }(hj hhhNhNubj)}(h**s**h]hs}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh-’ doesn’t make sense. Example conditions:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjޣubj)}(hhh](j)}(h>'**a** << **s**' causes bits to be lost when stored in ***d**.h]h)}(hjUh](h‘}(hjWhhhNhNubj)}(h**a**h]ha}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh << }(hjWhhhNhNubj)}(h**s**h]hs}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh*’ causes bits to be lost when stored in }(hjWhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjSubah}(h]h ]h"]h$]h&]uh1jhjPubj)}(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}(hjѥhhhNhNubah}(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&]uh1jhjPubj)}(h'**a**' is negative.h]h)}(hjh](h‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’ is negative.}(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&]uh1jhjPubj)}(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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%’ sets the sign bit, if any, in ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hjJhhhNhNubah}(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&]uh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjޣubh)}(hp'***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h‘}(hjohhhNhNubj)}(h***d**h]h*d}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubho’ will hold the results of the attempted shift, but is not considered “safe for use” if true is returned.}(hjohhhNhNubeh}(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](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&]jjjuh1jjjhjhhhjǦhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjǦhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjǦhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``overflows_type (n, T)``h]j)}(hjh]hoverflows_type (n, T)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(hIhelper for checking the overflows between value, variables, or data type h]h)}(hHhelper for checking the overflows between value, variables, or data typeh]hHhelper for checking the overflows between value, variables, or data type}(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** ``n`` source constant value or variable to be checked ``T`` destination variable or data type proposed to store **x** **Description** Compares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression. **Return** true if overflow can occur, false otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h6``n`` source constant value or variable to be checked h](j)}(h``n``h]j)}(hj:h]hn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj4ubj)}(hhh]h)}(h/source constant value or variable to be checkedh]h/source constant value or variable to be checked}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhj1ubj)}(h@``T`` destination variable or data type proposed to store **x** h](j)}(h``T``h]j)}(hjsh]hT}(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.hhKhjmubj)}(hhh]h)}(h9destination variable or data type proposed to store **x**h](h4destination variable or data type proposed to store }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhj1ubeh}(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 }(hjҧhhhNhNubj)}(h**x**h]hx}(hjڧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubhO expression for whether or not it can safely fit in the storage of the type in }(hjҧhhhNhNubj)}(h**T**h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubh. }(hjҧhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubh and }(hjҧhhhNhNubj)}(h**T**h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubh can have different types. If }(hjҧhhhNhNubj)}(h**x**h]hx}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubhK is a constant expression, this will also resolve to a constant expression.}(hjҧhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h,true if overflow can occur, false otherwise.h]h,true if overflow can occur, false otherwise.}(hjShhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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&]jjjuh1jjjhjzhhhjhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhjhKubeh}(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}(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** ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** A strict check to determine if the range [**start**, **start** + **size**) is invalid with respect to the allowable range [0, **max**). Any range starting at or beyond **max** is considered an overflow, even if **size** is 0. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hj h]hstart}(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.hhKhjubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(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`` Size of the range. h](j)}(h``size``h]j)}(hjEh]hsize}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj?ubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKhjubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hj~h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjxubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hA strict check to determine if the range [**start**, **start** + **size**) is invalid with respect to the allowable range [0, **max**). Any range starting at or beyond **max** is considered an overflow, even if **size** is 0.h](h*A strict check to determine if the range [}(hjϩhhhNhNubj)}(h **start**h]hstart}(hjשhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϩubh, }(hjϩhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϩubh + }(hjϩhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϩubh5) is invalid with respect to the allowable range [0, }(hjϩhhhNhNubj)}(h**max**h]hmax}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϩubh#). Any range starting at or beyond }(hjϩhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϩubh$ is considered an overflow, even if }(hjϩhhhNhNubj)}(h**size**h]hsize}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϩubh is 0.}(hjϩhhhNhNubeh}(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)}(hjLh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hjbhhhNhNubah}(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_t (C macro)c.range_overflows_thNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_overflows_th]j)}(hrange_overflows_th]jg)}(hrange_overflows_th]jm)}(hjh]hrange_overflows_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.``range_overflows_t (type, start, size, max)``h]j)}(hjǪh]h*range_overflows_t (type, start, size, max)}(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 hjhhubj)}(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.hhMhjݪubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``type`` Data type to use. ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Same as range_overflows() but forcing the parameters to **type**. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjubj)}(hhh](j)}(h``type`` Data type to use. h](j)}(h``type``h]j)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjTh]hstart}(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.hhM hjNubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM hjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.hhM hjubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(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&]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.hhM hjubh)}(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.hhM hjubh)}(h **Return**h]j)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hjPhhhNhNubah}(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](hrange_end_overflows (C macro)c.range_end_overflowshNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_end_overflowsh]j)}(hrange_end_overflowsh]jg)}(hrange_end_overflowsh]jm)}(hjyh]hrange_end_overflows}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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&]jjjuh1jjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhMubeh}(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}(hjϬhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjˬubah}(h]h ]h"]h$]h&]uh1jhjݬhMhjhhubj)}(hX**Parameters** ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Checks only if the endpoint of a range (**start** + **size**) exceeds **max**. Unlike range_overflows(), a zero-sized range at the boundary (**start** == **max**) is not considered an overflow. Useful for iterator-style checks. **Return** true if the endpoint exceeds the boundary.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hj h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjBh]hsize}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj<ubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hj{h]hmax}(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)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(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:127: ./include/linux/overflow.hhMhjubh)}(hChecks only if the endpoint of a range (**start** + **size**) exceeds **max**. Unlike range_overflows(), a zero-sized range at the boundary (**start** == **max**) is not considered an overflow. Useful for iterator-style checks.h](h(Checks only if the endpoint of a range (}(hj̭hhhNhNubj)}(h **start**h]hstart}(hjԭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̭ubh + }(hj̭hhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̭ubh ) exceeds }(hj̭hhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̭ubh@. Unlike range_overflows(), a zero-sized range at the boundary (}(hj̭hhhNhNubj)}(h **start**h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̭ubh == }(hj̭hhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̭ubhB) is not considered an overflow. Useful for iterator-style checks.}(hj̭hhhNhNubeh}(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)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h*true if the endpoint exceeds the boundary.h]h*true if the endpoint exceeds the boundary.}(hjMhhhNhNubah}(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](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)}(hjvh]hrange_end_overflows_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhM*ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhM*hjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhM*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}(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&]uh1jhjڮhM*hjhhubj)}(hX!**Parameters** ``type`` Data type to use. ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Same as range_end_overflows() but forcing the parameters to **type**. **Return** true if the endpoint exceeds the boundary.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM.hjubj)}(hhh](j)}(h``type`` Data type to use. h](j)}(h``type``h]j)}(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)}(hData type to use.h]hData type to use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hj?h]hstart}(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.hhM,hj9ubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM,hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM,hjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjxh]hsize}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM-hjrubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(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.}(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&]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.hhM0hjubh)}(hESame as range_end_overflows() but forcing the parameters to **type**.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:127: ./include/linux/overflow.hhMphj6ubj)}(hhh]h)}(h"value to subtract from **minuend**h](hvalue to subtract from }(hjUhhhNhNubj)}(h **minuend**h]hminuend}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1hhjQhMphjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMphjubeh}(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:127: ./include/linux/overflow.hhMrhj޶ubh)}(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 }(hjhhhNhNubj)}(h **minuend**h]hminuend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh - }(hjhhhNhNubj)}(h**subtrahend**h]h subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX, 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMrhj޶ubeh}(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)}(hjh]h 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``array_size (a, b)``h]j)}(hj$h]harray_size (a, b)}(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.hhMhjhhubj)}(h'Calculate size of 2-dimensional array. h]h)}(h&Calculate size of 2-dimensional array.h]h&Calculate size of 2-dimensional array.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj:ubah}(h]h ]h"]h$]h&]uh1jhjLhMhjhhubj)}(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)}(hjYh]h Parameters}(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.hhMhjSubj)}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjxh]ha}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubj)}(hhh]h)}(h dimension oneh]h dimension one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(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}(hjʸhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƸhMhjǸubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƸhMhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(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.hhMhjSubh)}(h6Calculates size of 2-dimensional array: **a** * **b**.h](h(Calculates size of 2-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hj hhhNhNubah}(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.hhMhjSubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjSubh)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjSubeh}(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)}(hjvh]h array3_size}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(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.}(hj̹hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjȹubah}(h]h ]h"]h$]h&]uh1jhjڹhMhjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two ``c`` dimension three **Description** Calculates size of 3-dimensional array: **a** * **b** * **c**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h dimension oneh]h dimension one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hj?h]hb}(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.hhMhj9ubj)}(hhh]h)}(h dimension twoh]h dimension two}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubj)}(h``c`` dimension three h](j)}(h``c``h]j)}(hjxh]hc}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubj)}(hhh]h)}(hdimension threeh]hdimension three}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(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:127: ./include/linux/overflow.hhMhjubh)}(h>Calculates size of 3-dimensional array: **a** * **b** * **c**.h](h(Calculates size of 3-dimensional array: }(hjɺhhhNhNubj)}(h**a**h]ha}(hjѺhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɺubh * }(hjɺhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɺubh * }hjɺsbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɺubh.}(hjɺhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hflex_array_size (C macro)c.flex_array_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(hflex_array_sizeh]j)}(hflex_array_sizeh]jg)}(hflex_array_sizeh]jm)}(hjOh]hflex_array_size}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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&]jjjjjjjjjuh1hhhhjhNhNubh)}(h&``flex_array_size (p, member, count)``h]j)}(hjh]h"flex_array_size (p, 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)}(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}(hj»hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h ``p`` Pointer to the structure. h](j)}(h``p``h]j)}(hj߻h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݻubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjٻubj)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjٻubeh}(h]h ]h"]h$]h&]uh1jhjhMhjֻubj)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjֻubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hjQh]hcount}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjֻ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)}(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}(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)}(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)}(hj(h]h struct_size}(hj2hhhNhNubah}(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&]jjjuh1jjjhj&hhhjEhMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhjEhMhj#hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj#hhhjEhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj^jj^jjjuh1hhhhjhNhNubh)}(h"``struct_size (p, member, count)``h]j)}(hjdh]hstruct_size (p, member, count)}(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.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.hhMhjzubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(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)}(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 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.}(hj hhhNhNubah}(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&]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.}(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&]uh1jhjubh)}(h**Description**h]j)}(hjeh]h Description}(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.hhMhjubh)}(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 }(hj{hhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh followed by an array of }(hj{hhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh number of }(hj{hhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh elements.}(hj{hhhNhNubeh}(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)}(hj¾h]hReturn}(hjľhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed 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.hhMhjubeh}(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}(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.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&]jjjj7jj7jjjuh1hhhhjhNhNubh)}(h'``struct_size_t (type, member, count)``h]j)}(hj=h]h#struct_size_t (type, member, 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.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}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjSubah}(h]h ]h"]h$]h&]uh1jhjehMhjhhubj)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjlubj)}(hhh](j)}(h``type`` structure type name. 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)}(hstructure type name.h]hstructure type name.}(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)}(hjʿh]hmember}(hj̿hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȿubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjĿubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj߿hMhjubah}(h]h ]h"]h$]h&]uh1jhjĿubeh}(h]h ]h"]h$]h&]uh1jhj߿hMhjubj)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(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.hhMhjlubh)}(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 }(hjThhhNhNubj)}(h**type**h]htype}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh followed by an array of }(hjThhhNhNubj)}(h **count**h]hcount}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh number of }(hjThhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type }(hjThhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjlubh)}(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.hhMhjlubh)}(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.hhMhjlubeh}(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)}(hjh]h __DEFINE_FLEX}(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&]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)}(h9``__DEFINE_FLEX (type, name, member, count, trailer...)``h]j)}(hj(h]h5__DEFINE_FLEX (type, name, member, count, trailer...)}(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.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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj>ubah}(h]h ]h"]h$]h&]uh1jhjPhMhjhhubj)}(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)}(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.hhMhjWubj)}(hhh](j)}(h:``type`` structure type name, including "struct" keyword. h](j)}(h``type``h]j)}(hj|h]htype}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjvubj)}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(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&]uh1jhjhMhjsubj)}(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&]uh1jhjhMhjsubj)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hj'h]hcount}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj!ubj)}(hhh]h)}(hubj)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hj}h]hname}(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.hhMhjwubj)}(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&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhj;ubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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&]uh1jhjhMhj;ubj)}(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)}(hubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj;ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_RAW_FLEX (C macro)c.DEFINE_RAW_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(hDEFINE_RAW_FLEXh]j)}(hDEFINE_RAW_FLEXh]jg)}(hDEFINE_RAW_FLEXh]jm)}(hjh]hDEFINE_RAW_FLEX}(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/``DEFINE_RAW_FLEX (type, name, member, count)``h]j)}(hjh]h+DEFINE_RAW_FLEX (type, name, 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)}(hDefine an on-stack instance of structure with a trailing flexible array member, when it does not have a __counted_by annotation. h]h)}(hDefine an on-stack instance of structure with a trailing flexible array member, when it does not have a __counted_by annotation.h]hDefine an on-stack instance of structure with a trailing flexible array member, when it does not have a __counted_by annotation.}(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. ``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.hhMhjubj)}(hhh](j)}(h:``type`` structure type name, including "struct" keyword. h](j)}(h``type``h]j)}(hj h]htype}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hjYh]hname}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjSubj)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubj)}(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)}(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}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD structure with a trailing flexible array member. Use __struct_size(}(hjhhhNhNubj)}(h**name**h]hname}(hj6hhhNhNubah}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) to get compile-time size of }(hjhhhNhNubj)}(h**name**h]hname}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjhhhNhNubj)}(h**name**h]hname}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **member**h]hmember}(hj~hhhNhNubah}(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.hhMhjubeh}(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)}(hjh]h DEFINE_FLEX}(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)}(h4``DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)``h]j)}(hjh]h0DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, 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)}(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&]uh1jhj'hMhjhhubj)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj.ubj)}(hhh](j)}(h:``TYPE`` structure type name, including "struct" keyword. h](j)}(h``TYPE``h]j)}(hjSh]hTYPE}(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.hhMhjMubj)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubj)}(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&]uh1jhjhMhjJubj)}(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&]uh1jhjhMhjJubj)}(h-``COUNTER`` Name of the __counted_by member. h](j)}(h ``COUNTER``h]j)}(hjh]hCOUNTER}(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 __counted_by member.h]h Name of the __counted_by member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjJubj)}(hG``COUNT`` Number of elements in the array; must be compile-time const. h](j)}(h ``COUNT``h]j)}(hj7h]hCOUNT}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj1ubj)}(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.hhM hj.ubeh}(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)}(hj/h]hSTACK_FLEX_ARRAY_SIZE}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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&]jjjjejjejjjuh1hhhhjhNhNubh)}(h'``STACK_FLEX_ARRAY_SIZE (name, array)``h]j)}(hjkh]h#STACK_FLEX_ARRAY_SIZE (name, array)}(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.hhMhjhhubj)}(hThelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**. h]h)}(hShelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**.h](hIhelper macro for DEFINE_FLEX() family. Returns the number of elements in }(hjhhhNhNubj)}(h **array**h]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). ``array`` Name of the array member.h](h)}(h**Parameters**h]j)}(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)}(hI``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). 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)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``array`` Name of the array member.h](j)}(h ``array``h]j)}(hj h]harray}(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)}(hName of the array member.h]hName of the array member.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc4 (C function)c.crc4hNtauh1hhjShhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc4sbc.crc4asbuh1hhjyhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyhhhjhKubjg)}(hcrc4h]jm)}(hjh]hcrc4}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjhKubj)}(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 ]jc.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 ]jc.crc4asbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hxh]hx}(hjEhhhNhNubah}(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 hjZubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubjm)}(hbitsh]hbits}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjhKubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjrhhubj)}(hhh]h)}(h#calculate the 4-bit crc of a value.h]h#calculate the 4-bit crc of a value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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}(hj hhhNhNubah}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjubj)}(h1``int bits`` number of bits in **x** to checksum h](j)}(h ``int bits``h]j)}(hjWh]hint bits}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjQubj)}(hhh]h)}(h#number of bits in **x** to checksumh](hnumber of bits in }(hjphhhNhNubj)}(h**x**h]hx}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh to checksum}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhKhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjubeh}(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: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&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc7_be (C function) c.crc7_behNtauh1hhjShhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE crc7_besb c.crc7_beasbuh1hhj*hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhjRhK5ubjg)}(hcrc7_beh]jm)}(hjOh]hcrc7_be}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhjRhK5ubj)}(h&(u8 crc, const u8 *buffer, size_t len)h](j)}(hu8 crch](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jM c.crc7_beasbuh1hhj|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)}(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 ]jM 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&]noemphjjuh1jhjxubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jM c.crc7_beasbuh1hhj4ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(hlenh]hlen}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhjRhK5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhjRhK5ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhjRhK5hj#hhubj)}(hhh]h)}(h#update the CRC7 for the data bufferh]h#update the CRC7 for the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5hjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhjRhK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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)}(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:136: ./lib/crc/crc7.chK9hjubj)}(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)}(hj h]hconst u8 *buffer}(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:136: ./lib/crc/crc7.chK7hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK7hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK7hjubj)}(h-``size_t len`` number of bytes in the buffer 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK8hj>ubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhK8hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjubh)}(hanyh]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjubh)}(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:136: ./lib/crc/crc7.chK;hjubh)}(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:hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_msb (C function)c.crc8_populate_msbhNtauh1hhjShhhNhNubh)}(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}(hj hhhNhNubah}(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}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE jsbc.crc8_populate_msbasbuh1hhj$ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubjm)}(htableh]htable}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubj)}(h[h]h[}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]jGc.crc8_populate_msbasbuh1hhj$ubj)}(h]h]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h u8 polynomialh](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jGc.crc8_populate_msbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h polynomialh]h polynomial}(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)}(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&]jjjj jj jjjuh1hhhhjShNhNubj)}(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)}(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:139: ./lib/crc/crc8.chKhj$ubj)}(hhh](j)}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j)}(h``u8 table[CRC8_TABLE_SIZE]``h]j)}(hjIh]hu8 table[CRC8_TABLE_SIZE]}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjCubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hKhj@ubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(hjh]h u8 polynomial}(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.chKhj|ubj)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_lsb (C function)c.crc8_populate_lsbhNtauh1hhjShhhNhNubh)}(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 }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hjih]h[}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]j8c.crc8_populate_lsbasbuh1hhjubj)}(hjh]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j8c.crc8_populate_lsbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h polynomialh]h polynomial}(hjhhhNhNubah}(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)}(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&]jjjjjjjjjuh1hhhhjShNhNubj)}(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)}(hj8h]hu8 table[CRC8_TABLE_SIZE]}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK1hj2ubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhK1hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhK1hj/ubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(hjqh]h u8 polynomial}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK3hjkubj)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK2hjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhK3hj/ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8 (C function)c.crc8hNtauh1hhjShhhNhNubh)}(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 }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hjih]h[}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjubj)}(hjh]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *pdatah](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&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpdatah]hpdata}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t nbytesh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhj'ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubjm)}(hnbytesh]hnbytes}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu8 crch](h)}(hhh]jm)}(hu8h]hu8}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jc.crc8asbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(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&]jjjjjjjjjuh1hhhhjShNhNubj)}(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)}(hj h]hconst u8 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.chKFhjubj)}(hhh]h)}(hcrc table used for calculation.h]hcrc table used for calculation.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKFhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hKFhjubj)}(h,``const u8 *pdata`` pointer to data buffer. h](j)}(h``const u8 *pdata``h]j)}(hjFh]hconst u8 *pdata}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKGhj@ubj)}(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&]uh1jhj@ubeh}(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)}(hjh]h size_t nbytes}(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.chKHhjyubj)}(hhh]h)}(hnumber of bytes in data buffer.h]hnumber of bytes in data buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubj)}(h(``u8 crc`` previous returned crc8 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:139: ./lib/crc/crc8.chKJhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc16 (C function)c.crc16hNtauh1hhjShhhNhNubh)}(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 }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj6hK0ubjg)}(hcrc16h]jm)}(hj3h]hcrc16}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj6hK0ubj)}(h"(u16 crc, const u8 *p, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]j1c.crc16asbuh1hhj`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&]noemphjjuh1jhj\ubj)}(h const u8 *ph](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 ]j1c.crc16asbuh1hhjubj)}(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 reftargetj modnameN classnameNjI jL )}jO ]j1c.crc16asbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj6hK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hK0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hK0hjhhubj)}(hhh]h)}(h&compute the CRC-16 for the data bufferh]h&compute the CRC-16 for the data buffer}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK0hjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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)}(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:142: ./lib/crc/crc16.chK4hjubj)}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK1hjubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubj)}(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&]uh1jhjhK2hjubj)}(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&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK3hj!ubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hK3hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(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.chK5hjubh)}(hReturns the updated CRC value.h]hReturns the updated CRC value.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_ccitt (C function) c.crc_ccitthNtauh1hhjShhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc_ccittsb c.crc_ccittasbuh1hhjhhhX/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&]uh1jhjhhhjhK3ubjg)}(h crc_ccitth]jm)}(hjh]h crc_ccitt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK3ubj)}(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}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu8 const *bufferh](h)}(hhh]jm)}(hu8h]hu8}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]j c.crc_ccittasbuh1hhj=ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hbufferh]hbuffer}(hjhhhNhNubah}(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 ]j c.crc_ccittasbuh1hhjubj)}(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&]jjuh1jhjhhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK3hjhhubj)}(hhh]h)}(h9recompute the CRC (CRC-CCITT variant) for the data bufferh]h9recompute the CRC (CRC-CCITT variant) for the data buffer}(hj hhhNhNubah}(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&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhjShNhNubj)}(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)}(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:145: ./lib/crc/crc-ccitt.chK7hj&ubj)}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjKh]hu16 crc}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK5hjEubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hK5hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hK5hjBubj)}(h"``u8 const *buffer`` data pointer h](j)}(h``u8 const *buffer``h]j)}(hjh]hu8 const *buffer}(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.chK6hj~ubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjBubj)}(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.chK8hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_itu_t (C function) c.crc_itu_thNtauh1hhjShhhNhNubh)}(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 }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj;hK2ubjg)}(h crc_itu_th]jm)}(hj8h]h crc_itu_t}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj;hK2ubj)}(h'(u16 crc, const u8 *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]j6 c.crc_itu_tasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(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 ]j6 c.crc_itu_tasbuh1hhjubj)}(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&]noemphjjuh1jhjaubj)}(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 ]j6 c.crc_itu_tasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj;hK2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj;hK2ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hK2hj hhubj)}(hhh]h)}(h)Compute the CRC-ITU-T for the data bufferh]h)Compute the CRC-ITU-T for the data buffer}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2hjwhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj;hK2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hjubj)}(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.chK4hjubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK5hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK5hjubj)}(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&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hj'ubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhK6hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhK6hjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK8hjubh)}(hReturns the updated CRC valueh]hReturns the updated CRC value}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_le (C function) c.crc32_lehNtauh1hhjShhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc32_lesb c.crc32_leasbuh1hhjhhhZ/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_leh]jm)}(hjh]hcrc32_le}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc32_leasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(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 ]j c.crc32_leasbuh1hhjubj)}(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&]jjuh1jhjhhhjhK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK hjhhubj)}(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&]uh1jhjhhhjhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK 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)}(hj=h]hu32 crc}(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)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhK hj4ubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjwh]h const void *p}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjqubj)}(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&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhK hj4ubj)}(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&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK 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&]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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjYh]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.hhKhjWubah}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjoubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj,hKhjubh)}(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 }(hjhhhNhNubj)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(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().}(hjhhhNhNubah}(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&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_be (C function) c.crc32_behNtauh1hhjShhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE crc32_besb c.crc32_beasbuh1hhj(hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(hhhjPhK(ubjg)}(hcrc32_beh]jm)}(hjMh]hcrc32_be}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhjPhK(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&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jK c.crc32_beasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(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&]noemphjjuh1jhjvubj)}(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 ]jK c.crc32_beasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhjPhK(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhjPhK(ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjPhK(hj!hhubj)}(hhh]h)}(h.Compute most-significant-bit-first IEEE CRC-32h]h.Compute most-significant-bit-first IEEE CRC-32}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(hjxhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhjPhK(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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)}(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)}(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&]uh1hhj hK+hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK+hjubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hj/h]h size_t len}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK,hj)ubj)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhK,hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhK,hjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK.hjubh)}(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 }(hjhhhNhNubj)}(h*most-significant-bit-first*h]hmost-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK-hjubj)}(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.hhK2hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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&]uh1jhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhK2hjubh)}(h **Context**h]j)}(hj!h]hContext}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK7hjubh)}(h Any contexth]h Any context}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK8hjubh)}(h **Return**h]j)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK:hjubh)}(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.hhK9hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32c (C function)c.crc32chNtauh1hhjShhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc32csbc.crc32casbuh1hhjhhhZ/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)}(hcrc32ch]jm)}(hjh]hcrc32c}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.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}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj )}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hjh]hp}(hjkhhhNhNubah}(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 ]jc.crc32casbuh1hhjubj)}(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&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjhhubj)}(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&]uh1jhjhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK?hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hK@hjubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjWh]h const void *p}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKAhjQubj)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKAhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhKAhjubj)}(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.hhKBhjubj)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKBhjubeh}(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.hhKGhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKFhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hj9h]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.hhKHhj7ubah}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKIhjOubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj hKFhjubh)}(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 }(hjnhhhNhNubj)}(h*not*h]hnot}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh 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.}(hjnhhhNhNubeh}(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)}(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.hhKNhjubh)}(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.hhKOhjubh)}(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.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&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_be (C function) c.crc64_behNtauh1hhjShhhNhNubh)}(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 }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj!hKubjg)}(hcrc64_beh]jm)}(hjh]hcrc64_be}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj!hKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]jm)}(hu64h]hu64}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]j c.crc64_beasbuh1hhjKubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubjm)}(hcrch]hcrc}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(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&]noemphjjuh1jhjGubj)}(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}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(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+Calculate bitwise big-endian ECMA-182 CRC64h]h+Calculate bitwise big-endian ECMA-182 CRC64}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhjShNhNubj)}(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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjhubj)}(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)}(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.hhK hjubj)}(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.}(hjhhhNhNubah}(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 hjubj)}(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 hjubj)}(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}(hj!hhhNhNubah}(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 hjubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_nvme (C function) c.crc64_nvmehNtauh1hhjShhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jR )}jE crc64_nvmesb c.crc64_nvmeasbuh1hhjdhhhZ/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&]uh1jhjdhhhjhKubjg)}(h crc64_nvmeh]jm)}(hjh]h crc64_nvme}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjhKubj)}(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_nvmeasbuh1hhjubj)}(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 }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjFhhhNhNubah}(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 ]j c.crc64_nvmeasbuh1hhjZubj)}(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&]jjuh1jhjdhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjhKubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhj]hhubj)}(hhh]h)}(hCalculate CRC64-NVMEh]hCalculate CRC64-NVME}(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&]uh1jhj]hhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjShNhNubj)}(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&]uh1jhj hKhjubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hj2h]h const void *p}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhj,ubj)}(hhh]h)}(h)pointer to buffer over which CRC64 is runh]h)pointer to buffer over which CRC64 is run}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjubj)}(h&``size_t len`` length of buffer **p** h](j)}(h``size_t len``h]j)}(hjkh]h size_t len}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjeubj)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(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&]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, }(hjhhhNhNubj)}(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&]uh1jhjubh.}(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&]uh1jhjShhhNhNubeh}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj1hK%ubjg)}(h is_power_of_2h]jm)}(h is_power_of_2h]h is_power_of_2}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj1hK%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 }(hjnhhhNhNubah}(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\ubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj1hK%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hK%ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hK%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&]uh1jhjhhhj1hK%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)}(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.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 }(hjShhhNhNubj)}(h*not*h]hnot}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh considered a power of two.}(hjShhhNhNubeh}(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)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(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 }(hjhhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" is a power of 2, otherwise false.}(hjhhhNhNubeh}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK3ubj)}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](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.hhK7hjubj)}(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&]uh1jhjubeh}(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}(hj"hhhNhNubah}(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 }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj0hK=ubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj0hK=ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj0hK=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&]jjuh1jfhjhhhj0hK=ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hK=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hK=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&]uh1jhjhhhj0hK=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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK>hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKChjubah}(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)}(hjqh]h const_ilog2}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhKGubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhKGhjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhjhKGubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``const_ilog2 (n)``h]j)}(hjh]hconst_ilog2 (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.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)}(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.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.}(hjRhhhNhNubah}(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)}(hj{h]hilog2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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&]jjjuh1jjjhjyhhhjhKubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjvhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjvhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``ilog2 (n)``h]j)}(hjh]h ilog2 (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)}(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)}(hj h]hn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.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)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(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)}(hjkhhhNhNubah}(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)}(hjh]hroundup_pow_of_two}(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``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)}(hj$h]hn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.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}(hjuhhhNhNubah}(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)}(hjh]hrounddown_pow_of_two}(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``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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj ubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hj.h]hn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj(ubj)}(hhh]h)}(h parameterh]h parameter}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj ubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj ubeh}(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)}(hjh]h order_base_2}(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``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&]uh1jhj hKhjhhubj)}(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)}(hj8h]hn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj2ubj)}(hhh]h)}(h parameterh]h parameter}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubah}(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&]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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(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.}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj/ubah}(h]h ]h"]h$]h&]uh1jhjAhKhjhhubj)}(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)}(hjNh]h Parameters}(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.hhKhjHubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjmh]hn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjgubj)}(hhh]h)}(h parameterh]h parameter}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjHubh)}(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.hhKhjHubh)}(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.hhKhjHubeh}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(hmax_pow_of_two_factorh]jm)}(hmax_pow_of_two_factorh]hmax_pow_of_two_factor}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(unsigned int n)h]j)}(hunsigned int nh](j )}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj )}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(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 return highest power-of-2 factorh]h return highest power-of-2 factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(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&]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)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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.}(hjHhhhNhNubah}(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}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog2 (C function) c.intlog2hNtauh1hhjfhhhNhNubh)}(hhh](j)}(h unsigned int intlog2 (u32 value)h]j)}(hunsigned int intlog2(u32 value)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hintlog2h]jm)}(hintlog2h]hintlog2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(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 }(hj hhhNhNubah}(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&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjAhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1hhhhjfhNhNubj)}(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)}(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:164: ./include/linux/int_log.hhKhj`ubj)}(hhh]j)}(h'``u32 value`` The value (must be != 0) h](j)}(h ``u32 value``h]j)}(hjh]h u32 value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubj)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(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&]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.hhKhj ubh)}(h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24h]h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubh)}(h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24h]h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj`ubh)}(h **Return**h]j)}(hjFh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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&]uh1jhjfhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog10 (C function) c.intlog10hNtauh1hhjfhhhNhNubh)}(hhh](j)}(h!unsigned int intlog10 (u32 value)h]j)}(h unsigned int intlog10(u32 value)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK$ubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK$ubjg)}(hintlog10h]jm)}(hintlog10h]hintlog10}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK$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&]jjuh1jhjhhhjhK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK$ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhK$hjhhubj)}(hhh]h)}(h@computes log10 of a value; the result is shifted left by 24 bitsh]h@computes log10 of a value; the result is shifted left by 24 bits}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$hj<hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhjfhNhNubj)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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)}(hjh]h u32 value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK&hjzubj)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjwubah}(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-hj ubah}(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}(hj%hhhNhNubah}(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}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK1hj[ubh)}(h **Return**h]j)}(hjKh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(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}(hjahhhNhNubah}(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&]uh1jhjfhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_pow (C function) c.int_powhNtauh1hhjfhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE int_powsb c.int_powasbuh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK ubjg)}(hint_powh]jm)}(hjh]hint_pow}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK 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 ]j 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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj )}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(hexph]hexp}(hjbhhhNhNubah}(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)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjfhNhNubj)}(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)}(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:166: ./lib/math/int_pow.chKhjubj)}(hhh](j)}(h:``u64 base`` base which will be raised to the given power h](j)}(h ``u64 base``h]j)}(hjh]hu64 base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjubj)}(hhh]h)}(h,base which will be raised to the given powerh]h,base which will be raised to the given power}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h+``unsigned int exp`` power to be raised to h](j)}(h``unsigned int exp``h]j)}(hjh]hunsigned int exp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjubj)}(hhh]h)}(hpower to be raised toh]hpower to be raised to}(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)}(hjAh]h Description}(hjChhhNhNubah}(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.chKhjubh)}(hCComputes: pow(base, exp), i.e. **base** raised to the **exp** powerh](hComputes: pow(base, exp), i.e. }(hjWhhhNhNubj)}(h**base**h]hbase}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh raised to the }(hjWhhhNhNubj)}(h**exp**h]hexp}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh power}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjfhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt (C function) c.int_sqrthNtauh1hhjfhhhNhNubh)}(hhh](j)}(h(unsigned long int_sqrt (unsigned long x)h]j)}(h'unsigned long int_sqrt(unsigned long x)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hint_sqrth]jm)}(hint_sqrth]hint_sqrt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(unsigned long x)h]j)}(hunsigned long xh](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)}(hjGh]hx}(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]h)}(h computes the integer square rooth]h computes the integer square root}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjfhNhNubj)}(hw**Parameters** ``unsigned long x`` integer of which to calculate the sqrt **Description** Computes: floor(sqrt(x))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:169: ./lib/math/int_sqrt.chKhjubj)}(hhh]j)}(h;``unsigned long x`` integer of which to calculate the sqrt h](j)}(h``unsigned long x``h]j)}(hjh]hunsigned long x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjubj)}(hhh]h)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(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:169: ./lib/math/int_sqrt.chKhjubh)}(hComputes: floor(sqrt(x))h]hComputes: floor(sqrt(x))}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjfhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt64 (C function) c.int_sqrt64hNtauh1hhjfhhhNhNubh)}(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 }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhjIhK-ubjg)}(h int_sqrt64h]jm)}(hjFh]h int_sqrt64}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhjIhK-ubj)}(h(u64 x)h]j)}(hu64 xh](h)}(hhh]jm)}(hu64h]hu64}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jD c.int_sqrt64asbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubjm)}(hjGh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubah}(h]h ]h"]h$]h&]jjuh1jhj!hhhjIhK-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjIhK-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjIhK-hjhhubj)}(hhh]h)}(hGstrongly typed int_sqrt function when minimum 64 bit input is expected.h]hGstrongly typed int_sqrt function when minimum 64 bit input is expected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjIhK-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjfhNhNubj)}(hH**Parameters** ``u64 x`` 64bit integer of which to calculate the sqrth](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK1hjubj)}(hhh]j)}(h6``u64 x`` 64bit integer of which to calculate the sqrth](j)}(h ``u64 x``h]j)}(hjh]hu64 x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.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%hK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjfhhhNhNubeh}(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&]uh1hhjYhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdo_div (C macro)c.do_divhNtauh1hhjYhhhNhNubh)}(hhh](j)}(hdo_divh]j)}(hdo_divh]jg)}(hdo_divh]jm)}(hj}h]hdo_div}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhK ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhK hjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjhK ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjYhNhNubh)}(h``do_div (n, base)``h]j)}(hjh]hdo_div (n, base)}(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"hjYhhubj)}(h>returns 2 values: calculate remainder and update new dividend h]h)}(h=returns 2 values: calculate remainder and update new dividendh]h=returns 2 values: calculate remainder and update new dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjhK hjYhhubj)}(hX**Parameters** ``n`` uint64_t dividend (will be updated) ``base`` uint32_t divisor **Description** Summary: ``uint32_t remainder = n % base;`` ``n = n / base;`` **Return** (uint32_t)remainder **NOTE** macro parameter **n** is evaluated multiple times, beware of side effects!h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK$hjubj)}(hhh](j)}(h*``n`` uint64_t dividend (will be updated) h](j)}(h``n``h]j)}(hj h]hn}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hK!hjubj)}(h``base`` uint32_t divisor h](j)}(h``base``h]j)}(hjFh]hbase}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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)}(huint32_t divisorh]huint32_t divisor}(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"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&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK$hjubh)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hjhhhNhNubj)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubj)}(h``n = n / base;``h]h n = n / base;}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK#hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK'hjubh)}(h(uint32_t)remainderh]h(uint32_t)remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK(hjubh)}(h**NOTE**h]j)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjubh)}(hJmacro parameter **n** is evaluated multiple times, beware of side effects!h](hmacro parameter }(hjhhhNhNubj)}(h**n**h]hn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 is evaluated multiple times, beware of side effects!}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64_rem (C function) c.div_u64_remhNtauh1hhjYhhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE div_u64_remsb c.div_u64_remasbuh1hhjBhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjjhKubjg)}(h div_u64_remh]jm)}(hjgh]h div_u64_rem}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjjhKubj)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]je c.div_u64_remasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 ]je 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&]noemphjjuh1jhjubj)}(hu32 *remainderh](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 ]je c.div_u64_remasbuh1hhj$ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(h remainderh]h remainder}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjjhKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjjhKhj;hhubj)}(hhh]h)}(h7unsigned 64bit divide with 32bit divisor with remainderh]h7unsigned 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.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjYhNhNubj)}(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)}(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)``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}(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)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj!hhhNhNubah}(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)}(hjAh]hu32 *remainder}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj;ubj)}(hhh]h)}(h#pointer to unsigned 32bit remainderh]h#pointer to unsigned 32bit remainder}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhKhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjhhhNhNubj)}(h``*remainder``h]h *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!, then returns dividend / divisor}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubh)}(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:178: ./include/linux/math64.hhKhjubh)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64_rem (C function) c.div_s64_remhNtauh1hhjYhhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK!ubj)}(h+(s64 dividend, s32 divisor, s32 *remainder)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]j c.div_s64_remasbuh1hhjHubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubjm)}(hdividendh]hdividend}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(h s32 divisorh](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&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h remainderh]h remainder}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(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}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!hj? hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZ jjZ jjjuh1hhhhjYhNhNubj)}(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)}(hjd h]h Parameters}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK%hj^ ubj)}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hj h]h s64 dividend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK"hj} ubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(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"hjz ubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hj h]h s32 divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK#hj ubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(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#hjz ubj)}(h5``s32 *remainder`` pointer to signed 32bit remainder h](j)}(h``s32 *remainder``h]j)}(hj h]hs32 *remainder}(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.hhK$hj ubj)}(hhh]h)}(h!pointer to signed 32bit remainderh]h!pointer to signed 32bit remainder}(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$hjz ubeh}(h]h ]h"]h$]h&]uh1jhj^ ubh)}(h **Return**h]j)}(hj0 h]hReturn}(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.hhK&hj^ ubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjF hhhNhNubj)}(h``*remainder``h]h *remainder}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubh!, then returns dividend / divisor}(hjF 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&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_u64_rem (C function)c.div64_u64_remhNtauh1hhjYhhhNhNubh)}(hhh](j)}(h=u64 div64_u64_rem (u64 dividend, u64 divisor, u64 *remainder)h]j)}(hhjBubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hK>hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hK>hj?ubj)}(h'``u64 divisor`` unsigned 64bit divisor h](j)}(h``u64 divisor``h]j)}(hjh]h u64 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK?hj{ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(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.hhKAhj#ubh)}(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.hhKAhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_s64 (C function) c.div64_s64hNtauh1hhjYhhhNhNubh)}(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 }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj%hKIubjg)}(h div64_s64h]jm)}(hj"h]h div64_s64}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hKIubj)}(h(s64 dividend, s64 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]j  c.div64_s64asbuh1hhjOubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(h s64 divisorh](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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hKIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj%hKIhjhhubj)}(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&]uh1jhjhhhj%hKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjYhNhNubj)}(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)}(hj5h]h s64 dividend}(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.hhKJhj/ubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKJhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKJhj,ubj)}(h%``s64 divisor`` signed 64bit divisor h](j)}(h``s64 divisor``h]j)}(hjnh]h s64 divisor}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKKhjhubj)}(hhh]h)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhKKhj,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&]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&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64 (C function) c.div_u64hNtauh1hhjYhhhNhNubh)}(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}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKtubj)}(h(u64 dividend, u32 divisor)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]j  c.div_u64asbuh1hhj<ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubjm)}(hdividendh]hdividend}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(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_u64asbuh1hhjubj)}(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&]noemphjjuh1jhj8ubeh}(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&]jjjjjjjjjuh1hhhhjYhNhNubj)}(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)}(hj"h]h u64 dividend}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKuhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hKuhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hKuhjubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKvhjUubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphKvhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphKvhjubeh}(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: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.}(hjhhhNhNubah}(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&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64 (C function) c.div_s64hNtauh1hhjYhhhNhNubh)}(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 }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj&hKubjg)}(hdiv_s64h]jm)}(hj#h]hdiv_s64}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj&hKubj)}(h(s64 dividend, s32 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]j! c.div_s64asbuh1hhjPubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(h s32 divisorh](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_s64asbuh1hhjubj)}(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&]noemphjjuh1jhjLubeh}(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&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&]uh1jhjhhhj&hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjYhNhNubj)}(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)}(hj6h]h s64 dividend}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj0ubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj-ubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hjoh]h s32 divisor}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjiubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhKhj-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&]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&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV64_U64_ROUND_UP (C macro)c.DIV64_U64_ROUND_UPhNtauh1hhjYhhhNhNubh)}(hhh](j)}(hDIV64_U64_ROUND_UPh]j)}(hDIV64_U64_ROUND_UPh]jg)}(hDIV64_U64_ROUND_UPh]jm)}(hjh]hDIV64_U64_ROUND_UP}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.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&]jjjjjjjjjuh1hhhhjYhNhNubh)}(h``DIV64_U64_ROUND_UP (ll, d)``h]j)}(hj%h]hDIV64_U64_ROUND_UP (ll, d)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM"hjYhhubj)}(h4unsigned 64bit divide with 64bit divisor rounded up h]h)}(h3unsigned 64bit divide with 64bit divisor rounded uph]h3unsigned 64bit divide with 64bit divisor rounded up}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM hj;ubah}(h]h ]h"]h$]h&]uh1jhjMhM hjYhhubj)}(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)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM$hjTubj)}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hjyh]hll}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM!hjsubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjpubj)}(h``d`` unsigned 64bit divisor 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:178: ./include/linux/math64.hhM"hjubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjpubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(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:178: ./include/linux/math64.hhM$hjTubh)}(hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM#hjTubh)}(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.hhM&hjTubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM'hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_UP (C macro)c.DIV_U64_ROUND_UPhNtauh1hhjYhhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_UPh]j)}(hDIV_U64_ROUND_UPh]jg)}(hDIV_U64_ROUND_UPh]jm)}(hjSh]hDIV_U64_ROUND_UP}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM-ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjphM-ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjphM-hjNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNhhhjphM-ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjYhNhNubh)}(h``DIV_U64_ROUND_UP (ll, d)``h]j)}(hjh]hDIV_U64_ROUND_UP (ll, d)}(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.hhM/hjYhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM-hjubah}(h]h ]h"]h$]h&]uh1jhjhM-hjYhhubj)}(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)}(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.hhM1hjubj)}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hjh]hll}(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.hhM.hjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(h``d`` unsigned 32bit divisor 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:178: ./include/linux/math64.hhM/hjubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM/hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM/hjubeh}(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:178: ./include/linux/math64.hhM1hjubh)}(hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM0hjubh)}(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:178: ./include/linux/math64.hhM3hjubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!DIV64_U64_ROUND_CLOSEST (C macro)c.DIV64_U64_ROUND_CLOSESThNtauh1hhjYhhhNhNubh)}(hhh](j)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hDIV64_U64_ROUND_CLOSESTh]jg)}(hDIV64_U64_ROUND_CLOSESTh]jm)}(hjh]hDIV64_U64_ROUND_CLOSEST}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.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&]jjjjjjjjjuh1hhhhjYhNhNubh)}(h/``DIV64_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hjh]h+DIV64_U64_ROUND_CLOSEST (dividend, divisor)}(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.hhM<hjYhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM:hjubah}(h]h ]h"]h$]h&]uh1jhj!hM:hjYhhubj)}(hX**Parameters** ``dividend`` unsigned 64bit dividend ``divisor`` unsigned 64bit divisor **Description** Divide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(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%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hjMh]hdividend}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM;hjGubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM;hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM;hjDubj)}(h#``divisor`` unsigned 64bit divisor h](j)}(h ``divisor``h]j)}(hjh]hdivisor}(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.hhM<hjubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjDubeh}(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:178: ./include/linux/math64.hhM>hj(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.}(hjhhhNhNubah}(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)}(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.hhM@hj(ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMAhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_CLOSEST (C macro)c.DIV_U64_ROUND_CLOSESThNtauh1hhjYhhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_CLOSESTh]j)}(hDIV_U64_ROUND_CLOSESTh]jg)}(hDIV_U64_ROUND_CLOSESTh]jm)}(hj'h]hDIV_U64_ROUND_CLOSEST}(hj1hhhNhNubah}(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.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhjDhMGubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhjDhMGhj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhjDhMGubeh}(h]h ](jmacroeh"]h$]h&]jjjj]jj]jjjuh1hhhhjYhNhNubh)}(h-``DIV_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hjch]h)DIV_U64_ROUND_CLOSEST (dividend, divisor)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMIhjYhhubj)}(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.hhMGhjyubah}(h]h ]h"]h$]h&]uh1jhjhMGhjYhhubj)}(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)}(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.hhMKhjubj)}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hjh]hdividend}(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.hhMHhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h#``divisor`` unsigned 32bit divisor h](j)}(h ``divisor``h]j)}(hjh]hdivisor}(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.hhMIhjubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(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:178: ./include/linux/math64.hhMKhjubh)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMJhjubh)}(h **Return**h]j)}(hjRh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMMhjubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_S64_ROUND_CLOSEST (C macro)c.DIV_S64_ROUND_CLOSESThNtauh1hhjYhhhNhNubh)}(hhh](j)}(hDIV_S64_ROUND_CLOSESTh]j)}(hDIV_S64_ROUND_CLOSESTh]jg)}(hDIV_S64_ROUND_CLOSESTh]jm)}(hjh]hDIV_S64_ROUND_CLOSEST}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMTubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMThjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMTubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjYhNhNubh)}(h-``DIV_S64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hjh]h)DIV_S64_ROUND_CLOSEST (dividend, divisor)}(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.hhMVhjYhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMThjubah}(h]h ]h"]h$]h&]uh1jhjhMThjYhhubj)}(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)}(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.hhMXhjubj)}(hhh](j)}(h#``dividend`` signed 64bit dividend h](j)}(h ``dividend``h]j)}(hj!h]hdividend}(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.hhMUhjubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMUhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMUhjubj)}(h!``divisor`` signed 32bit divisor h](j)}(h ``divisor``h]j)}(hjZh]hdivisor}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMVhjTubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMVhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMVhjubeh}(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:178: ./include/linux/math64.hhMXhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMWhjubh)}(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.hhMZhjubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM[hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hroundup_u64 (C function) c.roundup_u64hNtauh1hhjYhhhNhNubh)}(hhh](j)}(hu64 roundup_u64 (u64 x, u32 y)h]j)}(hu64 roundup_u64(u64 x, u32 y)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 roundup_u64sb c.roundup_u64asbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj%hMhubjg)}(h roundup_u64h]jm)}(hj"h]h roundup_u64}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hMhubj)}(h(u64 x, u32 y)h](j)}(hu64 xh](h)}(hhh]jm)}(hu64h]hu64}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]j  c.roundup_u64asbuh1hhjOubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubjm)}(hjGh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hu32 yh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j  c.roundup_u64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hyh]hy}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj%hMhhjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj%hMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjYhNhNubj)}(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)}(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.hhMlhjubj)}(hhh](j)}(h``u64 x`` the value to up h](j)}(h ``u64 x``h]j)}(hj4h]hu64 x}(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.hhMihj.ubj)}(hhh]h)}(hthe value to uph]hthe value to up}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMihjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMihj+ubj)}(h(``u32 y`` 32bit multiple to round up to h](j)}(h ``u32 y``h]j)}(hjmh]hu32 y}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMjhjgubj)}(hhh]h)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMjhj+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:178: ./include/linux/math64.hhMlhjubh)}(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 }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to the next multiple of }(hjhhhNhNubj)}(h**y**h]hy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . For 32bit }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh? values, see roundup and the faster round_up() for powers of 2.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMkhjubh)}(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.hhMnhjubh)}(hrounded up value.h]hrounded up value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hgcd (C function)c.gcdhNtauh1hhjYhhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjXhK.ubj )}(hlongh]hlong}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhjXhK.ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjXhK.ubjg)}(hgcdh]jm)}(hgcdh]hgcd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjXhK.ubj)}(h"(unsigned long a, unsigned long b)h](j)}(hunsigned long ah](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)}(hjh]ha}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long bh](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)}(hjGh]hb}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhK.ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhK.hj?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}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.hjQhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhjYhNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK2hjpubj)}(hhh](j)}(h ``unsigned long a`` first value h](j)}(h``unsigned long a``h]j)}(hjh]hunsigned long a}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK/hjubj)}(hhh]h)}(h first valueh]h first value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubj)}(h ``unsigned long b`` second valueh](j)}(h``unsigned long b``h]j)}(hjh]hunsigned long b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK1hjubj)}(hhh]h)}(h second valueh]h second value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjYhhhNhNubeh}(h]division-functionsah ]h"]division functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h UUID/GUIDh]h UUID/GUID}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!generate_random_uuid (C function)c.generate_random_uuidhNtauh1hhj hhhNhNubh)}(hhh](j)}(h2void generate_random_uuid (unsigned char uuid[16])h]j)}(h1void generate_random_uuid(unsigned char uuid[16])h](j )}(hvoidh]hvoid}(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj= hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKubj)}(h h]h }(hjP hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj= hhhjO hKubjg)}(hgenerate_random_uuidh]jm)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hjb hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj= hhhjO hKubj)}(h(unsigned char uuid[16])h]j)}(hunsigned char uuid[16]h](j )}(hunsignedh]hunsigned}(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjz 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 ubjm)}(huuidh]huuid}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz ubj)}(hjih]h[}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubhdesc_sig_literal_number)}(h16h]h16}(hj hhhNhNubah}(h]h ]mah"]h$]h&]uh1j hjz ubj)}(hjh]h]}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjv ubah}(h]h ]h"]h$]h&]jjuh1jhj= hhhjO hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9 hhhjO hKubah}(h]j4 ah ](jjeh"]h$]h&]jj)jhuh1hhjO hKhj6 hhubj)}(hhh]h)}(hgenerate a random UUIDh]hgenerate a random UUID}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj!hhubah}(h]h ]h"]h$]h&]uh1jhj6 hhhjO hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#!jj#!jjjuh1hhhhj hNhNubj)}(h**Parameters** ``unsigned char uuid[16]`` where to put the generated UUID **Description** Random UUID interface Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.h](h)}(h**Parameters**h]j)}(hj-!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:187: ./lib/uuid.chKhj'!ubj)}(hhh]j)}(h;``unsigned char uuid[16]`` where to put the generated UUID h](j)}(h``unsigned char uuid[16]``h]j)}(hjL!h]hunsigned char uuid[16]}(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:187: ./lib/uuid.chKhjF!ubj)}(hhh]h)}(hwhere to put the generated UUIDh]hwhere to put the generated UUID}(hje!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja!hKhjb!ubah}(h]h ]h"]h$]h&]uh1jhjF!ubeh}(h]h ]h"]h$]h&]uh1jhja!hKhjC!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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj'!ubh)}(hRandom UUID interfaceh]hRandom UUID interface}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj'!ubh)}(h_Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.h]h_Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj'!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huuid_is_valid (C function)c.uuid_is_validhNtauh1hhj hhhNhNubh)}(hhh](j)}(h%bool uuid_is_valid (const char *uuid)h]j)}(h$bool uuid_is_valid(const char *uuid)h](j )}(hj8h]hbool}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKMubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj!hKMubjg)}(h uuid_is_validh]jm)}(h uuid_is_validh]h uuid_is_valid}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj!hKMubj)}(h(const char *uuid)h]j)}(hconst char *uuidh](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}(hj2"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"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)}(huuidh]huuid}(hj["hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubah}(h]h ]h"]h$]h&]jjuh1jhj!hhhj!hKMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj!hKMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hKMhj!hhubj)}(hhh]h)}(h checks if a UUID string is validh]h checks if a UUID string is valid}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKMhj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hKMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhj hNhNubj)}(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)}(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:187: ./lib/uuid.chKQhj"ubj)}(hhh]j)}(h*``const char *uuid`` UUID string to check h](j)}(h``const char *uuid``h]j)}(hj"h]hconst char *uuid}(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:187: ./lib/uuid.chKNhj"ubj)}(hhh]h)}(hUUID string to checkh]hUUID string to check}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKNhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hKNhj"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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKPhj"ubj)}(hhh]j)}(h[It checks if the UUID string is following the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx h](j)}(h5It checks if the UUID string is following the format:h]h5It checks if the UUID string is following the format:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKQhj#ubj)}(hhh]h)}(h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxh]h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}(hj0#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,#hKQhj-#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj,#hKQhj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubh)}(hwhere x is a hex digit.h]hwhere x is a hex digit.}(hjP#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKShj"ubh)}(h **Return**h]j)}(hja#h]hReturn}(hjc#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_#ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKUhj"ubh)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hjw#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKVhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(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}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hhhhhKubh)}(hhh](h)}(h IPC utilitiesh]h IPC utilities}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init (C function) c.ipc_inithNtauh1hhj#hhhNhNubh)}(hhh](j)}(hint ipc_init (void)h]j)}(hint ipc_init(void)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.chKQubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj#hKQubjg)}(hipc_inith]jm)}(hipc_inith]hipc_init}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj#hKQubj)}(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#hKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hKQubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hKQhj#hhubj)}(hhh]h)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hj?$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQhj<$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjW$jjW$jjjuh1hhhhj#hNhNubj)}(hXX**Parameters** ``void`` no arguments **Description** The various sysv ipc resources (semaphores, messages and shared memory) are initialised. A callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.h](h)}(h**Parameters**h]j)}(hja$h]h Parameters}(hjc$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_$ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhj[$ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj$h]hvoid}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~$ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjz$ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj$ubah}(h]h ]h"]h$]h&]uh1jhjz$ubeh}(h]h ]h"]h$]h&]uh1jhj$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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj[$ubh)}(hXThe various sysv ipc resources (semaphores, messages and shared memory) are initialised.h]hXThe various sysv ipc resources (semaphores, messages and shared memory) are initialised.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKRhj[$ubh)}(hA callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.h]hA callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhj[$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init_ids (C function)c.ipc_init_idshNtauh1hhj#hhhNhNubh)}(hhh](j)}(h'void ipc_init_ids (struct ipc_ids *ids)h]j)}(h&void ipc_init_ids(struct ipc_ids *ids)h](j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj %hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj %hhhj%hKmubjg)}(h ipc_init_idsh]jm)}(h ipc_init_idsh]h ipc_init_ids}(hj0%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj %hhhj%hKmubj)}(h(struct ipc_ids *ids)h]j)}(hstruct ipc_ids *idsh](j)}(hj6}h]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)}(hipc_idsh]hipc_ids}(hjj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjl%modnameN classnameNjI jL )}jO ]jR )}jE j2%sbc.ipc_init_idsasbuh1hhjH%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)}(hidsh]hids}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD%ubah}(h]h ]h"]h$]h&]jjuh1jhj %hhhj%hKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%hKmubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj%hKmhj%hhubj)}(hhh]h)}(hinitialise ipc identifiersh]hinitialise ipc identifiers}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmhj%hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1hhhhj#hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set **Description** Set up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKqhj%ubj)}(hhh]j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj&h]hstruct ipc_ids *ids}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKnhj &ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj)&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%&hKnhj&&ubah}(h]h ]h"]h$]h&]uh1jhj &ubeh}(h]h ]h"]h$]h&]uh1jhj%&hKnhj&ubah}(h]h ]h"]h$]h&]uh1jhj%ubh)}(h**Description**h]j)}(hjK&h]h Description}(hjM&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI&ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKphj%ubh)}(hSet up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.h]hSet up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.}(hja&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKohj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$ipc_init_proc_interface (C function)c.ipc_init_proc_interfacehNtauh1hhj#hhhNhNubh)}(hhh](j)}(htvoid ipc_init_proc_interface (const char *path, const char *header, int ids, int (*show)(struct seq_file *, void *))h]j)}(hqvoid ipc_init_proc_interface(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&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&hKubjg)}(hipc_init_proc_interfaceh]jm)}(hipc_init_proc_interfaceh]hipc_init_proc_interface}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj&hKubj)}(hU(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j)}(hconst char *pathh](j)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&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)}(hpathh]hpath}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(hconst char *headerh](j)}(hjh]hconst}(hj*'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&'ubj)}(h h]h }(hj7'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&'ubj )}(hcharh]hchar}(hjE'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&'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)}(hheaderh]hheader}(hjn'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(hint idsh](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)}(hidsh]hids}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(h$int (*show)(struct seq_file*, void*)h](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'ubj)}(h(h]h(}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hshowh]hshow}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubj)}(h)h]h)}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hj'h]h(}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hj6}h]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)}(hseq_fileh]hseq_file}(hj:(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<(modnameN classnameNjI jL )}jO ]jR )}jE j&sbc.ipc_init_proc_interfaceasbuh1hhj'ubj)}(hjh]h*}(hjZ(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h,h]h,}(hjg(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hju(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj )}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hj(h]h)}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj&hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj&hKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hKhj&hhubj)}(hhh]h)}(hDcreate a proc interface for sysipc types using a seq_file interface.h]hDcreate a proc interface for sysipc types using a seq_file interface.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj(hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhj#hNhNubj)}(h**Parameters** ``const char *path`` Path in procfs ``const char *header`` Banner to be printed at the beginning of the file. ``int ids`` ipc id table to iterate. ``int (*show)(struct seq_file *, void *)`` show routine.h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj(ubj)}(hhh](j)}(h$``const char *path`` Path in procfs h](j)}(h``const char *path``h]j)}(hj)h]hconst char *path}(hj )hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj)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)}(hjA)h]hconst char *header}(hjC)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)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hjZ)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV)hKhjW)ubah}(h]h ]h"]h$]h&]uh1jhj;)ubeh}(h]h ]h"]h$]h&]uh1jhjV)hKhj(ubj)}(h%``int ids`` ipc id table to iterate. h](j)}(h ``int ids``h]j)}(hjz)h]hint ids}(hj|)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx)ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjt)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&]uh1jhjt)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&]uh1jhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_findkey (C function) c.ipc_findkeyhNtauh1hhj#hhhNhNubh)}(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)}(hj6}h]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}(hj,*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.*modnameN classnameNjI jL )}jO ]jR )}jE ipc_findkeysb c.ipc_findkeyasbuh1hhj *hhhj*hKubj)}(h h]h }(hjM*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj *hhhj*hKubj)}(hjh]h*}(hj[*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj *hhhj*hKubjg)}(h ipc_findkeyh]jm)}(hjJ*h]h ipc_findkey}(hjl*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj *hhhj*hKubj)}(h (struct ipc_ids *ids, key_t key)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]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 ]jH* 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 ]jH* c.ipc_findkeyasbuh1hhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubjm)}(hkeyh]hkey}(hj&+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}(hjP+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjM+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjh+jjh+jjjuh1hhhhj#hNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``key_t key`` key to find **Description** Returns the locked pointer to the ipc structure if found or NULL otherwise. If key is found ipc points to the owning ipc structure Called with writer ipc_ids.rwsem held.h](h)}(h**Parameters**h]j)}(hjr+h]h Parameters}(hjt+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp+ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjl+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&]uh1jhjl+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.chKhjl+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.chKhjl+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.chKhjl+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_addid (C function) c.ipc_addidhNtauh1hhj#hhhNhNubh)}(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}(hjY,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjU,hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjh,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjU,hhhjg,hMubjg)}(h ipc_addidh]jm)}(h ipc_addidh]h ipc_addid}(hjz,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjv,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjU,hhhjg,hMubj)}(h;(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]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)}(hj6}h]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 ]j, c.ipc_addidasbuh1hhj-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)}(hnewh]hnew}(hj_-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(h int limith](j )}(hinth]hint}(hjx-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjt-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt-ubjm)}(hlimith]hlimit}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjt-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjU,hhhjg,hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQ,hhhjg,hMubah}(h]jL,ah ](jjeh"]h$]h&]jj)jhuh1hhjg,hMhjN,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&]uh1jhjN,hhhjg,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhj#hNhNubj)}(hX4**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *new`` new ipc permission set ``int limit`` limit for the number of used ids **Description** Add an entry 'new' to the ipc ids idr. The permissions object is initialised and the first free entry is set up and the index assigned is returned. The 'new' entry is returned in a locked state on success. On failure the entry is not locked and a negative err-code is returned. The caller must use ipc_rcu_putref() to free the identifier. Called with writer ipc_ids.rwsem held.h](h)}(h**Parameters**h]j)}(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)}(hj8.h]hstruct kern_ipc_perm *new}(hj:.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj2.ubj)}(hhh]h)}(hnew ipc permission seth]hnew ipc permission set}(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-ubj)}(h/``int limit`` limit for the number of used ids h](j)}(h ``int limit``h]j)}(hjq.h]h int limit}(hjs.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjk.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&]uh1jhjk.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&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_new (C function) c.ipcget_newhNtauh1hhj#hhhNhNubh)}(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}(hj0/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,/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)}(hj6}h]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)}(h ipc_namespaceh]h ipc_namespace}(hjj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjl/modnameN classnameNjI jL )}jO ]jR )}jE j2/sb c.ipcget_newasbuh1hhjH/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)}(hnsh]hns}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD/ubj)}(hstruct ipc_ids *idsh](j)}(hj6}h]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 }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hidsh]hids}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD/ubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj.0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*0ubj)}(h h]h }(hj;0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*0ubj)}(hj6}h]hstruct}(hjI0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*0ubj)}(h h]h }(hjV0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*0ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hjg0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetji0modnameN classnameNjI jL )}jO ]j/ c.ipcget_newasbuh1hhj*0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*0ubjm)}(hopsh]hops}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD/ubj)}(hstruct ipc_params *paramsh](j)}(hj6}h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]j/ c.ipcget_newasbuh1hhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hparamsh]hparams}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD/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}(hj:1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJhj71hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjR1jjR1jjjuh1hhhhj#hNhNubj)}(hXR**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` the actual creation routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is IPC_PRIVATE.h](h)}(h**Parameters**h]j)}(hj\1h]h Parameters}(hj^1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ1ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhjV1ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj{1h]hstruct ipc_namespace *ns}(hj}1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMKhju1ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMKhj1ubah}(h]h ]h"]h$]h&]uh1jhju1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMKhjr1ubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj1h]hstruct ipc_ids *ids}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMLhj1ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMLhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMLhjr1ubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hj1h]hconst struct ipc_ops *ops}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMMhj1ubj)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMMhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj2hMMhjr1ubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj&2h]hstruct ipc_params *params}(hj(2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$2ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhj 2ubj)}(hhh]h)}(hits parametersh]hits parameters}(hj?2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;2hMNhj<2ubah}(h]h ]h"]h$]h&]uh1jhj 2ubeh}(h]h ]h"]h$]h&]uh1jhj;2hMNhjr1ubeh}(h]h ]h"]h$]h&]uh1jhjV1ubh)}(h**Description**h]j)}(hja2h]h Description}(hjc2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_2ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMPhjV1ubh)}(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.}(hjw2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMOhjV1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_check_perms (C function)c.ipc_check_permshNtauh1hhj#hhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hM_ubjg)}(hipc_check_permsh]jm)}(hipc_check_permsh]hipc_check_perms}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hM_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)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE j2sbc.ipc_check_permsasbuh1hhj2ubj)}(h h]h }(hj!3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj/3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hnsh]hns}(hj<3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hjU3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ3ubj)}(h h]h }(hjb3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ3ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjs3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetju3modnameN classnameNjI jL )}jO ]j3c.ipc_check_permsasbuh1hhjQ3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ3ubjm)}(hipcph]hipcp}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQ3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hj6}h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]j3c.ipc_check_permsasbuh1hhj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj*4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hopsh]hops}(hj74hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(hstruct ipc_params *paramsh](j)}(hj6}h]hstruct}(hjP4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL4ubj)}(h h]h }(hj]4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL4ubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hjn4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjp4modnameN classnameNjI jL )}jO ]j3c.ipc_check_permsasbuh1hhjL4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL4ubjm)}(hparamsh]hparams}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hM_ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hM_hj2hhubj)}(hhh]h)}(h0check security and permissions for an ipc objecth]h0check security and permissions for an ipc object}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_hj4hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj#hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``const struct ipc_ops *ops`` the actual security routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR. On success, the ipc id is returned. It is called with ipc_ids.rwsem and ipcp->lock held.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMchj4ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj5h]hstruct ipc_namespace *ns}(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.chM`hj 5ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj+5hhhNhNubah}(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)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjK5h]hstruct kern_ipc_perm *ipcp}(hjM5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMahjE5ubj)}(hhh]h)}(hipc permission seth]hipc permission set}(hjd5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`5hMahja5ubah}(h]h ]h"]h$]h&]uh1jhjE5ubeh}(h]h ]h"]h$]h&]uh1jhj`5hMahj 5ubj)}(hB``const struct ipc_ops *ops`` the actual security routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hj5h]hconst struct ipc_ops *ops}(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.chMbhj~5ubj)}(hhh]h)}(h#the actual security routine to callh]h#the actual security routine to call}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMbhj5ubah}(h]h ]h"]h$]h&]uh1jhj~5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMbhj 5ubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj5h]hstruct ipc_params *params}(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.chMchj5ubj)}(hhh]h)}(hits parametersh]hits parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMchj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMchj 5ubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(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.chMehj4ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMdhj4ubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhhj4ubh)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hj,6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_public (C function)c.ipcget_publichNtauh1hhj#hhhNhNubh)}(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}(hj[6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjW6hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjW6hhhji6hMubjg)}(h ipcget_publich]jm)}(h ipcget_publich]h ipcget_public}(hj|6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjx6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjW6hhhji6hMubj)}(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)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE j~6sbc.ipcget_publicasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hnsh]hns}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj(7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*7modnameN classnameNjI jL )}jO ]j6c.ipcget_publicasbuh1hhj7ubj)}(h h]h }(hjF7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjT7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hidsh]hids}(hja7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjz7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv7ubj)}(hj6}h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv7ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]j6c.ipcget_publicasbuh1hhjv7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjv7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv7ubjm)}(hopsh]hops}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjv7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct ipc_params *paramsh](j)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj#8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%8modnameN classnameNjI jL )}jO ]j6c.ipcget_publicasbuh1hhj8ubj)}(h h]h }(hjA8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjO8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hparamsh]hparams}(hj\8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjW6hhhji6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjS6hhhji6hMubah}(h]jN6ah ](jjeh"]h$]h&]jj)jhuh1hhji6hMhjP6hhubj)}(hhh]h)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjP6hhhji6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhj#hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` the actual creation routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is not IPC_PRIVATE. It adds a new entry if the key is not found and does some permission / security checkings if the key is found. On success, the ipc id is returned.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj8ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj8h]hstruct ipc_namespace *ns}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj8ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj8ubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj9h]hstruct ipc_ids *ids}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj8ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj8ubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hj99h]hconst struct ipc_ops *ops}(hj;9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj79ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj39ubj)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjR9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN9hMhjO9ubah}(h]h ]h"]h$]h&]uh1jhj39ubeh}(h]h ]h"]h$]h&]uh1jhjN9hMhj8ubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hjr9h]hstruct ipc_params *params}(hjt9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp9ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjl9ubj)}(hhh]h)}(hits parametersh]hits parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjl9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj8ubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj8ubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhj#hhhNhNubh)}(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:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhO/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&]uh1jhj9hhhj:hMubjg)}(hipc_kht_removeh]jm)}(hipc_kht_removeh]hipc_kht_remove}(hj":hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhj:hMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hj>:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj::ubj)}(h h]h }(hjK:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj::ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj\:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjY:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^:modnameN classnameNjI jL )}jO ]jR )}jE j$:sbc.ipc_kht_removeasbuh1hhj::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&]noemphjjuh1jhj6:ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]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 ]jx:c.ipc_kht_removeasbuh1hhj: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)}(hipcph]hipcp}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6:ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj:hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj:hMhj9hhubj)}(hhh]h)}(h$remove an ipc from the key hashtableh]h$remove an ipc from the key hashtable}(hj1;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&]uh1jhj9hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjI;jjI;jjjuh1hhhhj#hNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hjS;h]h Parameters}(hjU;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ;ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjM;ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjr;h]hstruct ipc_ids *ids}(hjt;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp;ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjl;ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(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)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj;h]hstruct kern_ipc_perm *ipcp}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj;ubj)}(hhh]h)}(h/ipc perm structure containing the key to removeh]h/ipc perm structure containing the key to remove}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjM;ubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjM;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_search_maxidx (C function)c.ipc_search_maxidxhNtauh1hhj#hhhNhNubh)}(hhh](j)}(h6int ipc_search_maxidx (struct ipc_ids *ids, int limit)h]j)}(h5int ipc_search_maxidx(struct ipc_ids *ids, int limit)h](j )}(hinth]hint}(hj+<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 }(hj:<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'<hhhj9<hMubjg)}(hipc_search_maxidxh]jm)}(hipc_search_maxidxh]hipc_search_maxidx}(hjL<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'<hhhj9<hMubj)}(h (struct ipc_ids *ids, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]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)}(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 jN<sbc.ipc_search_maxidxasbuh1hhjd<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)}(hidsh]hids}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd<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'<hhhj9<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#<hhhj9<hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj9<hMhj <hhubj)}(hhh]h)}(h%search for the highest assigned indexh]h%search for the highest assigned index}(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&]uh1jhj <hhhj9<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8=jj8=jjjuh1hhhhj#hNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int limit`` known upper limit for highest assigned index **Description** The function determines the highest assigned index in **ids**. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned. ipc_ids.rwsem needs to be held by the caller.h](h)}(h**Parameters**h]j)}(hjB=h]h Parameters}(hjD=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)}(hja=h]hstruct ipc_ids *ids}(hjc=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}(hjz=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv=hMhjw=ubah}(h]h ]h"]h$]h&]uh1jhj[=ubeh}(h]h ]h"]h$]h&]uh1jhjv=hMhjX=ubj)}(h;``int limit`` known upper limit for highest assigned index h](j)}(h ``int limit``h]j)}(hj=h]h int limit}(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)}(h,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjX=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)}(hXThe function determines the highest assigned index in **ids**. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned.h](h6The function determines the highest assigned index in }(hj=hhhNhNubj)}(h**ids**h]hids}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj<=ubh)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(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&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_rmid (C function) c.ipc_rmidhNtauh1hhj#hhhNhNubh)}(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}(hj;>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7>hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjJ>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7>hhhjI>hMubjg)}(hipc_rmidh]jm)}(hipc_rmidh]hipc_rmid}(hj\>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7>hhhjI>hMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjx>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt>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_rmidasbuh1hhjt>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)}(hidsh]hids}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjt>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjp>ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]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 ]j> c.ipc_rmidasbuh1hhj>ubj)}(h h]h }(hj&?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hj4?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hipcph]hipcp}(hjA?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjp>ubeh}(h]h ]h"]h$]h&]jjuh1jhj7>hhhjI>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3>hhhjI>hMubah}(h]j.>ah ](jjeh"]h$]h&]jj)jhuh1hhjI>hMhj0>hhubj)}(hhh]h)}(hremove an ipc identifierh]hremove an ipc identifier}(hjk?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjh?hhubah}(h]h ]h"]h$]h&]uh1jhj0>hhhjI>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhj#hNhNubj)}(hX(**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(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)}(hV``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj?h]hstruct kern_ipc_perm *ipcp}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj?ubj)}(hhh]h)}(h6ipc perm structure containing the identifier to removeh]h6ipc perm structure containing the identifier to remove}(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)}(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.}(hj6@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&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ipc_set_key_private (C function)c.ipc_set_key_privatehNtauh1hhj#hhhNhNubh)}(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}(hje@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hja@hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjt@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja@hhhjs@hMubjg)}(hipc_set_key_privateh]jm)}(hipc_set_key_privateh]hipc_set_key_private}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhja@hhhjs@hMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]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@sbc.ipc_set_key_privateasbuh1hhj@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 *ipcph](j)}(hj6}h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hj!AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj2AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/Aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4AmodnameN classnameNjI jL )}jO ]j@c.ipc_set_key_privateasbuh1hhjAubj)}(h h]h }(hjPAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hj^AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hipcph]hipcp}(hjkAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhja@hhhjs@hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]@hhhjs@hMubah}(h]jX@ah ](jjeh"]h$]h&]jj)jhuh1hhjs@hMhjZ@hhubj)}(hhh]h)}(h0switch the key of an existing ipc to IPC_PRIVATEh]h0switch the key of an existing ipc to IPC_PRIVATE}(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&]uh1jhjZ@hhhjs@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhj#hNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(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_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjAh]hstruct ipc_ids *ids}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjAubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjBh]hstruct kern_ipc_perm *ipcp}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Bubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj Bubj)}(hhh]h)}(h/ipc perm structure containing the key to modifyh]h/ipc perm structure containing the key to modify}(hj(BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$BhMhj%Bubah}(h]h ]h"]h$]h&]uh1jhj Bubeh}(h]h ]h"]h$]h&]uh1jhj$BhMhjAubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjJBh]h Description}(hjLBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHBubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hj`BhhhNhNubah}(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&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcperms (C function) c.ipcpermshNtauh1hhj#hhhNhNubh)}(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}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjBhMubjg)}(hipcpermsh]jm)}(hipcpermsh]hipcperms}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjBhMubj)}(hB(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct ipc_namespace *nsh](j)}(hj6}h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jBsb c.ipcpermsasbuh1hhjBubj)}(h h]h }(hj ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hnsh]hns}(hj%ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hj>ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Cubj)}(h h]h }(hjKChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:Cubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj\ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^CmodnameN classnameNjI jL )}jO ]jC c.ipcpermsasbuh1hhj:Cubj)}(h h]h }(hjzChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:Cubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Cubjm)}(hipcph]hipcp}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(h short flagh](j )}(hshorth]hshort}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hflagh]hflag}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjBhMhjBhhubj)}(hhh]h)}(hcheck ipc permissionsh]hcheck ipc permissions}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Djj Djjjuh1hhhhj#hNhNubj)}(hXH**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``short flag`` desired permission set **Description** Check user, group, other permissions for access to ipc resources. return 0 if allowed **flag** will most probably be 0 or ``S_...UGO`` from h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hjDubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj5Dh]hstruct ipc_namespace *ns}(hj7DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Dubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj/Dubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjNDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJDhM hjKDubah}(h]h ]h"]h$]h&]uh1jhj/Dubeh}(h]h ]h"]h$]h&]uh1jhjJDhM hj,Dubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjnDh]hstruct kern_ipc_perm *ipcp}(hjpDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlDubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM!hjhDubj)}(hhh]h)}(hipc permission seth]hipc permission set}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM!hjDubah}(h]h ]h"]h$]h&]uh1jhjhDubeh}(h]h ]h"]h$]h&]uh1jhjDhM!hj,Dubj)}(h&``short flag`` desired permission set h](j)}(h``short flag``h]j)}(hjDh]h short flag}(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.chM"hjDubj)}(hhh]h)}(hdesired permission seth]hdesired permission set}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM"hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM"hj,Dubeh}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM$hjDubh)}(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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hjDubh)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh will most probably be 0 or }(hjEhhhNhNubj)}(h ``S_...UGO``h]hS_...UGO}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh from }(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM&hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kernel_to_ipc64_perm (C function)c.kernel_to_ipc64_permhNtauh1hhj#hhhNhNub0h)}(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}(hjVEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjREhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDubj)}(h h]h }(hjeEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjREhhhjdEhMDubjg)}(hkernel_to_ipc64_permh]jm)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hjwEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjREhhhjdEhMDubj)}(h2(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j)}(hstruct kern_ipc_perm *inh](j)}(hj6}h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(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 jyEsbc.kernel_to_ipc64_permasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hinh]hin}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(hstruct ipc64_perm *outh](j)}(hj6}h]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}(hj#FhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Fubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%FmodnameN classnameNjI jL )}jO ]jEc.kernel_to_ipc64_permasbuh1hhjFubj)}(h h]h }(hjAFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjOFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(houth]hout}(hj\FhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhjREhhhjdEhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNEhhhjdEhMDubah}(h]jIEah ](jjeh"]h$]h&]jj)jhuh1hhjdEhMDhjKEhhubj)}(hhh]h)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDhjFhhubah}(h]h ]h"]h$]h&]uh1jhjKEhhhjdEhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1hhhhj#hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *in`` kernel permissions ``struct ipc64_perm *out`` new style ipc permissions **Description** Turn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjFubj)}(hhh](j)}(h0``struct kern_ipc_perm *in`` kernel permissions h](j)}(h``struct kern_ipc_perm *in``h]j)}(hjFh]hstruct kern_ipc_perm *in}(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.chMEhjFubj)}(hhh]h)}(hkernel permissionsh]hkernel permissions}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMEhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMEhjFubj)}(h5``struct ipc64_perm *out`` new style ipc permissions h](j)}(h``struct ipc64_perm *out``h]j)}(hjGh]hstruct ipc64_perm *out}(hjGhhhNhNubah}(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.chMFhjFubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMFhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhMFhjFubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(h**Description**h]j)}(hj;Gh]h Description}(hj=GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Gubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjFubh)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hjQGhhhNhNubj)}(h**in**h]hin}(hjYGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQGubhD into a set of permissions descriptions for returning to userspace (}(hjQGhhhNhNubj)}(h**out**h]hout}(hjkGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQGubh).}(hjQGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMGhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#ipc64_perm_to_ipc_perm (C function)c.ipc64_perm_to_ipc_permhNtauh1hhj#hhhNhNubh)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjGhMWubjg)}(hipc64_perm_to_ipc_permh]jm)}(hipc64_perm_to_ipc_permh]hipc64_perm_to_ipc_perm}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjGhMWubj)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.ipc64_perm_to_ipc_permasbuh1hhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hj-HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hinh]hin}(hj:HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct ipc_perm *outh](j)}(hj6}h]hstruct}(hjSHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOHubj)}(h h]h }(hj`HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOHubh)}(hhh]jm)}(hipc_permh]hipc_perm}(hjqHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsHmodnameN classnameNjI jL )}jO ]jHc.ipc64_perm_to_ipc_permasbuh1hhjOHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOHubjm)}(houth]hout}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhMWubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMWhjGhhubj)}(hhh]h)}(h"convert new ipc permissions to oldh]h"convert new ipc permissions to old}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWhjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhj#hNhNubj)}(h**Parameters** ``struct ipc64_perm *in`` new style ipc permissions ``struct ipc_perm *out`` old style ipc permissions **Description** Turn the new style permissions object **in** into a compatibility object and store it into the **out** pointer.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hjHubj)}(hhh](j)}(h4``struct ipc64_perm *in`` new style ipc permissions h](j)}(h``struct ipc64_perm *in``h]j)}(hjIh]hstruct ipc64_perm *in}(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.chMXhjIubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hj.IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*IhMXhj+Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj*IhMXhj Iubj)}(h3``struct ipc_perm *out`` old style ipc permissions h](j)}(h``struct ipc_perm *out``h]j)}(hjNIh]hstruct ipc_perm *out}(hjPIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLIubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMYhjHIubj)}(hhh]h)}(hold style ipc permissionsh]hold style ipc permissions}(hjgIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcIhMYhjdIubah}(h]h ]h"]h$]h&]uh1jhjHIubeh}(h]h ]h"]h$]h&]uh1jhjcIhMYhj Iubeh}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hjHubh)}(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 }(hjIhhhNhNubj)}(h**in**h]hin}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh3 into a compatibility object and store it into the }(hjIhhhNhNubj)}(h**out**h]hout}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh pointer.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMZhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"ipc_obtain_object_idr (C function)c.ipc_obtain_object_idrhNtauh1hhj#hhhNhNubh)}(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)}(hj6}h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhjIhMjubh)}(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 ipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhjIhhhjIhMjubj)}(h h]h }(hj2JhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhjIhMjubj)}(hjh]h*}(hj@JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhMjubjg)}(hipc_obtain_object_idrh]jm)}(hj/Jh]hipc_obtain_object_idr}(hjQJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhjIhMjubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjlJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhJubj)}(h h]h }(hjyJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhJubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]j-Jc.ipc_obtain_object_idrasbuh1hhjhJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhJubjm)}(hidsh]hids}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdJubj)}(hint idh](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hidh]hid}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdJubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhjIhMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhMjubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjIhMjhjIhhubj)}(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"KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhjKhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:Kjj:Kjjjuh1hhhhj#hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int id`` ipc id to look for **Description** Call inside the RCU critical section. The ipc object is *not* locked on exit.h](h)}(h**Parameters**h]j)}(hjDKh]h Parameters}(hjFKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBKubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhj>Kubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjcKh]hstruct ipc_ids *ids}(hjeKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaKubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMlhj]Kubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj|KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxKhMlhjyKubah}(h]h ]h"]h$]h&]uh1jhj]Kubeh}(h]h ]h"]h$]h&]uh1jhjxKhMlhjZKubj)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hjKh]hint id}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMmhjKubj)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMmhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMmhjZKubeh}(h]h ]h"]h$]h&]uh1jhj>Kubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMohj>Kubh)}(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 }(hjKhhhNhNubj)}(h*not*h]hnot}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh locked on exit.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhj>Kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$ipc_obtain_object_check (C function)c.ipc_obtain_object_checkhNtauh1hhj#hhhNhNubh)}(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)}(hj6}h]hstruct}(hj.LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*LhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hj``int extra_perm`` one extra permission parameter used by msq h](j)}(h``int extra_perm``h]j)}(hjWh]hint extra_perm}(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.chMhjWubj)}(hhh]h)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjVubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjVubh)}(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/XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjVubj)}(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:}(hjEXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAXubj)}(hhh]j)}(hhh](j)}(h>retrieves the ipc object with the given id in the given table.h]h)}(hj\Xh]h>retrieves the ipc object with the given id in the given table.}(hj^XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjZXubah}(h]h ]h"]h$]h&]uh1jhjWXubj)}(hDperforms some audit and permission check, depending on the given cmdh]h)}(hjtXh]hDperforms some audit and permission check, depending on the given cmd}(hjvXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjrXubah}(h]h ]h"]h$]h&]uh1jhjWXubj)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjXubah}(h]h ]h"]h$]h&]uh1jhjWXubeh}(h]h ]h"]h$]h&]jjuh1jhjkXhMhjTXubah}(h]h ]h"]h$]h&]uh1jhjAXubeh}(h]h ]h"]h$]h&]uh1jhjSXhMhj>Xubah}(h]h ]h"]h$]h&]uh1jhjVubh)}(h6Call holding the both the rwsem and the rcu read lock.h]h6Call holding the both the rwsem and the rcu read lock.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_parse_version (C function)c.ipc_parse_versionhNtauh1hhj#hhhNhNubh)}(hhh](j)}(h int ipc_parse_version (int *cmd)h]j)}(hint ipc_parse_version(int *cmd)h](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjXhMubjg)}(hipc_parse_versionh]jm)}(hipc_parse_versionh]hipc_parse_version}(hj YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjXhMubj)}(h (int *cmd)h]j)}(hint *cmdh](j )}(hinth]hint}(hj'YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#Yubj)}(h h]h }(hj5YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#Yubj)}(hjh]h*}(hjCYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Yubjm)}(hcmdh]hcmd}(hjPYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#Yubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhjXhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjXhMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhjXhhubj)}(hhh]h)}(hipc call versionh]hipc call version}(hjzYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjwYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhj#hNhNubj)}(h**Parameters** ``int *cmd`` pointer to command **Description** Return IPC_64 for new style IPC and IPC_OLD for old style IPC. The **cmd** value is turned from an encoding command and version into just the command code.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYubj)}(hhh]j)}(h ``int *cmd`` pointer to command h](j)}(h ``int *cmd``h]j)}(hjYh]hint *cmd}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYubj)}(hhh]h)}(hpointer to commandh]hpointer to command}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYubh)}(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 }(hj ZhhhNhNubj)}(h**cmd**h]hcmd}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ZubhQ value is turned from an encoding command and version into just the command code.}(hj ZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhj#hhhNhNubh)}(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)}(hj6}h]hstruct}(hjMZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIZhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hj[ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIZhhhjZZhMubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjlZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnZmodnameN classnameNjI jL )}jO ]jR )}jE sysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhjIZhhhjZZhMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIZhhhjZZhMubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIZhhhjZZhMubjg)}(hsysvipc_find_ipch]jm)}(hjZh]hsysvipc_find_ipc}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIZhhhjZZhMubj)}(h"(struct ipc_ids *ids, loff_t *pos)h](j)}(hstruct ipc_ids *idsh](j)}(hj6}h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jZc.sysvipc_find_ipcasbuh1hhjZubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hidsh]hids}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(h loff_t *posh](h)}(hhh]jm)}(hloff_th]hloff_t}(hj:[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<[modnameN classnameNjI jL )}jO ]jZc.sysvipc_find_ipcasbuh1hhj3[ubj)}(h h]h }(hjX[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3[ubj)}(hjh]h*}(hjf[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3[ubjm)}(hposh]hpos}(hjs[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhjIZhhhjZZhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEZhhhjZZhMubah}(h]j@Zah ](jjeh"]h$]h&]jj)jhuh1hhjZZhMhjBZhhubj)}(hhh]h)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(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&]uh1jhjBZhhhjZZhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhj#hNhNubj)}(hX5**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``loff_t *pos`` expected position **Description** The function finds an ipc structure, based on the sequence file position **pos**. If there is no ipc structure at position **pos**, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and **pos** is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), **pos** is not modified. The function returns the found ipc structure, or NULL at EOF.h](h)}(h**Parameters**h]j)}(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"``loff_t *pos`` expected position h](j)}(h``loff_t *pos``h]j)}(hj\h]h loff_t *pos}(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)}(hexpected positionh]hexpected position}(hj0\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)}(hjR\h]h Description}(hjT\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP\ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj[ubh)}(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 }(hjh\hhhNhNubj)}(h**pos**h]hpos}(hjp\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh\ubh+. If there is no ipc structure at position }(hjh\hhhNhNubj)}(h**pos**h]hpos}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh\ubh, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and }(hjh\hhhNhNubj)}(h**pos**h]hpos}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh\ubhb is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), }(hjh\hhhNhNubj)}(h**pos**h]hpos}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh\ubh is not modified.}(hjh\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj[ubh)}(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.}(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&]uh1jhj#hhhNhNubeh}(h] ipc-utilitiesah ]h"] ipc utilitiesah$]h&]uh1hhj#hhhhhKubeh}(h]kernel-ipc-facilitiesah ]h"]kernel ipc facilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h FIFO Bufferh]h FIFO Buffer}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhj\hhhNhNubh)}(hhh](j)}(hDECLARE_KFIFO_PTRh]j)}(hDECLARE_KFIFO_PTRh]jg)}(hDECLARE_KFIFO_PTRh]jm)}(hj]h]hDECLARE_KFIFO_PTR}(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.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj7]hKoubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhj7]hKohj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]hhhj7]hKoubeh}(h]h ](jmacroeh"]h$]h&]jjjjP]jjP]jjjuh1hhhhj\hNhNubh)}(h"``DECLARE_KFIFO_PTR (fifo, type)``h]j)}(hjV]h]hDECLARE_KFIFO_PTR (fifo, type)}(hjX]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT]ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhj\hhubj)}(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}(hjp]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKohjl]ubah}(h]h ]h"]h$]h&]uh1jhj~]hKohj\hhubj)}(hZ**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elementsh](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.hhKshj]ubj)}(hhh](j)}(h#``fifo`` name of the declared 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.hhKphj]ubj)}(hhh]h)}(hname of the declared fifoh]hname of the declared fifo}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKphj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hKphj]ubj)}(h"``type`` type of the fifo elementsh](j)}(h``type``h]j)}(hj]h]htype}(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.hhKrhj]ubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hKrhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDECLARE_KFIFO (C macro)c.DECLARE_KFIFOhNtauh1hhj\hhhNhNubh)}(hhh](j)}(h DECLARE_KFIFOh]j)}(h DECLARE_KFIFOh]jg)}(h DECLARE_KFIFOh]jm)}(hj7^h]h DECLARE_KFIFO}(hjA^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9^hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKvubah}(h]h ]h"]h$]h&]jjjuh1jjjhj5^hhhjT^hKvubah}(h]j0^ah ](jjeh"]h$]h&]jj)jhuh1hhjT^hKvhj2^hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj2^hhhjT^hKvubeh}(h]h ](jmacroeh"]h$]h&]jjjjm^jjm^jjjuh1hhhhj\hNhNubh)}(h$``DECLARE_KFIFO (fifo, type, size)``h]j)}(hjs^h]h DECLARE_KFIFO (fifo, type, size)}(hju^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKxhj\hhubj)}(hmacro to declare a fifo object h]h)}(hmacro to declare a fifo objecth]hmacro to declare a fifo object}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKvhj^ubah}(h]h ]h"]h$]h&]uh1jhj^hKvhj\hhubj)}(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)}(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.hhKzhj^ubj)}(hhh](j)}(h#``fifo`` name of the declared 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.hhKwhj^ubj)}(hhh]h)}(hname of the declared fifoh]hname of the declared fifo}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKwhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hKwhj^ubj)}(h#``type`` type of the fifo elements h](j)}(h``type``h]j)}(hj_h]htype}(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.hhKxhj^ubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKxhj_ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj_hKxhj^ubj)}(hF``size`` the number of elements in the fifo, this must be a power of 2h](j)}(h``size``h]j)}(hj9_h]hsize}(hj;_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7_ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKzhj3_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}(hjR_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKyhjO_ubah}(h]h ]h"]h$]h&]uh1jhj3_ubeh}(h]h ]h"]h$]h&]uh1jhjN_hKzhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hINIT_KFIFO (C macro) c.INIT_KFIFOhNtauh1hhj\hhhNhNubh)}(hhh](j)}(h INIT_KFIFOh]j)}(h INIT_KFIFOh]jg)}(h INIT_KFIFOh]jm)}(hj_h]h INIT_KFIFO}(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.hhK~ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj_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&]jjjj_jj_jjjuh1hhhhj\hNhNubh)}(h``INIT_KFIFO (fifo)``h]j)}(hj_h]hINIT_KFIFO (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.hhKhj\hhubj)}(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}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhK~hj_ubah}(h]h ]h"]h$]h&]uh1jhj_hK~hj\hhubj)}(h=**Parameters** ``fifo`` name of the declared fifo datatypeh](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj_ubj)}(hhh]j)}(h+``fifo`` name of the declared fifo datatypeh](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.hhKhj`ubj)}(hhh]h)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hj6`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj3`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj2`hKhj`ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_KFIFO (C macro)c.DEFINE_KFIFOhNtauh1hhj\hhhNhNubh)}(hhh](j)}(h DEFINE_KFIFOh]j)}(h DEFINE_KFIFOh]jg)}(h DEFINE_KFIFOh]jm)}(hjq`h]h DEFINE_KFIFO}(hj{`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjw`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjs`hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjo`hhhj`hKubah}(h]jj`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hKhjl`hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjl`hhhj`hKubeh}(h]h ](jmacroeh"]h$]h&]jjjj`jj`jjjuh1hhhhj\hNhNubh)}(h#``DEFINE_KFIFO (fifo, type, size)``h]j)}(hj`h]hDEFINE_KFIFO (fifo, type, 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.hhKhj\hhubj)}(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}(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`hKhj\hhubj)}(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)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj`ubj)}(hhh](j)}(h,``fifo`` name of the declared fifo datatype h](j)}(h``fifo``h]j)}(hjah]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.hhKhj`ubj)}(hhh]h)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjaubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhjahKhj`ubj)}(h#``type`` type of the fifo elements h](j)}(h``type``h]j)}(hj:ah]htype}(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}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjiubah}(h]h ]h"]h$]h&]uh1jhjjhKhj\hhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(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.hhMhjjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj3jh]hfifo}(hj5jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1jubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj-jubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjLjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHjhMhjIjubah}(h]h ]h"]h$]h&]uh1jhj-jubeh}(h]h ]h"]h$]h&]uh1jhjHjhMhj*jubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjljh]hlock}(hjnjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjfjubj)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjjubah}(h]h ]h"]h$]h&]uh1jhjfjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhj*jubeh}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhj\hhhNhNubh)}(hhh](j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jg)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jm)}(hjjh]h#kfifo_is_empty_spinlocked_noirqsave}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjjjuh1hhhhj\hNhNubh)}(h4``kfifo_is_empty_spinlocked_noirqsave (fifo, lock)``h]j)}(hjjh]h0kfifo_is_empty_spinlocked_noirqsave (fifo, lock)}(hjjhhhNhNubah}(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.hhMhj\hhubj)}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubah}(h]h ]h"]h$]h&]uh1jhj$khMhj\hhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](h)}(h**Parameters**h]j)}(hj1kh]h Parameters}(hj3khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/kubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj+kubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjPkh]hfifo}(hjRkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNkubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjJkubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjikhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjekhMhjfkubah}(h]h ]h"]h$]h&]uh1jhjJkubeh}(h]h ]h"]h$]h&]uh1jhjekhMhjGkubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjkh]hlock}(hjkhhhNhNubah}(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.hhMhjkubj)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjGkubeh}(h]h ]h"]h$]h&]uh1jhj+kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_is_full (C macro)c.kfifo_is_fullhNtauh1hhj\hhhNhNubh)}(hhh](j)}(h kfifo_is_fullh]j)}(h kfifo_is_fullh]jg)}(h kfifo_is_fullh]jm)}(hjkh]h kfifo_is_full}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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&]jjjjljjljjjuh1hhhhj\hNhNubh)}(h``kfifo_is_full (fifo)``h]j)}(hjlh]hkfifo_is_full (fifo)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj\hhubj)}(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}(hj3lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj/lubah}(h]h ]h"]h$]h&]uh1jhjAlhMhj\hhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjNlh]h Parameters}(hjPlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLlubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hjHlubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjmlh]hfifo}(hjolhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjklubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM$hjglubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjlubah}(h]h ]h"]h$]h&]uh1jhjglubeh}(h]h ]h"]h$]h&]uh1jhjlhM$hjdlubah}(h]h ]h"]h$]h&]uh1jhjHlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_avail (C macro) c.kfifo_availhNtauh1hhj\hhhNhNubh)}(hhh](j)}(h kfifo_availh]j)}(h kfifo_availh]jg)}(h kfifo_availh]jm)}(hjlh]h kfifo_avail}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhM(ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhM(hjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhjlhM(ubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1hhhhj\hNhNubh)}(h``kfifo_avail (fifo)``h]j)}(hjlh]hkfifo_avail (fifo)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM*hj\hhubj)}(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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(hjmubah}(h]h ]h"]h$]h&]uh1jhj%mhM(hj\hhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj2mh]h Parameters}(hj4mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0mubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM,hj,mubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjQmh]hfifo}(hjSmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOmubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM.hjKmubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM)hjgmubah}(h]h ]h"]h$]h&]uh1jhjKmubeh}(h]h ]h"]h$]h&]uh1jhjfmhM.hjHmubah}(h]h ]h"]h$]h&]uh1jhj,mubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_skip_count (C macro)c.kfifo_skip_counthNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_skip_counth]j)}(hkfifo_skip_counth]jg)}(hkfifo_skip_counth]jm)}(hjmh]hkfifo_skip_count}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjmhM8ubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjmhM8hjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjmhhhjmhM8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjmjjmjjjuh1hhhhj\hNhNubh)}(h"``kfifo_skip_count (fifo, count)``h]j)}(hjmh]hkfifo_skip_count (fifo, count)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hj\hhubj)}(hskip output data h]h)}(hskip output datah]hskip output data}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hjmubah}(h]h ]h"]h$]h&]uh1jhj nhM8hj\hhubj)}(h\**Parameters** ``fifo`` address of the fifo to be used ``count`` count of data to skiph](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.hhM<hjnubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj5nh]hfifo}(hj7nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3nubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM9hj/nubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjNnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJnhM9hjKnubah}(h]h ]h"]h$]h&]uh1jhj/nubeh}(h]h ]h"]h$]h&]uh1jhjJnhM9hj,nubj)}(h``count`` count of data to skiph](j)}(h ``count``h]j)}(hjnnh]hcount}(hjpnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjhnubj)}(hhh]h)}(hcount of data to skiph]hcount of data to skip}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjnubah}(h]h ]h"]h$]h&]uh1jhjhnubeh}(h]h ]h"]h$]h&]uh1jhjnhM;hj,nubeh}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_skip (C macro) c.kfifo_skiphNtauh1hhj\hhhNhNubh)}(hhh](j)}(h kfifo_skiph]j)}(h kfifo_skiph]jg)}(h kfifo_skiph]jm)}(hjnh]h kfifo_skip}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjnhMGubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjnhMGhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMGubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1hhhhj\hNhNubh)}(h``kfifo_skip (fifo)``h]j)}(hjnh]hkfifo_skip (fifo)}(hjohhhNhNubah}(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.hhMIhj\hhubj)}(hskip output data h]h)}(hskip output datah]hskip output data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMGhjoubah}(h]h ]h"]h$]h&]uh1jhj&ohMGhj\hhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj3oh]h Parameters}(hj5ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1oubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKhj-oubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjRoh]hfifo}(hjTohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjLoubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjkohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMHhjhoubah}(h]h ]h"]h$]h&]uh1jhjLoubeh}(h]h ]h"]h$]h&]uh1jhjgohMMhjIoubah}(h]h ]h"]h$]h&]uh1jhj-oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_peek_lenh]j)}(hkfifo_peek_lenh]jg)}(hkfifo_peek_lenh]jm)}(hjoh]hkfifo_peek_len}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohMMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohMMhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjohMMubeh}(h]h ](jmacroeh"]h$]h&]jjjjojjojjjuh1hhhhj\hNhNubh)}(h``kfifo_peek_len (fifo)``h]j)}(hjoh]hkfifo_peek_len (fifo)}(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.hhMOhj\hhubj)}(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}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjoubah}(h]h ]h"]h$]h&]uh1jhj phMMhj\hhubj)}(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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjpubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj6ph]hfifo}(hj8phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4pubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhj0pubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjOphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKphMNhjLpubah}(h]h ]h"]h$]h&]uh1jhj0pubeh}(h]h ]h"]h$]h&]uh1jhjKphMNhj-pubah}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hjqph]h Description}(hjsphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjopubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjpubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_alloc (C macro) c.kfifo_allochNtauh1hhj\hhhNhNubh)}(hhh](j)}(h kfifo_alloch]j)}(h kfifo_alloch]jg)}(h kfifo_alloch]jm)}(hjph]h kfifo_alloc}(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.hhM^ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphM^ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphM^hjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjphM^ubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhj\hNhNubh)}(h&``kfifo_alloc (fifo, size, gfp_mask)``h]j)}(hjph]h"kfifo_alloc (fifo, size, gfp_mask)}(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.hhM`hj\hhubj)}(h(dynamically allocates a new fifo buffer h]h)}(h'dynamically allocates a new fifo bufferh]h'dynamically allocates a new fifo buffer}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM^hjqubah}(h]h ]h"]h$]h&]uh1jhjqhM^hj\hhubj)}(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!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.hhMbhjqubj)}(hhh](j)}(h``fifo`` pointer to the fifo h](j)}(h``fifo``h]j)}(hj@qh]hfifo}(hjBqhhhNhNubah}(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.hhM_hj:qubj)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjYqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUqhM_hjVqubah}(h]h ]h"]h$]h&]uh1jhj:qubeh}(h]h ]h"]h$]h&]uh1jhjUqhM_hj7qubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hjyqh]hsize}(hj{qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hjsqubj)}(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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM`hjqubah}(h]h ]h"]h$]h&]uh1jhjsqubeh}(h]h ]h"]h$]h&]uh1jhjqhM`hj7qubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hjqh]hgfp_mask}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMahjqubj)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMahjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMahj7qubeh}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMchjqubh)}(h3This macro dynamically allocates a new fifo buffer.h]h3This macro dynamically allocates a new fifo buffer.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMbhjqubh)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMdhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_free (C macro) c.kfifo_freehNtauh1hhj\hhhNhNubh)}(hhh](j)}(h kfifo_freeh]j)}(h kfifo_freeh]jg)}(h kfifo_freeh]jm)}(hj;rh]h kfifo_free}(hjErhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjArubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=rhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuubah}(h]h ]h"]h$]h&]jjjuh1jjjhj9rhhhjXrhMuubah}(h]j4rah ](jjeh"]h$]h&]jj)jhuh1hhjXrhMuhj6rhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj6rhhhjXrhMuubeh}(h]h ](jmacroeh"]h$]h&]jjjjqrjjqrjjjuh1hhhhj\hNhNubh)}(h``kfifo_free (fifo)``h]j)}(hjwrh]hkfifo_free (fifo)}(hjyrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjurubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMwhj\hhubj)}(hfrees the fifo h]h)}(hfrees the fifoh]hfrees the fifo}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuhjrubah}(h]h ]h"]h$]h&]uh1jhjrhMuhj\hhubj)}(h/**Parameters** ``fifo`` the fifo to be freedh](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhjrubj)}(hhh]j)}(h``fifo`` the fifo to be freedh](j)}(h``fifo``h]j)}(hjrh]hfifo}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM{hjrubj)}(hhh]h)}(hthe fifo to be freedh]hthe fifo to be freed}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMvhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhM{hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_init (C macro) c.kfifo_inithNtauh1hhj\hhhNhNubh)}(hhh](j)}(h kfifo_inith]j)}(h kfifo_inith]jg)}(h kfifo_inith]jm)}(hjsh]h kfifo_init}(hj)shhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%subah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!shhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:~hMLhj;~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj:~hMLhj~ubj)}(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.hhMMhjX~ubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjw~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs~hMMhjt~ubah}(h]h ]h"]h$]h&]uh1jhjX~ubeh}(h]h ]h"]h$]h&]uh1jhjs~hMMhj~ubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hj~h]hn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhj~ubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMNhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMNhj~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:205: ./include/linux/kfifo.hhMPhj~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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhj~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.hhMRhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]jg)}(hkfifo_out_spinlockedh]jm)}(hj h]hkfifo_out_spinlocked}(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.hhMeubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj=hMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj=hMehjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj=hMeubeh}(h]h ](jmacroeh"]h$]h&]jjjjVjjVjjjuh1hhhhj\hNhNubh)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghj\hhubj)}(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}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMehjrubah}(h]h ]h"]h$]h&]uh1jhjhMehj\hhubj)}(hX&**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get ``lock`` pointer to the spinlock to use for locking **Description** This macro gets the data from the fifo and returns the numbers of elements copied.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMihjubj)}(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.hhMfhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(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.hhMghjubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hj"h]hn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhhjubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhhjubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMihjUubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMihjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMihjubeh}(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)}(hRThis macro gets the data from the fifo and returns the numbers of elements copied.h]hRThis macro gets the data from the fifo and returns the numbers of elements copied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(kfifo_out_spinlocked_noirqsave (C macro) c.kfifo_out_spinlocked_noirqsavehNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hkfifo_out_spinlocked_noirqsaveh]jg)}(hkfifo_out_spinlocked_noirqsaveh]jm)}(hjՀh]hkfifo_out_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.hhM{ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjӀhhhjhM{ubah}(h]j΀ah ](jjeh"]h$]h&]jj)jhuh1hhjhM{hjЀhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjЀhhhjhM{ubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1hhhhj\hNhNubh)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM}hj\hhubj)}(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}(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&]uh1jhj9hM{hj\hhubj)}(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)}(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.hhMhj@ubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjeh]hfifo}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM}hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM}hj\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.hhM~hjubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hj\ubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjׁh]hn}(hjفhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՁubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjсubj)}(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&]uh1jhjсubeh}(h]h ]h"]h$]h&]uh1jhjhMhj\ubj)}(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.hhMhj ubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj\ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj@ubh)}(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.}(hjahhhNhNubah}(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&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_from_userh]j)}(hkfifo_from_userh]jg)}(hkfifo_from_userh]jm)}(hjh]hkfifo_from_user}(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&]jjjjjjjjjuh1hhhhj\hNhNubh)}(h-``kfifo_from_user (fifo, from, len, copied)``h]j)}(hjƂh]h)kfifo_from_user (fifo, from, len, copied)}(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\hhubj)}(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.hhMhj܂ubah}(h]h ]h"]h$]h&]uh1jhjhMhj\hhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``from`` pointer to the data to be added ``len`` the length of the data to be added ``copied`` pointer to output variable to store the number of copied bytes **Description** This macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h)``from`` pointer to the data to be added h](j)}(h``from``h]j)}(hjSh]hfrom}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjMubj)}(hhh]h)}(hpointer to the data to be addedh]hpointer to the data to be added}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubj)}(h+``len`` the length of the data to be added 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)}(h"the length of the data to be addedh]h"the length of the data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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)}(h>pointer to output variable to store the number of copied bytesh]h>pointer to output variable to store the number of copied bytes}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(hThis macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0.h](hThis macro copies at most }(hjhhhNhNubj)}(h**len**h]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from the }(hjhhhNhNubj)}(h**from**h]hfrom}(hj0hhhNhNubah}(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.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.}(hjIhhhNhNubah}(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&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhj\hhhNhNubh)}(hhh](j)}(h kfifo_to_userh]j)}(h kfifo_to_userh]jg)}(h kfifo_to_userh]jm)}(hjrh]h kfifo_to_user}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjmhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj\hNhNubh)}(h)``kfifo_to_user (fifo, to, len, copied)``h]j)}(hjh]h%kfifo_to_user (fifo, to, len, copied)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj\hhubj)}(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}(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քhMhj\hhubj)}(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.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%``to`` where the data must be copied h](j)}(h``to``h]j)}(hj;h]hto}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj5ubj)}(hhh]h)}(hwhere the data must be copiedh]hwhere the data must be copied}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjubj)}(h+``len`` the size of the destination buffer h](j)}(h``len``h]j)}(hjth]hlen}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjnubj)}(hhh]h)}(h"the size of the destination bufferh]h"the size of the destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(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&]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.hhMhj݄ubh)}(hcThis macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0.h](hThis macro copies at most }(hjhhhNhNubj)}(h**len**h]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from the fifo into the }(hjhhhNhNubj)}(h**to**h]hto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh buffer and returns -EFAULT/0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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.}(hj1hhhNhNubah}(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&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_dma_in_prepare_mappedh]j)}(hkfifo_dma_in_prepare_mappedh]jg)}(hkfifo_dma_in_prepare_mappedh]jm)}(hjZh]hkfifo_dma_in_prepare_mapped}(hjdhhhNhNubah}(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&]jjjuh1jjjhjXhhhjwhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhjUhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjUhhhjwhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj\hNhNubh)}(h<``kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjh]h8kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj\hhubj)}(h"setup a scatterlist for DMA input h]h)}(h!setup a scatterlist for DMA inputh]h!setup a scatterlist for DMA input}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj\hhubj)}(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)}(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)``sgl`` pointer to the scatterlist array h](j)}(h``sgl``h]j)}(hj#h]hsgl}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(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&]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*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hj·h]hdma}(hjЇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̇ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjȇubj)}(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&]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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjņubh)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjņubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjņubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]jg)}(hkfifo_dma_in_finishh]jm)}(hjeh]hkfifo_dma_in_finish}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjhMubah}(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#``kfifo_dma_in_finish (fifo, len)``h]j)}(hjh]hkfifo_dma_in_finish (fifo, len)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj\hhubj)}(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&]uh1jhjɈhMhj\hhubj)}(hXg**Parameters** ``fifo`` address of the fifo to be used ``len`` number of bytes to received **Description** This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hjֈh]h Parameters}(hj؈hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԈubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjЈubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(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&]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)}(hj.h]hlen}(hj0hhhNhNubah}(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)}(hnumber of bytes to receivedh]hnumber of bytes to received}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubeh}(h]h ]h"]h$]h&]uh1jhjЈubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjЈubh)}(h|This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done.h]h|This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjЈubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjЈubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhj\hhhNhNubh)}(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&]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=``kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjh]h9kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj\hhubj)}(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&]uh1jhjhMhj\hhubj)}(hX_**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA output which at most **len** bytes to transfer. It returns the number entries in the scatterlist array. A zero means there is no space available and the scatterlist is not filled. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]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)}(hjGh]hfifo}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjAubj)}(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&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubj)}(h)``sgl`` pointer to the scatterlist array h](j)}(h``sgl``h]j)}(hjh]hsgl}(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.hhMhjzubj)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>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}(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'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hj+h]hdma}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj%ubj)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hjDhhhNhNubj)}(h**sgl**h]hsgl}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(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)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj"ubh)}(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](hubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM7hjubeh}(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.hhM9hjubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear (C macro)c.kfifo_out_linearhNtauh1hhj\hhhNhNubh)}(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.hhMNubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjΎhMNubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjΎhMNhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjΎhMNubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj\hNhNubh)}(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.hhMPhj\hhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjubah}(h]h ]h"]h$]h&]uh1jhjhMNhj\hhubj)}(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)}(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.hhMRhjubj)}(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.hhMOhj;ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMOhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMOhj8ubj)}(h?``tail`` pointer to an unsigned int to store the value of tail h](j)}(h``tail``h]j)}(hjzh]htail}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjtubj)}(hhh]h)}(h5pointer to an unsigned int to store the value of tailh]h5pointer to an unsigned int to store the value of tail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMPhj8ubj)}(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.hhMQhjubj)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hj̏hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȏhMQhjɏubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȏhMQhj8ubeh}(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.hhMShjubh)}(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 (}(hjhhhNhNubj)}(h**fifo->data**h]h fifo->data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**tail**h]htail}(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.hhMRhjubh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhj\hhhNhNubh)}(hhh](j)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]jg)}(hkfifo_out_linear_ptrh]jm)}(hj`h]hkfifo_out_linear_ptr}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMlubah}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj}hMlubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhj}hMlhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj}hMlubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj\hNhNubh)}(h'``kfifo_out_linear_ptr (fifo, ptr, n)``h]j)}(hjh]h#kfifo_out_linear_ptr (fifo, ptr, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMnhj\hhubj)}(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.hhMlhjubah}(h]h ]h"]h$]h&]uh1jhjĐhMlhj\hhubj)}(hX~**Parameters** ``fifo`` address of the fifo to be used ``ptr`` pointer to data to store the pointer to tail ``n`` max. number of elements to point at **Description** Similarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of **ptr** with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjѐh]h Parameters}(hjӐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϐubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(h5``ptr`` pointer to data to store the pointer to tail h](j)}(h``ptr``h]j)}(hj)h]hptr}(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.hhMnhj#ubj)}(hhh]h)}(h,pointer to data to store the pointer to tailh]h,pointer to data to store the pointer to tail}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMnhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMnhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hjbh]hn}(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.hhMohj\ubj)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMohjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMohjubeh}(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.hhMqhjːubh)}(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.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.}(hjԑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMvhjːubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhj\hhhhhKubeh}(h] fifo-bufferah ]h"] fifo bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hrelay interface supporth]hrelay interface support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.h]hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hhh](h)}(hrelay interfaceh]hrelay interface}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhjQhKubjg)}(hrelay_buf_fullh]jm)}(hrelay_buf_fullh]hrelay_buf_full}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjQhKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(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 ]jR )}jE jfsbc.relay_buf_fullasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhKubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhKhj8hhubj)}(hhh]h)}(h$boolean, is the channel buffer full?h]h$boolean, is the channel buffer full?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhKubeh}(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)}(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.chKhjubj)}(hhh]j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjDh]hstruct rchan_buf *buf}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhj>ubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj;ubah}(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&]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)}(hjh]h-Returns 1 if the buffer is full, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(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}(hj͓hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjɓhhhS/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&]uh1jhjɓhhhjۓhM;ubjg)}(h relay_reseth]jm)}(h relay_reseth]h relay_reset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjɓhhhjۓhM;ubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(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_resetasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hchanh]hchan}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjɓhhhjۓhM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjœhhhjۓhM;ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjۓhM;hj“hhubj)}(hhh]h)}(hreset the channelh]hreset the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM;hjhhubah}(h]h ]h"]h$]h&]uh1jhj“hhhjۓhM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX}**Parameters** ``struct rchan *chan`` the channel **Description** This has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect. NOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM?hjubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjΔh]hstruct rchan *chan}(hjДhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̔ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM<hjȔubj)}(hhh]h)}(h the channelh]h the channel}(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}(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.chM>hjubj)}(hXThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect. NOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h](h)}(hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.h]hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.}(hj#hhhNhNubah}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMAhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM=hjubeh}(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)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjthMubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_opensb c.relay_openasbuh1hhjchhhjthMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjthMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjthMubjg)}(h relay_openh]jm)}(hjh]h relay_open}(hjƕhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj•ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjthMubj)}(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&]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)}(h base_filenameh]h base_filename}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݕubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٕubj)}(hstruct dentry *parenth](j)}(hj6}h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hdentryh]hdentry}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]j c.relay_openasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٕubj)}(hsize_t subbuf_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.relay_openasbuh1hhjubj)}(h h]h }(hjϖhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h subbuf_sizeh]h subbuf_size}(hjݖhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٕubj)}(hsize_t n_subbufsh](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.relay_openasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h n_subbufsh]h n_subbufs}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٕubj)}(h const struct rchan_callbacks *cbh](j)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hrchan_callbacksh]hrchan_callbacks}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j c.relay_openasbuh1hhj:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hcbh]hcb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٕubj)}(hvoid *private_datah](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)}(h private_datah]h private_data}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŗubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٕubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjthMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjthMhj\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\hhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhjhNhNubj)}(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}(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.chMhj8ubj)}(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.chMhjWubj)}(hhh]h)}(hbase name of files to createh]hbase name of files to create}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(h\``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer h](j)}(h``struct dentry *parent``h]j)}(hjh]hstruct dentry *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for root directory or buffer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(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&]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)}(hsize of sub-buffersh]hsize of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjۘubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubj)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjTubj)}(h?``const struct rchan_callbacks *cb`` client callback functions h](j)}(h$``const struct rchan_callbacks *cb``h]j)}(hjSh]h const struct rchan_callbacks *cb}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjMubj)}(hhh]h)}(hclient callback functionsh]hclient callback functions}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjTubj)}(h)``void *private_data`` user-defined data h](j)}(h``void *private_data``h]j)}(hjh]hvoid *private_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(huser-defined datah]huser-defined data}(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)}(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.chMhj8ubj)}(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.chMhjݙubh)}(hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be }(hjhhhNhNubj)}(h ``S_IRUSR``h]hS_IRUSR}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjݙubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(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}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE relay_switch_subbufsbc.relay_switch_subbufasbuh1hhjEhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM"ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjmhM"ubjg)}(hrelay_switch_subbufh]jm)}(hjjh]hrelay_switch_subbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjmhM"ubj)}(h&(struct rchan_buf *buf, size_t length)h](j)}(hstruct rchan_buf *bufh](j)}(hj6}h]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 ]jhc.relay_switch_subbufasbuh1hhjubj)}(h h]h }(hjךhhhNhNubah}(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 lengthh](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 ]jhc.relay_switch_subbufasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlengthh]hlength}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjmhM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjmhM"ubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjmhM"hj>hhubj)}(hhh]h)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM"hjahhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjmhM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM&hjubj)}(hhh](j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM#hjubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjubj)}(h(``size_t length`` size of current event h](j)}(h``size_t length``h]j)}(hjޛh]h size_t length}(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.chM$hj؛ubj)}(hhh]h)}(hsize of current eventh]hsize of current event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhj؛ubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM&hjubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM%hj/ubh)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM'hj/ubeh}(h]h ]h"]h$]h&]uh1jhjAhM%hjubeh}(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}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhMdubjg)}(hrelay_subbufs_consumedh]jm)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhMdubj)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j)}(hstruct rchan *chanh](j)}(hj6}h]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 jsbc.relay_subbufs_consumedasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(hunsigned int cpuh](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 )}(hinth]hint}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj"ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubjm)}(hcpuh]hcpu}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subbufs_consumedh](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 ]jc.relay_subbufs_consumedasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubjm)}(hsubbufs_consumedh]hsubbufs_consumed}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMdubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhMdhjlhhubj)}(hhh]h)}(h.update the buffer's sub-buffers-consumed counth]h0update the buffer’s sub-buffers-consumed count}(hjНhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMdhj͝hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMdubeh}(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}(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)}(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.chMehj ubj)}(hhh]h)}(h the channelh]h the channel}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMehj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMehjubj)}(hJ``unsigned int cpu`` the cpu associated with the channel buffer to update h](j)}(h``unsigned int cpu``h]j)}(hjJh]hunsigned int cpu}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMfhjDubj)}(hhh]h)}(h4the cpu associated with the channel buffer to updateh]h4the cpu associated with the channel buffer to update}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMfhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMfhjubj)}(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)}(hjh]hsize_t subbufs_consumed}(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.chMghj}ubj)}(hhh]h)}(h3number of sub-buffers to add to current buf's counth]h5number of sub-buffers to add to current buf’s count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubeh}(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.chMihjubj)}(hAdds to the channel buffer's consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed. NOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h](h)}(hAdds to the channel buffer's consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed.h]hAdds to the channel buffer’s consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed.}(hj؞hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhhjԞubh)}(hYNOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h]h_NOTE. Kernel clients don’t need to call this function if the channel mode is ‘overwrite’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMlhjԞubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(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 }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj*hMubjg)}(h relay_closeh]jm)}(h relay_closeh]h relay_close}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj*hMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hrchanh]hrchan}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE j?sb c.relay_closeasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hchanh]hchan}(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)}(hclose the channelh]hclose the channel}(hjܟhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjٟhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h}**Parameters** ``struct rchan *chan`` the channel **Description** Closes all channel buffers and frees the channel.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(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}(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**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(h1Closes all channel buffers and frees the channel.h]h)}(hjph]h1Closes all channel buffers and frees the channel.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjnubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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}(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_flushh]jm)}(h relay_flushh]h relay_flush}(hjǠhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjàubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(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 jɠsb c.relay_flushasbuh1hhjߠ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)}(hchanh]hchan}(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)}(hclose the channelh]hclose the channel}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan *chan`` the channel **Description** Flushes all channel buffers, i.e. forces buffer switch.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(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&]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)}(h7Flushes all channel buffers, i.e. forces buffer switch.h]h)}(hjh]h7Flushes all channel buffers, i.e. forces buffer switch.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_mmap_buf (C function)c.relay_mmap_bufhNtauh1hhjhhhNhNubh)}(hhh](j)}(hFint relay_mmap_buf (struct rchan_buf *buf, struct vm_area_struct *vma)h]j)}(hEint relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma)h](j )}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKKubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj>hKKubjg)}(hrelay_mmap_bufh]jm)}(hrelay_mmap_bufh]hrelay_mmap_buf}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hKKubj)}(h3(struct rchan_buf *buf, struct vm_area_struct *vma)h](j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(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 ]jR )}jE jSsbc.relay_mmap_bufasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hbufh]hbuf}(hjƢhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hstruct vm_area_struct *vmah](j)}(hj6}h]hstruct}(hjߢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۢubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۢubh)}(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 ]jc.relay_mmap_bufasbuh1hhjۢubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۢubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۢubjm)}(hvmah]hvma}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۢubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(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]j)}(hhh]j)}(h,mmap channel buffer to process address spaceh]h)}(hjeh]h,mmap channel buffer to process address space}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKKhjcubah}(h]h ]h"]h$]h&]uh1jhj`hhhjthNubah}(h]h ]h"]h$]h&]jjuh1jhjthKKhj]hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer ``struct vm_area_struct *vma`` vm_area_struct describing memory to be mapped **Description** Returns 0 if ok, negative on error Caller should already have grabbed mmap_lock.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKOhjubj)}(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.chKLhjubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hj̣hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȣhKLhjɣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȣhKLhjubj)}(hM``struct vm_area_struct *vma`` vm_area_struct describing memory to be mapped 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKMhjubj)}(hhh]h)}(h-vm_area_struct describing memory to be mappedh]h-vm_area_struct describing memory to be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubeh}(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.chKOhjubj)}(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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKNhj=ubh)}(h-Caller should already have grabbed mmap_lock.h]h-Caller should already have grabbed mmap_lock.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKPhj=ubeh}(h]h ]h"]h$]h&]uh1jhjOhKNhjubeh}(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)}(hubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj)}(h.Returns 1 if the buffer is empty, 0 otherwise.h]h)}(hjXh]h.Returns 1 if the buffer is empty, 0 otherwise.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjVubah}(h]h ]h"]h$]h&]uh1jhjghKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwakeup_readers (C function)c.wakeup_readershNtauh1hhjhhhNhNubh)}(hhh](j)}(h+void wakeup_readers (struct irq_work *work)h]j)}(h*void wakeup_readers(struct irq_work *work)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hwakeup_readersh]jm)}(hwakeup_readersh]hwakeup_readers}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct irq_work *work)h]j)}(hstruct irq_work *workh](j)}(hj6}h]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)}(hirq_workh]hirq_work}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.wakeup_readersasbuh1hhjǮubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǮubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǮubjm)}(hworkh]hwork}(hj$hhhNhNubah}(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)}(h$wake up readers waiting on a channelh]h$wake up readers waiting on a channel}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct irq_work *work`` contains the channel buffer **Description** This is the function used to defer reader wakingh](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjjubj)}(hhh]j)}(h6``struct irq_work *work`` contains the channel buffer h](j)}(h``struct irq_work *work``h]j)}(hjh]hstruct irq_work *work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjubj)}(hhh]h)}(hcontains the channel bufferh]hcontains the channel buffer}(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&]uh1jhjjubh)}(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.chMhjjubj)}(h0This is the function used to defer reader wakingh]h)}(hjh]h0This is the function used to defer reader waking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__relay_reset (C function)c.__relay_resethNtauh1hhjhhhNhNubh)}(hhh](j)}(h=void __relay_reset (struct rchan_buf *buf, unsigned int init)h]j)}(h``struct vm_area_struct *vma`` the vma describing what to map 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(hthe vma describing what to maph]hthe vma describing what to map}(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&]uh1jhjAubh)}(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.chMhjAubj)}(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}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE relay_file_pollsbc.relay_file_pollasbuh1hhj$hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$hhhjLhMubjg)}(hrelay_file_pollh]jm)}(hjIh]hrelay_file_poll}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhjLhMubj)}(h%(struct file *filp, poll_table *wait)h](j)}(hstruct file *filph](j)}(hj6}h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jGc.relay_file_pollasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjĺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hfilph]hfilp}(hjѺhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubj)}(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 ]jGc.relay_file_pollasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hwaith]hwait}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhj$hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjLhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhjhhubj)}(hhh]h)}(hpoll file op for relay filesh]hpoll file op for relay files}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhjhNhNubj)}(h}**Parameters** ``struct file *filp`` the file ``poll_table *wait`` poll table **Description** Poll implemention.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjlubj)}(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)}(hjʻh]hpoll_table *wait}(hj̻hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȻubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjĻubj)}(hhh]h)}(h poll tableh]h poll table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj߻hMhjubah}(h]h ]h"]h$]h&]uh1jhjĻubeh}(h]h ]h"]h$]h&]uh1jhj߻hMhjubeh}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjlubj)}(hPoll implemention.h]h)}(hjh]hPoll implemention.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhj,hMhjlubeh}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjahMubjg)}(hrelay_file_releaseh]jm)}(hrelay_file_releaseh]hrelay_file_release}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjahMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hj6}h]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 jvsbc.relay_file_releaseasbuh1hhjubj)}(h h]h }(hjμhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjܼhhhNhNubah}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jʼc.relay_file_releaseasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfilph]hfilp}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjHhhubj)}(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&]uh1jhjHhhhjahMubeh}(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)}(hjĽh]hstruct inode *inode}(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)}(h the inodeh]h the inode}(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 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&]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&]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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjNubah}(h]h ]h"]h$]h&]uh1jhj`hMhjubeh}(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.chMqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMqubjg)}(hrelay_file_read_subbuf_availh]jm)}(hjh]hrelay_file_read_subbuf_avail}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMqubj)}(h((size_t read_pos, struct rchan_buf *buf)h](j)}(hsize_t read_posh](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 ]jc.relay_file_read_subbuf_availasbuh1hhjվubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjվubjm)}(hread_posh]hread_pos}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjվubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѾubj)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj.hhhNhNubah}(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 reftargetjAmodnameN classnameNjI jL )}jO ]jc.relay_file_read_subbuf_availasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjѾubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMqubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhMqhj|hhubj)}(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.chMqhjhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhMqubeh}(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)}(hjĿh]h Parameters}(hjƿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj¿ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMuhjubj)}(hhh](j)}(h'``size_t read_pos`` file read position h](j)}(h``size_t read_pos``h]j)}(hjh]hsize_t read_pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMrhjݿubj)}(hhh]h)}(hfile read positionh]hfile read position}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjݿubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjڿubj)}(h.``struct rchan_buf *buf`` relay channel bufferh](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMthjubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMshj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMthjڿubeh}(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}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_start_possbc.relay_file_read_start_posasbuh1hhjrhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhMubjg)}(hrelay_file_read_start_posh]jm)}(hjh]hrelay_file_read_start_pos}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj6}h]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 ]jc.relay_file_read_start_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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjkhhubj)}(hhh]h)}(h%find the first available byte to readh]h%find the first available byte to read}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjhNhNubj)}(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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjeubj)}(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&]uh1jhjeubh)}(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.chMhjeubj)}(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&]uh1jhjhMhjeubeh}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_end_possbc.relay_file_read_end_posasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj8hMubjg)}(hrelay_file_read_end_posh]jm)}(hj5h]hrelay_file_read_end_pos}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj8hMubj)}(h6(struct rchan_buf *buf, size_t read_pos, size_t count)h](j)}(hstruct rchan_buf *bufh](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(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 ]j3c.relay_file_read_end_posasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(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 ]j3c.relay_file_read_end_posasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hread_posh]hread_pos}(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}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]j3c.relay_file_read_end_posasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj8hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj8hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hMhj hhubj)}(hhh]h)}(hreturn the new read positionh]hreturn the new read position}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjthhubah}(h]h ]h"]h$]h&]uh1jhj hhhj8hMubeh}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``size_t count`` number of bytes to be readh](j)}(h``size_t count``h]j)}(hj*h]h size_t count}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj$ubj)}(hhh]h)}(hnumber of bytes to be readh]hnumber of bytes to be read}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]relay-interfaceah ]h"]relay interfaceah$]h&]uh1hhjhhhhhKubeh}(h]relay-interface-supportah ]h"]relay interface supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hModule Supporth]hModule Support}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hhhhhKubh)}(hhh](h)}(hKernel module auto-loadingh]hKernel module auto-loading}(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.chKtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKtubjg)}(h__request_moduleh]jm)}(h__request_moduleh]h__request_module}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKtubj)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hwaith]hwait}(hjhhhNhNubah}(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&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj )}(hcharh]hchar}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hfmth]hfmt}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(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&]jjuh1jhjhhhjhKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKthjhhubj)}(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.chKthjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKtubeh}(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**hb]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.chKxhjubj)}(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.chKuhjubj)}(hhh]h)}(h+wait (or not) for the operation to completeh]h+wait (or not) for the operation to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKuhjubj)}(hJ``const char *fmt`` printf style format string for the name of the module h](j)}(h``const char *fmt``h]j)}(hj'h]hconst char *fmt}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKvhj!ubj)}(hhh]h)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKvhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKvhjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hj`h]h...}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKwhjZubj)}(hhh]h)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKwhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKwhjubeh}(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.chKyhjubh)}(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.chKxhjubh)}(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&]uh1hhj{hhhhhKubh)}(hhh](h)}(hModule debuggingh]hModule debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hEnabling CONFIG_MODULE_STATS enables module debugging statistics which are useful to monitor and root cause memory pressure issues with module loading. These statistics are useful to allow us to improve production workloads.h]hEnabling CONFIG_MODULE_STATS enables module debugging statistics which are useful to monitor and root cause memory pressure issues with module loading. These statistics are useful to allow us to improve production workloads.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chKhjhhubh)}(hX9The current module debugging statistics supported help keep track of module loading failures to enable improvements either for kernel module auto-loading usage (request_module()) or interactions with userspace. Statistics are provided to track all possible failures in the finit_module() path and memory wasted in this process space. Each of the failure counters are associated to a type of module loading failure which is known to incur a certain amount of memory allocation loss. In the worst case loading a module will fail after a 3 step memory allocation process:h]hX9The current module debugging statistics supported help keep track of module loading failures to enable improvements either for kernel module auto-loading usage (request_module()) or interactions with userspace. Statistics are provided to track all possible failures in the finit_module() path and memory wasted in this process space. Each of the failure counters are associated to a type of module loading failure which is known to incur a certain amount of memory allocation loss. In the worst case loading a module will fail after a 3 step memory allocation process:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chKhjhhubj)}(hXa) memory allocated with kernel_read_file_from_fd() b) module decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away. c) layout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully. h]jG)}(hhh](j)}(h0memory allocated with kernel_read_file_from_fd()h]h)}(hjh]h0memory allocated with kernel_read_file_from_fd()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK#hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.h]h)}(hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.h]hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.}(hj0hhhNhNubah}(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&]uh1jhjubj)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully. h]h)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.h]hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK)hjEubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiH loweralphajkHhjlHj(uh1jGhj ubah}(h]h ]h"]h$]h&]uh1jhj%hK#hjhhubh)}(hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.h]hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.}(hjkhhhNhNubah}(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.}(hjzhhhNhNubah}(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&]jiHjjHjkHhjlHj(uh1jGhjubah}(h]h ]h"]h$]h&]uh1jhjhKFhjhhubh)}(hIn practice on a typical boot today most finit_module() calls fail due to the module with the same name already being loaded or about to be processed. All virtual memory allocated to these failed modules will be freed with no functional use.h]hIn practice on a typical boot today most finit_module() calls fail due to the module with the same name already being loaded or about to be processed. All virtual memory allocated to these failed modules will be freed with no functional use.}(hjhhhNhNubah}(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:}(hj#hhhNhNubah}(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}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKVhj9ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKZhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]jiHjdjkHhjlHj(uh1jGhj2ubah}(h]h ]h"]h$]h&]uh1jhjKhKVhjhhubh)}(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.}(hjwhhhNhNubah}(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&]jjuh1jhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjhKjhjhhubh)}(hPThe following debugfs counters are available to inspect module loading failures:h]hPThe following debugfs counters are available to inspect module loading failures:}(hjhhhNhNubah}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKrhj4ubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(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}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKthjMubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKvhjfubah}(h]h ]h"]h$]h&]uh1jhj1ubj)}(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&]uh1jhj1ubj)}(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 ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jmodulesuh1hhZ/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&]uh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjFhKrhj-ubj)}(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)}(hj h]h5elf_validity_cache_copy() - some ELF validation issue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hearly_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present h](h)}(hearly_mod_check():h]hearly_mod_check():}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj#ubj)}(hhh](j)}(h blacklistingh]h)}(hj;h]h blacklisting}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj9ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(h!failed to rewrite section headersh]h)}(hjSh]h!failed to rewrite section headers}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjQubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(h version magich]h)}(hjkh]h version magic}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjiubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(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&]uh1jhj6ubj)}(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&]uh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjJhKhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj-ubj)}(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&]jjuh1jhjhKhj-ubeh}(h]h ]h"]h$]h&]uh1jhjFhKrhj)ubj)}(hhh](j)}(h?modcount: how many modules we've loaded in our kernel life timeh]h)}(hjh]hAmodcount: how many modules we’ve loaded in our kernel life time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()h]h)}(hjh]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfailed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken.h]h)}(hfailed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken.h]hfailed_decompress: how many failed module decompression attempts we’ve had. These really should not happen unless your compression / decompression might be broken.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj%ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.h]h)}(hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.h]hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj>ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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.}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhj)ubeh}(h]h ]h"]h$]h&]uh1jhjFhKrhjhhubeh}(h]"module-statistics-debugfs-countersah ]h"]"module statistics debugfs countersah$]h&]uh1hhjhhhhhKubeh}(h]module-debuggingah ]h"]module debuggingah$]h&]uh1hhj{hhhhhKubh)}(hhh](h)}(hInter Module supporth]hInter Module support}(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&]uh1hhj{hhhhhKubeh}(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)}(hubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj:ubj)}(hhh]h)}(hresource descriptorh]hresource descriptor}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(hXThis interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don't have any children are considered. All mergeable resources must be immutable during the request.h]hXThis interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don’t have any children are considered. All mergeable resources must be immutable during the request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh](j)}(hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!h]h)}(hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!h]hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hHrelease_mem_region_adjustable() will split on demand on memory hotunplugh]h)}(hjh]hHrelease_mem_region_adjustable() will split on demand on memory hotunplug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrequest_resource (C function)c.request_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(hBint request_resource (struct resource *root, struct resource *new)h]j)}(hAint request_resource(struct resource *root, struct resource *new)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/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&]uh1jhjhhhj hMubjg)}(hrequest_resourceh]jm)}(hrequest_resourceh]hrequest_resource}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(hresourceh]hresource}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]jR )}jE j5sbc.request_resourceasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct resource *newh](j)}(hj6}h]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_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjBhhhNhNubah}(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&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hj^ubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj}ubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(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 hjzubeh}(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.}(hj hhhNhNubah}(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 hj8hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM/ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhjJhM/ubjg)}(hrelease_resourceh]jm)}(hrelease_resourceh]hrelease_resource}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhjJhM/ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hj6}h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j_sbc.release_resourceasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhM/ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhM/hj1hhubj)}(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.chM/hjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h;**Parameters** ``struct resource *old`` resource pointerh](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:271: ./kernel/resource.chM3hjubj)}(hhh]j)}(h)``struct resource *old`` resource pointerh](j)}(h``struct resource *old``h]j)}(hj=h]hstruct resource *old}(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.chM5hj7ubj)}(hhh]h)}(hresource pointerh]hresource pointer}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM0hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM5hj4ubah}(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 *))4h]j)}(hint walk_iomem_res_desc(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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)}(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&]jjuh1jfhjhhhjhMubj)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hjOhhhNhNubah}(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 u64 starth](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 jsbc.walk_iomem_res_descasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(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 ]jc.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*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hargh]harg}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h$int (*func)(struct resource*, void*)h](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hj'h]h(}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubj)}(hj(h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hj'h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.walk_iomem_res_descasbuh1hhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hji(h]h,}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hj(h]h)}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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. *}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhjhNhNubj)}(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)}(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.chMhjlubj)}(hhh](j)}(h\``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. h](j)}(h``unsigned long desc``h]j)}(hjh]hunsigned long desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hDI/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check.h](h5I/O resource descriptor. Use IORES_DESC_NONE to skip }(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh check.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubj)}(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}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjubj)}(h``u64 end`` end addr h](j)}(h ``u64 end``h]j)}(hjNh]hu64 end}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjHubj)}(hhh]h)}(hend addrh]hend addr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjubj)}(h:``void *arg`` function argument for the callback **func** h](j)}(h ``void *arg``h]j)}(hjh]h void *arg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(h+function argument for the callback **func**h](h#function argument for the callback }(hjhhhNhNubj)}(h**func**h]hfunc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjlubh)}(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.chMhjlubh)}(h**NOTE**h]j)}(hj0h]hNOTE}(hj2hhhNhNubah}(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.chMhjlubh)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjlubeh}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjhMkubjg)}(hregion_intersectsh]jm)}(hregion_intersectsh]hregion_intersects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjhMkubj)}(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 jsbc.region_intersectsasbuh1hhjubj)}(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)}(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}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](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}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hjnhhhNhNubah}(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)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMkubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMkhjjhhubj)}(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.chMkhjhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMkubeh}(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.chMohjubj)}(hhh](j)}(h/``resource_size_t start`` region start address h](j)}(h``resource_size_t start``h]j)}(hj8h]hresource_size_t start}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMlhj2ubj)}(hhh]h)}(hregion start addressh]hregion start address}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMlhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMlhj/ubj)}(h``size_t size`` size of region h](j)}(h``size_t size``h]j)}(hjqh]h size_t size}(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.chMmhjkubj)}(hhh]h)}(hsize of regionh]hsize of region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMmhj/ubj)}(h>``unsigned long flags`` flags of resource (in iomem_resource) h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMnhjubj)}(hhh]h)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhj/ubj)}(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.chMohjubj)}(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&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohj/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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMqhjubh)}(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 }(hj4hhhNhNubj)}(h **flags**h]hflags}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh and }(hj4hhhNhNubj)}(h**desc**h]hdesc}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhX (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap }(hj4hhhNhNubj)}(h **flags**h]hflags}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh/}(hj4hhhNhNubj)}(h**desc**h]hdesc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh-, return REGION_MIXED if the region overlaps }(hj4hhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh/}hj4sbj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hj4hhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh/}hj4sbj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh 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.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMphjubh)}(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.chMyhjubeh}(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}(hj#hhhNhNubah}(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)}(hj6}h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubh)}(hhh]jm)}(hresourceh]hresource}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]jR )}jE j%sbc.find_resource_spaceasbuh1hhj;ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct resource *newh](j)}(hj6}h]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 ]jyc.find_resource_spaceasbuh1hhjubj)}(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&]noemphjjuh1jhj7ubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&modnameN classnameNjI jL )}jO ]jyc.find_resource_spaceasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(h&struct resource_constraint *constrainth](j)}(hj6}h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(hresource_constrainth]hresource_constraint}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jyc.find_resource_spaceasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(h constrainth]h constraint}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(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)}(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:271: ./kernel/resource.chMhjubj)}(hhh](j)}(h3``struct resource *root`` Root resource descriptor h](j)}(h``struct resource *root``h]j)}(hj+h]hstruct resource *root}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj%ubj)}(hhh]h)}(hRoot resource descriptorh]hRoot resource descriptor}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj"ubj)}(hN``struct resource *new`` Resource descriptor awaiting an empty resource space h](j)}(h``struct resource *new``h]j)}(hjdh]hstruct resource *new}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj^ubj)}(hhh]h)}(h4Resource descriptor awaiting an empty resource spaceh]h4Resource descriptor awaiting an empty resource space}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj"ubj)}(h=``resource_size_t size`` The minimum size of the empty space 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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj"ubj)}(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&]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&]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 }(hj'hhhNhNubj)}(h**root**h]hroot}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh5 in the resource tree satisfying range and alignment }(hj'hhhNhNubj)}(h**constraints**h]h constraints}(hjAhhhNhNubah}(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.chMhjubh)}(h **Return**h]j)}(hj\h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(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)}(hjwh](j)}(h``0``h]h0}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh - if successful, }(hjyhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh+ members start, end, and flags are altered.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjuubah}(h]h ]h"]h$]h&]uh1jhjrubj)}(h,``-EBUSY`` - if no empty space was found.h]h)}(hjh](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.chMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]jjuh1jhjhMhjubeh}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hallocate_resourceh]jm)}(hallocate_resourceh]hallocate_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(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)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hresourceh]hresource}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.allocate_resourceasbuh1hhj2ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct resource *newh](j)}(hj6}h]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 ]jpc.allocate_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&]noemphjjuh1jhj.ubj)}(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 ]jpc.allocate_resourceasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hresource_size_t minh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jpc.allocate_resourceasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubjm)}(hminh]hmin}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hresource_size_t maxh](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 ]jpc.allocate_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(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 ]jpc.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&]noemphjjuh1jhj.ubj)}(hresource_alignf alignfh](h)}(hhh]jm)}(hresource_alignfh]hresource_alignf}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jpc.allocate_resourceasbuh1hhj4ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(halignfh]halignf}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hvoid *alignf_datah](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|ubjm)}(h alignf_datah]h alignf_data}(hjhhhNhNubah}(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)}(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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(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}(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 ubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hjMh]hstruct resource *new}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM#hjGubj)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM#hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM#hj ubj)}(h8``resource_size_t size`` requested resource region size h](j)}(h``resource_size_t size``h]j)}(hjh]hresource_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM$hjubj)}(hhh]h)}(hrequested resource region sizeh]hrequested resource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hj ubj)}(h5``resource_size_t min`` minimum boundary to allocate h](j)}(h``resource_size_t min``h]j)}(hjh]hresource_size_t min}(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)}(hminimum boundary to allocateh]hminimum boundary to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hj ubj)}(h5``resource_size_t max`` maximum boundary to allocate h](j)}(h``resource_size_t max``h]j)}(hjh]hresource_size_t max}(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)}(hmaximum boundary to allocateh]hmaximum boundary to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM&hj ubj)}(h8``resource_size_t align`` alignment requested, in bytes h](j)}(h``resource_size_t align``h]j)}(hj1h]hresource_size_t align}(hj3hhhNhNubah}(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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM'hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhM'hj ubj)}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j)}(h``resource_alignf alignf``h]j)}(hjjh]hresource_alignf alignf}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hjdubj)}(hhh]h)}(h0alignment function, optional, called if not NULLh]h0alignment function, optional, called if not NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhM(hj ubj)}(hG``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](j)}(h``void *alignf_data``h]j)}(hjh]hvoid *alignf_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*hjubj)}(hhh]h)}(h1arbitrary data to pass to the **alignf** functionh](harbitrary data to pass to the }(hjhhhNhNubj)}(h **alignf**h]halignf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh function}(hjhhhNhNubeh}(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*hj ubeh}(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}(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)}(hinsert_resourceh]jm)}(hinsert_resourceh]hinsert_resource}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hj6}h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(hresourceh]hresource}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jR )}jE j2sbc.insert_resourceasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hstruct resource *newh](j)}(hj6}h]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.insert_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&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhjhNhNubj)}(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)}(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)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjzubj)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(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&]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)}(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.}(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](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}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjVhMubjg)}(hinsert_resource_expand_to_fith]jm)}(hinsert_resource_expand_to_fith]hinsert_resource_expand_to_fit}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjVhMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj6}h]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 ]jR )}jE jksbc.insert_resource_expand_to_fitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hstruct resource *newh](j)}(hj6}h]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.insert_resource_expand_to_fitasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhjVhMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMhj=hhubj)}(hhh]h)}(h(Insert a resource into the resource treeh]h(Insert a resource into the resource tree}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjuhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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)}(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}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.h]hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.}(hjChhhNhNubah}(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](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}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjhMubjg)}(hremove_resourceh]jm)}(hremove_resourceh]hremove_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjhMubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hj6}h]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 ]jR )}jE jsbc.remove_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjghhubj)}(hhh]h)}(h&Remove a resource in the resource treeh]h&Remove a resource in the resource tree}(hj2hhhNhNubah}(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&]uh1jhjghhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1hhhhjhNhNubj)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjNubj)}(hhh]j)}(h,``struct resource *old`` resource to remove h](j)}(h``struct resource *old``h]j)}(hjsh]hstruct resource *old}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjmubj)}(hhh]h)}(hresource to removeh]hresource to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjNubh)}(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.chMhjNubh)}(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.chMhjNubh)}(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.chMhjNubeh}(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 hj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhM*ubjg)}(hadjust_resourceh]jm)}(hadjust_resourceh]hadjust_resource}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhM*ubj)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j)}(hstruct resource *resh](j)}(hj6}h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(hresourceh]hresource}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jR )}jE j4sbc.adjust_resourceasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hresh]hres}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(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 ]jc.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&]noemphjjuh1jhjFubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.adjust_resourceasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhM*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM*hjhhubj)}(hhh]h)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*hj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhjhNhNubj)}(hX]**Parameters** ``struct resource *res`` resource to modify ``resource_size_t start`` new start value ``resource_size_t size`` new size **Description** Given an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can't fit. Existing children of the resource are assumed to be immutable.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM.hj}ubj)}(hhh](j)}(h,``struct resource *res`` resource to modify h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM+hjubj)}(hhh]h)}(hresource to modifyh]hresource to modify}(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 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.chM,hjubj)}(hhh]h)}(hnew start valueh]hnew start value}(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 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.chM-hjubj)}(hhh]h)}(hnew sizeh]hnew size}(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&]uh1jhj}ubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM/hj}ubh)}(hGiven an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can't fit. Existing children of the resource are assumed to be immutable.h]hGiven an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can’t fit. Existing children of the resource are assumed to be immutable.}(hjehhhNhNubah}(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](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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(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_regionasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h__request_regionh]jm)}(hjh]h__request_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h`(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hstruct resource *parenth](j)}(hj6}h]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 ]jc.__request_regionasbuh1hhj ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hparenth]hparent}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(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&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(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}(hj hhhNhNubah}(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 }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnameh]hname}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hflagsh]hflags}(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)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(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.chMhjubj)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hj*h]hresource_size_t start}(hj,hhhNhNubah}(h]h ]h"]h$]h&]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 start addressh]hresource start address}(hjChhhNhNubah}(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+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hjch]hresource_size_t n}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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 region sizeh]hresource region size}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM!hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM!hjubj)}(h2``const char *name`` reserving caller's ID 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hjubj)}(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&]uh1jhjubeh}(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}(hj/hhhNhNubah}(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 }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+hhhj=hM@ubjg)}(h__release_regionh]jm)}(h__release_regionh]h__release_region}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+hhhj=hM@ubj)}(hC(struct resource *parent, resource_size_t start, resource_size_t n)h](j)}(hstruct resource *parenth](j)}(hj6}h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jRsbc.__release_regionasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(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 ]jc.__release_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hresource_size_t nh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jc.__release_regionasbuh1hhj"ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubjm)}(hjyh]hn}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(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-release a previously reserved resource regionh]h-release a previously reserved resource region}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM@hj{hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *parent`` parent resource descriptor ``resource_size_t start`` resource start address ``resource_size_t n`` resource region size **Description** The described resource region must match a currently busy region.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMDhjubj)}(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.chMAhjubj)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubj)}(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.chMBhjubj)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMBhjubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hj1h]hresource_size_t n}(hj3hhhNhNubah}(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.chMChj+ubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMChjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMChjubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMEhjubh)}(hAThe described resource region must match a currently busy region.h]hAThe described resource region must match a currently busy region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMDhjubeh}(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 hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMLubjg)}(hdevm_request_resourceh]jm)}(hdevm_request_resourceh]hdevm_request_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMLubj)}(hA(struct device *dev, struct resource *root, struct resource *new)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.devm_request_resourceasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *rooth](j)}(hj6}h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNjI jL )}jO ]j(c.devm_request_resourceasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(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)}(hj6}h]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 ]j(c.devm_request_resourceasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(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&]jjuh1jhjhhhjhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMLhjhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMLhjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhjhNhNubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMPhjmubj)}(hhh](j)}(h@``struct device *dev`` device for which to request 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.chMMhjubj)}(hhh]h)}(h(device for which to request the resourceh]h(device for which to request the resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(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.chMNhjubj)}(hhh]h)}(h ubj)}(hstruct resource *baseh](j)}(hj6}h]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.devm_request_free_mem_regionasbuh1hhj 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)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hj& hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj" ubj)}(h h]h }(hj4 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj" ubj )}(hlongh]hlong}(hjB hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj" ubj)}(h h]h }(hjP 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&]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*find free region for device private memoryh]h*find free region for device private memory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj 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)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh](j)}(h=``struct device *dev`` device 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.chMhj 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 hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h3``struct resource *base`` resource tree to look in h](j)}(h``struct resource *base``h]j)}(hjh]hstruct resource *base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh]h)}(hresource tree to look inh]hresource tree to look in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj 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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj5ubj)}(hhh]h)}(h)size in bytes of the device memory to addh]h)size in bytes of the device memory to add}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(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.chMhj 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.}(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](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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE alloc_free_mem_regionsbc.alloc_free_mem_regionasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(halloc_free_mem_regionh]jm)}(hjh]halloc_free_mem_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hR(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j)}(hstruct resource *baseh](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hresourceh]hresource}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jc.alloc_free_mem_regionasbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long sizeh](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)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned long alignh](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)}(halignh]halign}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hconst char *nameh](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(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 free region relative to **base**h](hfind a free region relative to }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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 *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)}(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)}(hE``struct resource *base`` resource that will parent the new resource h](j)}(h``struct resource *base``h]j)}(hjh]hstruct resource *base}(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*resource that will parent the new resourceh]h*resource that will parent the new resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj7ubj)}(hhh]h)}(h1size in bytes of memory to allocate from **base**h](h)size in bytes of memory to allocate from }(hjVhhhNhNubj)}(h**base**h]hbase}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubj)}(hB``unsigned long align`` alignment requirements for the allocation h](j)}(h``unsigned long align``h]j)}(hjh]hunsigned long align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj~ubj)}(hhh]h)}(h)alignment requirements for the allocationh]h)alignment requirements for the allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``const char *name`` resource 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&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(h resource nameh]h resource name}(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)}(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 }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, range in the span of }(hjhhhNhNubj)}(h**base**h]hbase}(hj(hhhNhNubah}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]resources-managementah ]h"]resources managementah$]h&]uh1hhjhhhhhM ubh)}(hhh](h)}(h MTRR Handlingh]h MTRR Handling}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](harch_phys_wc_add (C function)c.arch_phys_wc_addhNtauh1hhjPhhhNhNubh)}(hhh](j)}(h=int arch_phys_wc_add (unsigned long base, unsigned long size)h]j)}(hhhhNhNubah}(h]h ]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*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjRhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_file_alloc (C function)c.lsm_file_allochNtauh1hhjyhhhNhNubh)}(hhh](j)}(h&int lsm_file_alloc (struct file *file)h]j)}(h%int lsm_file_alloc(struct file *file)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)}(hlsm_file_alloch]jm)}(hlsm_file_alloch]hlsm_file_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhjhMubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]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.lsm_file_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(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&]jjuh1jhj}hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjvhhubj)}(hhh]h)}(hallocate a composite file blobh]hallocate a composite file blob}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhjyhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubj)}(hhh]j)}(h1``struct file *file`` the file that needs a blob 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.chMhj|ubj)}(hhh]h)}(hthe file that needs a blobh]hthe file that needs a blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubah}(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*Allocate the file blob for all the modulesh]h*Allocate the file blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhjyhhhNhNubh)}(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.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(hlsm_inode_alloch]jm)}(hlsm_inode_alloch]hlsm_inode_alloc}(hj2 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj. ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hj6}h]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)}(hinodeh]hinode}(hjl hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjn modnameN classnameNjI jL )}jO ]jR )}jE j4 sbc.lsm_inode_allocasbuh1hhjJ 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)}(hinodeh]hinode}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF 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_inode_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&]noemphjjuh1jhjF ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj 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.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1!jj1!jjjuh1hhhhjyhNhNubj)}(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&]uh1jhj9!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5!ubj)}(hhh](j)}(h4``struct inode *inode`` the inode that needs a blob h](j)}(h``struct inode *inode``h]j)}(hjZ!h]hstruct inode *inode}(hj\!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjT!ubj)}(hhh]h)}(hthe inode that needs a blobh]hthe inode that needs a blob}(hjs!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo!hMhjp!ubah}(h]h ]h"]h$]h&]uh1jhjT!ubeh}(h]h ]h"]h$]h&]uh1jhjo!hMhjQ!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.chMhj!ubj)}(hhh]h)}(hallocation flagsh]hallocation flags}(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&]uh1jhj5!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.chMhj5!ubh)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode 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.chMhj5!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.chMhj5!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_task_alloc (C function)c.lsm_task_allochNtauh1hhjyhhhNhNubh)}(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.chMubj)}(h h]h }(hj1"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj0"hMubjg)}(hlsm_task_alloch]jm)}(hlsm_task_alloch]hlsm_task_alloc}(hjC"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhj0"hMubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj6}h]hstruct}(hj_"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj["ubj)}(h h]h }(hjl"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj["ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj}"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jE"sbc.lsm_task_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)}(htaskh]htask}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj["ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjW"ubah}(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)}(hallocate a composite task blobh]hallocate a composite task 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"hhhj0"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhjyhNhNubj)}(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)}(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)}(h8``struct task_struct *task`` the task that needs a blob 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.chMhj#ubj)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hj<#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8#hMhj9#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj8#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)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hjt#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj"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.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhjyhhhNhNubh)}(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#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)}(h lsm_ipc_alloch]jm)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj#hM ubj)}(h(struct kern_ipc_perm *kip)h]j)}(hstruct kern_ipc_perm *kiph](j)}(hj6}h]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 j#sbc.lsm_ipc_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)}(hkiph]hkip}(hjH$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)}(hallocate a composite ipc blobh]hallocate a composite ipc blob}(hjr$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjo$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhjyhNhNubj)}(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)}(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)}(h8``struct kern_ipc_perm *kip`` the ipc that needs a blob h](j)}(h``struct kern_ipc_perm *kip``h]j)}(hj$h]hstruct kern_ipc_perm *kip}(hj$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)}(hthe ipc that needs a blobh]hthe ipc that needs a blob}(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)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$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.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_key_alloc (C function)c.lsm_key_allochNtauh1hhjyhhhNhNubh)}(hhh](j)}(h#int lsm_key_alloc (struct key *key)h]j)}(h"int lsm_key_alloc(struct key *key)h](j )}(hinth]hint}(hjB%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 }(hjQ%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>%hhhjP%hMubjg)}(h lsm_key_alloch]jm)}(h lsm_key_alloch]h lsm_key_alloc}(hjc%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>%hhhjP%hMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hj6}h]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)}(hkeyh]hkey}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE je%sbc.lsm_key_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)}(hkeyh]hkey}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjw%ubah}(h]h ]h"]h$]h&]jjuh1jhj>%hhhjP%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:%hhhjP%hMubah}(h]j5%ah ](jjeh"]h$]h&]jj)jhuh1hhjP%hMhj7%hhubj)}(hhh]h)}(hallocate a composite key blobh]hallocate a composite key blob}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhj7%hhhjP%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct key *key`` the key that needs a blob **Description** Allocate the key blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj$&h]h Parameters}(hj&&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubj)}(hhh]j)}(h.``struct key *key`` the key that needs a blob h](j)}(h``struct key *key``h]j)}(hjC&h]hstruct key *key}(hjE&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=&ubj)}(hhh]h)}(hthe key that needs a blobh]hthe key that needs a blob}(hj\&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX&hMhjY&ubah}(h]h ]h"]h$]h&]uh1jhj=&ubeh}(h]h ]h"]h$]h&]uh1jhjX&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)}(h)Allocate the key blob for all the modulesh]h)Allocate the key 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.chMhj&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.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhjyhhhNhNubh)}(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}(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)}(hlsm_msg_msg_alloch]jm)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj&hM)ubj)}(h(struct msg_msg *mp)h]j)}(hstruct msg_msg *mph](j)}(hj6}h]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)}(hmsg_msgh]hmsg_msg}(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_msg_msg_allocasbuh1hhj 'ubj)}(h h]h }(hjM'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 'ubj)}(hjh]h*}(hj['hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 'ubjm)}(hmph]hmp}(hjh'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!allocate a composite msg_msg blobh]h!allocate a composite msg_msg 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'jjjuh1hhhhjyhNhNubj)}(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'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)}(h5``struct msg_msg *mp`` the msg_msg that needs a blob h](j)}(h``struct msg_msg *mp``h]j)}(hj'h]hstruct msg_msg *mp}(hj'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)}(hthe msg_msg that needs a blobh]hthe msg_msg that needs a blob}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM*hj'ubah}(h]h ]h"]h$]h&]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)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj$(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hj'ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj3(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhjyhhhNhNubh)}(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}(hjb(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^(hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7ubj)}(h h]h }(hjq(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^(hhhjp(hM7ubjg)}(hlsm_bdev_alloch]jm)}(hlsm_bdev_alloch]hlsm_bdev_alloc}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^(hhhjp(hM7ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj6}h]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 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 j(sbc.lsm_bdev_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)}(hbdevh]hbdev}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubah}(h]h ]h"]h$]h&]jjuh1jhj^(hhhjp(hM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZ(hhhjp(hM7ubah}(h]jU(ah ](jjeh"]h$]h&]jj)jhuh1hhjp(hM7hjW(hhubj)}(hhh]h)}(h&allocate a composite block_device blobh]h&allocate a composite block_device blob}(hj")hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hj)hhubah}(h]h ]h"]h$]h&]uh1jhjW(hhhjp(hM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:)jj:)jjjuh1hhhhjyhNhNubj)}(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)}(hjD)h]h Parameters}(hjF)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hj>)ubj)}(hhh]j)}(hA``struct block_device *bdev`` the block_device that needs a blob h](j)}(h``struct block_device *bdev``h]j)}(hjc)h]hstruct block_device *bdev}(hje)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hj])ubj)}(hhh]h)}(h"the block_device that needs a blobh]h"the block_device that needs a blob}(hj|)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx)hM8hjy)ubah}(h]h ]h"]h$]h&]uh1jhj])ubeh}(h]h ]h"]h$]h&]uh1jhjx)hM8hjZ)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)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device blob for all the modules}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hj>)ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hj>)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bpf_map_alloc (C function)c.lsm_bpf_map_allochNtauh1hhjyhhhNhNubh)}(hhh](j)}(h+int lsm_bpf_map_alloc (struct bpf_map *map)h]j)}(h*int lsm_bpf_map_alloc(struct bpf_map *map)h](j )}(hinth]hint}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj*hMFubjg)}(hlsm_bpf_map_alloch]jm)}(hlsm_bpf_map_alloch]hlsm_bpf_map_alloc}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj*hMFubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hj6}h]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}(hjM*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjO*modnameN classnameNjI jL )}jO ]jR )}jE j*sbc.lsm_bpf_map_allocasbuh1hhj+*ubj)}(h h]h }(hjm*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+*ubj)}(hjh]h*}(hj{*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+*ubjm)}(hmaph]hmap}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'*ubah}(h]h ]h"]h$]h&]jjuh1jhj)hhhj*hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj*hMFubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj*hMFhj)hhubj)}(hhh]h)}(h!allocate a composite bpf_map blobh]h!allocate a composite bpf_map blob}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj*hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct bpf_map *map`` the bpf_map that needs a blob **Description** Allocate the bpf_map blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhj*ubj)}(hhh]j)}(h6``struct bpf_map *map`` the bpf_map that needs a blob h](j)}(h``struct bpf_map *map``h]j)}(hj*h]hstruct bpf_map *map}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhj*ubj)}(hhh]h)}(hthe bpf_map that needs a blobh]hthe bpf_map that needs a blob}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMGhj +ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hMGhj*ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhj*ubh)}(h-Allocate the bpf_map blob for all the modulesh]h-Allocate the bpf_map blob for all the modules}(hjD+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhj*ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjS+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bpf_prog_alloc (C function)c.lsm_bpf_prog_allochNtauh1hhjyhhhNhNubh)}(hhh](j)}(h.int lsm_bpf_prog_alloc (struct bpf_prog *prog)h]j)}(h-int lsm_bpf_prog_alloc(struct bpf_prog *prog)h](j )}(hinth]hint}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~+hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMSubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~+hhhj+hMSubjg)}(hlsm_bpf_prog_alloch]jm)}(hlsm_bpf_prog_alloch]hlsm_bpf_prog_alloc}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~+hhhj+hMSubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj6}h]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_progh]hbpf_prog}(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_prog_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)}(hprogh]hprog}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubah}(h]h ]h"]h$]h&]jjuh1jhj~+hhhj+hMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjz+hhhj+hMSubah}(h]ju+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hMShjw+hhubj)}(hhh]h)}(h"allocate a composite bpf_prog blobh]h"allocate a composite bpf_prog blob}(hjB,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShj?,hhubah}(h]h ]h"]h$]h&]uh1jhjw+hhhj+hMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZ,jjZ,jjjuh1hhhhjyhNhNubj)}(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)}(hjd,h]h Parameters}(hjf,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhj^,ubj)}(hhh]j)}(h9``struct bpf_prog *prog`` the bpf_prog that needs a blob 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.chMThj},ubj)}(hhh]h)}(hthe bpf_prog that needs a blobh]hthe bpf_prog that needs a blob}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMThj,ubah}(h]h ]h"]h$]h&]uh1jhj},ubeh}(h]h ]h"]h$]h&]uh1jhj,hMThjz,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.chMVhj^,ubh)}(h.Allocate the bpf_prog blob for all the modulesh]h.Allocate the bpf_prog blob for all the modules}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhj^,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.chMWhj^,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h lsm_bpf_token_alloc (C function)c.lsm_bpf_token_allochNtauh1hhjyhhhNhNubh)}(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.chM`ubj)}(h h]h }(hj!-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj -hM`ubjg)}(hlsm_bpf_token_alloch]jm)}(hlsm_bpf_token_alloch]hlsm_bpf_token_alloc}(hj3-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj -hM`ubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hj6}h]hstruct}(hjO-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK-ubj)}(h h]h }(hj\-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK-ubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjm-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjo-modnameN classnameNjI jL )}jO ]jR )}jE j5-sbc.lsm_bpf_token_allocasbuh1hhjK-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK-ubjm)}(htokenh]htoken}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjG-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 composite bpf_token blobh]h#allocate a composite bpf_token blob}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hj-hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj -hM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct bpf_token *token`` the bpf_token that needs a blob **Description** Allocate the bpf_token blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhj-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.chMahj .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(.hMahj).ubah}(h]h ]h"]h$]h&]uh1jhj .ubeh}(h]h ]h"]h$]h&]uh1jhj(.hMahj .ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchj-ubh)}(h/Allocate the bpf_token blob for all the modulesh]h/Allocate the bpf_token blob for all the modules}(hjd.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhj-ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjs.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_early_task (C function)c.lsm_early_taskhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h.void lsm_early_task (struct task_struct *task)h]j)}(h-void lsm_early_task(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.chMnubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj.hMnubjg)}(hlsm_early_taskh]jm)}(hlsm_early_taskh]hlsm_early_task}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hMnubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj6}h]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_early_taskasbuh1hhj.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)}(htaskh]htask}(hj8/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hMnubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj.hMnubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj.hMnhj.hhubj)}(hhh]h)}(h4during initialization allocate a composite task blobh]h4during initialization allocate a composite task blob}(hjb/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj_/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjz/jjz/jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct task_struct *task`` the task that needs a blob **Description** Allocate the task blob for all the modulesh](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhj~/ubj)}(hhh]j)}(h8``struct task_struct *task`` the task that needs a blob 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.chMohj/ubj)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMohj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMohj/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.chMqhj~/ubh)}(h*Allocate the task blob for all the modulesh]h*Allocate the task 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.chMphj~/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhjyhhhNhNubh)}(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#0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|ubj)}(h h]h }(hj20hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhj10hM|ubjg)}(hlsm_superblock_alloch]jm)}(hlsm_superblock_alloch]hlsm_superblock_alloc}(hjD0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhj10hM|ubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hj`0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\0ubj)}(h h]h }(hjm0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\0ubh)}(hhh]jm)}(h super_blockh]h super_block}(hj~0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jR )}jE jF0sbc.lsm_superblock_allocasbuh1hhj\0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\0ubjm)}(hsbh]hsb}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX0ubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhj10hM|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj10hM|ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj10hM|hj0hhubj)}(hhh]h)}(h$allocate a composite superblock blobh]h$allocate a composite superblock blob}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hj0hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj10hM|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhjyhNhNubj)}(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)}(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.chMhj0ubj)}(hhh]j)}(h<``struct super_block *sb`` the superblock that needs a blob h](j)}(h``struct super_block *sb``h]j)}(hj$1h]hstruct super_block *sb}(hj&1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hj1ubj)}(hhh]h)}(h the superblock that needs a blobh]h the superblock that needs a blob}(hj=1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj91hM}hj:1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj91hM}hj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj_1h]h Description}(hja1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubh)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock blob for all the modules}(hju1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hj0ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhjyhhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj1hMubjg)}(hlsm_fill_user_ctxh]jm)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj1hMubj)}(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)}(hj6}h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hlsm_ctxh]hlsm_ctx}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.lsm_fill_user_ctxasbuh1hhj1ubj)}(h h]h }(hj.2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh__user}(hj1hhhNhNubj)}(h h]h }(hj@2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjN2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(huctxh]huctx}(hj[2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h u32 *uctx_lenh](h)}(hhh]jm)}(hu32h]hu32}(hjw2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjt2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjy2modnameN classnameNjI jL )}jO ]j*2c.lsm_fill_user_ctxasbuh1hhjp2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjp2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp2ubjm)}(huctx_lenh]huctx_len}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h void *valh](j )}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hvalh]hval}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hsize_t val_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]j*2c.lsm_fill_user_ctxasbuh1hhj3ubj)}(h h]h }(hj,3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hval_lenh]hval_len}(hj:3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hu64 idh](h)}(hhh]jm)}(hu64h]hu64}(hjV3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjX3modnameN classnameNjI jL )}jO ]j*2c.lsm_fill_user_ctxasbuh1hhjO3ubj)}(h h]h }(hjt3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO3ubjm)}(hidh]hid}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h u64 flagsh](h)}(hhh]jm)}(hu64h]hu64}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]j*2c.lsm_fill_user_ctxasbuh1hhj3ubj)}(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&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhj1hhubj)}(hhh]h)}(h#Fill a user space lsm_ctx structureh]h#Fill a user space lsm_ctx structure}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 4jj 4jjjuh1hhhhjyhNhNubj)}(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)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubj)}(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)}(hj54h]hstruct lsm_ctx __user *uctx}(hj74hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj34ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj/4ubj)}(hhh]h)}(h$a userspace LSM context to be filledh]h$a userspace LSM context to be filled}(hjN4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJ4hMhjK4ubah}(h]h ]h"]h$]h&]uh1jhj/4ubeh}(h]h ]h"]h$]h&]uh1jhjJ4hMhj,4ubj)}(hG``u32 *uctx_len`` available uctx size (input), used uctx size (output) h](j)}(h``u32 *uctx_len``h]j)}(hjn4h]h u32 *uctx_len}(hjp4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjh4ubj)}(hhh]h)}(h4available uctx size (input), used uctx size (output)h]h4available uctx size (input), used uctx size (output)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjh4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj,4ubj)}(h(``void *val`` the new LSM context value h](j)}(h ``void *val``h]j)}(hj4h]h void *val}(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.chMhj4ubj)}(hhh]h)}(hthe new LSM context valueh]hthe new LSM context value}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj,4ubj)}(h9``size_t val_len`` the size of the new LSM context value h](j)}(h``size_t val_len``h]j)}(hj4h]hsize_t val_len}(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.chMhj4ubj)}(hhh]h)}(h%the size of the new LSM context valueh]h%the size of the new LSM context value}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj,4ubj)}(h``u64 id`` LSM id h](j)}(h ``u64 id``h]j)}(hj5h]hu64 id}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5ubj)}(hhh]h)}(hLSM idh]hLSM id}(hj25hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.5hMhj/5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj.5hMhj,4ubj)}(h ``u64 flags`` LSM defined flags h](j)}(h ``u64 flags``h]j)}(hjR5h]h u64 flags}(hjT5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjL5ubj)}(hhh]h)}(hLSM defined flagsh]hLSM defined flags}(hjk5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg5hMhjh5ubah}(h]h ]h"]h$]h&]uh1jhjL5ubeh}(h]h ]h"]h$]h&]uh1jhjg5hMhj,4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(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.chMhj4ubh)}(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 }(hj5hhhNhNubj)}(h**uctx**h]huctx}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh: is NULL simply calculate the required size to output via }(hj5hhhNhNubj)}(h **utc_len**h]hutc_len}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh and return success.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_binder_set_context_mgr (C function)!c.security_binder_set_context_mgrhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h6ubj)}(h h]h }(hjO6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>6ubj)}(hj6}h]hstruct}(hj]6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>6ubj)}(h h]h }(hjj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>6ubh)}(hhh]jm)}(hcredh]hcred}(hj{6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjx6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}6modnameN classnameNjI jL )}jO ]jR )}jE j(6sb!c.security_binder_set_context_mgrasbuh1hhj>6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>6ubjm)}(hmgrh]hmgr}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:6ubah}(h]h ]h"]h$]h&]jjuh1jhj6hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj6hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhj5hhubj)}(hhh]h)}(h&Check if becoming binder ctx mgr is okh]h&Check if becoming binder ctx mgr is ok}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``const struct cred *mgr`` task credentials of current binder process **Description** Check whether **mgr** is allowed to be the binder context manager. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubj)}(hhh]j)}(hF``const struct cred *mgr`` task credentials of current binder process h](j)}(h``const struct cred *mgr``h]j)}(hj!7h]hconst struct cred *mgr}(hj#7hhhNhNubah}(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.chMhj7ubj)}(hhh]h)}(h*task credentials of current binder processh]h*task credentials of current binder process}(hj:7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj67hMhj77ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj67hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj\7h]h Description}(hj^7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubh)}(hBCheck whether **mgr** is allowed to be the binder context manager.h](hCheck whether }(hjr7hhhNhNubj)}(h**mgr**h]hmgr}(hjz7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr7ubh- is allowed to be the binder context manager.}(hjr7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubh)}(h **Return**h]j)}(hj7h]hReturn}(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.chMhj6ubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_binder_transaction (C function)c.security_binder_transactionhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hPint security_binder_transaction (const struct cred *from, const struct cred *to)h]j)}(hOint security_binder_transaction(const struct cred *from, const struct cred *to)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhj7hMubjg)}(hsecurity_binder_transactionh]jm)}(hsecurity_binder_transactionh]hsecurity_binder_transaction}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj7hMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj$8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hj6}h]hstruct}(hj28hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj?8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hcredh]hcred}(hjP8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjR8modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.security_binder_transactionasbuh1hhj8ubj)}(h h]h }(hjp8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj~8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hfromh]hfrom}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hj6}h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hcredh]hcred}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jl8c.security_binder_transactionasbuh1hhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(htoh]hto}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhj7hhubj)}(hhh]h)}(h(Check if a binder transaction is allowedh]h(Check if a binder transaction is allowed}(hj@9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=9hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjX9jjX9jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process **Description** Check whether **from** is allowed to invoke a binder transaction call to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjb9h]h Parameters}(hjd9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\9ubj)}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hj9h]hconst struct cred *from}(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.chMhj{9ubj)}(hhh]h)}(hsending processh]hsending process}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj{9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjx9ubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hj9h]hconst struct cred *to}(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.chMhj9ubj)}(hhh]h)}(hreceiving processh]hreceiving process}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjx9ubeh}(h]h ]h"]h$]h&]uh1jhj\9ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\9ubh)}(hPCheck whether **from** is allowed to invoke a binder transaction call to **to**.h](hCheck whether }(hj :hhhNhNubj)}(h**from**h]hfrom}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj :ubh3 is allowed to invoke a binder transaction call to }(hj :hhhNhNubj)}(h**to**h]hto}(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.chMhj\9ubh)}(h **Return**h]j)}(hj@:h]hReturn}(hjB:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\9ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjV:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_binder_transfer_binder (C function)!c.security_binder_transfer_binderhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hTint security_binder_transfer_binder (const struct cred *from, const struct cred *to)h]j)}(hSint security_binder_transfer_binder(const struct cred *from, const struct cred *to)h](j )}(hinth]hint}(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_binder_transfer_binderh]jm)}(hsecurity_binder_transfer_binderh]hsecurity_binder_transfer_binder}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *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)}(hj6}h]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_binder_transfer_binderasbuh1hhj: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)}(hfromh]hfrom}(hj6;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjO;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubj)}(h h]h }(hj\;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK;ubj)}(hj6}h]hstruct}(hjj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubj)}(h h]h }(hjw;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK;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_binder_transfer_binderasbuh1hhjK;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubjm)}(htoh]hto}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK;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]jx:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hMhjz:hhubj)}(hhh]h)}(h%Check if a binder transfer is allowedh]h%Check if a binder transfer 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&]uh1jhjz:hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process **Description** Check whether **from** is allowed to transfer a binder reference to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj <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 cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hj,<h]hconst struct cred *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:283: ./security/security.chM hj&<ubj)}(hhh]h)}(hsending processh]hsending process}(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,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hje<h]hconst struct cred *to}(hjg<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hj_<ubj)}(hhh]h)}(hreceiving processh]hreceiving process}(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#<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)}(hKCheck whether **from** is allowed to transfer a binder reference to **to**.h](hCheck whether }(hj<hhhNhNubj)}(h**from**h]hfrom}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh. is allowed to transfer a binder reference to }(hj<hhhNhNubj)}(h**to**h]hto}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_binder_transfer_file (C function)c.security_binder_transfer_filehNtauh1hhjyhhhNhNubh)}(hhh](j)}(hkint security_binder_transfer_file (const struct cred *from, const struct cred *to, const struct file *file)h]j)}(hjint security_binder_transfer_file(const struct cred *from, const struct cred *to, const struct file *file)h](j )}(hinth]hint}(hj0=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_binder_transfer_fileh]jm)}(hsecurity_binder_transfer_fileh]hsecurity_binder_transfer_file}(hjQ=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,=hhhj>=hM.ubj)}(hI(const struct cred *from, const struct cred *to, const struct file *file)h](j)}(hconst struct cred *fromh](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)}(hj6}h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji=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_binder_transfer_fileasbuh1hhji=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)}(hfromh]hfrom}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhje=ubj)}(hconst struct cred *toh](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)}(hj6}h]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}(hj3>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5>modnameN classnameNjI jL )}jO ]j=c.security_binder_transfer_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)}(htoh]hto}(hjl>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhje=ubj)}(hconst struct file *fileh](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)}(hj6}h]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 ]j=c.security_binder_transfer_fileasbuh1hhj>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&]noemphjjuh1jhje=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 a binder file xfer is allowedh]h&Check if a binder file xfer is allowed}(hj!?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hj?hhubah}(h]h ]h"]h$]h&]uh1jhj%=hhhj>=hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9?jj9?jjjuh1hhhhjyhNhNubj)}(hX'**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process ``const struct file *file`` file being transferred **Description** Check whether **from** is allowed to transfer **file** to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjC?h]h Parameters}(hjE?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hj=?ubj)}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjb?h]hconst struct cred *from}(hjd?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hj\?ubj)}(hhh]h)}(hsending processh]hsending process}(hj{?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw?hM/hjx?ubah}(h]h ]h"]h$]h&]uh1jhj\?ubeh}(h]h ]h"]h$]h&]uh1jhjw?hM/hjY?ubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hj?h]hconst struct cred *to}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hj?ubj)}(hhh]h)}(hreceiving processh]hreceiving process}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM0hj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM0hjY?ubj)}(h3``const struct file *file`` file being transferred h](j)}(h``const struct file *file``h]j)}(hj?h]hconst struct 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.chM1hj?ubj)}(hhh]h)}(hfile being transferredh]hfile being transferred}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM1hj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM1hjY?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.chM3hj=?ubh)}(hACheck whether **from** is allowed to transfer **file** to **to**.h](hCheck whether }(hj%@hhhNhNubj)}(h**from**h]hfrom}(hj-@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%@ubh is allowed to transfer }(hj%@hhhNhNubj)}(h**file**h]hfile}(hj?@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%@ubh to }(hj%@hhhNhNubj)}(h**to**h]hto}(hjQ@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.chM2hj=?ubh)}(h **Return**h]j)}(hjl@h]hReturn}(hjn@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hj=?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.chM5hj=?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_ptrace_access_check (C function)c.security_ptrace_access_checkhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hOint security_ptrace_access_check (struct task_struct *child, unsigned int mode)h]j)}(hNint security_ptrace_access_check(struct task_struct *child, unsigned int mode)h](j )}(hinth]hint}(hj@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_ptrace_access_checkh]jm)}(hsecurity_ptrace_access_checkh]hsecurity_ptrace_access_check}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhj@hM>ubj)}(h.(struct task_struct *child, unsigned int mode)h](j)}(hstruct task_struct *childh](j)}(hj6}h]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 AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE j@sbc.security_ptrace_access_checkasbuh1hhj@ubj)}(h h]h }(hj,AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj:AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hchildh]hchild}(hjGAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hunsigned int modeh](j )}(hunsignedh]hunsigned}(hj`AhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\Aubj)}(h h]h }(hjnAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\Aubj )}(hinth]hint}(hj|AhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\Aubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\Aubjm)}(hmodeh]hmode}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\Aubeh}(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)}(hCheck if tracing is allowedh]hCheck if tracing 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@hhhj@hM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhjyhNhNubj)}(hX-**Parameters** ``struct task_struct *child`` target process ``unsigned int mode`` PTRACE_MODE flags **Description** Check permission before allowing the current process to trace the **child** process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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:283: ./security/security.chMBhjAubj)}(hhh](j)}(h-``struct task_struct *child`` target process h](j)}(h``struct task_struct *child``h]j)}(hjBh]hstruct task_struct *child}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjAubj)}(hhh]h)}(htarget processh]htarget process}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM?hjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhM?hjAubj)}(h(``unsigned int mode`` PTRACE_MODE flags h](j)}(h``unsigned int mode``h]j)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj6Bubj)}(hhh]h)}(hPTRACE_MODE flagsh]hPTRACE_MODE flags}(hjUBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQBhM@hjRBubah}(h]h ]h"]h$]h&]uh1jhj6Bubeh}(h]h ]h"]h$]h&]uh1jhjQBhM@hjAubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjwBh]h Description}(hjyBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjAubh)}(hXCheck permission before allowing the current process to trace the **child** process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve.h](hBCheck permission before allowing the current process to trace the }(hjBhhhNhNubj)}(h **child**h]hchild}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubhX5 process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjAubh)}(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.chMHhjAubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_ptrace_traceme (C function)c.security_ptrace_tracemehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h8int security_ptrace_traceme (struct task_struct *parent)h]j)}(h7int security_ptrace_traceme(struct task_struct *parent)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.chMQubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjChMQubjg)}(hsecurity_ptrace_tracemeh]jm)}(hsecurity_ptrace_tracemeh]hsecurity_ptrace_traceme}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjChMQubj)}(h(struct task_struct *parent)h]j)}(hstruct task_struct *parenth](j)}(hj6}h]hstruct}(hj2ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Cubj)}(h h]h }(hj?ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.Cubh)}(hhh]jm)}(h task_structh]h task_struct}(hjPChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRCmodnameN classnameNjI jL )}jO ]jR )}jE jCsbc.security_ptrace_tracemeasbuh1hhj.Cubj)}(h h]h }(hjpChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.Cubj)}(hjh]h*}(hj~ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Cubjm)}(hparenth]hparent}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*Cubah}(h]h ]h"]h$]h&]jjuh1jhjBhhhjChMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjChMQubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjChMQhjBhhubj)}(hhh]h)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjChMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhjyhNhNubj)}(hX9**Parameters** ``struct task_struct *parent`` tracing process **Description** Check that the **parent** process has sufficient permission to trace the current process before allowing the current process to present itself to the **parent** process for tracing. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjCubj)}(hhh]j)}(h/``struct task_struct *parent`` tracing process h](j)}(h``struct task_struct *parent``h]j)}(hjCh]hstruct task_struct *parent}(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.chMRhjCubj)}(hhh]h)}(htracing processh]htracing process}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj DhMRhj Dubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj DhMRhjCubah}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hj1Dh]h Description}(hj3DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Dubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjCubh)}(hCheck that the **parent** process has sufficient permission to trace the current process before allowing the current process to present itself to the **parent** process for tracing.h](hCheck that the }(hjGDhhhNhNubj)}(h **parent**h]hparent}(hjODhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGDubh} process has sufficient permission to trace the current process before allowing the current process to present itself to the }(hjGDhhhNhNubj)}(h **parent**h]hparent}(hjaDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGDubh process for tracing.}(hjGDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjCubh)}(h **Return**h]j)}(hj|Dh]hReturn}(hj~DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjCubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_capget (C function)c.security_capgethNtauh1hhjyhhhNhNubh)}(hhh](j)}(hint security_capget (const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h]j)}(hint security_capget(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](j )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjDhM`ubjg)}(hsecurity_capgeth]jm)}(hsecurity_capgeth]hsecurity_capget}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjDhM`ubj)}(ho(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](j)}(h const struct task_struct *targeth](j)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hj EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hj6}h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hj&EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(h task_structh]h task_struct}(hj7EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4Eubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9EmodnameN classnameNjI jL )}jO ]jR )}jE jDsbc.security_capgetasbuh1hhjDubj)}(h h]h }(hjWEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjeEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(htargeth]htarget}(hjrEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hkernel_cap_t *effectiveh](h)}(hhh]jm)}(h kernel_cap_th]h kernel_cap_t}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jSEc.security_capgetasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(h effectiveh]h effective}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hkernel_cap_t *inheritableh](h)}(hhh]jm)}(h kernel_cap_th]h kernel_cap_t}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jSEc.security_capgetasbuh1hhjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(h inheritableh]h inheritable}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hkernel_cap_t *permittedh](h)}(hhh]jm)}(h kernel_cap_th]h kernel_cap_t}(hj8FhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5Fubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:FmodnameN classnameNjI jL )}jO ]jSEc.security_capgetasbuh1hhj1Fubj)}(h h]h }(hjVFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Fubj)}(hjh]h*}(hjdFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Fubjm)}(h permittedh]h permitted}(hjqFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1Fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhM`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjDhM`ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhM`hjDhhubj)}(hhh]h)}(h%Get the capability sets for a processh]h%Get the capability sets for a process}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjFhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1hhhhjyhNhNubj)}(hXG**Parameters** ``const struct task_struct *target`` target process ``kernel_cap_t *effective`` effective capability set ``kernel_cap_t *inheritable`` inheritable capability set ``kernel_cap_t *permitted`` permitted capability set **Description** Get the **effective**, **inheritable**, and **permitted** capability sets for the **target** process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the **target** process. **Return** Returns 0 if the capability sets were successfully obtained.h](h)}(h**Parameters**h]j)}(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.chMdhjFubj)}(hhh](j)}(h4``const struct task_struct *target`` target process h](j)}(h$``const struct task_struct *target``h]j)}(hjFh]h const struct task_struct *target}(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.chMahjFubj)}(hhh]h)}(htarget processh]htarget process}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMahjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMahjFubj)}(h5``kernel_cap_t *effective`` effective capability set h](j)}(h``kernel_cap_t *effective``h]j)}(hjGh]hkernel_cap_t *effective}(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.chMbhjGubj)}(hhh]h)}(heffective capability seth]heffective capability set}(hj.GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*GhMbhj+Gubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhj*GhMbhjFubj)}(h9``kernel_cap_t *inheritable`` inheritable capability set h](j)}(h``kernel_cap_t *inheritable``h]j)}(hjNGh]hkernel_cap_t *inheritable}(hjPGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjHGubj)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(hjgGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcGhMchjdGubah}(h]h ]h"]h$]h&]uh1jhjHGubeh}(h]h ]h"]h$]h&]uh1jhjcGhMchjFubj)}(h5``kernel_cap_t *permitted`` permitted capability set h](j)}(h``kernel_cap_t *permitted``h]j)}(hjGh]hkernel_cap_t *permitted}(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.chMdhjGubj)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMdhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMdhjFubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjFubh)}(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 }(hjGhhhNhNubj)}(h **effective**h]h effective}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh, }(hjGhhhNhNubj)}(h**inheritable**h]h inheritable}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh, and }(hjGhhhNhNubj)}(h **permitted**h]h permitted}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh capability sets for the }(hjGhhhNhNubj)}(h **target**h]htarget}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hjGhhhNhNubj)}(h **target**h]htarget}(hj(HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh process.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjFubh)}(h **Return**h]j)}(hjCHh]hReturn}(hjEHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhjFubh)}(h. **opts** contains options for the capable check . **Return** Returns 0 if the capability is granted.h](h)}(h**Parameters**h]j)}(hj*Oh]h Parameters}(hj,OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Oubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$Oubj)}(hhh](j)}(h3``const struct cred *cred`` credentials to examine h](j)}(h``const struct cred *cred``h]j)}(hjIOh]hconst struct cred *cred}(hjKOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCOubj)}(hhh]h)}(hcredentials to examineh]hcredentials to examine}(hjbOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^OhMhj_Oubah}(h]h ]h"]h$]h&]uh1jhjCOubeh}(h]h ]h"]h$]h&]uh1jhj^OhMhj@Oubj)}(h-``struct user_namespace *ns`` user namespace h](j)}(h``struct user_namespace *ns``h]j)}(hjOh]hstruct user_namespace *ns}(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.chMhj|Oubj)}(hhh]h)}(huser namespaceh]huser namespace}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhj|Oubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj@Oubj)}(h!``int cap`` capability requested h](j)}(h ``int cap``h]j)}(hjOh]hint cap}(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)}(hcapability requestedh]hcapability requested}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj@Oubj)}(h/``unsigned int opts`` capability check options h](j)}(h``unsigned int opts``h]j)}(hjOh]hunsigned int opts}(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)}(hcapability check optionsh]hcapability check options}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj PhMhj Pubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj PhMhj@Oubeh}(h]h ]h"]h$]h&]uh1jhj$Oubh)}(h**Description**h]j)}(hj/Ph]h Description}(hj1PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Pubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$Oubh)}(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 }(hjEPhhhNhNubj)}(h**tsk**h]htsk}(hjMPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEPubh process has the }(hjEPhhhNhNubj)}(h**cap**h]hcap}(hj_PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEPubh+ capability in the indicated credentials. }(hjEPhhhNhNubj)}(h**cap**h]hcap}(hjqPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEPubh7 contains the capability . }(hjEPhhhNhNubj)}(h**opts**h]hopts}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEPubhC contains options for the capable check .}(hjEPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$Oubh)}(h **Return**h]j)}(hjPh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$Oubh)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$Oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quotactl (C function)c.security_quotactlhNtauh1hhjyhhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjPhMubjg)}(hsecurity_quotactlh]jm)}(hsecurity_quotactlh]hsecurity_quotactl}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhMubj)}(h:(int cmds, int type, int id, const struct super_block *sb)h](j)}(hint cmdsh](j )}(hinth]hint}(hj QhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hj.QhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(hcmdsh]hcmds}(hjCheck whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hjShhhNhNubj)}(h**sb**h]hsb}(hjShhhNhNubah}(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.chMhjyRubh)}(h **Return**h]j)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyRubh)}(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.chMhjyRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quota_on (C function)c.security_quota_onhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h-int security_quota_on (struct dentry *dentry)h]j)}(h,int security_quota_on(struct dentry *dentry)h](j )}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjShhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjShhhjThMubjg)}(hsecurity_quota_onh]jm)}(hsecurity_quota_onh]hsecurity_quota_on}(hj#ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhjThMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj?ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Tubj)}(h h]h }(hjLThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Tubh)}(hhh]jm)}(hdentryh]hdentry}(hj]ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_TmodnameN classnameNjI jL )}jO ]jR )}jE j%Tsbc.security_quota_onasbuh1hhj;Tubj)}(h h]h }(hj}ThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Tubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Tubjm)}(hdentryh]hdentry}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Tubah}(h]h ]h"]h$]h&]jjuh1jhjShhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjThMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjThMhjShhubj)}(hhh]h)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(hjThhhNhNubah}(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&]uh1jhjShhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhjyhNhNubj)}(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)}(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.chMhjTubj)}(hhh]j)}(h!``struct dentry *dentry`` dentry h](j)}(h``struct dentry *dentry``h]j)}(hjUh]hstruct dentry *dentry}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTubj)}(hhh]h)}(hdentryh]hdentry}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]j)}(hj>Uh]h Description}(hj@UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXmodnameN classnameNjI jL )}jO ]jWc.security_settime64asbuh1hhjWubj)}(h h]h }(hjZXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(htzh]htz}(hjuXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnWubeh}(h]h ]h"]h$]h&]jjuh1jhj5WhhhjGWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1WhhhjGWhMubah}(h]j,Wah ](jjeh"]h$]h&]jj)jhuh1hhjGWhMhj.Whhubj)}(hhh]h)}(h,Check if changing the system time is allowedh]h,Check if changing the system time is allowed}(hjXhhhNhNubah}(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.WhhhjGWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1hhhhjyhNhNubj)}(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)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubj)}(hhh](j)}(h)``const struct timespec64 *ts`` new time h](j)}(h``const struct timespec64 *ts``h]j)}(hjXh]hconst struct timespec64 *ts}(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.chMhjXubj)}(hhh]h)}(hnew timeh]hnew time}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubj)}(h'``const struct timezone *tz`` timezone h](j)}(h``const struct timezone *tz``h]j)}(hjYh]hconst struct timezone *tz}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubj)}(hhh]h)}(htimezoneh]htimezone}(hj2YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.YhMhj/Yubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhj.YhMhjXubeh}(h]h ]h"]h$]h&]uh1jhjXubh)}(h**Description**h]j)}(hjTYh]h Description}(hjVYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubh)}(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 .}(hjjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubh)}(h **Return**h]j)}(hj{Yh]hReturn}(hj}YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyYubah}(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.}(hjYhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhjyhhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjYhMubjg)}(hsecurity_vm_enough_memory_mmh]jm)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjYhMubj)}(h"(struct mm_struct *mm, long pages)h](j)}(hstruct mm_struct *mmh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hj ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(h mm_structh]h mm_struct}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.security_vm_enough_memory_mmasbuh1hhjYubj)}(h h]h }(hj;ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjIZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hmmh]hmm}(hjVZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(h long pagesh](j )}(hlongh]hlong}(hjoZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkZubj)}(h h]h }(hj}ZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkZubjm)}(hpagesh]hpages}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhjYhhubj)}(hhh]h)}(h,Check if allocating a new mem map is allowedh]h,Check if allocating a new mem map is allowed}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjyhNhNubj)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZubj)}(hhh](j)}(h#``struct mm_struct *mm`` mm struct h](j)}(h``struct mm_struct *mm``h]j)}(hjZh]hstruct mm_struct *mm}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZubj)}(hhh]h)}(h mm structh]h mm struct}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj [hMhj [ubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj [hMhjZubj)}(h``long pages`` number of pages h](j)}(h``long pages``h]j)}(hj/[h]h long pages}(hj1[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)}(hnumber of pagesh]hnumber of pages}(hjH[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD[hMhjE[ubah}(h]h ]h"]h$]h&]uh1jhj)[ubeh}(h]h ]h"]h$]h&]uh1jhjD[hMhjZubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjj[h]h Description}(hjl[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZubh)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZubh)}(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.chMhjZubh)}(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.}(hj[hhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhjyhhhNhNubh)}(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)}(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)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hj\h]hstruct linux_binprm *bprm}(hj\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)}(hbinary program informationh]hbinary program information}(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)}(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 }(hj(]hhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hj0]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(]ubh properly for executing }(hj(]hhhNhNubj)}(h**bprm->file**h]h bprm->file}(hjB]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(]ubh , update the LSM’s portion of }(hj(]hhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjT]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(]ubh 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 }(hj(]hhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjf]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(]ubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hj(]hhhNhNubj)}(h**bprm**h]hbprm}(hjx]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(]ubh% contains the linux_binprm structure.}(hj(]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubh)}(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 }(hj]hhhNhNubj)}(h**bprm**h]hbprm}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh will always be dropped.}(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=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hj]hhhNhNubj)}(h**bprm->cred**h]h bprm->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.chMhj\ubh)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhjyhhhNhNubh)}(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^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_bprm_creds_from_fileh]jm)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hj;^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj(^hMubj)}(h4(struct linux_binprm *bprm, const struct file *file)h](j)}(hstruct linux_binprm *bprmh](j)}(hj6}h]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 linux_binprmh]h linux_binprm}(hju^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjw^modnameN classnameNjI jL )}jO ]jR )}jE j=^sbc.security_bprm_creds_from_fileasbuh1hhjS^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)}(hbprmh]hbprm}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjO^ubj)}(hconst struct file *fileh](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)}(hj6}h]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 ]j^c.security_bprm_creds_from_fileasbuh1hhj^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&]noemphjjuh1jhjO^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'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hje_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjb_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj(^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}_jj}_jjjuh1hhhhjyhNhNubj)}(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)}(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)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hj_h]hstruct linux_binprm *bprm}(hj_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)}(hbinary program informationh]hbinary program information}(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 file *file`` associated file h](j)}(h``const struct file *file``h]j)}(hj_h]hconst struct 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.chMhj_ubj)}(hhh]h)}(hassociated fileh]hassociated file}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubh)}(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 }(hj0`hhhNhNubj)}(h**file**h]hfile}(hj8`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0`ubhR is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update }(hj0`hhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjJ`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0`ubhX 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 }(hj0`hhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hj\`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0`ubh[ to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to }(hj0`hhhNhNubj)}(h**bprm->per_clear**h]hbprm->per_clear}(hjn`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0`ubhJ any personality flags that should be cleared from current->personality. }(hj0`hhhNhNubj)}(h**bprm**h]hbprm}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0`ubh% contains the linux_binprm structure.}(hj0`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&]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 the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_bprm_check (C function)c.security_bprm_checkhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h3int security_bprm_check (struct linux_binprm *bprm)h]j)}(h2int security_bprm_check(struct linux_binprm *bprm)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.chM0ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`hhhj`hM0ubjg)}(hsecurity_bprm_checkh]jm)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhj`hM0ubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hj*ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hj;ahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=amodnameN classnameNjI jL )}jO ]jR )}jE jasbc.security_bprm_checkasbuh1hhjaubj)}(h h]h }(hj[ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjiahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hbprmh]hbprm}(hjvahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhj`hhhj`hM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhj`hM0ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM0hj`hhubj)}(hhh]h)}(hMediate binary handler searchh]hMediate binary handler search}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjyhNhNubj)}(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)}(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:283: ./security/security.chM4hjaubj)}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjah]hstruct linux_binprm *bprm}(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.chM1hjaubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM1hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahM1hjaubah}(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:283: ./security/security.chM3hjaubh)}(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 }(hj2bhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hj:bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2bubhr value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in }(hj2bhhhNhNubj)}(h**bprm**h]hbprm}(hjLbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2bubhC. This hook may be called multiple times during a single execve. }(hj2bhhhNhNubj)}(h**bprm**h]hbprm}(hj^bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2bubh% contains the linux_binprm structure.}(hj2bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjaubh)}(h **Return**h]j)}(hjybh]hReturn}(hj{bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjaubh)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhjyhhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjbhMAubjg)}(hsecurity_bprm_committing_credsh]jm)}(hsecurity_bprm_committing_credsh]hsecurity_bprm_committing_creds}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjbhMAubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hj6}h]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hj#chhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hj4chhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1cubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6cmodnameN classnameNjI jL )}jO ]jR )}jE jbsb c.security_bprm_committing_credsasbuh1hhjbubj)}(h h]h }(hjTchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjbchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hbprmh]hbprm}(hjochhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhMAubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhMAhjbhhubj)}(hhh]h)}(h)Install creds for a process during exec()h]h)Install creds for a process during exec()}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhjyhNhNubj)}(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)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhjcubj)}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjch]hconst struct linux_binprm *bprm}(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.chMBhjcubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMBhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMBhjcubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjcubh)}(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 }(hj+dhhhNhNubj)}(h**current->cred**h]h current->cred}(hj3dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+dubh and the information set in }(hj+dhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjEdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+dubh# by the bprm_creds_for_exec hook. }(hj+dhhhNhNubj)}(h**bprm**h]hbprm}(hjWdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+dubhX  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().}(hj+dhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhjyhhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjdhMRubjg)}(hsecurity_bprm_committed_credsh]jm)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjdhMRubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE jdsbc.security_bprm_committed_credsasbuh1hhjdubj)}(h h]h }(hj&ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hj4ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hbprmh]hbprm}(hjAehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubah}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhMRubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhMRhjdhhubj)}(hhh]h)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hjkehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjhehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhjyhNhNubj)}(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)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjeubj)}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjeh]hconst struct linux_binprm *bprm}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjeubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMShjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMShjeubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjeubh)}(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 }(hjehhhNhNubj)}(h**current->cred**h]h current->cred}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh. }(hjehhhNhNubj)}(h**bprm**h]hbprm}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh 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().}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhjyhhhNhNubh)}(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}(hjPfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbubj)}(h h]h }(hj_fhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLfhhhj^fhMbubjg)}(hsecurity_fs_context_submounth]jm)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hjqfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLfhhhj^fhMbubj)}(h6(struct fs_context *fc, struct super_block *reference)h](j)}(hstruct fs_context *fch](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jR )}jE jsfsbc.security_fs_context_submountasbuh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hfch]hfc}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct super_block *referenceh](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hj ghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(hhh]jm)}(h super_blockh]h super_block}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jfc.security_fs_context_submountasbuh1hhjfubj)}(h h]h }(hj;ghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjIghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(h referenceh]h reference}(hjVghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhjLfhhhj^fhMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHfhhhj^fhMbubah}(h]jCfah ](jjeh"]h$]h&]jj)jhuh1hhj^fhMbhjEfhhubj)}(hhh]h)}(hInitialise fc->securityh]hInitialise fc->security}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhj}ghhubah}(h]h ]h"]h$]h&]uh1jhjEfhhhj^fhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhjyhNhNubj)}(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)}(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.chMfhjgubj)}(hhh](j)}(h1``struct fs_context *fc`` new filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjgh]hstruct fs_context *fc}(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.chMchjgubj)}(hhh]h)}(hnew filesystem contexth]hnew filesystem context}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMchjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMchjgubj)}(hH``struct super_block *reference`` dentry reference for submount/remount h](j)}(h!``struct super_block *reference``h]j)}(hjgh]hstruct super_block *reference}(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.chMdhjgubj)}(hhh]h)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMdhjhubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhhMdhjgubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]j)}(hj5hh]h Description}(hj7hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjgubh)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(hjKhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjgubh)}(h **Return**h]j)}(hj\hh]hReturn}(hj^hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjgubh)}(h7Returns 0 on success or negative error code on failure.h]h7Returns 0 on success or negative error code on failure.}(hjrhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhjyhhhNhNubh)}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMpubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjhhMpubjg)}(hsecurity_fs_context_duph]jm)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjhhMpubj)}(h2(struct fs_context *fc, struct fs_context *src_fc)h](j)}(hstruct fs_context *fch](j)}(hj6}h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.security_fs_context_dupasbuh1hhjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hj*ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hfch]hfc}(hj7ihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hstruct fs_context *src_fch](j)}(hj6}h]hstruct}(hjPihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLiubj)}(h h]h }(hj]ihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLiubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjnihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpimodnameN classnameNjI jL )}jO ]jic.security_fs_context_dupasbuh1hhjLiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLiubjm)}(hsrc_fch]hsrc_fc}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjhhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhhMpubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhMphjhhhubj)}(hhh]h)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhjyhNhNubj)}(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)}(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.chMthjiubj)}(hhh](j)}(h9``struct fs_context *fc`` destination filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjjh]hstruct fs_context *fc}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhj jubj)}(hhh]h)}(hdestination filesystem contexth]hdestination filesystem context}(hj+jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'jhMqhj(jubah}(h]h ]h"]h$]h&]uh1jhj jubeh}(h]h ]h"]h$]h&]uh1jhj'jhMqhj jubj)}(h8``struct fs_context *src_fc`` source filesystem context h](j)}(h``struct fs_context *src_fc``h]j)}(hjKjh]hstruct fs_context *src_fc}(hjMjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjEjubj)}(hhh]h)}(hsource filesystem contexth]hsource filesystem context}(hjdjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`jhMrhjajubah}(h]h ]h"]h$]h&]uh1jhjEjubeh}(h]h ]h"]h$]h&]uh1jhj`jhMrhj jubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjiubh)}(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. }(hjjhhhNhNubj)}(h**fc**h]hfc}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh' indicates the new filesystem context. }(hjjhhhNhNubj)}(h **src_fc**h]hsrc_fc}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh+ indicates the original filesystem context.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjiubh)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjiubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.;}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhjyhhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj%khhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkhhhj$khMubjg)}(hsecurity_fs_context_parse_paramh]jm)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hj7khhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3kubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhj$khMubj)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j)}(hstruct fs_context *fch](j)}(hj6}h]hstruct}(hjSkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOkubj)}(h h]h }(hj`khhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOkubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjqkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjskmodnameN classnameNjI jL )}jO ]jR )}jE j9ksb!c.security_fs_context_parse_paramasbuh1hhjOkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOkubjm)}(hfch]hfc}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKkubj)}(hstruct fs_parameter *paramh](j)}(hj6}h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(h fs_parameterh]h fs_parameter}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jk!c.security_fs_context_parse_paramasbuh1hhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hparamh]hparam}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKkubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhj$khMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhj$khMubah}(h]j kah ](jjeh"]h$]h&]jj)jhuh1hhj$khMhj khhubj)}(hhh]h)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hjFlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjClhhubah}(h]h ]h"]h$]h&]uh1jhj khhhj$khMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^ljj^ljjjuh1hhhhjyhNhNubj)}(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)}(hjhlh]h Parameters}(hjjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjflubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjblubj)}(hhh](j)}(h-``struct fs_context *fc`` filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjlh]hstruct fs_context *fc}(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.chMhjlubj)}(hhh]h)}(hfilesystem contexth]hfilesystem context}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhj~lubj)}(h4``struct fs_parameter *param`` filesystem parameter h](j)}(h``struct fs_parameter *param``h]j)}(hjlh]hstruct fs_parameter *param}(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.chMhjlubj)}(hhh]h)}(hfilesystem parameterh]hfilesystem parameter}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhj~lubeh}(h]h ]h"]h$]h&]uh1jhjblubh)}(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.chMhjblubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjblubh)}(h **Return**h]j)}(hj"mh]hReturn}(hj$mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj mubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjblubh)}(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.}(hj8mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjblubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_alloc (C function)c.security_sb_allochNtauh1hhjyhhhNhNubh)}(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}(hjgmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjvmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcmhhhjumhMubjg)}(hsecurity_sb_alloch]jm)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjcmhhhjumhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(h super_blockh]h super_block}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jR )}jE jmsbc.security_sb_allocasbuh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hsbh]hsb}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubah}(h]h ]h"]h$]h&]jjuh1jhjcmhhhjumhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_mhhhjumhMubah}(h]jZmah ](jjeh"]h$]h&]jj)jhuh1hhjumhMhj\mhhubj)}(hhh]h)}(hAllocate a super_block LSM blobh]hAllocate a super_block LSM blob}(hj'nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$nhhubah}(h]h ]h"]h$]h&]uh1jhj\mhhhjumhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?njj?njjjuh1hhhhjyhNhNubj)}(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)}(hjInh]h Parameters}(hjKnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCnubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjhnh]hstruct super_block *sb}(hjjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbnubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}nhMhj~nubah}(h]h ]h"]h$]h&]uh1jhjbnubeh}(h]h ]h"]h$]h&]uh1jhj}nhMhj_nubah}(h]h ]h"]h$]h&]uh1jhjCnubh)}(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.chMhjCnubh)}(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. }(hjnhhhNhNubj)}(h**sb**h]hsb}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh3 contains the super_block structure to be modified.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCnubh)}(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.chMhjCnubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_delete (C function)c.security_sb_deletehNtauh1hhjyhhhNhNubh)}(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!ohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj0ohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhj/ohMubjg)}(hsecurity_sb_deleteh]jm)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(hjBohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>oubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhj/ohMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hj^ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZoubj)}(h h]h }(hjkohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZoubh)}(hhh]jm)}(h super_blockh]h super_block}(hj|ohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~omodnameN classnameNjI jL )}jO ]jR )}jE jDosbc.security_sb_deleteasbuh1hhjZoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZoubjm)}(hsbh]hsb}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVoubah}(h]h ]h"]h$]h&]jjuh1jhjohhhj/ohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhj/ohMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhj/ohMhjohhubj)}(hhh]h)}(h*Release super_block LSM associated objectsh]h*Release super_block LSM associated objects}(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&]uh1jhjohhhj/ohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjyhNhNubj)}(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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hj"ph]hstruct super_block *sb}(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.chMhjpubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj;phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7phMhj8pubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhj7phMhjpubah}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]j)}(hj]ph]h Description}(hj_phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[pubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoubh)}(hnRelease objects tied to a superblock (e.g. inodes). **sb** contains the super_block structure being released.h](h5Release objects tied to a superblock (e.g. inodes). }(hjsphhhNhNubj)}(h**sb**h]hsb}(hj{phhhNhNubah}(h]h ]h"]h$]h&]uh1jhjspubh3 contains the super_block structure being released.}(hjsphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_free (C function)c.security_sb_freehNtauh1hhjyhhhNhNubh)}(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}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjphhhjphMubjg)}(hsecurity_sb_freeh]jm)}(hsecurity_sb_freeh]hsecurity_sb_free}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhjphMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubh)}(hhh]jm)}(h super_blockh]h super_block}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj qubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jR )}jE jpsbc.security_sb_freeasbuh1hhjpubj)}(h h]h }(hj/qhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hj=qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hsbh]hsb}(hjJqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhjphhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjphhubj)}(hhh]h)}(hFree a super_block LSM blobh]hFree a super_block LSM blob}(hjtqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjqqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhjyhNhNubj)}(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)}(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.chMhjqubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjqh]hstruct super_block *sb}(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.chMhjqubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubh)}(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.chMhjqubh)}(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. }(hjrhhhNhNubj)}(h**sb**h]hsb}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh3 contains the super_block structure to be modified.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhjyhhhNhNubh)}(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}(hjGrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjVrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCrhhhjUrhM ubjg)}(hsecurity_sb_kern_mounth]jm)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hjhrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjCrhhhjUrhM ubj)}(h(const struct super_block *sb)h]j)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hj6}h]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}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE jjrsbc.security_sb_kern_mountasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hsbh]hsb}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|rubah}(h]h ]h"]h$]h&]jjuh1jhjCrhhhjUrhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?rhhhjUrhM ubah}(h]j:rah ](jjeh"]h$]h&]jj)jhuh1hhjUrhM hjsubj)}(hhh]j)}(h7``const struct super_block *sb`` filesystem superblock h](j)}(h ``const struct super_block *sb``h]j)}(hjcsh]hconst struct super_block *sb}(hjeshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjasubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]subj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj|shhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxshMhjysubah}(h]h ]h"]h$]h&]uh1jhj]subeh}(h]h ]h"]h$]h&]uh1jhjxshMhjZsubah}(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:283: ./security/security.chMhj>subh)}(h,Mount this **sb** if allowed by permissions.h](h Mount this }(hjshhhNhNubj)}(h**sb**h]hsb}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh if allowed by permissions.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>subh)}(h **Return**h]j)}(hjsh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>subh)}(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.chMhj>subeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_sb_show_options (C function)c.security_sb_show_optionshNtauh1hhjyhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj+thhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhj*thMubjg)}(hsecurity_sb_show_optionsh]jm)}(hsecurity_sb_show_optionsh]hsecurity_sb_show_options}(hj=thhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9tubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhj*thMubj)}(h,(struct seq_file *m, struct super_block *sb)h](j)}(hstruct seq_file *mh](j)}(hj6}h]hstruct}(hjYthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUtubj)}(h h]h }(hjfthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUtubh)}(hhh]jm)}(hseq_fileh]hseq_file}(hjwthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjttubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjytmodnameN classnameNjI jL )}jO ]jR )}jE j?tsbc.security_sb_show_optionsasbuh1hhjUtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUtubjm)}(hj h]hm}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQtubj)}(hstruct super_block *sbh](j)}(hj6}h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(hhh]jm)}(h super_blockh]h super_block}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jtc.security_sb_show_optionsasbuh1hhjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hsbh]hsb}(hj!uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQtubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhj*thMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhj*thMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhj*thMhjthhubj)}(hhh]h)}(h)Output the mount options for a superblockh]h)Output the mount options for a superblock}(hjKuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhj*thMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcujjcujjjuh1hhhhjyhNhNubj)}(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)}(hjmuh]h Parameters}(hjouhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjguubj)}(hhh](j)}(h#``struct seq_file *m`` output file h](j)}(h``struct seq_file *m``h]j)}(hjuh]hstruct seq_file *m}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuubj)}(hhh]h)}(h output fileh]h output file}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjuubj)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjuh]hstruct super_block *sb}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjguubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjguubh)}(h4Show (print on **m**) mount options for this **sb**.h](hShow (print on }(hjvhhhNhNubj)}(h**m**h]hm}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh) mount options for this }(hjvhhhNhNubj)}(h**sb**h]hsb}(hj0vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjguubh)}(h **Return**h]j)}(hjKvh]hReturn}(hjMvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjguubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjavhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjguubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_statfs (C function)c.security_sb_statfshNtauh1hhjyhhhNhNubh)}(hhh](j)}(h.int security_sb_statfs (struct dentry *dentry)h]j)}(h-int security_sb_statfs(struct dentry *dentry)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 }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvhhhjvhM(ubjg)}(hsecurity_sb_statfsh]jm)}(hsecurity_sb_statfsh]hsecurity_sb_statfs}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhjvhM(ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(hdentryh]hdentry}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE jvsbc.security_sb_statfsasbuh1hhjvubj)}(h h]h }(hj whhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hdentryh]hdentry}(hj&whhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjvhM(ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjvhM(hjvhhubj)}(hhh]h)}(h&Check if accessing fs stats is allowedh]h&Check if accessing fs stats is allowed}(hjPwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjMwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjvhM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhwjjhwjjjuh1hhhhjyhNhNubj)}(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)}(hjrwh]h Parameters}(hjtwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjlwubj)}(hhh]j)}(h,``struct dentry *dentry`` superblock handle h](j)}(h``struct dentry *dentry``h]j)}(hjwh]hstruct dentry *dentry}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjwubj)}(hhh]h)}(hsuperblock handleh]hsuperblock handle}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM)hjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhM)hjwubah}(h]h ]h"]h$]h&]uh1jhjlwubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjlwubh)}(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 }(hjwhhhNhNubj)}(h**mnt**h]hmnt}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh mountpoint. }(hjwhhhNhNubj)}(h **dentry**h]hdentry}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh2 is a handle on the superblock for the filesystem.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjlwubh)}(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-hjlwubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj-xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjlwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_mount (C function)c.security_sb_mounthNtauh1hhjyhhhNhNubh)}(hhh](j)}(hxint security_sb_mount (const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h]j)}(hwint security_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](j )}(hinth]hint}(hj\xhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6ubj)}(h h]h }(hjkxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXxhhhjjxhM6ubjg)}(hsecurity_sb_mounth]jm)}(hsecurity_sb_mounth]hsecurity_sb_mount}(hj}xhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXxhhhjjxhM6ubj)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hcharh]hchar}(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)}(hdev_nameh]hdev_name}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hj6}h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubh)}(hhh]jm)}(hpathh]hpath}(hj/yhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,yubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1ymodnameN classnameNjI jL )}jO ]jR )}jE jxsbc.security_sb_mountasbuh1hhjxubj)}(h h]h }(hjOyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hj]yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hpathh]hpath}(hjjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hconst char *typeh](j)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj )}(hcharh]hchar}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(htypeh]htype}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj )}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hj zhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hflagsh]hflags}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h void *datah](j )}(hvoidh]hvoid}(hj1zhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-zubj)}(h h]h }(hj?zhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-zubj)}(hjh]h*}(hjMzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-zubjm)}(hdatah]hdata}(hjZzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjXxhhhjjxhM6ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjTxhhhjjxhM6ubah}(h]jOxah ](jjeh"]h$]h&]jj)jhuh1hhjjxhM6hjQxhhubj)}(hhh]h)}(h*Check permission for mounting a filesystemh]h*Check permission for mounting a filesystem}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjzhhubah}(h]h ]h"]h$]h&]uh1jhjQxhhhjjxhM6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhjyhNhNubj)}(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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjzubj)}(hhh](j)}(h3``const char *dev_name`` filesystem backing device h](j)}(h``const char *dev_name``h]j)}(hjzh]hconst char *dev_name}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjzubj)}(hhh]h)}(hfilesystem backing deviceh]hfilesystem backing device}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM7hjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhM7hjzubj)}(h(``const struct path *path`` mount point h](j)}(h``const struct path *path``h]j)}(hjzh]hconst struct path *path}(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.chM8hjzubj)}(hhh]h)}(h mount pointh]h mount point}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM8hj{ubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj{hM8hjzubj)}(h%``const char *type`` filesystem type h](j)}(h``const char *type``h]j)}(hj7{h]hconst char *type}(hj9{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hj1{ubj)}(hhh]h)}(hfilesystem typeh]hfilesystem type}(hjP{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL{hM9hjM{ubah}(h]h ]h"]h$]h&]uh1jhj1{ubeh}(h]h ]h"]h$]h&]uh1jhjL{hM9hjzubj)}(h$``unsigned long flags`` mount flags h](j)}(h``unsigned long flags``h]j)}(hjp{h]hunsigned long flags}(hjr{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjj{ubj)}(hhh]h)}(h mount flagsh]h mount flags}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM:hj{ubah}(h]h ]h"]h$]h&]uh1jhjj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM:hjzubj)}(h(``void *data`` filesystem specific data h](j)}(h``void *data``h]j)}(hj{h]h void *data}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hj{ubj)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(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;hjzubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjzubh)}(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 }(hj{hhhNhNubj)}(h **dev_name**h]hdev_name}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh( is mounted on the mount point named by }(hj{hhhNhNubj)}(h**nd**h]hnd}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh. For an ordinary mount, }(hj{hhhNhNubj)}(h **dev_name**h]hdev_name}(hj&|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubhP identifies a device if the file system type requires a device. For a remount (}(hj{hhhNhNubj)}(h **flags**h]hflags}(hj8|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh & MS_REMOUNT), }(hj{hhhNhNubj)}(h **dev_name**h]hdev_name}(hjJ|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh, is irrelevant. For a loopback/bind mount (}(hj{hhhNhNubj)}(h **flags**h]hflags}(hj\|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh & MS_BIND), }(hj{hhhNhNubj)}(h **dev_name**h]hdev_name}(hjn|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh5 identifies the pathname of the object being mounted.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjzubh)}(h **Return**h]j)}(hj|h]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjzubh)}(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.chMDhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_umount (C function)c.security_sb_umounthNtauh1hhjyhhhNhNubh)}(hhh](j)}(h8int security_sb_umount (struct vfsmount *mnt, int flags)h]j)}(h7int security_sb_umount(struct vfsmount *mnt, int flags)h](j )}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhj|hMMubjg)}(hsecurity_sb_umounth]jm)}(hsecurity_sb_umounth]hsecurity_sb_umount}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hMMubj)}(h!(struct vfsmount *mnt, int flags)h](j)}(hstruct vfsmount *mnth](j)}(hj6}h]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)}(hvfsmounth]hvfsmount}(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_umountasbuh1hhj}ubj)}(h h]h }(hjI}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjW}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hmnth]hmnt}(hjd}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(h int flagsh](j )}(hinth]hint}(hj}}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjy}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy}ubjm)}(hflagsh]hflags}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjy}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hMMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hMMhj|hhubj)}(hhh]h)}(h,Check permission for unmounting a filesystemh]h,Check permission for unmounting a filesystem}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhj}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhjyhNhNubj)}(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.chMQhj}ubj)}(hhh](j)}(h,``struct vfsmount *mnt`` mounted filesystem h](j)}(h``struct vfsmount *mnt``h]j)}(hj~h]hstruct vfsmount *mnt}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhj}ubj)}(hhh]h)}(hmounted filesystemh]hmounted filesystem}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMNhj~ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj~hMNhj}ubj)}(h``int flags`` unmount flags h](j)}(h ``int flags``h]j)}(hj=~h]h int flags}(hj?~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhj7~ubj)}(hhh]h)}(h unmount flagsh]h unmount flags}(hjV~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR~hMOhjS~ubah}(h]h ]h"]h$]h&]uh1jhj7~ubeh}(h]h ]h"]h$]h&]uh1jhjR~hMOhj}ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhj}ubh)}(h=Check permission before the **mnt** file system is unmounted.h](hCheck permission before the }(hj~hhhNhNubj)}(h**mnt**h]hmnt}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh file system is unmounted.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhj}ubh)}(h **Return**h]j)}(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 permission is granted.h]h#Returns 0 if permission is granted.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_sb_pivotroot (C function)c.security_sb_pivotroothNtauh1hhjyhhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhjhM[ubjg)}(hsecurity_sb_pivotrooth]jm)}(hsecurity_sb_pivotrooth]hsecurity_sb_pivotroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhM[ubj)}(h:(const struct path *old_path, const struct path *new_path)h](j)}(hconst struct path *old_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)}(hj6}h]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_sb_pivotrootasbuh1hhj/ubj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhj+ubj)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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 ]jc.security_sb_pivotrootasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnew_pathh]hnew_path}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhM[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhM[ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhM[hj~hhubj)}(hhh]h)}(h)Check permissions for pivoting the rootfsh]h)Check permissions for pivoting the rootfs}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hjYhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhjyhNhNubj)}(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)}(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.chM_hjxubj)}(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.chM\hjubj)}(hhh]h)}(hnew location for current rootfsh]hnew location for current rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(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&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjЀubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjxubh)}(h5Check permission before pivoting the root filesystem.h]h5Check permission before pivoting the root filesystem.}(hj'hhhNhNubah}(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)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjxubh)}(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.cShMahjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_move_mount (C function)c.security_move_mounthNtauh1hhjyhhhNhNubh)}(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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyhhhjhMubjg)}(hsecurity_move_mounth]jm)}(hsecurity_move_mounth]hsecurity_move_mount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjhMubj)}(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 }(hjǁhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjՁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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*}(hj!hhhNhNubah}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hj6}h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_move_mountasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hto_pathh]hto_path}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjrhhubj)}(hhh]h)}(h$Check permissions for moving a mounth]h$Check permissions for moving a mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMhjubj)}(hhh](j)}(h4``const struct path *from_path`` source mount point h](j)}(h ``const struct path *from_path``h]j)}(hj$h]hconst struct path *from_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.chMhjubj)}(hhh]h)}(hsource mount pointh]hsource mount point}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h7``const struct path *to_path`` destination mount point h](j)}(h``const struct path *to_path``h]j)}(hj]h]hconst struct path *to_path}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubj)}(hhh]h)}(hdestination mount pointh]hdestination mount point}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubeh}(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)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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_path_notify (C function)c.security_path_notifyhNtauh1hhjyhhhNhNubh)}(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}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hj6}h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh)}(hhh]jm)}(hpathh]hpath}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.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&]noemphjjuh1jhj9ubj)}(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 ]jc.security_path_notifyasbuh1hhjʄubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjʄubjm)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjʄubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hunsigned int obj_typeh](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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hobj_typeh]hobj_type}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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&]uh1hhj΅hMhjυubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj΅hMhjubj)}(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.chMhjubj)}(hhh]h)}(h event maskh]h event mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``unsigned int obj_type`` file path type h](j)}(h``unsigned int obj_type``h]j)}(hj+h]hunsigned int obj_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)}(hfile path typeh]hfile path type}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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 }(hj|hhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh, on an object at }(hj|hhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh, whose type is defined by }(hj|hhhNhNubj)}(h **obj_type**h]hobj_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_alloc (C function)c.security_inode_allochNtauh1hhjyhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_alloch]jm)}(hsecurity_inode_alloch]hsecurity_inode_alloc}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(hinodeh]hinode}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE j+sbc.security_inode_allocasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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.security_inode_allocasbuh1hhjubj)}(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=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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhjyhNhNubj)}(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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj,ubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjQh]hstruct inode *inode}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKubj)}(hhh]h)}(h the inodeh]h the inode}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjhMhjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]j)}(hjňh]h Description}(hjLjhhhNhNubah}(h]h ]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)}(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}(hjhhhNhNubah}(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.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%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.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_inode_free (C function)c.security_inode_freehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h.void security_inode_free (struct inode *inode)h]j)}(h-void security_inode_free(struct inode *inode)h](j )}(hvoidh]hvoid}(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_inode_freeh]jm)}(hsecurity_inode_freeh]hsecurity_inode_free}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjQhMubj)}(h(struct inode *inode)h]j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jfsbc.security_inode_freeasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj)}(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&]uh1jhj8hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(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)}(hjDh]hstruct inode *inode}(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)}(h the inodeh]h the inode}(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&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhjyhhhNhNubh)}(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.chMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMmubjg)}(h!security_inode_init_security_anonh]jm)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMmubj)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(hinodeh]hinode}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jR )}jE jsb#c.security_inode_init_security_anonasbuh1hhj0ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj΋hhhNhNubah}(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 reftargetjmodnameN classnameNjI jL )}jO ]jn#c.security_inode_init_security_anonasbuh1hhjubj)}(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&]noemphjjuh1jhj,ubj)}(h!const struct inode *context_inodeh](j)}(hjh]hconst}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hj6}h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hinodeh]hinode}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jn#c.security_inode_init_security_anonasbuh1hhj-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(h context_inodeh]h context_inode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjhhubj)}(hhh]h)}(hInitialize an anonymous inodeh]hInitialize an anonymous inode}(hj͌hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjʌhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct inode *inode`` the inode ``const struct qstr *name`` the anonymous inode class ``const struct inode *context_inode`` an optional related inode **Description** Set up the incore security field for the new anonymous inode and return whether the inode creation is permitted by the security module or not. **Return** Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhjubj)}(hhh]h)}(h the inodeh]h the inode}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMnhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMnhjubj)}(h6``const struct qstr *name`` the anonymous inode class h](j)}(h``const struct qstr *name``h]j)}(hjGh]hconst struct qstr *name}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjAubj)}(hhh]h)}(hthe anonymous inode classh]hthe anonymous inode class}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMohj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMohjubj)}(h@``const struct inode *context_inode`` an optional related inode h](j)}(h%``const struct inode *context_inode``h]j)}(hjh]h!const struct inode *context_inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjzubj)}(hhh]h)}(han optional related inodeh]han optional related inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMphjubeh}(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.chMrhjubh)}(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.chMqhjubh)}(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.chMthjubh)}(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.chMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhjyhhhNhNubh)}(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}(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 }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj5hMubjg)}(hsecurity_path_post_mknodh]jm)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hMubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(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 jJsbc.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)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hstruct dentry *dentryh](j)}(hj6}h]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}(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*}(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\ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hMhjhhubj)}(hhh]h)}(h-Update inode security after reg file creationh]h-Update inode security after reg file creation}(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&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjyhNhNubj)}(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)}(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`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjяh]hstruct dentry *dentry}(hjӏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϏubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjˏubj)}(hhh]h)}(hnew fileh]hnew file}(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&]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:283: ./security/security.chMhjsubh)}(hBUpdate inode security field after a regular file has been created.h]hBUpdate inode security field after a regular file has been created.}(hj"hhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhjyhhhNhNubh)}(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}(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 }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hMubjg)}(hsecurity_path_rmdirh]jm)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj_hMubj)}(h/(const struct path *dir, struct dentry *dentry)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)}(hj6}h]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 jtsbc.security_path_rmdirasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jc.security_path_rmdirasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhj_hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj_hMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhjFhhubj)}(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&]uh1jhjFhhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(hjhhhNhNubah}(h]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&]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)}(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)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjxh]hReturn}(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)}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_path_symlink (C function)c.security_path_symlinkhNtauh1hhjyhhhNhNubh)}(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 }(hj̒hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj˒hMubjg)}(hsecurity_path_symlinkh]jm)}(hsecurity_path_symlinkh]hsecurity_path_symlink}(hjޒhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڒubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj˒hMubj)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_symlinkasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdirh]hdir}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]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_path_symlinkasbuh1hhjubj)}(h h]h }(hjÓhhhNhNubah}(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)}(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 }(hj hhhNhNubah}(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&]jjuh1jhjhhhj˒hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj˒hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj˒hMhjhhubj)}(hhh]h)}(h,Check if creating a symbolic link is allowedh]h,Check if creating a symbolic link 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&]uh1jhjhhhj˒hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` symbolic link ``const char *old_name`` file pathname **Description** Check the permission to create a symbolic link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``const struct path *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjh]hconst struct path *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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}(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 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)}(hjh]hconst char *old_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h file pathnameh]h file pathname}(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)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_path_link (C function)c.security_path_linkhNtauh1hhjyhhhNhNubh)}(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 }(hjΕhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj͕hMubjg)}(hsecurity_path_linkh]jm)}(hsecurity_path_linkh]hsecurity_path_link}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjܕubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj͕hMubj)}(hR(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j)}(hstruct dentry *old_dentryh](j)}(hj6}h]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_path_linkasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h old_dentryh]h old_dentry}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *new_dirh](j)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j6c.security_path_linkasbuh1hhjjubj)}(h h]h }(hjŖhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hjӖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *new_dentryh](j)}(hj6}h]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 ]j6c.security_path_linkasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h new_dentryh]h new_dentry}(hjPhhhNhNubah}(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(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj͕hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(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 dentry *new_dentry`` new link h](j)}(h``struct dentry *new_dentry``h]j)}(hj-h]hstruct dentry *new_dentry}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'ubj)}(hhh]h)}(hnew linkh]hnew link}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubeh}(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&]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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_path_truncate (C function)c.security_path_truncatehNtauh1hhjyhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjИhhhjhMubjg)}(hsecurity_path_truncateh]jm)}(hsecurity_path_truncateh]hsecurity_path_truncate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjИhhhjhMubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hj6}h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hpathh]hpath}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_truncateasbuh1hhj ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjИhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj̘hhhjhMubah}(h]jǘah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjɘ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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjɘhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjǙjjǙjjjuh1hhhhjyhNhNubj)}(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&]uh1jhjϙubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj˙ubj)}(hhh]j)}(h!``const struct path *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}(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&]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)}(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.}(hjAhhhNhNubah}(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)}(hjRh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj˙ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj˙ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chmod (C function)c.security_path_chmodhNtauh1hhjyhhhNhNubh)}(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.chM(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM(ubjg)}(hsecurity_path_chmodh]jm)}(hsecurity_path_chmodh]hsecurity_path_chmod}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM(ubj)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjКubj)}(hj6}h]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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_chmodasbuh1hhjК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)}(hpathh]hpath}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjКubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj̚ubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]j)c.security_path_chmodasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hmodeh]hmode}(hjhhhNhNubah}(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 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.chM(hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjқjjқjjjuh1hhhhjyhNhNubj)}(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.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``umode_t mode`` new mode h](j)}(h``umode_t mode``h]j)}(hj4h]h umode_t mode}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hj.ubj)}(hhh]h)}(hnew modeh]hnew mode}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM*hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM*hjubeh}(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&]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 }(hjhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. The new mode is specified in }(hjhhhNhNubj)}(h**mode**h]hmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB which is a bitmask of constants from .}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+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.chM0hj֛ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chown (C function)c.security_path_chownhNtauh1hhjyhhhNhNubh)}(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.chM:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hM:ubjg)}(hsecurity_path_chownh]jm)}(hsecurity_path_chownh]hsecurity_path_chown}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hM:ubj)}(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&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hj6}h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hpathh]hpath}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE j"sbc.security_path_chownasbuh1hhj8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(h kuid_t uidh](h)}(hhh]jm)}(hkuid_th]hkuid_t}(hj̝hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɝubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjΝmodnameN classnameNjI jL )}jO ]jc.security_path_chownasbuh1hhjŝubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjŝubjm)}(huidh]huid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjŝubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(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_chownasbuh1hhj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hgidh]hgid}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(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)}(h3Check if changing the file's owner/group is allowedh]h5Check if changing the file’s owner/group is allowed}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``const struct path *path`` file ``kuid_t uid`` file owner ``kgid_t gid`` file group **Description** Check for permission to change owner/group of a file or directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hjubj)}(hhh](j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjubj)}(hhh]h)}(hfileh]hfile}(hjĞhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(h``kuid_t uid`` file owner h](j)}(h``kuid_t uid``h]j)}(hjh]h kuid_t uid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjޞubj)}(hhh]h)}(h file ownerh]h file owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjޞubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubj)}(h``kgid_t gid`` file group h](j)}(h``kgid_t gid``h]j)}(hjh]h kgid_t gid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjubj)}(hhh]h)}(h file grouph]h file group}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM=hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM=hjubeh}(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.chM?hjubh)}(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.}(hjnhhhNhNubah}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_path_chroot (C function)c.security_path_chroothNtauh1hhjyhhhNhNubh)}(hhh](j)}(h2int security_path_chroot (const struct path *path)h]j)}(h1int security_path_chroot(const struct path *path)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.chMKubj)}(h h]h }(hjӟhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjҟhMKubjg)}(hsecurity_path_chrooth]jm)}(hsecurity_path_chrooth]hsecurity_path_chroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjҟhMKubj)}(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)}(hj6}h]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&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_chrootasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjҟhMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjҟhMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjҟhMKhjhhubj)}(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.chMKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjҟhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(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.chMOhjubj)}(hhh]j)}(h&``const struct path *path`` directory h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(h directoryh]h directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjڠubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjנ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.chMNhjubh)}(h.Check for permission to change root directory.h]h.Check for permission to change root directory.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjubh)}(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.chMOhjubh)}(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.chMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhjyhhhNhNubh)}(hhh](j)}(hVvoid security_inode_post_create_tmpfile (struct mnt_idmap *idmap, struct inode *inode)h]j)}(hUvoid security_inode_post_create_tmpfile(struct mnt_idmap *idmap, struct inode *inode)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMlubjg)}(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&]jjuh1jfhjhhhjhMlubj)}(h.(struct mnt_idmap *idmap, struct inode *inode)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjġhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjߡubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN 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)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hinodeh]hinode}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]j$c.security_inode_post_create_tmpfileasbuh1hhj2ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMlubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhMlhj|hhubj)}(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.chMlhjhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjϢjjϢjjjuh1hhhhjyhNhNubj)}(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.chMphjӢ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.chMmhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMmhjubj)}(h1``struct inode *inode`` inode of the new tmpfile h](j)}(h``struct inode *inode``h]j)}(hj1h]hstruct inode *inode}(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.chMnhj+ubj)}(hhh]h)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMnhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMnhjubeh}(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.chMphjӢubh)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubj)}(hhh]h)}(hexisting filenameh]hexisting filename}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_rmdir (C function)c.security_inode_rmdirhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hCint security_inode_rmdir (struct inode *dir, struct dentry *dentry)h]j)}(hBint security_inode_rmdir(struct inode *dir, struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_inode_rmdirh]jm)}(hsecurity_inode_rmdirh]hsecurity_inode_rmdir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj߫hhhjhMubj)}(h*(struct inode *dir, struct dentry *dentry)h](j)}(hstruct inode *dirh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(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 jsbc.security_inode_rmdirasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdirh]hdir}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]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 ]jZc.security_inode_rmdirasbuh1hhjubj)}(h h]h }(hjάhhhNhNubah}(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&]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(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&]uh1jhjثhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` directory to be removed **Description** Check the permission to remove a directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj/ubj)}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hjTh]hstruct inode *dir}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubj)}(hhh]h)}(hparent directoryh]hparent directory}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubj)}(h2``struct dentry *dentry`` directory to be removed h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hdirectory to be removedh]hdirectory to be removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubeh}(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)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjޭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj/ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj/ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_mknod (C function)c.security_inode_mknodhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h\int security_inode_mknod (struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h]j)}(h[int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhjBhMubjg)}(hsecurity_inode_mknodh]jm)}(hsecurity_inode_mknodh]hsecurity_inode_mknod}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhjBhMubj)}(hC(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j)}(hstruct inode *dirh](j)}(hj6}h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jWsbc.security_inode_mknodasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hdirh]hdir}(hjʮhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct dentry *dentryh](j)}(hj6}h]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 ]jc.security_inode_mknodasbuh1hhj߮ubj)}(h h]h }(hjhhhNhNubah}(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&]noemphjjuh1jhjiubj)}(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_inode_mknodasbuh1hhjOubj)}(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&]noemphjjuh1jhjiubj)}(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 ]jc.security_inode_mknodasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjʯhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhMhj)hhubj)}(hhh]h)}(h+Check if creating a special file is allowedh]h+Check if creating a special file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` new file ``umode_t mode`` new file mode ``dev_t dev`` device number **Description** Check permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hj5h]hstruct inode *dir}(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)}(hparent directoryh]hparent directory}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjnh]hstruct dentry *dentry}(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 fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,ubj)}(h``umode_t mode`` new file mode h](j)}(h``umode_t mode``h]j)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h new file modeh]h new file mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,ubj)}(h``dev_t dev`` device number h](j)}(h ``dev_t dev``h]j)}(hjh]h dev_t dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 device numberh]h device number}(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)}(hCheck permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook.h]hCheck permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_inode_rename (C function)c.security_inode_renamehNtauh1hhjyhhhNhNubh)}(hhh](j)}(hint security_inode_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h]j)}(hint security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_renameh]jm)}(hsecurity_inode_renameh]hsecurity_inode_rename}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hx(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h](j)}(hstruct inode *old_dirh](j)}(hj6}h]hstruct}(hjıhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjѱhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj߱ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_renameasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hold_dirh]hold_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *old_dentryh](j)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hdentryh]hdentry}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jc.security_inode_renameasbuh1hhj2ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *new_dirh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjIJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjƲmodnameN classnameNjI jL )}jO ]jc.security_inode_renameasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *new_dentryh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jc.security_inode_renameasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h new_dentryh]h new_dentry}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int flagsh](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)}(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]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj|hhubj)}(hhh]h)}(h#Check if renaming a file is allowedh]h#Check if renaming 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&]uh1jhj|hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX}**Parameters** ``struct inode *old_dir`` parent directory of the old file ``struct dentry *old_dentry`` the old file ``struct inode *new_dir`` parent directory of the new file ``struct dentry *new_dentry`` the new file ``unsigned int flags`` flags **Description** Check for permission to rename a file or directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]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 *old_dir`` parent directory of the old file h](j)}(h``struct inode *old_dir``h]j)}(hj)h]hstruct inode *old_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)}(h parent directory of the old fileh]h parent directory of the old file}(hjBhhhNhNubah}(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 *old_dentry`` the old file h](j)}(h``struct dentry *old_dentry``h]j)}(hjbh]hstruct dentry *old_dentry}(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 the old fileh]h the old file}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhj ubj)}(h;``struct inode *new_dir`` parent directory of the new file h](j)}(h``struct inode *new_dir``h]j)}(hjh]hstruct inode *new_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h parent directory of the new fileh]h parent directory of the new file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h+``struct dentry *new_dentry`` the new file h](j)}(h``struct dentry *new_dentry``h]j)}(hjԴh]hstruct dentry *new_dentry}(hjִhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҴubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjδubj)}(hhh]h)}(h the new fileh]h the new file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjδubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``unsigned int flags`` flags h](j)}(h``unsigned int flags``h]j)}(hj h]hunsigned int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hflagsh]hflags}(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)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h3Check for permission to rename a file or directory.h]h3Check for permission to rename 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.chMhjubh)}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_readlink (C function)c.security_inode_readlinkhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h3int security_inode_readlink (struct dentry *dentry)h]j)}(h2int security_inode_readlink(struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_inode_readlinkh]jm)}(hsecurity_inode_readlinkh]hsecurity_inode_readlink}(hjյhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjѵubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjµhM ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]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&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j׵sbc.security_inode_readlinkasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjJhhhNhNubah}(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 reading a symbolic link is allowedh]h+Check if reading a symbolic link is allowed}(hjthhhNhNubah}(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&]uh1jhjhhhjµhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct dentry *dentry`` link **Description** Check the permission to read the symbolic link. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]j)}(h``struct dentry *dentry`` link h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hlinkh]hlink}(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)}(h/Check the permission to read the symbolic link.h]h/Check the permission to read the symbolic link.}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_follow_link (C function)c.security_inode_follow_linkhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hUint security_inode_follow_link (struct dentry *dentry, struct inode *inode, bool rcu)h]j)}(hTint security_inode_follow_link(struct dentry *dentry, struct inode *inode, bool rcu)h](j )}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjjhM ubjg)}(hsecurity_inode_follow_linkh]jm)}(hsecurity_inode_follow_linkh]hsecurity_inode_follow_link}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjjhM ubj)}(h6(struct dentry *dentry, struct inode *inode, bool rcu)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]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_follow_linkasbuh1hhjubj)}(h h]h }(hj׷hhhNhNubah}(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)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jӷc.security_inode_follow_linkasbuh1hhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool rcuh](j )}(hj8h]hbool}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubjm)}(hrcuh]hrcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjjhM ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhM hjQhhubj)}(hhh]h)}(h-Check if following a symbolic link is allowedh]h-Check if following a symbolic link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjظjjظjjjuh1hhhhjyhNhNubj)}(hX>**Parameters** ``struct dentry *dentry`` link dentry ``struct inode *inode`` link inode ``bool rcu`` true if in RCU-walk mode **Description** Check permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjܸubj)}(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.chM hjubj)}(hhh]h)}(h link dentryh]h link dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj4ubj)}(hhh]h)}(h link inodeh]h link inode}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjubj)}(h&``bool rcu`` true if in RCU-walk mode h](j)}(h ``bool rcu``h]j)}(hjsh]hbool rcu}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjmubj)}(hhh]h)}(htrue if in RCU-walk modeh]htrue if in RCU-walk mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(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)}(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 }(hjĹhhhNhNubj)}(h**rcu**h]hrcu}(hj̹hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĹubh is true, }(hjĹhhhNhNubj)}(h **inode**h]hinode}(hj޹hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĹubh is not stable.}(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.}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_permission (C function)c.security_inode_permissionhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h=int security_inode_permission (struct inode *inode, int mask)h]j)}(hhhhNhNubah}(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 }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhM* ubjg)}(hsecurity_inode_permissionh]jm)}(hsecurity_inode_permissionh]hsecurity_inode_permission}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhM* ubj)}(h(struct inode *inode, int mask)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jasbc.security_inode_permissionasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjǺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hinodeh]hinode}(hjԺhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(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&Check if accessing an inode is allowedh]h&Check if accessing an inode is allowed}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* hj0hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhM* ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjyhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hjOubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjth]hstruct inode *inode}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ hjnubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+ hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhM+ hjkubj)}(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}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hjOubh)}(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- hjOubh)}(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.chM4 hjOubh)}(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.chM5 hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_post_setattr (C function)c.security_inode_post_setattrhNtauh1hhjyhhhNhNubh)}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjbhMU ubjg)}(hsecurity_inode_post_setattrh]jm)}(hsecurity_inode_post_setattrh]hsecurity_inode_post_setattr}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhMU ubj)}(h>(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]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 jwsbc.security_inode_post_setattrasbuh1hhjubj)}(h h]h }(hjϼhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjݼhhhNhNubah}(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)}(hj6}h]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_inode_post_setattrasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int ia_validh](j )}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubjm)}(hia_validh]hia_valid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhMU ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhMU ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMU hjIhhubj)}(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.chMU hjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMU ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѽjjѽjjjuh1hhhhjyhNhNubj)}(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)}(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.chMY hjս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.chMV hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMV hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMV hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hj3h]hstruct dentry *dentry}(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.chMW hj-ubj)}(hhh]h)}(hfileh]hfile}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMW hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMW hjubj)}(h%``int ia_valid`` file attributes set h](j)}(h``int ia_valid``h]j)}(hjlh]h int ia_valid}(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.chMX hjfubj)}(hhh]h)}(hfile attributes seth]hfile attributes set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMX hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMX 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.chMZ hjսubh)}(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.chMY hjսubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhjyhhhNhNubh)}(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.chMe ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMe ubjg)}(hsecurity_inode_getattrh]jm)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMe ubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hpathh]hpath}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_getattrasbuh1hhj%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!ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMe ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMe ubah}(h]j߾ah ](jjeh"]h$]h&]jj)jhuh1hhjhMe hjhhubj)}(hhh]h)}(h+Check if getting file attributes is allowedh]h+Check if getting file attributes is allowed}(hjǿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hjĿhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMe ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߿jj߿jjjuh1hhhhjyhNhNubj)}(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.chMi hjubj)}(hhh]j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMf hjubj)}(hhh]h)}(hfileh]hfile}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMf hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMf hjubah}(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.chMh hjubh)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMg hjubh)}(h **Return**h]j)}(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.chMi 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.chMj hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhjyhhhNhNubh)}(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.chMt ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMt ubjg)}(hsecurity_inode_setxattrh]jm)}(hsecurity_inode_setxattrh]hsecurity_inode_setxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMt ubj)}(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)}(hj6}h]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&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_setxattrasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hdentryh]hdentry}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]j&c.security_inode_setxattrasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hvalueh]hvalue}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(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.security_inode_setxattrasbuh1hhjubj)}(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}(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&]jjuh1jhjhhhjhMt ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMt ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMt hjhhubj)}(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.chMt hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMt ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhjyhNhNubj)}(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)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hj2ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjWh]hstruct mnt_idmap *idmap}(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.chMu hjQubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMu hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMu hjNubj)}(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.chMv hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMv hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMv hjNubj)}(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.chMw hjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMw hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMw hjNubj)}(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.chMx hjubj)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMx hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMx hjNubj)}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMy hj5ubj)}(hhh]h)}(hsize of xattr valueh]hsize of xattr value}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMy hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMy hjNubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjth]h int flags}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMz hjnubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMz hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMz hjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(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| hj2ubh)}(hX%This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.h](hdThis hook performs the desired permission checks before setting the extended attributes (xattrs) on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ hj2ubh)}(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 hj2ubh)}(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 hj2ubh)}(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 hj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhjyhhhNhNubh)}(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 hj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhjJhM ubjg)}(hsecurity_inode_set_aclh]jm)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhjJhM ubj)}(h^(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(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 j_sbc.security_inode_set_aclasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(hstruct dentry *dentryh](j)}(hj6}h]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 ]jc.security_inode_set_aclasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj )}(hcharh]hchar}(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)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(hstruct posix_acl *kaclh](j)}(hj6}h]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&]noemphjjuh1jhjqubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhM ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhM hj1hhubj)}(hhh]h)}(h&Check if setting posix acls is allowedh]h&Check if setting posix acls is allowed}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj6hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhjyhNhNubj)}(hXZ**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name ``struct posix_acl *kacl`` acl struct **Description** Check permission before setting posix acls, the posix acls in **kacl** are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjzh]hstruct mnt_idmap *idmap}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjtubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM hjqubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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 hjqubj)}(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.chM hjubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjqubj)}(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.chM hjubj)}(hhh]h)}(h acl structh]h acl struct}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM hjqubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubh)}(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 }(hjvhhhNhNubj)}(h**kacl**h]hkacl}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh are identified by }(hjvhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_inode_post_set_aclh]jm)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hE(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]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}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_post_set_aclasbuh1hhj)ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(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 }(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&]noemphjjuh1jhj%ubj)}(hstruct posix_acl *kaclh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(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 ]jgc.security_inode_post_set_aclasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkaclh]hkacl}(hjShhhNhNubah}(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)Update inode security from posix acls seth]h)Update inode security from posix acls set}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM hjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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"``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.chM hjubj)}(hhh]h)}(hacl nameh]hacl name}(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&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hj0h]hstruct posix_acl *kacl}(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.chM hj*ubj)}(hhh]h)}(h acl structh]h acl struct}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM hjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hUpdate inode security data after successfully setting posix acls on **dentry**. The posix acls in **kacl** are identified by **acl_name**.h](hDUpdate inode security data after successfully setting posix acls on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. The posix acls in }(hjhhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(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&]jjuh1jfhjhhhjhM ubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_inode_get_aclasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjohhhNhNubah}(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)}(hj6}h]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 ]j]c.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&]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 }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hjIhhhNhNubah}(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&Check if reading posix acls is allowedh]h&Check if reading posix acls is allowed}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hj&h]hconst char *acl_name}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubj)}(hhh]h)}(hacl nameh]hacl name}(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 hjubeh}(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:283: ./security/security.chM hjubh)}(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 }(hjwhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(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&]jjuh1jfhjhhhjhM ubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]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&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_remove_aclasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj6}h]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 ]jVc.security_inode_remove_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&]noemphjjuh1jhjubj)}(hconst char *acl_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}(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)}(hacl_nameh]hacl_name}(hjBhhhNhNubah}(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(Check if removing a posix acl is allowedh]h(Check if removing a posix acl is allowed}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX&**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Check permission before removing posix acls, the posix acls are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]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.chM hjubj)}(hhh]h)}(hacl nameh]hacl name}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM hjubeh}(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.chM hjubh)}(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 }(hjphhhNhNubj)}(h **acl_name**h]hacl_name}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(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&]jjuh1jfhjhhhjhM ubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]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 jsb c.security_inode_post_remove_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)}(hj6}h]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 ]jO c.security_inode_post_remove_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&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h)Update inode security after rm posix aclsh]h)Update inode security after rm posix acls}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhjyhNhNubj)}(hX&**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Update inode security data after successfully removing posix acls on **dentry** in **idmap**. The posix acls are identified by **acl_name**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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"``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.chM hjubj)}(hhh]h)}(hacl nameh]hacl name}(hj1hhhNhNubah}(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)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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 }(hjihhhNhNubj)}(h **dentry**h]hdentry}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh in }(hjihhhNhNubj)}(h **idmap**h]hidmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh#. The posix acls are identified by }(hjihhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(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&]jjuh1jfhjhhhjhM ubj)}(hT(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(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 reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_post_setxattrasbuh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjdhhhNhNubah}(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&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj )}(hcharh]hchar}(hjhhhNhNubah}(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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(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&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jEc.security_inode_post_setxattrasbuh1hhj3ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hsizeh]hsize}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{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&]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+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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM hjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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 ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hj?h]hconst char *name}(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 xattr nameh]h xattr name}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM hjubj)}(h"``const void *value`` xattr value h](j)}(h``const void *value``h]j)}(hjxh]hconst void *value}(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 xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.chM hjubj)}(hhh]h)}(hxattr value sizeh]hxattr value size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.chM hjubj)}(hhh]h)}(hflagsh]hflags}(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)}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhjyhhhNhNubh)}(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}(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)}(hsecurity_inode_getxattrh]jm)}(hsecurity_inode_getxattrh]hsecurity_inode_getxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjxhM ubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 xattr access is allowedh]h Check if xattr access is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Check permission before obtaining the extended attributes identified by **name** for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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 ``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}(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)}(h`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hjRhhhNhNubj)}(h**name**h]hname}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh for }(hjRhhhNhNubj)}(h **dentry**h]hdentry}(hjlhhhNhNubah}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhjyhhhNhNubh)}(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.chM" ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM" ubjg)}(hsecurity_inode_listxattrh]jm)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM" ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(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 reftargetj)modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_listxattrasbuh1hhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjbhhhNhNubah}(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"Check if listing xattrs is allowedh]h"Check if listing xattrs is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM" ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM& hjubj)}(hhh]j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM# 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# 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hjubh)}(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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$ hjubh)}(h **Return**h]j)}(hjAh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM( hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhjyhhhNhNubh)}(hhh](j)}(haint security_inode_removexattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h]j)}(h`int security_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM2 ubjg)}(hsecurity_inode_removexattrh]jm)}(hsecurity_inode_removexattrh]hsecurity_inode_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM2 ubj)}(hB(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]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)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hdentryh]hdentry}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jc.security_inode_removexattrasbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(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&]jjuh1jhjhhhjhM2 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhM2 ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhM2 hj{hhubj)}(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.chM2 hjhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhM2 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhjyhNhNubj)}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hj/ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjTh]hstruct mnt_idmap *idmap}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3 hjNubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM3 hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM3 hjKubj)}(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.chM4 hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4 hjKubj)}(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.chM5 hjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5 hjKubeh}(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.chM7 hj/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.chM6 hj/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.}(hj8hhhNhNubah}(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)}(hjIh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chME 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.chMF hj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhjyhhhNhNubh)}(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 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_inode_post_removexattrh]jm)}(hsecurity_inode_post_removexattrh]hsecurity_inode_post_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM[ ubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hj$hhhNhNubah}(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&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(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'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.chM[ hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM[ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.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 ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hj%h]hconst char *name}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM] hjubj)}(hhh]h)}(h xattr nameh]h xattr name}(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&]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:283: ./security/security.chM_ hjubh)}(h:Update the inode after a successful removexattr operation.h]h:Update the inode after a successful removexattr operation.}(hjvhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_setattr (C function)c.security_inode_file_setattrhNtauh1hhjyhhhNhNubh)}(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.chMi ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMi ubjg)}(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&]jjuh1jfhjhhhjhMi ubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]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 }(hj hhhNhNubah}(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)}(hj6}h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(h file_kattrh]h file_kattr}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jc.security_inode_file_setattrasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hfah]hfa}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMi ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMi ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMi hjhhubj)}(hhh]h)}(h#check if setting fsxattr is allowedh]h#check if setting fsxattr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMi hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMi ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMm hjubj)}(hhh](j)}(hH``struct dentry *dentry`` file to set filesystem extended attributes on h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMj hjubj)}(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&]uh1hhj+hMj hj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMj hj ubj)}(hB``struct file_kattr *fa`` extended attributes to set on the inode h](j)}(h``struct file_kattr *fa``h]j)}(hjOh]hstruct file_kattr *fa}(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.chMk hjIubj)}(hhh]h)}(h'extended attributes to set on the inodeh]h'extended attributes to set on the inode}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMk hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMk 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.chMm hjubh)}(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.chMl 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.chMo 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.chMp hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_getattr (C function)c.security_inode_file_getattrhNtauh1hhjyhhhNhNubh)}(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.chMx ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMx ubjg)}(hsecurity_inode_file_getattrh]jm)}(hsecurity_inode_file_getattrh]hsecurity_inode_file_getattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMx ubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hj6}h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hdentryh]hdentry}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_file_getattrasbuh1hhj/ubj)}(h h]h }(hjqhhhNhNubah}(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&]noemphjjuh1jhj+ubj)}(hstruct file_kattr *fah](j)}(hj6}h]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 ]jmc.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&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMx ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMx ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMx hjhhubj)}(hhh]h)}(h&check if retrieving fsxattr is allowedh]h&check if retrieving fsxattr is allowed}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hj#hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMx ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjyhNhNubj)}(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)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hjBubj)}(hhh](j)}(hO``struct dentry *dentry`` file to retrieve filesystem extended attributes from h](j)}(h``struct dentry *dentry``h]j)}(hjgh]hstruct dentry *dentry}(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.chMy hjaubj)}(hhh]h)}(h4file to retrieve filesystem extended attributes fromh]h4file to retrieve filesystem extended attributes from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMy hj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMy hj^ubj)}(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.chMz hjubj)}(hhh]h)}(hextended attributes to geth]hextended attributes to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMz hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMz hj^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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hjBubh)}(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.chM{ hjBubh)}(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~ hjBubh)}(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 hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h8int security_inode_need_killpriv (struct dentry *dentry)h]j)}(h7int security_inode_need_killpriv(struct dentry *dentry)h](j )}(hinth]hint}(hjGhhhNhNubah}(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 }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjUhM ubjg)}(hsecurity_inode_need_killprivh]jm)}(hsecurity_inode_need_killprivh]hsecurity_inode_need_killpriv}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjUhM ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]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 jjsbc.security_inode_need_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&]noemphjjuh1jhj|ubah}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhM ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhM hj<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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(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 dentry *dentry`` associated dentry h](j)}(h``struct dentry *dentry``h]j)}(hjHh]hstruct dentry *dentry}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjBubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj#ubh)}(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.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)}(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.chM hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_inode_killprivh]jm)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_killprivasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct dentry *dentryh](j)}(hj6}h]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 ]jfc.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&]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+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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhjyhNhNubj)}(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)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj;ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hj`h]hstruct mnt_idmap *idmap}(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)}(hidmap of the mounth]hidmap of the mount}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjWubj)}(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.chM hjubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjWubeh}(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)}(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.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)}(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.}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhjyhhhNhNubh)}(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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNhhhX/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&]uh1jhjNhhhj`hM ubjg)}(hsecurity_inode_getsecurityh]jm)}(hsecurity_inode_getsecurityh]hsecurity_inode_getsecurity}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhj`hM ubj)}(h[(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj6}h]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 jusbc.security_inode_getsecurityasbuh1hhjubj)}(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)}(hj6}h]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 reftargetj!modnameN classnameNjI jL )}jO ]jc.security_inode_getsecurityasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubj)}(h bool alloch](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(halloch]halloc}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjNhhhj`hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj`hM ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhj`hM hjGhhubj)}(hhh]h)}(h(Get the xattr security label of an inodeh]h(Get the xattr security label of an inode}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj_hhubah}(h]h ]h"]h$]h&]uh1jhjGhhhj`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhjyhNhNubj)}(hXh**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct inode *inode`` inode ``const char *name`` xattr name ``void **buffer`` security label buffer ``bool alloc`` allocation flag **Description** Retrieve a copy of the extended attribute representation of the security label associated with **name** for **inode** via **buffer**. Note that **name** is the remainder of the attribute name after the security prefix has been removed. **alloc** is used to specify if the call should return a value via the buffer or just the value length. **Return** Returns size of buffer on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~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.chM hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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}(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(``void **buffer`` security label buffer h](j)}(h``void **buffer``h]j)}(hjNh]h void **buffer}(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.chM hjHubj)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM hjubj)}(h``bool alloc`` allocation flag h](j)}(h``bool alloc``h]j)}(hjh]h bool alloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hallocation flagh]hallocation flag}(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)}(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}(hj(hhhNhNubah}(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.chM hj~ubh)}(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.chM hj~ubh)}(h"Returns size of buffer on success.h]h"Returns size of buffer on success.}(hjYhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hqint security_inode_setsecurity (struct inode *inode, const char *name, const void *value, size_t size, int flags)h]j)}(hpint security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_inode_setsecurityh]jm)}(hsecurity_inode_setsecurityh]hsecurity_inode_setsecurity}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(hR(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct inode *inodeh](j)}(hj6}h]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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hnameh]hname}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(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}(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&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhM hj}hhubj)}(hhh]h)}(h(Set the xattr security label of an inodeh]h(Set the xattr security label of an inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj|hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM hjubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h%``const void *value`` security label h](j)}(h``const void *value``h]j)}(hj2h]hconst void *value}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj,ubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hjubj)}(h)``size_t size`` length of security label h](j)}(h``size_t size``h]j)}(hjkh]h size_t size}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubj)}(hhh]h)}(hlength of security labelh]hlength of security label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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.chM hjubj)}(hhh]h)}(hflagsh]hflags}(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.chM hjubh)}(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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**size**h]hsize}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh indicates the size of the }(hjhhhNhNubj)}(h **value**h]hvalue}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in bytes. }(hjhhhNhNubj)}(h **flags**h]hflags}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that }(hjhhhNhNubj)}(h**name**h]hname}(hjihhhNhNubah}(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.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)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_getlsmprop (C function)c.security_inode_getlsmprophNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_inode_getlsmproph]jm)}(hsecurity_inode_getlsmproph]hsecurity_inode_getlsmprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubaYh}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h,(struct inode *inode, struct lsm_prop *prop)h](j)}(hstruct inode *inodeh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(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 jsbc.security_inode_getlsmpropasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_prop *proph](j)}(hj6}h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j@c.security_inode_getlsmpropasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hproph]hprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(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)}(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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct inode *inode`` inode ``struct lsm_prop *prop`` lsm specific information to return **Description** Get the lsm specific information associated with the node.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj4ubj)}(hhh]h)}(hinodeh]hinode}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj1ubj)}(h=``struct lsm_prop *prop`` lsm specific information to return h](j)}(h``struct lsm_prop *prop``h]j)}(hjsh]hstruct lsm_prop *prop}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjmubj)}(hhh]h)}(h"lsm specific information to returnh]h"lsm specific information to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhjyhhhNhNubh)}(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)}(hj6}h]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 kernfs_nodeh]h kernfs_node}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_kernfs_init_securityasbuh1hhj,ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hkn_dirh]hkn_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hstruct kernfs_node *knh](j)}(hj6}h]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 ]jjc.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&]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"Init LSM context for a kernfs nodeh]h"Init LSM context for a kernfs node}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM= hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM= ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhjyhNhNubj)}(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)}(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:283: ./security/security.chMA hj?ubj)}(hhh](j)}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j)}(h``struct kernfs_node *kn_dir``h]j)}(hjdh]hstruct kernfs_node *kn_dir}(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.chM> hj^ubj)}(hhh]h)}(hparent kernfs nodeh]hparent kernfs node}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhM> hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM> hj[ubj)}(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? 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hj?ubh)}(hlInitialize the security context of a newly created kernfs node based on its own and its parent's attributes.h]hnInitialize the security context of a newly created kernfs node based on its own and its parent’s attributes.}(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.chMC 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.chMD hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_file_permission (C function)c.security_file_permissionhNtauh1hhjyhhhNhNubh)}(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}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMM ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhMM ubjg)}(hsecurity_file_permissionh]jm)}(hsecurity_file_permissionh]hsecurity_file_permission}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhMM ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.security_file_permissionasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(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&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhMM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhMM ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMM hj9hhubj)}(hhh]h)}(hCheck file permissionsh]hCheck file permissions}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMM hj6hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct file *file`` file ``int mask`` requested permissions **Description** Check file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ hjUubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjzh]hstruct file *file}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMN hjtubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMN hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMN hjqubj)}(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.chMO hjubj)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMO hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMO hjqubeh}(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:283: ./security/security.chMQ hjUubh)}(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.chMP hjUubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\ hjUubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM] hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_file_alloc (C function)c.security_file_allochNtauh1hhjyhhhNhNubh)}(hhh](j)}(h+int security_file_alloc (struct file *file)h]j)}(h*int security_file_alloc(struct file *file)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.chMe ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhMe ubjg)}(hsecurity_file_alloch]jm)}(hsecurity_file_alloch]hsecurity_file_alloc}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhMe ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]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 j}sbc.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&]jjuh1jhjVhhhjhhMe ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhMe ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhMe hjOhhubj)}(hhh]h)}(h#Allocate and init a file's LSM blobh]h%Allocate and init a file’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMe ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhjyhNhNubj)}(hX%**Parameters** ``struct file *file`` the file **Description** Allocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created. **Return** Return 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMi hj6ubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hj[h]hstruct file *file}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMf hjUubj)}(hhh]h)}(hthe fileh]hthe file}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMf hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMf hjRubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMh hj6ubh)}(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.chMg hj6ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMj hj6ubh)}(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.chMk hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_release (C function)c.security_file_releasehNtauh1hhjyhhhNhNubh)}(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.chMz ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMz ubjg)}(hsecurity_file_releaseh]jm)}(hsecurity_file_releaseh]hsecurity_file_release}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMz ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubh)}(hhh]jm)}(hfileh]hfile}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]jR )}jE j%sbc.security_file_releaseasbuh1hhj;ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMz ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMz ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMz 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.chMz hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMz ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM{ hjubj)}(hhh]h)}(hthe fileh]hthe file}(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)}(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>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hjThhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_free (C function)c.security_file_freehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h+void security_file_free (struct file *file)h]j)}(h*void security_file_free(struct file *file)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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_freeh]jm)}(hsecurity_file_freeh]hsecurity_file_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]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*}(hj hhhNhNubah}(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&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhM ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjxhhubj)}(hhh]h)}(hFree a file's LSM blobh]hFree a file’s LSM blob}(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&]uh1jhjxhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhjyhNhNubj)}(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)}(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:283: ./security/security.chM hj_ubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubj)}(hhh]h)}(hthe fileh]hthe file}(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&]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)}(hGDeallocate and free any security structures stored in file->f_security.h]hGDeallocate and free any security structures stored in file->f_security.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_file (C function)c.security_mmap_filehNtauh1hhjyhhhNhNubh)}(hhh](j)}(hSint security_mmap_file (struct file *file, unsigned long prot, unsigned long flags)h]j)}(hRint security_mmap_file(struct file *file, unsigned long prot, unsigned long flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_mmap_fileh]jm)}(hsecurity_mmap_fileh]hsecurity_mmap_file}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h<(struct file *file, unsigned long prot, unsigned long flags)h](j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(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 reftargetjamodnameN classnameNjI jL )}jO ]jR )}jE j'sbc.security_mmap_fileasbuh1hhj=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hunsigned long proth](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)}(hproth]hprot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h#Check if mmap'ing a file is allowedh]h%Check if mmap’ing a file is allowed}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjyhNhNubj)}(hX0**Parameters** ``struct file *file`` file ``unsigned long prot`` protection applied by the kernel ``unsigned long flags`` flags **Description** Check permissions for a mmap operation. The **file** may be NULL, e.g. if mapping anonymous memory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hjh]hunsigned long prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``unsigned long flags`` flags h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hflagsh]hflags}(hj2hhhNhNubah}(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)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hdCheck permissions for a mmap operation. The **file** may be NULL, e.g. if mapping anonymous memory.h](h-Check permissions for a mmap operation. The }(hjjhhhNhNubj)}(h**file**h]hfile}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh/ may be NULL, e.g. if mapping anonymous memory.}(hjjhhhNhNubeh}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_addr (C function)c.security_mmap_addrhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h+int security_mmap_addr (unsigned long addr)h]j)}(h*int security_mmap_addr(unsigned long addr)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_mmap_addrh]jm)}(hsecurity_mmap_addrh]hsecurity_mmap_addr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(unsigned long addr)h]j)}(hunsigned long addrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(haddrh]haddr}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h'Check if mmap'ing an address is allowedh]h)Check if mmap’ing an address is allowed}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``unsigned long addr`` address **Description** Check permissions for a mmap operation at **addr**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]j)}(h``unsigned long addr`` address h](j)}(h``unsigned long addr``h]j)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(haddressh]haddress}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h3Check permissions for a mmap operation at **addr**.h](h*Check permissions for a mmap operation at }(hjhhhNhNubj)}(h**addr**h]haddr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hj&h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_mprotect (C function)c.security_file_mprotecthNtauh1hhjyhhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjyhM ubjg)}(hsecurity_file_mprotecth]jm)}(hsecurity_file_mprotecth]hsecurity_file_mprotect}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjyhM ubj)}(hG(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j)}(hstruct vm_area_struct *vmah](j)}(hj6}h]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}(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&]uh1jhjubjm)}(hreqproth]hreqprot}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long proth](j )}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hproth]hprot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjyhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjyhM ubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhjyhM hj`hhubj)}(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&]uh1jhj`hhhjyhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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&]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)}(h memory regionh]h memory region}(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 long reqprot`` application requested protection h](j)}(h``unsigned long reqprot``h]j)}(hjGh]hunsigned long reqprot}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAubj)}(hhh]h)}(h application requested protectionh]h application requested protection}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM hjubj)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hjh]hunsigned long prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(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&]uh1jhjzubeh}(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)}(hsecurity) in file->f_security for later use by the send_sigiotask hook. This hook is called with file->f_owner.lock held. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hj? h]h Parameters}(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.chM3 hj9 ubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hj^ h]hstruct file *file}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 hjX ubj)}(hhh]h)}(hthe fileh]hthe file}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs hM0 hjt ubah}(h]h ]h"]h$]h&]uh1jhjX ubeh}(h]h ]h"]h$]h&]uh1jhjs hM0 hjU ubah}(h]h ]h"]h$]h&]uh1jhj9 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.chM2 hj9 ubh)}(hSave owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook.h]hSave owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1 hj9 ubh)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 hj9 ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hj9 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.chM7 hj9 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h]int security_file_send_sigiotask (struct task_struct *tsk, struct fown_struct *fown, int sig)h]j)}(h\int security_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]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_file_send_sigiotaskh]jm)}(hsecurity_file_send_sigiotaskh]hsecurity_file_send_sigiotask}(hj5 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1 ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj" hM? ubj)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM ubj)}(h h]h }(hj^ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjo hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjq modnameN classnameNjI jL )}jO ]jR )}jE j7 sbc.security_file_send_sigiotaskasbuh1hhjM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM ubjm)}(htskh]htsk}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjI ubj)}(hstruct fown_struct *fownh](j)}(hj6}h]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 fown_structh]h fown_struct}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.security_file_send_sigiotaskasbuh1hhj 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)}(hfownh]hfown}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjI ubj)}(hint sigh](j )}(hinth]hint}(hj3 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ ubj)}(h h]h }(hjA hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ ubjm)}(hsigh]hsig}(hjO hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjI 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 sending SIGIO/SIGURG is allowedh]h(Check if sending SIGIO/SIGURG is allowed}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hjv hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj" hM? ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjyhNhNubj)}(hXH**Parameters** ``struct task_struct *tsk`` target task ``struct fown_struct *fown`` signal sender ``int sig`` signal to be sent, SIGIO is sent if 0 **Description** Check permission for the file owner **fown** to send SIGIO or SIGURG to the process **tsk**. Note that this hook is sometimes called from interrupt. Note that the fown_struct, **fown**, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC hj ubj)}(hhh](j)}(h(``struct task_struct *tsk`` target task h](j)}(h``struct task_struct *tsk``h]j)}(hj h]hstruct task_struct *tsk}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ hj ubj)}(hhh]h)}(h target taskh]h target task}(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+``struct fown_struct *fown`` signal sender h](j)}(h``struct fown_struct *fown``h]j)}(hj h]hstruct fown_struct *fown}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hj ubj)}(hhh]h)}(h signal senderh]h signal sender}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMA hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhMA hj ubj)}(h2``int sig`` signal to be sent, SIGIO is sent if 0 h](j)}(h ``int sig``h]j)}(hj,h]hint sig}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hj&ubj)}(hhh]h)}(h%signal to be sent, SIGIO is sent if 0h]h%signal to be sent, SIGIO is sent if 0}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMB hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMB 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hj ubh)}(hXhCheck permission for the file owner **fown** to send SIGIO or SIGURG to the process **tsk**. Note that this hook is sometimes called from interrupt. Note that the fown_struct, **fown**, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner).h](h$Check permission for the file owner }(hj}hhhNhNubj)}(h**fown**h]hfown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh( to send SIGIO or SIGURG to the process }(hj}hhhNhNubj)}(h**tsk**h]htsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubhW. Note that this hook is sometimes called from interrupt. Note that the fown_struct, }(hj}hhhNhNubj)}(h**fown**h]hfown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubh, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner).}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.chMI 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.chMJ hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_receive (C function)c.security_file_receivehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h-int security_file_receive (struct file *file)h]j)}(h,int security_file_receive(struct file *file)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMS ubjg)}(hsecurity_file_receiveh]jm)}(hsecurity_file_receiveh]hsecurity_file_receive}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMS ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubh)}(hhh]jm)}(hfileh]hfile}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jR )}jE j,sbc.security_file_receiveasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMS ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMS ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMS 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.chMS hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMS ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMW hjubj)}(hhh]j)}(h*``struct file *file`` file being received h](j)}(h``struct file *file``h]j)}(hj h]hstruct file *file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjubj)}(hhh]h)}(hfile being receivedh]hfile being received}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMT hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMT hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.chMV 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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjubh)}(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.chMX 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.chMY hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_open (C function)c.security_file_openhNtauh1hhjyhhhNhNubh)}(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.chMa ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMa ubjg)}(hsecurity_file_openh]jm)}(hsecurity_file_openh]hsecurity_file_open}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMa ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_openasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMa ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMa ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMa 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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMa ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMe 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.chMg 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.chMd 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.chMc 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.chMf 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.chMj 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.chMk hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_truncate (C function)c.security_file_truncatehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h.int security_file_truncate (struct file *file)h]j)}(h-int security_file_truncate(struct file *file)h](j )}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhM ubjg)}(hsecurity_file_truncateh]jm)}(hsecurity_file_truncateh]hsecurity_file_truncate}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj6}h]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jasbc.security_file_truncateasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(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%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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct file *file`` file **Description** Check permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the **path_truncate** hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]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)}(hj?h]hstruct file *file}(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)}(hfileh]hfile}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM hj6ubah}(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.chM hjubh)}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_task_alloc (C function)c.security_task_allochNtauh1hhjyhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_task_alloch]jm)}(hsecurity_task_alloch]hsecurity_task_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h+(struct task_struct *task, u64 clone_flags)h](j)}(hstruct task_struct *taskh](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_task_allocasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(htaskh]htask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hu64 clone_flagsh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]joc.security_task_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h clone_flagsh]h clone_flags}(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)}(hAllocate a task's LSM blobh]hAllocate a task’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct task_struct *task`` the task ``u64 clone_flags`` flags indicating what is being shared **Description** Handle allocation of task-related resources. **Return** Returns a zero on success, negative values on failure.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h&``struct task_struct *task`` the task h](j)}(h``struct task_struct *task``h]j)}(hjAh]hstruct task_struct *task}(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.chM hj;ubj)}(hhh]h)}(hthe taskh]hthe task}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhM hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM hj8ubj)}(h:``u64 clone_flags`` flags indicating what is being shared h](j)}(h``u64 clone_flags``h]j)}(hjzh]hu64 clone_flags}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjtubj)}(hhh]h)}(h%flags indicating what is being sharedh]h%flags indicating what is being shared}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM hj8ubeh}(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,Handle allocation of task-related resources.h]h,Handle allocation of task-related resources.}(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)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_task_free (C function)c.security_task_freehNtauh1hhjyhhhNhNubh)}(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 hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj/hM ubjg)}(hsecurity_task_freeh]jm)}(hsecurity_task_freeh]hsecurity_task_free}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hM ubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(h task_structh]h task_struct}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE jDsbc.security_task_freeasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(htaskh]htask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hM hjhhubj)}(hhh]h)}(h,Free a task's LSM blob and related resourcesh]h.Free a task’s LSM blob and related resources}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hjh]h 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 *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 hjubj)}(hhh]h)}(htaskh]htask}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM hjubah}(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_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.}(hjshhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hsecurity field in a set of credentials.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 cred *cred`` credentials h](j)}(h``struct cred *cred``h]j)}(hjh]hstruct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h credentialsh]h credentials}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_prepare_creds (C function)c.security_prepare_credshNtauh1hhjyhhhNhNubh)}(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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjlhM ubjg)}(hsecurity_prepare_credsh]jm)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjlhM ubj)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j)}(hstruct cred *newh](j)}(hj6}h]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 ]jR )}jE jsbc.security_prepare_credsasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hj6}h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hcredh]hcred}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jc.security_prepare_credsasbuh1hhj ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(holdh]hold}(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_prepare_credsasbuh1hhjubj)}(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&]jjuh1jhjZhhhjlhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhM ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhM hjShhubj)}(hhh]h)}(h Prepare a new set of credentialsh]h Prepare a new set of credentials}(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&]uh1jhjShhhjlhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjyhNhNubj)}(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)}(hjh]h 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 cred *new`` new credentials h](j)}(h``struct cred *new``h]j)}(hj2h]hstruct cred *new}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj,ubj)}(hhh]h)}(hnew credentialsh]hnew credentials}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hj)ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hjkh]hconst struct cred *old}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubj)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM hj)ubj)}(h``gfp_t gfp`` gfp flags h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 gfp flagsh]h gfp flags}(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&]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.}(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)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_transfer_creds (C function)c.security_transfer_credshNtauh1hhjyhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjYhM ubjg)}(hsecurity_transfer_credsh]jm)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjYhM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hj6}h]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 ]jR )}jE jnsbc.security_transfer_credsasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jc.security_transfer_credsasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhM ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhM hj@hhubj)}(hhh]h)}(hTransfer credsh]hTransfer creds}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hjh]h 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 cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hjh]hstruct cred *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(htarget credentialsh]htarget credentials}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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 hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjK h]h Description}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h/Transfer data from original creds to new creds.h]h/Transfer data from original creds to new creds.}(hja 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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_kernel_act_as (C function)c.security_kernel_act_ashNtauh1hhjyhhhNhNubh)}(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)}(hj6}h]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}(hjB!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjD!modnameN classnameNjI jL )}jO ]j!c.security_kernel_act_asasbuh1hhj;!ubj)}(h h]h }(hj`!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;!ubjm)}(hsecidh]hsecid}(hjn!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*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&]uh1jhj hhhj hM$ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjyhNhNubj)}(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)}(hjM"h]h Description}(hjO"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM( hj!ubh)}(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 }(hjc"hhhNhNubj)}(h **secid**h]hsecid}(hjk"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc"ubh.}(hjc"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 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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhjyhhhNhNubh)}(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.chM3 ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhj"hM3 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"hM3 ubj)}(h'(struct cred *new, struct inode *inode)h](j)}(hstruct cred *newh](j)}(hj6}h]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 }(hjF#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hjT#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hnewh]hnew}(hja#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct inode *inodeh](j)}(hj6}h]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)}(hinodeh]hinode}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]jB#!c.security_kernel_create_files_asasbuh1hhjv#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)}(hinodeh]hinode}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjv#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj"hM3 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hM3 ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hM3 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.chM3 hj#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hM3 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhjyhNhNubj)}(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)}(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.chM7 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.chM4 hj6$ubj)}(hhh]h)}(htarget credentialsh]htarget credentials}(hjU$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ$hM4 hjR$ubah}(h]h ]h"]h$]h&]uh1jhj6$ubeh}(h]h ]h"]h$]h&]uh1jhjQ$hM4 hj3$ubj)}(h(``struct inode *inode`` reference inode h](j)}(h``struct inode *inode``h]j)}(hju$h]hstruct inode *inode}(hjw$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 hjo$ubj)}(hhh]h)}(hreference inodeh]hreference inode}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM5 hj$ubah}(h]h ]h"]h$]h&]uh1jhjo$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM5 hj3$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.chM7 hj$ubh)}(hSet the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated **inode**.h](hSet the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated }(hj$hhhNhNubj)}(h **inode**h]hinode}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hj$ubh)}(h **Return**h]j)}(hj$h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM: hj$ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM; hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhjyhhhNhNubh)}(hhh](j)}(h4int security_kernel_module_request (char *kmod_name)h]j)}(h3int security_kernel_module_request(char *kmod_name)h](j )}(hinth]hint}(hj.%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC ubj)}(h h]h }(hj=%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*%hhhj<%hMC ubjg)}(hsecurity_kernel_module_requesth]jm)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hjO%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*%hhhj<%hMC ubj)}(h(char *kmod_name)h]j)}(hchar *kmod_nameh](j )}(hcharh]hchar}(hjk%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjg%ubj)}(h h]h }(hjy%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg%ubjm)}(h kmod_nameh]h kmod_name}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc%ubah}(h]h ]h"]h$]h&]jjuh1jhj*%hhhj<%hMC ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&%hhhj<%hMC ubah}(h]j!%ah ](jjeh"]h$]h&]jj)jhuh1hhj<%hMC hj#%hhubj)}(hhh]h)}(h$Check if loading a module is allowedh]h$Check if loading a module is allowed}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC hj%hhubah}(h]h ]h"]h$]h&]uh1jhj#%hhhj<%hMC ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``char *kmod_name`` module name **Description** Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMG hj%ubj)}(hhh]j)}(h ``char *kmod_name`` module name h](j)}(h``char *kmod_name``h]j)}(hj%h]hchar *kmod_name}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hj%ubj)}(hhh]h)}(h module nameh]h module name}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMD hj&ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj&hMD hj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubh)}(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:283: ./security/security.chMF hj%ubh)}(h}Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name.h]h}Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name.}(hjP&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chME hj%ubh)}(h **Return**h]j)}(hja&h]hReturn}(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.chMH hj%ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hjw&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMI hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hRint security_task_fix_setuid (struct cred *new, const struct cred *old, int flags)h]j)}(hQint security_task_fix_setuid(struct cred *new, const struct cred *old, int flags)h](j )}(hinth]hint}(hj&hhhNhNubah}(h]h ]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_fix_setuidh]jm)}(hsecurity_task_fix_setuidh]hsecurity_task_fix_setuid}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj&hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hj6}h]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_task_fix_setuidasbuh1hhj&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}(hjU'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ'ubj)}(h h]h }(hjb'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ'ubj)}(hj6}h]hstruct}(hjp'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ'ubj)}(h h]h }(hj}'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ'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_task_fix_setuidasbuh1hhjQ'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ'ubjm)}(holdh]hold}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQ'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(h int flagsh](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)}(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&Update LSM with new user id attributesh]h&Update LSM with new user id attributes}(hj&(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj#(hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>(jj>(jjjuh1hhhhjyhNhNubj)}(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)}(hjH(h]h Parameters}(hjJ(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjB(ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjg(h]hstruct cred *new}(hji(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hja(ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|(hM hj}(ubah}(h]h ]h"]h$]h&]uh1jhja(ubeh}(h]h ]h"]h$]h&]uh1jhj|(hM hj^(ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj(h]hconst struct cred *old}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(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&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM hj^(ubj)}(h&``int flags`` LSM_SETID_* flag values h](j)}(h ``int flags``h]j)}(hj(h]h int flags}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(ubj)}(hhh]h)}(hLSM_SETID_* flag valuesh]hLSM_SETID_* flag values}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM hj^(ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjB(ubh)}(hXIUpdate the module's state after setting one or more of the user identity attributes of the current process. The **flags** parameter indicates which of the set*uid system calls invoked this hook. If **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](hsUpdate the module’s state after setting one or more of the user identity attributes of the current process. The }(hj*)hhhNhNubj)}(h **flags**h]hflags}(hj2)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*)ubhN parameter indicates which of the set*uid system calls invoked this hook. If }(hj*)hhhNhNubj)}(h**new**h]hnew}(hjD)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}(hjV)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 hjB(ubh)}(h **Return**h]j)}(hjq)h]hReturn}(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 hjB(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 hjB(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hRint security_task_fix_setgid (struct cred *new, const struct cred *old, int flags)h]j)}(hQint security_task_fix_setgid(struct cred *new, const struct cred *old, int flags)h](j )}(hinth]hint}(hj)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_fix_setgidh]jm)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj)hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hj6}h]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_task_fix_setgidasbuh1hhj)ubj)}(h h]h }(hj1*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hj?*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hnewh]hnew}(hjL*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hje*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja*ubj)}(h h]h }(hjr*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja*ubj)}(hj6}h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja*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_task_fix_setgidasbuh1hhja*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhja*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja*ubjm)}(holdh]hold}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h int flagsh](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)}(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'Update LSM with new group id attributesh]h'Update LSM with new group id attributes}(hj6+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3+hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjN+jjN+jjjuh1hhhhjyhNhNubj)}(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)}(hjX+h]h Parameters}(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 hjR+ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjw+h]hstruct cred *new}(hjy+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjq+ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhjq+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hjn+ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj+h]hconst struct cred *old}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+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&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hjn+ubj)}(h%``int flags`` LSM_SETID_* flag value h](j)}(h ``int flags``h]j)}(hj+h]h int flags}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+ubj)}(hhh]h)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hjn+ubeh}(h]h ]h"]h$]h&]uh1jhjR+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 hjR+ubh)}(hXGUpdate the module's state after setting one or more of the group identity attributes of the current process. The **flags** parameter indicates which of the set*gid system calls invoked this hook. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](htUpdate the module’s state after setting one or more of the group identity attributes of the current process. The }(hj:,hhhNhNubj)}(h **flags**h]hflags}(hjB,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:,ubhK parameter indicates which of the set*gid system calls invoked this hook. }(hj:,hhhNhNubj)}(h**new**h]hnew}(hjT,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}(hjf,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 hjR+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 hjR+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 hjR+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhjyhhhNhNubh)}(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}(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_fix_setgroupsh]jm)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj,hM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hj6}h]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_task_fix_setgroupsasbuh1hhj,ubj)}(h h]h }(hjA-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hjO-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}(hju-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq-ubj)}(hj6}h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq-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_task_fix_setgroupsasbuh1hhjq-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq-ubjm)}(holdh]hold}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq-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(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&]uh1jhj,hhhj,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj).jj).jjjuh1hhhhjyhNhNubj)}(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)}(hj3.h]h Parameters}(hj5.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj-.ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjR.h]hstruct cred *new}(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.chM hjL.ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjk.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg.hM hjh.ubah}(h]h ]h"]h$]h&]uh1jhjL.ubeh}(h]h ]h"]h$]h&]uh1jhjg.hM hjI.ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj.h]hconst struct cred *old}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.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&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjI.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)h]j)}(h4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj64ubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj[4h]hstruct task_struct *p}(hj]4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjU4ubj)}(hhh]h)}(htaskh]htask}(hjt4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp4hM hjq4ubah}(h]h ]h"]h$]h&]uh1jhjU4ubeh}(h]h ]h"]h$]h&]uh1jhjp4hM hjR4ubah}(h]h ]h"]h$]h&]uh1jhj64ubh)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj64ubh)}(hLCheck permission before getting the session identifier of the process **p**.h](hFCheck permission before getting the session identifier of the process }(hj4hhhNhNubj)}(h**p**h]hp}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj64ubh)}(h **Return**h]j)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj64ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj64ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setnice (C function)c.security_task_setnicehNtauh1hhjyhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj#5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj"5hMubjg)}(hsecurity_task_setniceh]jm)}(hsecurity_task_setniceh]hsecurity_task_setnice}(hj55hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj15ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj"5hMubj)}(h!(struct task_struct *p, int nice)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hjQ5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM5ubj)}(h h]h }(hj^5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM5ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjo5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjq5modnameN classnameNjI jL )}jO ]jR )}jE j75sbc.security_task_setniceasbuh1hhjM5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM5ubjm)}(hjh]hp}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjI5ubj)}(hint niceh](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hniceh]hnice}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjI5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj"5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj 5hhhj"5hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj"5hMhj 5hhubj)}(hhh]h)}(h/Check if setting a task's nice value is allowedh]h1Check if setting a task’s nice value is allowed}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6hhubah}(h]h ]h"]h$]h&]uh1jhj 5hhhj"5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 6jj 6jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct task_struct *p`` target task ``int nice`` nice value **Description** Check permission before setting the nice value of **p** to **nice**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj*6h]h Parameters}(hj,6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$6ubj)}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjI6h]hstruct task_struct *p}(hjK6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjC6ubj)}(hhh]h)}(h target taskh]h target task}(hjb6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^6hMhj_6ubah}(h]h ]h"]h$]h&]uh1jhjC6ubeh}(h]h ]h"]h$]h&]uh1jhj^6hMhj@6ubj)}(h``int nice`` nice value h](j)}(h ``int nice``h]j)}(hj6h]hint nice}(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.chMhj|6ubj)}(hhh]h)}(h nice valueh]h nice value}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj|6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj@6ubeh}(h]h ]h"]h$]h&]uh1jhj$6ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$6ubh)}(hDCheck permission before setting the nice value of **p** to **nice**.h](h2Check permission before setting the nice value of }(hj6hhhNhNubj)}(h**p**h]hp}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh to }(hj6hhhNhNubj)}(h**nice**h]hnice}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$6ubh)}(h **Return**h]j)}(hj7h]hReturn}(hj 7hhhNhNubah}(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 hj$6ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hj$6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setioprio (C function)c.security_task_setiopriohNtauh1hhjyhhhNhNubh)}(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}(hjM7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)ubj)}(h h]h }(hj\7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI7hhhj[7hM)ubjg)}(hsecurity_task_setioprioh]jm)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hjn7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjI7hhhj[7hM)ubj)}(h#(struct task_struct *p, int ioprio)h](j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jp7sbc.security_task_setioprioasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hjh]hp}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(h int ioprioh](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hj 8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubjm)}(hioprioh]hioprio}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjI7hhhj[7hM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjE7hhhj[7hM)ubah}(h]j@7ah ](jjeh"]h$]h&]jj)jhuh1hhj[7hM)hjB7hhubj)}(hhh]h)}(h+Check if setting a task's ioprio is allowedh]h-Check if setting a task’s ioprio is allowed}(hjA8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj>8hhubah}(h]h ]h"]h$]h&]uh1jhjB7hhhj[7hM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjY8jjY8jjjuh1hhhhjyhNhNubj)}(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)}(hjc8h]h Parameters}(hje8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hj]8ubj)}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj8h]hstruct task_struct *p}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hj|8ubj)}(hhh]h)}(h target taskh]h target task}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM*hj8ubah}(h]h ]h"]h$]h&]uh1jhj|8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM*hjy8ubj)}(h``int ioprio`` ioprio value h](j)}(h``int ioprio``h]j)}(hj8h]h int ioprio}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hj8ubj)}(hhh]h)}(h ioprio valueh]h ioprio value}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM+hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM+hjy8ubeh}(h]h ]h"]h$]h&]uh1jhj]8ubh)}(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-hj]8ubh)}(hHCheck permission before setting the ioprio value of **p** to **ioprio**.h](h4Check permission before setting the ioprio value of }(hj 9hhhNhNubj)}(h**p**h]hp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh to }(hj 9hhhNhNubj)}(h **ioprio**h]hioprio}(hj&9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubh.}(hj 9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hj]8ubh)}(h **Return**h]j)}(hjA9h]hReturn}(hjC9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hj]8ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjW9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hj]8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_getioprio (C function)c.security_task_getiopriohNtauh1hhjyhhhNhNubh)}(hhh](j)}(h3int security_task_getioprio (struct task_struct *p)h]j)}(h2int security_task_getioprio(struct task_struct *p)h](j )}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhj9hM7ubjg)}(hsecurity_task_getioprioh]jm)}(hsecurity_task_getioprioh]hsecurity_task_getioprio}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhj9hM7ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE j9sbc.security_task_getioprioasbuh1hhj9ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hjh]hp}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~9hhhj9hM7ubah}(h]jy9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM7hj{9hhubj)}(hhh]h)}(h+Check if getting a task's ioprio is allowedh]h-Check if getting a task’s ioprio is allowed}(hjE:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjB:hhubah}(h]h ]h"]h$]h&]uh1jhj{9hhhj9hM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]:jj]:jjjuh1hhhhjyhNhNubj)}(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)}(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.chM;hja: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.chM8hj:ubj)}(hhh]h)}(htaskh]htask}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM8hj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM8hj}: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.chM:hja:ubh)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(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.chM9hja:ubh)}(h **Return**h]j)}(hj:h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hja:ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hja:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_prlimit (C function)c.security_task_prlimithNtauh1hhjyhhhNhNubh)}(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}(hj?;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;;hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDubj)}(h h]h }(hjN;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;;hhhjM;hMDubjg)}(hsecurity_task_prlimith]jm)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hj`;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;;hhhjM;hMDubj)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hj|;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjx;ubj)}(hj6}h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjx;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 jb;sbc.security_task_prlimitasbuh1hhjx;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjx;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx;ubjm)}(hcredh]hcred}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjx;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjt;ubj)}(hconst struct cred *tcredh](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)}(hj6}h]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)}(hcredh]hcred}(hjB<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjD<modnameN classnameNjI jL )}jO ]j;c.security_task_prlimitasbuh1hhj<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)}(htcredh]htcred}(hj{<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjt;ubj)}(hunsigned int 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 )}(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)}(hflagsh]hflags}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjt;ubeh}(h]h ]h"]h$]h&]jjuh1jhj;;hhhjM;hMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7;hhhjM;hMDubah}(h]j2;ah ](jjeh"]h$]h&]jj)jhuh1hhjM;hMDhj4;hhubj)}(hhh]h)}(h0Check if get/setting resources limits is allowedh]h0Check if get/setting resources limits is allowed}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhj<hhubah}(h]h ]h"]h$]h&]uh1jhj4;hhhjM;hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1hhhhjyhNhNubj)}(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=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.chMHhj=ubj)}(hhh](j)}(h5``const struct cred *cred`` current task credentials h](j)}(h``const struct cred *cred``h]j)}(hj7=h]hconst struct cred *cred}(hj9=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhj1=ubj)}(hhh]h)}(hcurrent task credentialsh]hcurrent task credentials}(hjP=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL=hMEhjM=ubah}(h]h ]h"]h$]h&]uh1jhj1=ubeh}(h]h ]h"]h$]h&]uh1jhjL=hMEhj.=ubj)}(h5``const struct cred *tcred`` target task credentials h](j)}(h``const struct cred *tcred``h]j)}(hjp=h]hconst struct cred *tcred}(hjr=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjj=ubj)}(hhh]h)}(htarget task credentialsh]htarget task credentials}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMFhj=ubah}(h]h ]h"]h$]h&]uh1jhjj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMFhj.=ubj)}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both h](j)}(h``unsigned int flags``h]j)}(hj=h]hunsigned int flags}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhj=ubj)}(hhh]h)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMGhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMGhj.=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.chMIhj=ubh)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhj=ubh)}(h **Return**h]j)}(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.chMKhj=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.chMLhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhjyhhhNhNubh)}(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}(hjP>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjL>hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUubj)}(h h]h }(hj_>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL>hhhj^>hMUubjg)}(hsecurity_task_setrlimith]jm)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hjq>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjL>hhhj^>hMUubj)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j)}(hstruct task_struct *ph](j)}(hj6}h]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 js>sbc.security_task_setrlimitasbuh1hhj>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>ubj)}(hunsigned int resourceh](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)}(hresourceh]hresource}(hj6?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hstruct rlimit *new_rlimh](j)}(hj6}h]hstruct}(hjO?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK?ubj)}(h h]h }(hj\?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK?ubh)}(hhh]jm)}(hrlimith]hrlimit}(hjm?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjo?modnameN classnameNjI jL )}jO ]j>c.security_task_setrlimitasbuh1hhjK?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjK?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK?ubjm)}(hnew_rlimh]hnew_rlim}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhjL>hhhj^>hMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjH>hhhj^>hMUubah}(h]jC>ah ](jjeh"]h$]h&]jj)jhuh1hhj^>hMUhjE>hhubj)}(hhh]h)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhj?hhubah}(h]h ]h"]h$]h&]uh1jhjE>hhhj^>hMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhjyhNhNubj)}(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)}(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.chMYhj?ubj)}(hhh](j)}(h5``struct task_struct *p`` target task's group leader 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.chMVhj @ubj)}(hhh]h)}(htarget task's group leaderh]htarget task’s group leader}(hj*@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&@hMVhj'@ubah}(h]h ]h"]h$]h&]uh1jhj @ubeh}(h]h ]h"]h$]h&]uh1jhj&@hMVhj@ubj)}(h<``unsigned int resource`` resource whose limit is being set h](j)}(h``unsigned int resource``h]j)}(hjJ@h]hunsigned int resource}(hjL@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjD@ubj)}(hhh]h)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hjc@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_@hMWhj`@ubah}(h]h ]h"]h$]h&]uh1jhjD@ubeh}(h]h ]h"]h$]h&]uh1jhj_@hMWhj@ubj)}(h/``struct rlimit *new_rlim`` new resource limit h](j)}(h``struct rlimit *new_rlim``h]j)}(hj@h]hstruct rlimit *new_rlim}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhj}@ubj)}(hhh]h)}(hnew resource limith]hnew resource limit}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMXhj@ubah}(h]h ]h"]h$]h&]uh1jhj}@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMXhj@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.chMZhj?ubh)}(hCheck permission before setting the resource limits of process **p** for **resource** to **new_rlim**. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).h](h?Check permission before setting the resource limits of process }(hj@hhhNhNubj)}(h**p**h]hp}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh for }(hj@hhhNhNubj)}(h **resource**h]hresource}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh to }(hj@hhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj?ubh)}(h **Return**h]j)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj?ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj1AhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h6int security_task_setscheduler (struct task_struct *p)h]j)}(h5int security_task_setscheduler(struct task_struct *p)h](j )}(hinth]hint}(hj`AhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\AhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMgubj)}(h h]h }(hjoAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\AhhhjnAhMgubjg)}(hsecurity_task_setschedulerh]jm)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}Aubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\AhhhjnAhMgubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]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.security_task_setschedulerasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hjh]hp}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubah}(h]h ]h"]h$]h&]jjuh1jhj\AhhhjnAhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXAhhhjnAhMgubah}(h]jSAah ](jjeh"]h$]h&]jj)jhuh1hhjnAhMghjUAhhubj)}(hhh]h)}(h.Check if setting sched policy/param is allowedh]h.Check if setting sched policy/param is allowed}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjBhhubah}(h]h ]h"]h$]h&]uh1jhjUAhhhjnAhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7Bjj7Bjjjuh1hhhhjyhNhNubj)}(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)}(hjABh]h Parameters}(hjCBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Bubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj;Bubj)}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj`Bh]hstruct task_struct *p}(hjbBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhjZBubj)}(hhh]h)}(h target taskh]h target task}(hjyBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuBhMhhjvBubah}(h]h ]h"]h$]h&]uh1jhjZBubeh}(h]h ]h"]h$]h&]uh1jhjuBhMhhjWBubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhj;Bubh)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of process }(hjBhhhNhNubj)}(h**p**h]hp}(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.chMihj;Bubh)}(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.chMlhj;Bubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhj;Bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h6int security_task_getscheduler (struct task_struct *p)h]j)}(h5int security_task_getscheduler(struct task_struct *p)h](j )}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuubj)}(h h]h }(hj(ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhj'ChMuubjg)}(hsecurity_task_getschedulerh]jm)}(hsecurity_task_getschedulerh]hsecurity_task_getscheduler}(hj:ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6Cubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhj'ChMuubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj6}h]hstruct}(hjVChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRCubj)}(h h]h }(hjcChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRCubh)}(hhh]jm)}(h task_structh]h task_struct}(hjtChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvCmodnameN classnameNjI jL )}jO ]jR )}jE jsecurity 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)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubj)}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hj#Wh]hstruct msg_msg *msg}(hj%WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Wubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubj)}(hhh]h)}(hmessage structureh]hmessage structure}(hjsecurity 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.}(hjtWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubh)}(h **Return**h]j)}(hjWh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubh)}(h?Return 0 if operation was successful and permission is granted.h]h?Return 0 if operation was successful and permission is granted.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhjyhhhNhNubh)}(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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhjWhMubjg)}(hsecurity_msg_msg_freeh]jm)}(hsecurity_msg_msg_freeh]hsecurity_msg_msg_free}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhjWhMubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hj6}h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hj%XhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"Xubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'XmodnameN classnameNjI jL )}jO ]jR )}jE jWsbc.security_msg_msg_freeasbuh1hhjXubj)}(h h]h }(hjEXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjSXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hmsgh]hmsg}(hj`XhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjWhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhjWhhubj)}(hhh]h)}(h Free a sysv ipc message LSM blobh]h Free a sysv ipc message LSM blob}(hjXhhhNhNubah}(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&]uh1jhjWhhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubj)}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjXh]hstruct msg_msg *msg}(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.chMhjXubj)}(hhh]h)}(hmessage structureh]hmessage structure}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubah}(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:283: ./security/security.chMhjXubh)}(h3Deallocate the security structure for this message.h]h3Deallocate the security structure for this message.}(hjYhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhjyhhhNhNubh)}(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}(hjKYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjZYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGYhhhjYYhMubjg)}(hsecurity_msg_queue_alloch]jm)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hjlYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGYhhhjYYhMubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jR )}jE jnYsbc.security_msg_queue_allocasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hmsqh]hmsq}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhjGYhhhjYYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjCYhhhjYYhMubah}(h]j>Yah ](jjeh"]h$]h&]jj)jhuh1hhjYYhMhj@Yhhubj)}(hhh]h)}(h&Allocate a sysv ipc msg queue LSM blobh]h&Allocate a sysv ipc msg queue LSM blob}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhj@YhhhjYYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#Zjj#Zjjjuh1hhhhjyhNhNubj)}(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)}(hj-Zh]h Parameters}(hj/ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Zubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'Zubj)}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjLZh]hstruct kern_ipc_perm *msq}(hjNZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFZubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjeZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaZhMhjbZubah}(h]h ]h"]h$]h&]uh1jhjFZubeh}(h]h ]h"]h$]h&]uh1jhjaZhMhjCZubah}(h]h ]h"]h$]h&]uh1jhj'Zubh)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'Zubh)}(hAllocate and attach a security structure to **msg**. The security field is initialized to NULL when the structure is first created.h](h,Allocate and attach a security structure to }(hjZhhhNhNubj)}(h**msg**h]hmsg}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubhP. The security field is initialized to NULL when the structure is first created.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'Zubh)}(h **Return**h]j)}(hjZh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hj'Zubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj'Zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_msg_queue_free (C function)c.security_msg_queue_freehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h8void security_msg_queue_free (struct kern_ipc_perm *msq)h]j)}(h7void security_msg_queue_free(struct kern_ipc_perm *msq)h](j )}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhj[hM1ubjg)}(hsecurity_msg_queue_freeh]jm)}(hsecurity_msg_queue_freeh]hsecurity_msg_queue_free}(hj&[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhj[hM1ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]hstruct}(hjB[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>[ubj)}(h h]h }(hjO[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 reftargetjb[modnameN classnameNjI jL )}jO ]jR )}jE j([sbc.security_msg_queue_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)}(hmsqh]hmsq}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:[ubah}(h]h ]h"]h$]h&]jjuh1jhj[hhhj[hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhj[hM1ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj[hM1hjZhhubj)}(hhh]h)}(h"Free a sysv ipc msg queue LSM blobh]h"Free a sysv ipc msg queue LSM blob}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhj[hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure **Description** Deallocate security field **perm->security** for the message queue.h](h)}(h**Parameters**h]j)}(hj[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.chM5hj[ubj)}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj\h]hstruct kern_ipc_perm *msq}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hj\ubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission 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[ubah}(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.chM4hj[ubh)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjW\hhhNhNubj)}(h**perm->security**h]hperm->security}(hj_\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW\ubh for the message queue.}(hjW\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhjyhhhNhNubh)}(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}(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_msg_queue_associateh]jm)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhj\hM>ubj)}(h'(struct kern_ipc_perm *msq, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]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 j\sbc.security_msg_queue_associateasbuh1hhj\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)}(hmsqh]hmsq}(hj.]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(h int msqflgh](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)}(hmsqflgh]hmsqflg}(hjc]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjC]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 a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hj]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhjyhNhNubj)}(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)}(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.chMBhj]ubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj]h]hstruct kern_ipc_perm *msq}(hj]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``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hj^h]h int msqflg}(hj ^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)}(hoperation flagsh]hoperation 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)}(hjB^h]h Description}(hjD^hhhNhNubah}(h]h ]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)}(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.}(hjX^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhj]ubh)}(h **Return**h]j)}(hji^h]hReturn}(hjk^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhj]ubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhjyhhhNhNubh)}(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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhj^hMNubjg)}(hsecurity_msg_queue_msgctlh]jm)}(hsecurity_msg_queue_msgctlh]hsecurity_msg_queue_msgctl}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj^hMNubj)}(h$(struct kern_ipc_perm *msq, int cmd)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]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 j^sbc.security_msg_queue_msgctlasbuh1hhj^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)}(hmsqh]hmsq}(hjD_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hint cmdh](j )}(hinth]hint}(hj]_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjY_ubj)}(h h]h }(hjk_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjY_ubjm)}(hcmdh]hcmd}(hjy_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjY_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhj^hMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj^hMNubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMNhj^hhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhj_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhjyhNhNubj)}(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)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhj_ubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj_h]hstruct kern_ipc_perm *msq}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhj_ubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMOhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMOhj_ubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hj`h]hint cmd}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhj`ubj)}(hhh]h)}(h operationh]h operation}(hj6`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2`hMPhj3`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj2`hMPhj_ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhj_ubh)}(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 }(hjn`hhhNhNubj)}(h**cmd**h]hcmd}(hjv`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn`ubh: is to be performed on the message queue with permissions.}(hjn`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhj_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.chMThj_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.chMUhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgsnd (C function)c.security_msg_queue_msgsndhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hZint security_msg_queue_msgsnd (struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h]j)}(hYint security_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j )}(hinth]hint}(hj`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_msg_queue_msgsndh]jm)}(hsecurity_msg_queue_msgsndh]hsecurity_msg_queue_msgsnd}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhj`hM]ubj)}(h<(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hj ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj1ahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3amodnameN classnameNjI jL )}jO ]jR )}jE j`sbc.security_msg_queue_msgsndasbuh1hhjaubj)}(h h]h }(hjQahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hj_ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hmsqh]hmsq}(hjlahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj aubj)}(hstruct msg_msg *msgh](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjamodnameN classnameNjI jL )}jO ]jMac.security_msg_queue_msgsndasbuh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hmsgh]hmsg}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj aubj)}(h int msqflgh](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubjm)}(hmsqflgh]hmsqflg}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj aubeh}(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 sending a sysv ipc message is allowedh]h.Check if sending a sysv ipc message is allowed}(hj;bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj8bhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSbjjSbjjjuh1hhhhjyhNhNubj)}(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)}(hj]bh]h Parameters}(hj_bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[bubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjWbubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj|bh]hstruct kern_ipc_perm *msq}(hj~bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hjvbubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM^hjbubah}(h]h ]h"]h$]h&]uh1jhjvbubeh}(h]h ]h"]h$]h&]uh1jhjbhM^hjsbubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hjbh]hstruct msg_msg *msg}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjbubj)}(hhh]h)}(hmessageh]hmessage}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM_hjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhM_hjsbubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjbh]h int msqflg}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjbubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM`hjcubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjchM`hjsbubeh}(h]h ]h"]h$]h&]uh1jhjWbubh)}(h**Description**h]j)}(hj)ch]h Description}(hj+chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'cubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjWbubh)}(hsCheck permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**.h](h#Check permission before a message, }(hj?chhhNhNubj)}(h**msg**h]hmsg}(hjGchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?cubhA, is enqueued on the message queue with permissions specified in }(hj?chhhNhNubj)}(h**msq**h]hmsq}(hjYchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?cubh.}(hj?chhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjWbubh)}(h **Return**h]j)}(hjtch]hReturn}(hjvchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjWbubh)}(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.chMehjWbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhjyhhhNhNubh)}(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}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjchMnubjg)}(hsecurity_msg_queue_msgrcvh]jm)}(hsecurity_msg_queue_msgrcvh]hsecurity_msg_queue_msgrcv}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjchMnubj)}(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)}(hj6}h]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE jcsbc.security_msg_queue_msgrcvasbuh1hhjcubj)}(h h]h }(hj4dhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjBdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hmsqh]hmsq}(hjOdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct msg_msg *msgh](j)}(hj6}h]hstruct}(hjhdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjddubj)}(h h]h }(hjudhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjddubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]j0dc.security_msg_queue_msgrcvasbuh1hhjddubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjddubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjddubjm)}(hmsgh]hmsg}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjddubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hstruct task_struct *targeth](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(h task_structh]h task_struct}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]j0dc.security_msg_queue_msgrcvasbuh1hhjdubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hj"ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(htargeth]htarget}(hj/ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h long typeh](j )}(hlongh]hlong}(hjHehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDeubj)}(h h]h }(hjVehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDeubjm)}(htypeh]htype}(hjdehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hint modeh](j )}(hinth]hint}(hj}ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyeubjm)}(hmodeh]hmode}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjchMnubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjchMnubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjchMnhjchhubj)}(hhh]h)}(h,Check if receiving a sysv ipc msg is allowedh]h,Check if receiving a sysv ipc msg is allowed}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhjehhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhjyhNhNubj)}(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)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjeubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjfh]hstruct kern_ipc_perm *msq}(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.chMohjeubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMohjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjfhMohjeubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hj=fh]hstruct msg_msg *msg}(hj?fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;fubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphj7fubj)}(hhh]h)}(hmessageh]hmessage}(hjVfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRfhMphjSfubah}(h]h ]h"]h$]h&]uh1jhj7fubeh}(h]h ]h"]h$]h&]uh1jhjRfhMphjeubj)}(h+``struct task_struct *target`` target task h](j)}(h``struct task_struct *target``h]j)}(hjvfh]hstruct task_struct *target}(hjxfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjpfubj)}(hhh]h)}(h target taskh]h target task}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMqhjfubah}(h]h ]h"]h$]h&]uh1jhjpfubeh}(h]h ]h"]h$]h&]uh1jhjfhMqhjeubj)}(h(``long type`` type of message requested h](j)}(h ``long type``h]j)}(hjfh]h long type}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjfubj)}(hhh]h)}(htype of message requestedh]htype of message requested}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMrhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMrhjeubj)}(h``int mode`` operation flags h](j)}(h ``int mode``h]j)}(hjfh]hint mode}(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.chMshjfubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMshjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMshjeubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(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:283: ./security/security.chMuhjeubh)}(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, }(hj9ghhhNhNubj)}(h**msg**h]hmsg}(hjAghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9gubh), is removed from the message queue. The }(hj9ghhhNhNubj)}(h **target**h]htarget}(hjSghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9gubh 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).}(hj9ghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjeubh)}(h **Return**h]j)}(hjngh]hReturn}(hjpghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjeubh)}(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.chMzhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_alloc (C function)c.security_shm_allochNtauh1hhjyhhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghMubjg)}(hsecurity_shm_alloch]jm)}(hsecurity_shm_alloch]hsecurity_shm_alloc}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghMubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.security_shm_allocasbuh1hhjgubj)}(h h]h }(hj.hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_free (C function)c.security_shm_freehNtauh1hhjyhhhNhNubh)}(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}(hjmihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj|ihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiihhhj{ihMubjg)}(hsecurity_shm_freeh]jm)}(hsecurity_shm_freeh]hsecurity_shm_free}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjiihhhj{ihMubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hj6}h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jR )}jE jisbc.security_shm_freeasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hshph]hshp}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(h]h ]h"]h$]h&]jjuh1jhjiihhhj{ihMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjeihhhj{ihMubah}(h]j`iah ](jjeh"]h$]h&]jj)jhuh1hhj{ihMhjbihhubj)}(hhh]h)}(hFree a sysv shm LSM blobh]hFree a sysv shm LSM blob}(hj-jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj*jhhubah}(h]h ]h"]h$]h&]uh1jhjbihhhj{ihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjjEjjjjuh1hhhhjyhNhNubj)}(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)}(hjOjh]h Parameters}(hjQjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIjubj)}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjnjh]hstruct kern_ipc_perm *shp}(hjpjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjljubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhjubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjhjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjejubah}(h]h ]h"]h$]h&]uh1jhjIjubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIjubh)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hjjhhhNhNubj)}(h**perm->security**h]hperm->security}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh for the memory segment.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_shm_associate (C function)c.security_shm_associatehNtauh1hhjyhhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjkhMubjg)}(hsecurity_shm_associateh]jm)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hj!khhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjkhMubj)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hj6}h]hstruct}(hj=khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9kubj)}(h h]h }(hjJkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9kubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj[khhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]kmodnameN classnameNjI jL )}jO ]jR )}jE j#ksbc.security_shm_associateasbuh1hhj9kubj)}(h h]h }(hj{khhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9kubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9kubjm)}(hshph]hshp}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5kubj)}(h int shmflgh](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hshmflgh]hshmflg}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5kubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjkhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjkhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjjhhubj)}(hhh]h)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj ljj ljjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure ``int shmflg`` operation flags **Description** Check permission when a shared memory region is requested through the shmget system call. This hook is only called when returning the shared memory region identifier for an existing region, not when a new shared memory region is created. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubj)}(hhh](j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj6lh]hstruct kern_ipc_perm *shp}(hj8lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0lubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjOlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKlhMhjLlubah}(h]h ]h"]h$]h&]uh1jhj0lubeh}(h]h ]h"]h$]h&]uh1jhjKlhMhj-lubj)}(h``int shmflg`` operation flags h](j)}(h``int shmflg``h]j)}(hjolh]h int shmflg}(hjqlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmlubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjilubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjilubeh}(h]h ]h"]h$]h&]uh1jhjlhMhj-lubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(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.chMhjlubh)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubh)}(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.chMhjlubh)}(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.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hsecurity** for the semaphore.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.chMhjtubj)}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjth]hstruct kern_ipc_perm *sma}(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.chMhjtubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubh)}(h**Description**h]j)}(hj uh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj uubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjtubh)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hj#uhhhNhNubj)}(h**sma->security**h]h sma->security}(hj+uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#uubh for the semaphore.}(hj#uhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sem_associate (C function)c.security_sem_associatehNtauh1hhjyhhhNhNubh)}(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}(hjduhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`uhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjsuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`uhhhjruhMubjg)}(hsecurity_sem_associateh]jm)}(hsecurity_sem_associateh]hsecurity_sem_associate}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`uhhhjruhMubj)}(h'(struct kern_ipc_perm *sma, int semflg)h](j)}(hstruct kern_ipc_perm *smah](j)}(hj6}h]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_sem_associateasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hsmah]hsma}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(h int semflgh](j )}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubj)}(h h]h }(hj!vhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubjm)}(hsemflgh]hsemflg}(hj/vhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhj`uhhhjruhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\uhhhjruhMubah}(h]jWuah ](jjeh"]h$]h&]jj)jhuh1hhjruhMhjYuhhubj)}(hhh]h)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjYvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVvhhubah}(h]h ]h"]h$]h&]uh1jhjYuhhhjruhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqvjjqvjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``int semflg`` operation flags **Description** Check permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj{vh]h Parameters}(hj}vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuvubj)}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjvh]hstruct kern_ipc_perm *sma}(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.chMhjvubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvubj)}(h``int semflg`` operation flags h](j)}(h``int semflg``h]j)}(hjvh]h int semflg}(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.chMhjvubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvubeh}(h]h ]h"]h$]h&]uh1jhjuvubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj wubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuvubh)}(hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.h]hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.}(hj$whhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuvubh)}(h **Return**h]j)}(hj5wh]hReturn}(hj7whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3wubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuvubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjKwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h|ubah}(h]h ]h"]h$]h&]uh1jhj"|ubeh}(h]h ]h"]h$]h&]uh1jhj=|hMhjt{ubeh}(h]h ]h"]h$]h&]uh1jhjX{ubh)}(h**Description**h]j)}(hjc|h]h Description}(hje|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjX{ubh)}(hCheck permissions before performing operations on members of the semaphore set. If the **alter** flag is nonzero, the semaphore set may be modified.h](hWCheck permissions before performing operations on members of the semaphore set. If the }(hjy|hhhNhNubj)}(h **alter**h]halter}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy|ubh4 flag is nonzero, the semaphore set may be modified.}(hjy|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjX{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 hjX{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!hjX{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_getselfattr (C function)c.security_getselfattrhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hfint security_getselfattr (unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h]j)}(heint security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j )}(hinth]hint}(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_getselfattrh]jm)}(hsecurity_getselfattrh]hsecurity_getselfattr}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hM=ubj)}(hM(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j)}(hunsigned int attrh](j )}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]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 }(hjH}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hattrh]hattr}(hjV}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hstruct lsm_ctx __user *uctxh](j)}(hj6}h]hstruct}(hjo}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk}ubj)}(h h]h }(hj|}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk}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.security_getselfattrasbuh1hhjk}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk}ubh__user}(hjk}hhhNhNubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk}ubjm)}(huctxh]huctx}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hu32 __user *sizeh](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.security_getselfattrasbuh1hhj}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*}(hj4~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hsizeh]hsize}(hjA~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(h u32 flagsh](h)}(hhh]jm)}(hu32h]hu32}(hj]~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZ~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_~modnameN classnameNjI jL )}jO ]j}c.security_getselfattrasbuh1hhjV~ubj)}(h h]h }(hj{~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV~ubjm)}(hflagsh]hflags}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjV~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-Read an LSM attribute of the current process.h]h-Read an LSM attribute of the current process.}(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~jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``unsigned int attr`` which attribute to return ``struct lsm_ctx __user *uctx`` the user-space destination for the information, or NULL ``u32 __user *size`` pointer to the size of space available to receive the data ``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. **Description** A NULL value for **uctx** can be used to get both the number of attributes and the size of the data. Returns the number of attributes found on success, negative value on error. **size** is reset to the total size of the data. If **size** is insufficient to contain the data -E2BIG is returned.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhj~ubj)}(hhh](j)}(h0``unsigned int attr`` which attribute to return 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.chM>hj~ubj)}(hhh]h)}(hwhich attribute to returnh]hwhich attribute to return}(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)}(hX``struct lsm_ctx __user *uctx`` the user-space destination for the information, or NULL h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hj-h]hstruct lsm_ctx __user *uctx}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hj'ubj)}(hhh]h)}(h7the user-space destination for the information, or NULLh]h7the user-space destination for the information, or NULL}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM?hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM?hj~ubj)}(hP``u32 __user *size`` pointer to the size of space available to receive the data h](j)}(h``u32 __user *size``h]j)}(hjfh]hu32 __user *size}(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.chM@hj`ubj)}(hhh]h)}(h:pointer to the size of space available to receive the datah]h:pointer to the size of space available to receive the data}(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``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. h](j)}(h ``u32 flags``h]j)}(hjh]h u32 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjubj)}(hhh]h)}(hspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported.h](hzspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed }(hjhhhNhNubj)}(h**ctx**h]hctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh be reported.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChj~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.chMEhj~ubh)}(hdA NULL value for **uctx** can be used to get both the number of attributes and the size of the data.h](hA NULL value for }(hjhhhNhNubj)}(h**uctx**h]huctx}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK can be used to get both the number of attributes and the size of the data.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhj~ubh)}(hReturns the number of attributes found on success, negative value on error. **size** is reset to the total size of the data. If **size** is insufficient to contain the data -E2BIG is returned.h](hLReturns the number of attributes found on success, negative value on error. }(hj$hhhNhNubj)}(h**size**h]hsize}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh, is reset to the total size of the data. If }(hj$hhhNhNubj)}(h**size**h]hsize}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh8 is insufficient to contain the data -E2BIG is returned.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_setselfattr (C function)c.security_setselfattrhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h^int security_setselfattr (unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h]j)}(h]int security_setselfattr(unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhMubjg)}(hsecurity_setselfattrh]jm)}(hsecurity_setselfattrh]hsecurity_setselfattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhMubj)}(hE(unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h](j)}(hunsigned int attrh](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)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_ctx __user *uctxh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(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 jsbc.security_setselfattrasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(huctxh]huctx}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 sizeh](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_setselfattrasbuh1hhjubj)}(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 u32 flagsh](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.security_setselfattrasbuh1hhj́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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjlhhubj)}(hhh]h)}(h,Set an LSM attribute on the current process.h]h,Set an LSM attribute on the current process.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``unsigned int attr`` which attribute to set ``struct lsm_ctx __user *uctx`` the user-space source for the information ``u32 size`` the size of the data ``u32 flags`` reserved for future use, must be 0 **Description** Set an LSM attribute for the current process. The LSM, attribute and new value are included in **uctx**. Returns 0 on success, -EINVAL if the input is inconsistent, -EFAULT if the user buffer is inaccessible, E2BIG if size is too big, or an LSM specific failure.h](h)}(h**Parameters**h]j)}(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-``unsigned int attr`` which attribute to set h](j)}(h``unsigned int attr``h]j)}(hjkh]hunsigned int attr}(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)}(hwhich attribute to seth]hwhich attribute to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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.chMhjubj)}(hhh]h)}(h)the user-space source for the informationh]h)the user-space source for the information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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.chMhjׂubj)}(hhh]h)}(hthe size of the datah]hthe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjׂubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h1``u32 flags`` reserved for future use, must be 0 h](j)}(h ``u32 flags``h]j)}(hjh]h u32 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h"reserved for future use, must be 0h]h"reserved for future use, must be 0}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(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.chMhjFubh)}(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 }(hjghhhNhNubj)}(h**uctx**h]huctx}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFubh)}(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.}(hjhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_getprocattr (C function)c.security_getprocattrhNtauh1hhjyhhhNhNubh)}(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 }(hjƃhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjŃhMubjg)}(hsecurity_getprocattrh]jm)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hj؃hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjԃubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjŃhMubj)}(hB(struct task_struct *p, int lsmid, const char *name, char **value)h](j)}(hstruct task_struct *ph](j)}(hj6}h]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 }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int lsmidh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubjm)}(hlsmidh]hlsmid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(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 }(hjÄhhhNhNubah}(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&]noemphjjuh1jhjubj)}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hvalueh]hvalue}(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)}(hRead an attribute for a taskh]hRead an attribute for a task}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjŃhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjyhNhNubj)}(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)}(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 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&]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&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubj)}(h!``char **value`` attribute value h](j)}(h``char **value``h]j)}(hjCh]h char **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&]uh1jhjXhMhjubeh}(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:283: ./security/security.chMhjsubh)}(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.chMhjsubh)}(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.chMhjsubh)}(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.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_setprocattr (C function)c.security_setprocattrhNtauh1hhjyhhhNhNubh)}(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}(hj2hhhNhNubah}(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 }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hMubjg)}(hsecurity_setprocattrh]jm)}(hsecurity_setprocattrh]hsecurity_setprocattr}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hMubj)}(h7(int lsmid, const char *name, void *value, size_t size)h](j)}(h int lsmidh](j )}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hlsmidh]hlsmid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(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 }(hj͇hhhNhNubah}(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&]noemphjjuh1jhjgubj)}(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}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.security_setprocattrasbuh1hhj?ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubjm)}(hsizeh]hsize}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(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)}(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&]uh1jhj'hhhj@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(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!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hj߈h]h int lsmid}(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)}(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)}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjֈubj)}(h ``void *value`` attribute value h](j)}(h``void *value``h]j)}(hjQh]h void *value}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKubj)}(hhh]h)}(hattribute valueh]hattribute value}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjֈubj)}(h%``size_t size`` attribute 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)}(hattribute value sizeh]hattribute value size}(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ʼnh]h Description}(hjljhhhNhNubah}(h]h ]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)}(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}(hjhhhNhNubah}(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)}(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 bytes written on success, a negative value otherwise.h]h=Returns bytes written on success, a negative value otherwise.}(hj8hhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_post_notification (C function)c.security_post_notificationhNtauh1hhjyhhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjuhMubjg)}(hsecurity_post_notificationh]jm)}(hsecurity_post_notificationh]hsecurity_post_notification}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjuhMubj)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj̊hhhNhNubah}(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 jsbc.security_post_notificationasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hw_credh]hw_cred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hj6}h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hcredh]hcred}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jc.security_post_notificationasbuh1hhj-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct watch_notification *nh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjɋhhhNhNubah}(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&]jjuh1jhjchhhjuhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(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.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhjyhNhNubj)}(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)}(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)}(hI``const struct cred *w_cred`` credentials of the task that set the watch h](j)}(h``const struct cred *w_cred``h]j)}(hj}h]hconst struct cred *w_cred}(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)}(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&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(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}(hjόhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjˌhMhǰubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjˌhMhjtubj)}(h2``struct watch_notification *n`` the notification h](j)}(h ``struct watch_notification *n``h]j)}(hjh]hstruct watch_notification *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hthe notificationh]hthe notification}(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)}(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.}(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.}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_watch_key (C function)c.security_watch_keyhNtauh1hhjyhhhNhNubh)}(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)}(hj6}h]hstruct}(hjӍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjύubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjύubh)}(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_keyasbuh1hhjύubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjύubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjύubjm)}(hkeyh]hkey}(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)}(h2Check if a task is allowed to watch for key eventsh]h2Check if a task is allowed to watch for key events}(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&]jjjjnjjnjjjuh1hhhhjyhNhNubj)}(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)}(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`` 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&]uh1jhjrubh)}(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.chMhjrubh)}(h\Check to see if a process is allowed to watch for event notifications from a key or keyring.h]h\Check to see if a process is allowed to watch for event notifications from a key or keyring.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjrubh)}(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.chMhjrubh)}(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.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_netlink_send (C function)c.security_netlink_sendhNtauh1hhjyhhhNhNubh)}(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}(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 }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhMubjg)}(hsecurity_netlink_sendh]jm)}(hsecurity_netlink_sendh]hsecurity_netlink_send}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhMubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](j)}(hj6}h]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jasbc.security_netlink_sendasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjǏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hskh]hsk}(hjԏhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct sk_buff *skbh](j)}(hj6}h]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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.security_netlink_sendasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskbh]hskb}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj3hhubj)}(hhh]h)}(h1Save info and check if netlink sending is allowedh]h1Save info and check if netlink sending is allowed}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMhjubj)}(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}(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 sk_buff *skb`` netlink message h](j)}(h``struct sk_buff *skb``h]j)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hnetlink messageh]hnetlink message}(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)}(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.}(hj9hhhNhNubah}(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 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.}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_create (C function)c.security_socket_createhNtauh1hhjyhhhNhNubh)}(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 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_createh]jm)}(hsecurity_socket_createh]hsecurity_socket_create}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h.(int family, int type, int protocol, int kern)h](j)}(h int familyh](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)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjȑubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjđubj)}(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&]noemphjjuh1jhjđubj)}(h int protocolh](j )}(hinth]hint}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubjm)}(hprotocolh]hprotocol}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjđubj)}(hint kernh](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubjm)}(hkernh]hkern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(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 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjɒjjɒjjjuh1hhhhjyhNhNubj)}(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.chMhj͒ubj)}(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.chMhjubj)}(hhh]h)}(hprotocol familyh]hprotocol family}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``int type`` communications type h](j)}(h ``int type``h]j)}(hj+h]hint type}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj%ubj)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjdh]h int protocol}(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)}(hrequested protocolh]hrequested protocol}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(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&]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)}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhjyhhhNhNubh)}(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}(hjDhhhNhNubah}(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 }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@hhhjRhM ubjg)}(hsecurity_socket_post_createh]jm)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhjRhM ubj)}(hC(struct socket *sock, int family, int type, int protocol, int kern)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(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 jgsbc.security_socket_post_createasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hj͔hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hsockh]hsock}(hjڔhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(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&]noemphjjuh1jhjyubj)}(hint typeh](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)}(htypeh]htype}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h int protocolh](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hprotocolh]hprotocol}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(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&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhj@hhhjRhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhjRhM ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhM hj9hhubj)}(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.chM hjՕhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM$hjubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hjubj)}(hhh]h)}(hsocketh]hsocket}(hj2hhhNhNubah}(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 family`` protocol family h](j)}(h``int family``h]j)}(hjRh]h int family}(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)}(hprotocol familyh]hprotocol family}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM"hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM"hjubj)}(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.chM#hjubj)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjĖh]h int protocol}(hjƖ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)}(hrequested protocolh]hrequested protocol}(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)}(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.chM%hjubj)}(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&]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)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjubh)}(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.}(hjNhhhNhNubah}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_socket_bind (C function)c.security_socket_bindhNtauh1hhjyhhhNhNubh)}(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.chMIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMIubjg)}(hsecurity_socket_bindh]jm)}(hsecurity_socket_bindh]hsecurity_socket_bind}(hjŗhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMIubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(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 jǗsbc.security_socket_bindasbuh1hhjݗubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݗubj)}(hjh]h*}(hj-hhhNhNubah}(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)}(hj6}h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jc.security_socket_bindasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٗubj)}(h int addrlenh](j )}(hinth]hint}(hjØhhhNhNubah}(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&]jjuh1jhjhhhjhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMIhjhhubj)}(hhh]h)}(h+Check if a socket bind operation is allowedh]h+Check if a socket bind operation is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjyhNhNubj)}(hXq**Parameters** ``struct socket *sock`` socket ``struct sockaddr *address`` requested bind address ``int addrlen`` length of address **Description** Check permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhj%ubj)}(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.chMJhjDubj)}(hhh]h)}(hsocketh]hsocket}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMJhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMJhjAubj)}(h4``struct sockaddr *address`` requested bind address h](j)}(h``struct sockaddr *address``h]j)}(hjh]hstruct sockaddr *address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhj}ubj)}(hhh]h)}(hrequested bind addressh]hrequested bind address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjAubj)}(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.chMLhjubj)}(hhh]h)}(hlength of addressh]hlength of address}(hjՙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjљhMLhjҙubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjљhMLhjAubeh}(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)}(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 }(hj hhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh* is bound to the address specified in the }(hj hhhNhNubj)}(h **address**h]haddress}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh parameter.}(hj hhhNhNubeh}(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)}(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.chMQhj%ubh)}(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.chMRhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_connect (C function)c.security_socket_connecthNtauh1hhjyhhhNhNubh)}(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}(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_connecth]jm)}(hsecurity_socket_connecth]hsecurity_socket_connect}(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)}(hj6}h]hstruct}(hjĚhhhNhNubah}(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&]uh1jlhjߚubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN 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)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jc.security_socket_connectasbuh1hhj2ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(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}(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]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhM[hj|hhubj)}(hhh]h)}(h.Check if a socket connect operation is allowedh]h.Check if a socket connect operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hjhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjubj)}(hhh](j)}(h``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\hj'ubj)}(hhh]h)}(hsocketh]hsocket}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM\hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM\hj$ubj)}(h@``struct sockaddr *address`` address of remote connection point h](j)}(h``struct sockaddr *address``h]j)}(hjfh]hstruct sockaddr *address}(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.chM]hj`ubj)}(hhh]h)}(h"address of remote connection pointh]h"address of remote connection point}(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"``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^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&]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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_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.chMbhjubh)}(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.chMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_listen (C function)c.security_socket_listenhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h=int security_socket_listen (struct socket *sock, int backlog)h]j)}(hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_sendmsgasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct msghdr *msgh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hmsghdrh]hmsghdr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jZc.security_socket_sendmsgasbuh1hhjubj)}(h h]h }(hj΢hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjܢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(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&]jjjuh1jjjhjۡhhhjhMubah}(h]j֡ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjءhhubj)}(hhh]h)}(h%Check if sending a message is allowedh]h%Check if sending a message 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&]uh1jhjءhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct socket *sock`` sending socket ``struct msghdr *msg`` message to send ``int size`` size of message **Description** Check permission before transmitting a message to another socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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 socket *sock`` sending 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.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 msghdr *msg`` message to send h](j)}(h``struct msghdr *msg``h]j)}(hj£h]hstruct msghdr *msg}(hjģhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hmessage to sendh]hmessage to send}(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 size`` size of message h](j)}(h ``int size``h]j)}(hjh]hint size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsize of messageh]hsize of message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(hACheck permission before transmitting a message to another socket.h]hACheck permission before transmitting a message to another socket.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubh)}(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.chMhjdubh)}(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.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_recvmsg (C function)c.security_socket_recvmsghNtauh1hhjyhhhNhNubh)}(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_socket_recvmsgh]jm)}(hsecurity_socket_recvmsgh]hsecurity_socket_recvmsg}(hjähhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h>(struct socket *sock, struct msghdr *msg, int size, int flags)h](j)}(hstruct socket *sockh](j)}(hj6}h]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 jŤsbc.security_socket_recvmsgasbuh1hhjۤubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۤubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۤubjm)}(hsockh]hsock}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۤubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjפubj)}(hstruct msghdr *msgh](j)}(hj6}h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(hhh]jm)}(hmsghdrh]hmsghdr}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jc.security_socket_recvmsgasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjפubj)}(hint sizeh](j )}(hinth]hint}(hjhhhNhNubah}(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פ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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhjyhNhNubj)}(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)}(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 socket *sock`` receiving socket h](j)}(h``struct socket *sock``h]j)}(hj}h]hstruct socket *sock}(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)}(hreceiving socketh]hreceiving socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(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.chMhjubj)}(hhh]h)}(hmessage to receiveh]hmessage to receive}(hjϦhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˦hMhj̦ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˦hMhjtubj)}(h``int size`` size of message h](j)}(h ``int size``h]j)}(hjh]hint size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsize of messageh]hsize of message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(h ``int flags`` operational flags h](j)}(h ``int flags``h]j)}(hj(h]h int flags}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj"ubj)}(hhh]h)}(hoperational flagsh]hoperational flags}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjtubeh}(h]h ]h"]h$]h&]uh1jhjXubh)}(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.chMhjXubh)}(h:Check permission before receiving a message from a socket.h]h:Check permission before receiving a message from a socket.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubh)}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h5int security_socket_getsockname (struct socket *sock)h]j)}(h4int security_socket_getsockname(struct socket *sock)h](j )}(hinth]hint}(hjϧhhhNhNubah}(h]h ]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_socket_getsocknameh]jm)}(hsecurity_socket_getsocknameh]hsecurity_socket_getsockname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj˧hhhjݧhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(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&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_getsocknameasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjehhhNhNubah}(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&]jjjuh1jjjhjǧhhhjݧhMubah}(h]j§ah ](jjeh"]h$]h&]jj)jhuh1hhjݧhMhjħhhubj)}(hhh]h)}(h+Check if reading the socket addr is allowedh]h+Check if reading the socket addr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjħhhhjݧhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct socket *sock`` socket **Description** Check permission before reading the local address (name) of the socket object. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjШh]hstruct socket *sock}(hjҨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΨubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjʨubj)}(hhh]h)}(hsocketh]hsocket}(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)}(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)}(hNCheck permission before reading the local address (name) of the socket object.h]hNCheck permission before reading the local address (name) of the socket object.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hj2h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h5int security_socket_getpeername (struct socket *sock)h]j)}(h4int security_socket_getpeername(struct socket *sock)h](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhMubjg)}(hsecurity_socket_getpeernameh]jm)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hj6}h]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&]uh1jlhjϩubah}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjlhhubj)}(hhh]h)}(h+Check if reading the peer's addr is allowedh]h-Check if reading the peer’s addr is allowed}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1hhhhjyhNhNubj)}(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)}(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 socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjxh]hstruct socket *sock}(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)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjSubh)}(hECheck permission before the remote address (name) of a socket object.h]hECheck permission before the remote address (name) of a socket object.}(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)}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhjyhhhNhNubh)}(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 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_getsockopth]jm)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj-hMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hj6}h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubh)}(hhh]jm)}(hsocketh]hsocket}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jR )}jE jBsbc.security_socket_getsockoptasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(h int levelh](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)}(hlevelh]hlevel}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjʫubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(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&]noemphjjuh1jhjTubeh}(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 a socket option is allowedh]h+Check if reading a socket option is allowed}(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&]uh1jhjhhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjyhNhNubj)}(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)}(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)}(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.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``int level`` option's protocol level h](j)}(h ``int level``h]j)}(hjìh]h int level}(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)}(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جhMhjubj)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(hPCheck permissions before retrieving the options associated with socket **sock**.h](hGCheck permissions before retrieving the options associated with socket }(hjMhhhNhNubj)}(h**sock**h]hsock}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h **Return**h]j)}(hjph]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhjyhhhNhNubh)}(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 }(hjĭhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjíhMubjg)}(hsecurity_socket_setsockopth]jm)}(hsecurity_socket_setsockopth]hsecurity_socket_setsockopt}(hj֭hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjҭubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjíhMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hj6}h]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&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jحsbc.security_socket_setsockoptasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int levelh](j )}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(hlevelh]hlevel}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]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+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&]uh1jhjhhhjíhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h&``int level`` option's protocol level h](j)}(h ``int level``h]j)}(hjYh]h int level}(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)}(hoption's protocol levelh]hoption’s protocol level}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubj)}(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&]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)}(hMCheck permissions before setting the options associated with socket **sock**.h](hDCheck permissions before setting the options associated with socket }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhjyhhhNhNubh)}(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}(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_socket_shutdownh]jm)}(hsecurity_socket_shutdownh]hsecurity_socket_shutdown}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjYhMubj)}(h(struct socket *sock, int how)h](j)}(hstruct socket *sockh](j)}(hj6}h]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 jnsbc.security_socket_shutdownasbuh1hhjubj)}(h h]h }(hjưhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj԰hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhj@hhubj)}(hhh]h)}(h-Checks if shutting down the socket is allowedh]h-Checks if shutting down the socket 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@hhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1hhhhjyhNhNubj)}(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)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(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&]uh1hhjϱhMhjбubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϱhMhjxubeh}(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)}(hYChecks permission before all or part of a connection on the socket **sock** is shut down.h](hCChecks permission before all or part of a connection on the socket }(hj hhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is shut down.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubh)}(h **Return**h]j)}(hj.h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhjyhhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjhMubjg)}(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&]jjuh1jfhjohhhjhMubj)}(hK(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j)}(hstruct socket *sockh](j)}(hj6}h]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&]uh1jlhj˲ubah}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optvalh](h)}(hhh]jm)}(h sockptr_th]h sockptr_t}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]j#c.security_socket_getpeersec_streamasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoptvalh]hoptval}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optlenh](h)}(hhh]jm)}(h sockptr_th]h sockptr_t}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]j#c.security_socket_getpeersec_streamasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hoptlenh]hoptlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(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}(hjγhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhhubj)}(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&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjyhNhNubj)}(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)}(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.chM hj0ubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjUh]hstruct socket *sock}(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)}(hsocketh]hsocket}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(h(``sockptr_t optval`` destination buffer h](j)}(h``sockptr_t optval``h]j)}(hjh]hsockptr_t optval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hdestination bufferh]hdestination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubj)}(h?``sockptr_t optlen`` size of peer label copied into the buffer h](j)}(h``sockptr_t optlen``h]j)}(hjǴh]hsockptr_t optlen}(hjɴ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)size of peer label copied into the bufferh]h)size of peer label copied into the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܴhMhjݴubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܴhMhjLubj)}(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.chM hjubj)}(hhh]h)}(h&maximum size of the destination bufferh]h&maximum size of the destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj0ubh)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj0ubh)}(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.chMhj0ubh)}(hFReturns 0 if all is well, otherwise, typical getsockopt return values.h]hFReturns 0 if all is well, otherwise, typical getsockopt return values.}(hjxhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhjyhhhNhNubh)}(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.chM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM0ubjg)}(hlsm_sock_alloch]jm)}(hlsm_sock_alloch]hlsm_sock_alloc}(hjȵhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjĵubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM0ubj)}(h(struct sock *sock, gfp_t gfp)h](j)}(hstruct sock *sockh](j)}(hj6}h]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 jʵsbc.lsm_sock_allocasbuh1hhjubj)}(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 gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jc.lsm_sock_allocasbuh1hhjRubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(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)}(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.chM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjǶjjǶjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct sock *sock`` the sock that needs a blob ``gfp_t gfp`` allocation mode **Description** Allocate the sock blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjѶh]h Parameters}(hjӶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj϶ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hj˶ubj)}(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.chM1hjubj)}(hhh]h)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(h``gfp_t gfp`` allocation mode 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.chM2hj#ubj)}(hhh]h)}(hallocation modeh]hallocation mode}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM2hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM2hjubeh}(h]h ]h"]h$]h&]uh1jhj˶ubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hj˶ubh)}(h*Allocate the sock blob for all the modulesh]h*Allocate the sock blob for all the modules}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hj˶ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hj˶ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_alloc (C function)c.security_sk_allochNtauh1hhjyhhhNhNubh)}(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.chM>ubj)}(h h]h }(hjǷhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjƷhM>ubjg)}(hsecurity_sk_alloch]jm)}(hsecurity_sk_alloch]hsecurity_sk_alloc}(hjٷhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjշubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjƷhM>ubj)}(h-(struct sock *sk, int family, gfp_t priority)h](j)}(hstruct sock *skh](j)}(hj6}h]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 j۷sbc.security_sk_allocasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskh]hsk}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int familyh](j )}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubjm)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(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}(hj˸hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)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.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjƷhM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjyhNhNubj)}(hXB**Parameters** ``struct sock *sk`` sock ``int family`` protocol family ``gfp_t priority`` gfp flags **Description** Allocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjubj)}(hhh](j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hj6h]hstruct sock *sk}(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.chM?hj0ubj)}(hhh]h)}(hsockh]hsock}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM?hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM?hj-ubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjoh]h int family}(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)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM@hj-ubj)}(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.chMAhjubj)}(hhh]h)}(h gfp flagsh]h gfp flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhj-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.chMChjubh)}(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.chMBhjubh)}(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.chMEhjubh)}(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.chMFhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_free (C function)c.security_sk_freehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h'void security_sk_free (struct sock *sk)h]j)}(h&void security_sk_free(struct sock *sk)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.chMUubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhj]hMUubjg)}(hsecurity_sk_freeh]jm)}(hsecurity_sk_freeh]hsecurity_sk_free}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhj]hMUubj)}(h(struct sock *sk)h]j)}(hstruct sock *skh](j)}(hj6}h]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 jrsbc.security_sk_freeasbuh1hhjubj)}(h h]h }(hjʺhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjغhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhj]hMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj]hMUubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj]hMUhjDhhubj)}(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.chMUhj hhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhjyhNhNubj)}(h[**Parameters** ``struct sock *sk`` sock **Description** Deallocate security structure.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.chMYhj+ubj)}(hhh]j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hjPh]hstruct sock *sk}(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.chMVhjJubj)}(hhh]h)}(hsockh]hsock}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMVhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMVhjGubah}(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)}(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.chMWhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhjyhhhNhNubh)}(hhh](j)}(hQvoid security_inet_csk_clone (struct sock *newsk, const struct request_sock *req)h]j)}(hPvoid security_inet_csk_clone(struct sock *newsk, const struct request_sock *req)h](j )}(hvoidh]hvoid}(hjлhhhNhNubah}(h]h ]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_inet_csk_cloneh]jm)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](j@jeh"]h$]h&]jjuh1jfhj̻hhhj޻hMubj)}(h4(struct sock *newsk, const struct request_sock *req)h](j)}(hstruct sock *newskh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hsockh]hsock}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inet_csk_cloneasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnewskh]hnewsk}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct request_sock *reqh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubh)}(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 ]jGc.security_inet_csk_cloneasbuh1hhj{ubj)}(h h]h }(hjּhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjm)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj̻hhhj޻hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjȻhhhj޻hMubah}(h]jûah ](jjeh"]h$]h&]jj)jhuh1hhj޻hMhjŻhhubj)}(hhh]h)}(h,Set new sock LSM state based on request_sockh]h,Set new sock LSM state based on request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjŻhhhj޻hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhjyhNhNubj)}(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}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj7ubj)}(hhh](j)}(h ``struct sock *newsk`` new sock h](j)}(h``struct sock *newsk``h]j)}(hj\h]hstruct sock *newsk}(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)}(hnew sockh]hnew sock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubj)}(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&]uh1jhjhMhjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(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.chMhj7ubh)}(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.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhjyhhhNhNubh)}(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}(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_mptcp_add_subflowh]jm)}(hsecurity_mptcp_add_subflowh]hsecurity_mptcp_add_subflow}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMubj)}(h#(struct sock *sk, struct sock *ssk)h](j)}(hstruct sock *skh](j)}(hj6}h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sbc.security_mptcp_add_subflowasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hj¾hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hskh]hsk}(hjϾhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct sock *sskh](j)}(hj6}h]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 }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsskh]hssk}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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+Inherit the LSM label from the MPTCP socketh]h+Inherit the LSM label from the MPTCP socket}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct sock *sk`` the owning MPTCP socket ``struct sock *ssk`` the new subflow **Description** Update the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks. **Return** Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``struct sock *sk`` the owning MPTCP socket h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hjÿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjݿubj)}(hhh]h)}(hthe new subflowh]hthe new subflow}(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&]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:283: ./security/security.chMhjubh)}(hUpdate the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks.h]hUpdate the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h]int security_xfrm_policy_clone (struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h]j)}(h\int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_cloneh]jm)}(hsecurity_xfrm_policy_cloneh]hsecurity_xfrm_policy_clone}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h>(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j)}(hstruct xfrm_sec_ctx *old_ctxh](j)}(hj6}h]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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx **new_ctxph](j)}(hj6}h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jc.security_xfrm_policy_cloneasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hnew_ctxph]hnew_ctxp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(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)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(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)}(hxfrm security contexth]hxfrm security context}(hj!hhhNhNubah}(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)}(hjAh]hstruct xfrm_sec_ctx **new_ctxp}(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)}(htarget xfrm security contexth]htarget xfrm security context}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubeh}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhjyhhhNhNubh)}(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}(hj hhhNhNubah}(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)}(hj6}h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_xfrm_policy_deleteasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hctxh]hctx}(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]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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(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"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)}(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.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhjyhhhNhNubh)}(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 hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM9ubjg)}(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&]jjuh1jfhjhhhjhM9ubj)}(h>(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j)}(hstruct xfrm_state *xh](j)}(hj6}h]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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjGh]hx}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx *polsech](j)}(hj6}h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(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&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]j#c.security_xfrm_state_alloc_acquireasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjhhhNhNubah}(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&]jjuh1jhjhhhjhM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM9hjhhubj)}(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.chM9hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct xfrm_state *x`` xfrm state being added to the SAD ``struct xfrm_sec_ctx *polsec`` associated policy's security context ``u32 secid`` secid from the flow **Description** Allocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid. **Return** Returns 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]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 xfrm_state *x`` xfrm state being added to the SAD h](j)}(h``struct xfrm_state *x``h]j)}(hjHh]hstruct xfrm_state *x}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjBubj)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM:hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM:hj?ubj)}(hE``struct xfrm_sec_ctx *polsec`` associated policy's security context h](j)}(h``struct xfrm_sec_ctx *polsec``h]j)}(hjh]hstruct xfrm_sec_ctx *polsec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hj{ubj)}(hhh]h)}(h$associated policy's security contexth]h&associated policy’s security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhM;hj?ubj)}(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.chM<hjubj)}(hhh]h)}(hsecid from the flowh]hsecid from the flow}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hj#ubh)}(hAllocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid.h]hAllocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.chMAhj#ubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhjyhhhNhNubh)}(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}(hjahhhNhNubah}(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 }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]hhhjohMYubjg)}(hsecurity_xfrm_state_freeh]jm)}(hsecurity_xfrm_state_freeh]hsecurity_xfrm_state_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhhjohMYubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](j)}(hj6}h]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 jsbc.security_xfrm_state_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjGh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohMYubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohMYhjVhhubj)}(hhh]h)}(hFree a xfrm stateh]hFree a xfrm state}(hj hhhNhNubah}(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&]uh1jhjVhhhjohMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhjyhNhNubj)}(h_**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Deallocate x->security.h](h)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj<ubj)}(hhh]j)}(h$``struct xfrm_state *x`` xfrm state h](j)}(h``struct xfrm_state *x``h]j)}(hjah]hstruct xfrm_state *x}(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.chMZhj[ubj)}(hhh]h)}(h xfrm stateh]h xfrm state}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMZhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMZhjXubah}(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)}(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.chM[hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhjyhhhNhNubh)}(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.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMdubjg)}(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&]jjuh1jfhjhhhjhMdubj)}(h((struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hj6}h]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}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_xfrm_policy_lookupasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 ]jXc.security_xfrm_policy_lookupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfl_secidh]hfl_secid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMdhjhhubj)}(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.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct xfrm_sec_ctx *ctx`` target xfrm security context ``u32 fl_secid`` flow secid used to authorize access **Description** Check permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy. **Return** Return 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhjubj)}(hhh](j)}(h:``struct xfrm_sec_ctx *ctx`` target xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hj*h]hstruct xfrm_sec_ctx *ctx}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehj$ubj)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMehj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMehj!ubj)}(h5``u32 fl_secid`` flow secid used to authorize access h](j)}(h``u32 fl_secid``h]j)}(hjch]h u32 fl_secid}(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.chMfhj]ubj)}(hhh]h)}(h#flow secid used to authorize accessh]h#flow secid used to authorize access}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMfhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMfhj!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.chMhhjubh)}(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.chMghjubh)}(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.chMkhjubh)}(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.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hvint security_xfrm_state_pol_flow_match (struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h]j)}(huint security_xfrm_state_pol_flow_match(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]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)}(h"security_xfrm_state_pol_flow_matchh]jm)}(h"security_xfrm_state_pol_flow_matchh]h"security_xfrm_state_pol_flow_match}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMuubj)}(hO(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j)}(hstruct xfrm_state *xh](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE j-sb$c.security_xfrm_state_pol_flow_matchasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hjGh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct xfrm_policy *xph](j)}(hj6}h]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 ]j$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&]noemphjjuh1jhj?ubj)}(hconst struct flowi_common *flich](j)}(hjh]hconst}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hj6}h]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(h flowi_commonh]h flowi_common}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]j$c.security_xfrm_state_pol_flow_matchasbuh1hhj$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hflich]hflic}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMuhjhhubj)}(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.chMuhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMyhjubj)}(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.chMvhjubj)}(hhh]h)}(hxfrm state to matchh]hxfrm state to match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(h<``struct xfrm_policy *xp`` xfrm policy to check for a match h](j)}(h``struct xfrm_policy *xp``h]j)}(hj>h]hstruct xfrm_policy *xp}(hj@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.chMwhj8ubj)}(hhh]h)}(h xfrm policy to check for a matchh]h xfrm policy to check for a match}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMwhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMwhjubj)}(h?``const struct flowi_common *flic`` flow to check for a match. h](j)}(h#``const struct flowi_common *flic``h]j)}(hjwh]hconst struct flowi_common *flic}(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.chMxhjqubj)}(hhh]h)}(hflow to check for a match.h]hflow to check for a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubeh}(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)}(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.chMyhjubh)}(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.chM{hjubh)}(hReturns 1 if there is a match.h]hReturns 1 if there is a match.}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhjyhhhNhNubh)}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjbhMubjg)}(hsecurity_xfrm_decode_sessionh]jm)}(hsecurity_xfrm_decode_sessionh]hsecurity_xfrm_decode_session}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhMubj)}(h!(struct sk_buff *skb, u32 *secid)h](j)}(hstruct sk_buff *skbh](j)}(hj6}h]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 jwsbc.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&]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 ]jc.security_xfrm_decode_sessionasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsecidh]hsecid}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhjIhhubj)}(hhh]h)}(h%Determine the xfrm secid for a packeth]h%Determine the xfrm secid for a packet}(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&]uh1jhjIhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct sk_buff *skb`` xfrm packet ``u32 *secid`` secid **Description** Decode the packet in **skb** and return the security label in **secid**. **Return** Return 0 if all xfrms used have the same secid.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h$``struct sk_buff *skb`` xfrm packet h](j)}(h``struct sk_buff *skb``h]j)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h xfrm packeth]h xfrm packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(hsecidh]hsecid}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hHDecode the packet in **skb** and return the security label in **secid**.h](hDecode the packet in }(hj4hhhNhNubj)}(h**skb**h]hskb}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh" and return the security label in }(hj4hhhNhNubj)}(h **secid**h]hsecid}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjih]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h/Return 0 if all xfrms used have the same secid.h]h/Return 0 if all xfrms used have the same secid.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_alloc (C function)c.security_key_allochNtauh1hhjyhhhNhNubh)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_key_allocasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hjDhhhNhNubah}(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&]uh1jhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hj6}h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j%c.security_key_allocasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(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&]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}(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&]jjjjbjjbjjjuh1hhhhjyhNhNubj)}(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)}(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``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&]uh1jhjhMhjubj)}(h(``const struct cred *cred`` credentials h](j)}(h``const struct cred *cred``h]j)}(hjh]hconst struct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(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.}(hjNhhhNhNubah}(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}(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.chMhjfubh)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hjuhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_free (C function)c.security_key_freehNtauh1hhjyhhhNhNubh)}(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)}(hj6}h]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*}(hj-hhhNhNubah}(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}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjyhNhNubj)}(hl**Parameters** ``struct key *key`` key **Description** Notification of destruction; free security data.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(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&]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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_key_permission (C function)c.security_key_permissionhNtauh1hhjyhhhNhNubh)}(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}(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 }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj3hMubjg)}(hsecurity_key_permissionh]jm)}(hsecurity_key_permissionh]hsecurity_key_permission}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj3hMubj)}(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}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE jHsbc.security_key_permissionasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubjm)}(hkey_refh]hkey_ref}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(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)}(hj6}h]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 ]jc.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&]noemphjjuh1jhjZubj)}(henum key_need_perm need_permh](j)}(hj:h]henum}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(h key_need_permh]h key_need_perm}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jc.security_key_permissionasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(h need_permh]h need_perm}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj3hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhjhhubj)}(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&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hj%h]hconst struct cred *cred}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h&credentials of actor requesting accessh]h&credentials of actor requesting access}(hj>hhhNhNubah}(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)}(hj^h]henum key_need_perm need_perm}(hj`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.chMhjXubj)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubeh}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]j)}(hubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(hkeyh]hkey}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE j(sbc.security_key_getsecurityasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h char **bufferh](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)}(hbufferh]hbuffer}(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)}(hGet the key's security labelh]hGet the key’s security label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct key *key`` key ``char **buffer`` security label buffer **Description** Get a textual representation of the security context attached to a key for the purposes of honouring KEYCTL_GETSECURITY. This function allocates the storage for the NUL-terminated string and the caller should free it. **Return** Returns the length of **buffer** (including terminating NUL) or -ve if an error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubj)}(hhh](j)}(h``struct key *key`` key h](j)}(h``struct key *key``h]j)}(hjUh]hstruct key *key}(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)}(hkeyh]hkey}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(h(``char **buffer`` security label buffer h](j)}(h``char **buffer``h]j)}(hjh]h char **buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubeh}(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)}(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.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)}(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.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_key_post_create_or_update (C function)$c.security_key_post_create_or_updatehNtauh1hhjyhhhNhNubh)}(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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjUhMubjg)}(h"security_key_post_create_or_updateh]jm)}(h"security_key_post_create_or_updateh]h"security_key_post_create_or_update}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjUhMubj)}(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)}(hj6}h]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 jjsb$c.security_key_post_create_or_updateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyringh]hkeyring}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hstruct key *keyh](j)}(hj6}h]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 }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hconst void *payloadh](j)}(hjh]hconst}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hpayloadh]hpayload}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(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&]noemphjjuh1jhj|ubj)}(hunsigned long flagsh](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 }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h bool createh](j )}(hj8h]hbool}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(hcreateh]hcreate}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjUhMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhj<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<hhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(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)}(hcreated or updated keyh]hcreated or updated key}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(hC``const void *payload`` data used to instantiate or update the key h](j)}(h``const void *payload``h]j)}(hjTh]hconst void *payload}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubj)}(hhh]h)}(h*data used to instantiate or update the keyh]h*data used to instantiate or update the key}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubj)}(h)``size_t payload_len`` length of payload h](j)}(h``size_t payload_len``h]j)}(hjh]hsize_t payload_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hlength of payloadh]hlength of payload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(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&]uh1jhj8ubah}(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.}(hjPhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhjyhhhNhNubh)}(hhh](j)}(hZint security_audit_rule_init (u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h]j)}(hYint security_audit_rule_init(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{hhhX/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&]uh1jhj{hhhjhM ubjg)}(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&]jjuh1jfhj{hhhjhM ubj)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.security_audit_rule_initasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *rulestrh](j )}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hrulestrh]hrulestr}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid **lsmruleh](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)}(hlsmruleh]hlsmrule}(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 ]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&]jjuh1jhj{hhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhM ubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjthhubj)}(hhh]h)}(h*Allocate and init an LSM audit rule structh]h*Allocate and init an LSM audit rule struct}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj5hhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhjyhNhNubj)}(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)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTubj)}(hhh](j)}(h``u32 field`` audit action h](j)}(h ``u32 field``h]j)}(hjyh]h u32 field}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjsubj)}(hhh]h)}(h audit actionh]h audit action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM hjpubj)}(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.chM hjubj)}(hhh]h)}(h rule operatorh]h rule operator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjpubj)}(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&]uh1jhjhMhjpubj)}(h8``void **lsmrule`` receive buffer for audit rule struct h](j)}(h``void **lsmrule``h]j)}(hj$h]hvoid **lsmrule}(hj&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$receive buffer for audit rule structh]h$receive buffer for audit rule struct}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjpubj)}(h(``gfp_t gfp`` GFP flag used for kmalloc 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.chMhjWubj)}(hhh]h)}(hGFP flag used for kmalloch]hGFP flag used for kmalloc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjpubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(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.chMhjTubh)}(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.chMhjTubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTubh)}(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.chMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhjyhhhNhNubh)}(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 }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj$hMubjg)}(hsecurity_audit_rule_knownh]jm)}(hsecurity_audit_rule_knownh]hsecurity_audit_rule_known}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$hMubj)}(h(struct audit_krule *krule)h]j)}(hstruct audit_krule *kruleh](j)}(hj6}h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(h audit_kruleh]h audit_krule}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE j9sbc.security_audit_rule_knownasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hkruleh]hkrule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhj hhubj)}(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&]uh1jhj hhhj$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM"hjubj)}(hhh]j)}(h)``struct audit_krule *krule`` audit rule h](j)}(h``struct audit_krule *krule``h]j)}(hjh]hstruct audit_krule *krule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h audit ruleh]h audit rule}(hj0hhhNhNubah}(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)}(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)}(hQSpecifies whether given **krule** contains any fields related to the current LSM.h](hSpecifies whether given }(hjhhhhNhNubj)}(h **krule**h]hkrule}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh0 contains any fields related to the current LSM.}(hjhhhhNhNubeh}(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)}(h1Returns 1 in case of relation found, 0 otherwise.h]h1Returns 1 in case of relation found, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhjyhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hlsmruleh]hlsmrule}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM,hjhhubj)}(hhh]h)}(hFree an LSM audit rule structh]hFree 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.chM,hj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``void *lsmrule`` audit rule struct **Description** Deallocate the LSM audit rule structure previously allocated by audit_rule_init().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hj|ubj)}(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&]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)}(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.hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhjyhhhNhNubh)}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj/hM8ubjg)}(hsecurity_audit_rule_matchh]jm)}(hsecurity_audit_rule_matchh]hsecurity_audit_rule_match}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hM8ubj)}(h9(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j)}(hstruct lsm_prop *proph](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE jDsbc.security_audit_rule_matchasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hproph]hprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(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&]noemphjjuh1jhjVubj)}(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_matchasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h void *lsmruleh](j )}(hvoidh]hvoid}(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)}(hlsmruleh]hlsmrule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hM8hjhhubj)}(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.chM8hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chM<hjubj)}(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.chM9hjubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM9hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM9hjubj)}(h``u32 field`` LSM audit field h](j)}(h ``u32 field``h]j)}(hj-h]h u32 field}(hj/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)}(hLSM audit fieldh]hLSM audit field}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM:hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM:hjubj)}(h``u32 op`` matching operator h](j)}(h ``u32 op``h]j)}(hjfh]hu32 op}(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.chM;hj`ubj)}(hhh]h)}(hmatching operatorh]hmatching operator}(hjhhhNhNubah}(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``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.chM<hjubj)}(hhh]h)}(h audit ruleh]h audit rule}(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.chM>hjubh)}(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.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)}(hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.h]hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf (C function)c.security_bpfhNtauh1hhjyhhhNhNubh)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjfhMMubjg)}(h security_bpfh]jm)}(h security_bpfh]h security_bpf}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjfhMMubj)}(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 j{sbc.security_bpfasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hj$hhhNhNubah}(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 hj9ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hinth]hint}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hsizeh]hsize}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhMMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhMMhjMhhubj)}(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.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMQhjubj)}(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.chMNhjubj)}(hhh]h)}(hcommandh]hcommand}(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'``union bpf_attr *attr`` bpf attribute h](j)}(h``union bpf_attr *attr``h]j)}(hjMh]hunion bpf_attr *attr}(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.chMOhjGubj)}(hhh]h)}(h bpf attributeh]h bpf attribute}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMOhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMOhj ubj)}(h``unsigned int size`` size h](j)}(h``unsigned int size``h]j)}(hjh]hunsigned int size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjubj)}(hhh]h)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhj ubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjh]h bool kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhj 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.chMShjubh)}(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.chMRhjubh)}(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.chMVhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_map (C function)c.security_bpf_maphNtauh1hhjyhhhNhNubh)}(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}(hjfhhhNhNubah}(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 }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjthM_ubjg)}(hsecurity_bpf_maph]jm)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjthM_ubj)}(h$(struct bpf_map *map, fmode_t fmode)h](j)}(hstruct bpf_map *maph](j)}(hj6}h]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 jsbc.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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_bpf_mapasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfmodeh]hfmode}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjthM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjthM_ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthM_hj[hhubj)}(hhh]h)}(h'Check if access to a bpf map is allowedh]h'Check if access to a bpf map is allowed}(hjnhhhNhNubah}(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&]uh1jhj[hhhjthM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMchjubj)}(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.chMahjubj)}(hhh]h)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubeh}(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.chMchjubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjubh)}(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.chMehjubh)}(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.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_prog (C function)c.security_bpf_proghNtauh1hhjyhhhNhNubh)}(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 hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMnubjg)}(hsecurity_bpf_progh]jm)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMnubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj6}h]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 }(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMnubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMnubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMnhjhhubj)}(hhh]h)}(h+Check if access to a bpf program is allowedh]h+Check if access to a bpf program is allowed}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhjyhNhNubj)}(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)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjkubj)}(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.chMohjubj)}(hhh]h)}(h bpf programh]h bpf program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubah}(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:283: ./security/security.chMqhjkubh)}(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.chMphjkubh)}(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.chMshjkubh)}(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.chMthjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhjyhhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhjEhM|ubjg)}(hsecurity_bpf_map_createh]jm)}(hsecurity_bpf_map_createh]hsecurity_bpf_map_create}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhjEhM|ubj)}(hQ(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_map *maph](j)}(hj6}h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubh)}(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 jZsbc.security_bpf_map_createasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(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 }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct bpf_token *tokenh](j)}(hj6}h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jc.security_bpf_map_createasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(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&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhM|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjEhM|ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhM|hj,hhubj)}(hhh]h)}(h$Check if BPF map creation is allowedh]h$Check if BPF map creation is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhM|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct bpf_map *map`` BPF map object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF map ``struct bpf_token *token`` BPF token used to grant user access ``bool kernel`` whether or not call originated from kernel **Description** Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'ubj)}(hhh](j)}(h'``struct bpf_map *map`` BPF map object h](j)}(h``struct bpf_map *map``h]j)}(hjLh]hstruct bpf_map *map}(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)}(hBPF map objecth]hBPF map object}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM}hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM}hjCubj)}(hG``union bpf_attr *attr`` BPF syscall attributes used to create BPF map h](j)}(h``union bpf_attr *attr``h]j)}(hjh]hunion bpf_attr *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjCubj)}(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.chMhjubj)}(hhh]h)}(h#BPF token used to grant user accessh]h#BPF token used to grant user access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjCubj)}(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.chMhjubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(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&]uh1jhj'ubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'ubh)}(h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.h]h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'ubh)}(h **Return**h]j)}(hjYh]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjohhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhjyhhhNhNubh)}(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(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&]jjuh1jfhjhhhjhMubj)}(hS(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_prog *progh](j)}(hj6}h]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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprogh]hprog}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hjh]hunion}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jc.security_bpf_prog_loadasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bpf_token *tokenh](j)}(hj6}h]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}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubjm)}(hkernelh]hkernel}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h*Check if loading of BPF program is allowedh]h*Check if loading of BPF program is allowed}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMhjubj)}(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.chMhjubj)}(hhh]h)}(hBPF program objecth]hBPF program object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hQ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem h](j)}(h``struct bpf_token *token``h]j)}(hj%h]hstruct bpf_token *token}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h4BPF token used to grant user access to BPF subsystemh]h4BPF token used to grant user access to BPF subsystem}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hj^h]h bool kernel}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubeh}(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)}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhjyhhhNhNubh)}(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}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(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)}(hj6}h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hjOhhhNhNubah}(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 reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE j(sbc.security_bpf_token_createasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(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 ]j|c.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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hj6}h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hpathh]hpath}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_modnameN classnameNjI jL )}jO ]j|c.security_bpf_token_createasbuh1hhj ubj)}(h h]h }(hj{hhhNhNubah}(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: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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubj)}(hhh]h)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create BPF token}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubj)}(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)}(hjsh]hconst struct path *path}(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)}(hCpath pointing to BPF FS mount point from which BPF token is createdh]hCpath pointing to BPF FS mount point from which BPF token is created}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(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)}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhjyhhhNhNubh)}(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}(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_bpf_token_cmdh]jm)}(hsecurity_bpf_token_cmdh]hsecurity_bpf_token_cmd}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hMubj)}(h1(const struct bpf_token *token, enum bpf_cmd cmd)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hj6}h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(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_cmdasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmdh]hcmd}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(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)}(hGCheck if BPF token is allowed to delegate requested BPF syscall commandh]hGCheck if BPF token is allowed to delegate requested BPF syscall command}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhjyhNhNubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjtubj)}(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&]uh1jhjtubh)}(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.chMhjtubh)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjtubh)}(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.chMhjtubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhjyhhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhMubjg)}(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&]jjuh1jfhjuhhhjhMubj)}(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)}(hj6}h]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}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint caph](j )}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubjm)}(hcaph]hcap}(hj_hhhNhNubah}(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)}(hJCheck if BPF token is allowed to delegate requested BPF-related capabilityh]hJCheck if BPF token is allowed to delegate requested BPF-related capability}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(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)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjeh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h'Returns 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_bpf_map_free (C function)c.security_bpf_map_freehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h0void security_bpf_map_free (struct bpf_map *map)h]j)}(h/void security_bpf_map_free(struct bpf_map *map)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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_map_freeh]jm)}(hsecurity_bpf_map_freeh]hsecurity_bpf_map_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hj6}h]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 jsbc.security_bpf_map_freeasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(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 bpf map's LSM blobh]hFree a bpf map’s LSM blob}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h|**Parameters** ``struct bpf_map *map`` bpf map **Description** Clean up the security information stored inside bpf map.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hjh]hstruct bpf_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hbpf maph]hbpf map}(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)}(h8Clean up the security information stored inside bpf map.h]h8Clean up the security information stored inside bpf map.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhjyhhhNhNubh)}(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'hhhj9hMubjg)}(hsecurity_bpf_prog_freeh]jm)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj9hMubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj6}h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(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 jNsbc.security_bpf_prog_freeasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj hhubj)}(hhh]h)}(hFree a BPF program's LSM blobh]hFree a BPF program’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(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 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}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hCheck 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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhjyhhhNhNubh)}(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&]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)}(h$Check if io_uring_setup() is allowedh]h$Check if io_uring_setup() is allowed}(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&]jjjjnjjnjjjuh1hhhhjyhNhNubj)}(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)}(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``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&]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.chKhjrubh)}(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.chMhjrubh)}(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.chMhjrubh)}(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.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h(void security_initramfs_populated (void)h]j)}(h'void security_initramfs_populated(void)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 }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhMubjg)}(hsecurity_initramfs_populatedh]jm)}(hsecurity_initramfs_populatedh]hsecurity_initramfs_populated}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj3hhubj)}(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&]uh1jhj3hhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.}(hj7hhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhjyhhhNhNubh)}(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)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjshKubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE securityfs_create_filesbc.securityfs_create_fileasbuh1hhjbhhhjshKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjshKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjshKubjg)}(hsecurityfs_create_fileh]jm)}(hjh]hsecurityfs_create_file}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjshKubj)}(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 }(hj hhhNhNubah}(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 umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhj9ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hmodeh]hmode}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hj6}h]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.securityfs_create_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhj3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hfopsh]hfops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjshKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjshKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjshKhj[hhubj)}(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&]uh1jhj[hhhjshKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubj)}(h:``umode_t mode`` the permission that the file should have h](j)}(h``umode_t mode``h]j)}(hjMh]h umode_t mode}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjGubj)}(hhh]h)}(h(the permission that the file should haveh]h(the permission that the file should have}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhj ubj)}(h``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the file will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hjh]hstruct dentry *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubj)}(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 }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhI, then the file will be created in the root of the securityfs filesystem.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubj)}(h``void *data`` a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call. h](j)}(h``void *data``h]j)}(hjh]h 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:286: ./security/inode.chKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubj)}(hp``const struct file_operations *fops`` a pointer to a struct file_operations that should be used for this file. h](j)}(h&``const struct file_operations *fops``h]j)}(hj h]h"const struct file_operations *fops}(hjhhhNhNubah}(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.chKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hKhj ubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubh)}(hCThis function creates a file in securityfs with the given **name**.h](h:This function creates a file in securityfs with the given }(hj^hhhNhNubj)}(h**name**h]hname}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hjhhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"securityfs_create_dir (C function)c.securityfs_create_dirhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hOstruct dentry * securityfs_create_dir (const char *name, struct dentry *parent)h]j)}(hMstruct dentry *securityfs_create_dir(const char *name, struct dentry *parent)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE securityfs_create_dirsbc.securityfs_create_dirasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(hsecurityfs_create_dirh]jm)}(hj h]hsecurityfs_create_dir}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h)(const char *name, struct dentry *parent)h](j)}(hconst char *nameh](j)}(hjh]hconst}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj )}(hcharh]hchar}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hstruct dentry *parenth](j)}(hj6}h]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 ]j c.securityfs_create_dirasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h/create a directory in the securityfs filesystemh]h/create a directory in the securityfs filesystem}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhjyhNhNubj)}(hX?**Parameters** ``const char *name`` a pointer to a string containing the name of the directory to create. ``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. **Description** This function creates a directory in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjCubj)}(hhh](j)}(h[``const char *name`` a pointer to a string containing the name of the directory to create. h](j)}(h``const char *name``h]j)}(hjhh]hconst char *name}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjbubj)}(hhh]h)}(hEa pointer to a string containing the name of the directory to create.h]hEa pointer to a string containing the name of the directory to create.}(hjhhhNhNubah}(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&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKhj_ubj)}(h``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hjh]hstruct dentry *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubj)}(hhh]h)}(ha pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem.h](hoa pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN, then the directory will be created in the root of the securityfs filesystem.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj_ubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjCubh)}(hHThis function creates a directory in securityfs with the given **name**.h](h?This function creates a directory in securityfs with the given }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjCubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjCubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hj6hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is returned.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&securityfs_create_symlink (C function)c.securityfs_create_symlinkhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hstruct dentry * securityfs_create_symlink (const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h]j)}(hstruct dentry *securityfs_create_symlink(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h](j)}(hj6}h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhKubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE securityfs_create_symlinksbc.securityfs_create_symlinkasbuh1hhjshhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhKubjg)}(hsecurityfs_create_symlinkh]jm)}(hjh]hsecurityfs_create_symlink}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhKubj)}(hb(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)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}(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)}(hnameh]hname}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hj6}h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(hdentryh]hdentry}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jc.securityfs_create_symlinkasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *targeth](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)}(htargeth]htarget}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h#const struct inode_operations *iopsh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinode_operationsh]hinode_operations}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jc.securityfs_create_symlinkasbuh1hhjubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hiopsh]hiops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhKubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjlhhubj)}(hhh]h)}(h-create a symlink in the securityfs filesystemh]h-create a symlink 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&]uh1jhjlhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``const char *name`` a pointer to a string containing the name of the symlink to create. ``struct dentry *parent`` a pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. ``const char *target`` a pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations. ``const struct inode_operations *iops`` a pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used. **Description** This function creates a symlink in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(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)}(hY``const char *name`` a pointer to a string containing the name of the symlink to create. h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubj)}(hhh]h)}(hCa pointer to a string containing the name of the symlink to create.h]hCa pointer to a string containing the name of the symlink to create.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h``struct dentry *parent`` a pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hj2h]hstruct dentry *parent}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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 the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem.h](hqa pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is }(hjKhhhNhNubj)}(h``NULL``h]hNULL}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubhN, then the directory will be created in the root of the securityfs filesystem.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjubj)}(h``const char *target`` a pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations. h](j)}(h``const char *target``h]j)}(hj~h]hconst char *target}(hjhhhNhNubah}(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.chKhjxubj)}(hhh]h)}(ha pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations.h](hZa pointer to a string containing the name of the symlink’s target. If this parameter is }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , then the }(hjhhhNhNubj)}(h**iops**h]hiops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP parameter needs to be setup to handle .readlink and .get_link inode_operations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``const struct inode_operations *iops`` a pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used. h](j)}(h'``const struct inode_operations *iops``h]j)}(hjh]h#const struct inode_operations *iops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubj)}(hhh]h)}(ha pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used.h](hVa pointer to the struct inode_operations to use for the symlink. If this parameter is }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@, then the default simple_symlink_inode operations will be used.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubh)}(hFThis function creates a symlink in securityfs with the given **name**.h](h=This function creates a symlink in securityfs with the given }(hj@hhhNhNubj)}(h**name**h]hname}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hjphhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh is returned.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurityfs_remove (C function)c.securityfs_removehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h.void securityfs_remove (struct dentry *dentry)h]j)}(h-void securityfs_remove(struct dentry *dentry)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM#ubjg)}(hsecurityfs_removeh]jm)}(hsecurityfs_removeh]hsecurityfs_remove}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM#ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj6}h]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 jsbc.securityfs_removeasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjGhhhNhNubah}(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:removes a file or directory from the securityfs filesystemh]h:removes a file or directory from the securityfs filesystem}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM#hjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX^**Parameters** ``struct dentry *dentry`` a pointer to a the dentry of the file or directory to be removed. **Description** This function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.) This function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here. AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.h](h)}(h**Parameters**h]j)}(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.chM'hjubj)}(hhh]j)}(h\``struct dentry *dentry`` a pointer to a the dentry of the file or directory to be removed. h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM%hjubj)}(hhh]h)}(hAa pointer to a the dentry of the file or directory to be removed.h]hAa pointer to a the dentry of the file or directory to be removed.}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM'hjubh)}(hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)h]hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM&hjubh)}(hThis function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here.h]hThis function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM*hjubh)}(h~AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.h]h~AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubeh}(h]security-frameworkah ]h"]security frameworkah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hAudit Interfacesh]hAudit Interfaces}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hhhhhM"ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_start (C function)c.audit_log_starthNtauh1hhj?hhhNhNubh)}(hhh](j)}(h[struct audit_buffer * audit_log_start (struct audit_context *ctx, gfp_t gfp_mask, int type)h]j)}(hYstruct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hj6}h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMaubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjvhMaubh)}(hhh]jm)}(h audit_bufferh]h audit_buffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE audit_log_startsbc.audit_log_startasbuh1hhjehhhjvhMaubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjvhMaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjvhMaubjg)}(haudit_log_starth]jm)}(hjh]haudit_log_start}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjvhMaubj)}(h5(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.audit_log_startasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(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}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jc.audit_log_startasbuh1hhjOubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubjm)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjvhMaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjvhMaubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjvhMahj^hhubj)}(hhh]h)}(hobtain an audit bufferh]hobtain an audit buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMahjhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjvhMaubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?hNhNubj)}(hXV**Parameters** ``struct audit_context *ctx`` audit_context (may be NULL) ``gfp_t gfp_mask`` type of allocation ``int type`` audit message type **Description** Returns audit_buffer pointer on success or NULL on error. Obtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMehjubj)}(hhh](j)}(h:``struct audit_context *ctx`` audit_context (may be NULL) h](j)}(h``struct audit_context *ctx``h]j)}(hj" h]hstruct audit_context *ctx}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMbhj ubj)}(hhh]h)}(haudit_context (may be NULL)h]haudit_context (may be NULL)}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7 hMbhj8 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj7 hMbhj ubj)}(h&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hj[ h]hgfp_t gfp_mask}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMchjU ubj)}(hhh]h)}(htype of allocationh]htype of allocation}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp hMchjq ubah}(h]h ]h"]h$]h&]uh1jhjU ubeh}(h]h ]h"]h$]h&]uh1jhjp hMchj ubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hj h]hint type}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMdhj ubj)}(hhh]h)}(haudit message typeh]haudit message type}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMdhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMdhj 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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMfhjubh)}(h9Returns audit_buffer pointer on success or NULL on error.h]h9Returns audit_buffer pointer on success or NULL on error.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMehjubh)}(hXqObtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.h]hXqObtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_format (C function)c.audit_log_formathNtauh1hhj?hhhNhNubh)}(hhh](j)}(hEvoid audit_log_format (struct audit_buffer *ab, const char *fmt, ...)h]j)}(hDvoid audit_log_format(struct audit_buffer *ab, const char *fmt, ...)h](j )}(hvoidh]hvoid}(hj#!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMubj)}(h h]h }(hj2!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!hhhj1!hMubjg)}(haudit_log_formath]jm)}(haudit_log_formath]haudit_log_format}(hjD!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj1!hMubj)}(h/(struct audit_buffer *ab, const char *fmt, ...)h](j)}(hstruct audit_buffer *abh](j)}(hj6}h]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 audit_bufferh]h audit_buffer}(hj~!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jF!sbc.audit_log_formatasbuh1hhj\!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)}(habh]hab}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX!ubj)}(hconst char *fmth](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)}(hfmth]hfmt}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjX!ubj)}(h...h]j)}(hjh]h...}(hj/"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+"ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjX!ubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj1!hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj1!hMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj1!hMhj!hhubj)}(hhh]h)}(h'format a message into the audit buffer.h]h'format a message into the audit buffer.}(hjX"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjU"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj1!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp"jjp"jjjuh1hhhhj?hNhNubj)}(h**Parameters** ``struct audit_buffer *ab`` audit_buffer ``const char *fmt`` format string ``...`` optional parameters matching **fmt** string **Description** All the work is done in audit_log_vformat.h](h)}(h**Parameters**h]j)}(hjz"h]h Parameters}(hj|"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx"ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjt"ubj)}(hhh](j)}(h)``struct audit_buffer *ab`` audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj"h]hstruct audit_buffer *ab}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj"ubj)}(hhh]h)}(h audit_bufferh]h audit_buffer}(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 char *fmt`` format string h](j)}(h``const char *fmt``h]j)}(hj"h]hconst char *fmt}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj"ubj)}(hhh]h)}(h format stringh]h format string}(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)}(h4``...`` optional parameters matching **fmt** string h](j)}(h``...``h]j)}(hj #h]h...}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj #ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj#ubj)}(hhh]h)}(h+optional parameters matching **fmt** stringh](hoptional parameters matching }(hj$#hhhNhNubj)}(h**fmt**h]hfmt}(hj,#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$#ubh string}(hj$#hhhNhNubeh}(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&]uh1jhjt"ubh)}(h**Description**h]j)}(hjX#h]h Description}(hjZ#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV#ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjt"ubh)}(h*All the work is done in audit_log_vformat.h]h*All the work is done in audit_log_vformat.}(hjn#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjt"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_subj_ctx (C function)c.audit_log_subj_ctxhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hGint audit_log_subj_ctx (struct audit_buffer *ab, struct lsm_prop *prop)h]j)}(hFint audit_log_subj_ctx(struct audit_buffer *ab, struct lsm_prop *prop)h](j )}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj#hMubjg)}(haudit_log_subj_ctxh]jm)}(haudit_log_subj_ctxh]haudit_log_subj_ctx}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj#hMubj)}(h0(struct audit_buffer *ab, struct lsm_prop *prop)h](j)}(hstruct audit_buffer *abh](j)}(hj6}h]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_bufferh]h audit_buffer}(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_log_subj_ctxasbuh1hhj#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)}(habh]hab}(hj3$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct lsm_prop *proph](j)}(hj6}h]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)}(hlsm_proph]hlsm_prop}(hjj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg$ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjl$modnameN classnameNjI jL )}jO ]j$c.audit_log_subj_ctxasbuh1hhjH$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)}(hproph]hprop}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH$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)}(hAdd LSM subject informationh]hAdd LSM subject information}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhj?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)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj$ubj)}(hhh](j)}(h)``struct audit_buffer *ab`` audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj%h]hstruct audit_buffer *ab}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj %ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj%ubj)}(hhh]h)}(h audit_bufferh]h audit_buffer}(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``struct lsm_prop *prop`` LSM subject properties. h](j)}(h``struct lsm_prop *prop``h]j)}(hjG%h]hstruct lsm_prop *prop}(hjI%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE%ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjA%ubj)}(hhh]h)}(hLSM subject properties.h]hLSM subject properties.}(hj`%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\%hMhj]%ubah}(h]h ]h"]h$]h&]uh1jhjA%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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj$ubh)}(hFAdd a subj= field and, if necessary, a AUDIT_MAC_TASK_CONTEXTS record.h]hFAdd a subj= field and, if necessary, a AUDIT_MAC_TASK_CONTEXTS record.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_end (C function)c.audit_log_endhNtauh1hhj?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}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMB ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj%hMB ubjg)}(h audit_log_endh]jm)}(h audit_log_endh]h audit_log_end}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj%hMB ubj)}(h(struct audit_buffer *ab)h]j)}(hstruct audit_buffer *abh](j)}(hj6}h]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_bufferh]h audit_buffer}(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_log_endasbuh1hhj&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)}(habh]hab}(hj]&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhj%hhhj%hMB ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%hMB ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMB hj%hhubj)}(hhh]h)}(hend one audit recordh]hend one audit record}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMB hj&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hMB ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhj?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)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMF hj&ubj)}(hhh]j)}(h-``struct audit_buffer *ab`` the audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj&h]hstruct audit_buffer *ab}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMC hj&ubj)}(hhh]h)}(hthe audit_bufferh]hthe audit_buffer}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMC hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMC 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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chME hj&ubh)}(hX We can not do a netlink send inside an irq context because it blocks (last arg, flags, is not set to MSG_DONTWAIT), so the audit buffer is placed on a queue and a kthread is scheduled to remove them from the queue outside the irq context. May be called in any context.h]hX We can not do a netlink send inside an irq context because it blocks (last arg, flags, is not set to MSG_DONTWAIT), so the audit buffer is placed on a queue and a kthread is scheduled to remove them from the queue outside the irq context. May be called in any context.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMD hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log (C function) c.audit_loghNtauh1hhj?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}(hjH'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjD'hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM[ ubj)}(h h]h }(hjW'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjD'hhhjV'hM[ ubjg)}(h audit_logh]jm)}(h audit_logh]h audit_log}(hji'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhje'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjD'hhhjV'hM[ ubj)}(hK(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]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 ]jR )}jE jk'sb c.audit_logasbuh1hhj'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}'ubj)}(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 reftargetj'modnameN classnameNjI jL )}jO ]j' c.audit_logasbuh1hhj'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}'ubj)}(hint typeh](j )}(hinth]hint}(hj?(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;(ubj)}(h h]h }(hjM(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;(ubjm)}(htypeh]htype}(hj[(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}'ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjt(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjp(ubj )}(hcharh]hchar}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjp(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)}(hfmth]hfmt}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}'ubj)}(h...h]j)}(hjh]h...}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj}'ubeh}(h]h ]h"]h$]h&]jjuh1jhjD'hhhjV'hM[ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@'hhhjV'hM[ ubah}(h]j;'ah ](jjeh"]h$]h&]jj)jhuh1hhjV'hM[ hj='hhubj)}(hhh]h)}(hLog an audit recordh]hLog an audit record}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM[ hj(hhubah}(h]h ]h"]h$]h&]uh1jhj='hhhjV'hM[ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhj?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)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM_ hj)ubj)}(hhh](j)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hj;)h]hstruct audit_context *ctx}(hj=)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9)ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM\ hj5)ubj)}(hhh]h)}(h audit contexth]h audit context}(hjT)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP)hM\ hjQ)ubah}(h]h ]h"]h$]h&]uh1jhj5)ubeh}(h]h ]h"]h$]h&]uh1jhjP)hM\ hj2)ubj)}(h&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hjt)h]hgfp_t gfp_mask}(hjv)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr)ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM] hjn)ubj)}(hhh]h)}(htype of allocationh]htype of allocation}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM] hj)ubah}(h]h ]h"]h$]h&]uh1jhjn)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM] hj2)ubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hj)h]hint type}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM^ hj)ubj)}(hhh]h)}(haudit message typeh]haudit message type}(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^ hj2)ubj)}(h)``const char *fmt`` format string to use h](j)}(h``const char *fmt``h]j)}(hj)h]hconst char *fmt}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM_ hj)ubj)}(hhh]h)}(hformat string to useh]hformat string to use}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM_ hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM_ hj2)ubj)}(h7``...`` variable parameters matching the format string h](j)}(h``...``h]j)}(hj*h]h...}(hj!*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM` hj*ubj)}(hhh]h)}(h.variable parameters matching the format stringh]h.variable parameters matching the format string}(hj8*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4*hM` hj5*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj4*hM` hj2)ubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hjZ*h]h Description}(hj\*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX*ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMb hj)ubh)}(hThis is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.h]hThis is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.}(hjp*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMa hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_filter_op (C function)c.__audit_filter_ophNtauh1hhj?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}(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_filter_oph]jm)}(h__audit_filter_oph]h__audit_filter_op}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj*hM.ubj)}(hx(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h](j)}(hstruct task_struct *tskh](j)}(hj6}h]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.__audit_filter_opasbuh1hhj*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}(hj5+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct audit_context *ctxh](j)}(hj6}h]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 audit_contexth]h audit_context}(hjl+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjn+modnameN classnameNjI jL )}jO ]j+c.__audit_filter_opasbuh1hhjJ+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)}(hctxh]hctx}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct list_head *listh](j)}(hj6}h]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.__audit_filter_opasbuh1hhj+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 audit_names *nameh](j)}(hj6}h]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_namesh]h audit_names}(hjL,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjN,modnameN classnameNjI jL )}jO ]j+c.__audit_filter_opasbuh1hhj*,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)}(hnameh]hname}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hunsigned long oph](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)}(hoph]hop}(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)}(h7common filter helper for operations (syscall/uring/etc)h]h7common filter helper for operations (syscall/uring/etc)}(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-jjjuh1hhhhj?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)}(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.chM2hj-ubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hjA-h]hstruct task_struct *tsk}(hjC-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?-ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM/hj;-ubj)}(hhh]h)}(hassociated taskh]hassociated task}(hjZ-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV-hM/hjW-ubah}(h]h ]h"]h$]h&]uh1jhj;-ubeh}(h]h ]h"]h$]h&]uh1jhjV-hM/hj8-ubj)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hjz-h]hstruct audit_context *ctx}(hj|-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx-ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hjt-ubj)}(hhh]h)}(h audit contexth]h audit context}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM0hj-ubah}(h]h ]h"]h$]h&]uh1jhjt-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM0hj8-ubj)}(h-``struct list_head *list`` audit filter list 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hj-ubj)}(hhh]h)}(haudit filter listh]haudit filter list}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM1hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM1hj8-ubj)}(h6``struct audit_names *name`` audit_name (can be NULL) h](j)}(h``struct audit_names *name``h]j)}(hj-h]hstruct audit_names *name}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj-ubj)}(hhh]h)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hM2hj.ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hM2hj8-ubj)}(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}(hj>.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:.hM3hj;.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj:.hM3hj8-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]j)}(hj`.h]h Description}(hjb.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.chM5hj-ubh)}(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 }(hjv.hhhNhNubj)}(h**list**h]hlist}(hj~.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubh against }(hjv.hhhNhNubj)}(h**tsk**h]htsk}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubh using }(hjv.hhhNhNubj)}(h**ctx**h]hctx}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubh, }(hjv.hhhNhNubj)}(h**name**h]hname}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubh, and }(hjv.hhhNhNubj)}(h**op**h]hop}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubhr, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The }(hjv.hhhNhNubj)}(h**name**h]hname}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.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.}(hjv.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_filter_uring (C function)c.audit_filter_uringhNtauh1hhj?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}(hj2/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)}(hj6}h]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 task_structh]h task_struct}(hjl/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjn/modnameN classnameNjI jL )}jO ]jR )}jE j4/sbc.audit_filter_uringasbuh1hhjJ/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)}(htskh]htsk}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF/ubj)}(hstruct audit_context *ctxh](j)}(hj6}h]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 ]j/c.audit_filter_uringasbuh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj 0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hctxh]hctx}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF/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}(hjA0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhj>0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjjY0jjY0jjjuh1hhhhj?hNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit contexth](h)}(h**Parameters**h]j)}(hjc0h]h Parameters}(hje0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja0ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMThj]0ubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hj0h]hstruct task_struct *tsk}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMQhj|0ubj)}(hhh]h)}(hassociated taskh]hassociated task}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMQhj0ubah}(h]h ]h"]h$]h&]uh1jhj|0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMQhjy0ubj)}(h+``struct audit_context *ctx`` audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hj0h]hstruct audit_context *ctx}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShj0ubj)}(hhh]h)}(h audit contexth]h audit context}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMRhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMShjy0ubeh}(h]h ]h"]h$]h&]uh1jhj]0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h audit_reset_context (C function)c.audit_reset_contexthNtauh1hhj?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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj$1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj#1hMubjg)}(haudit_reset_contexth]jm)}(haudit_reset_contexth]haudit_reset_context}(hj61hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj21ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj#1hMubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjR1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN1ubj)}(h h]h }(hj_1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN1ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjp1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjr1modnameN classnameNjI jL )}jO ]jR )}jE j81sbc.audit_reset_contextasbuh1hhjN1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN1ubjm)}(hctxh]hctx}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjN1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJ1ubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhj#1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj 1hhhj#1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj#1hMhj 1hhubj)}(hhh]h)}(hreset a audit_context structureh]hreset a audit_context structure}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhj 1hhhj#1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhj?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)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1ubj)}(hhh]j)}(h9``struct audit_context *ctx`` the audit_context to reset h](j)}(h``struct audit_context *ctx``h]j)}(hj2h]hstruct audit_context *ctx}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj2ubj)}(hhh]h)}(hthe audit_context to reseth]hthe audit_context to reset}(hj/2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+2hMhj,2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj+2hMhj 2ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hjQ2h]h Description}(hjS2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO2ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1ubh)}(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.}(hjg2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_alloc (C function) c.audit_allochNtauh1hhj?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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj2hMubjg)}(h audit_alloch]jm)}(h audit_alloch]h audit_alloc}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj2hMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE j2sb c.audit_allocasbuh1hhj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(htskh]htsk}(hj,3hhhNhNubah}(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)}(h*allocate an audit context block for a taskh]h*allocate an audit context block for a task}(hjV3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjS3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjn3jjn3jjjuh1hhhhj?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)}(hjx3h]h Parameters}(hjz3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv3ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjr3ubj)}(hhh]j)}(h!``struct task_struct *tsk`` task h](j)}(h``struct task_struct *tsk``h]j)}(hj3h]hstruct task_struct *tsk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj3ubj)}(hhh]h)}(htaskh]htask}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjr3ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjr3ubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjr3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_uring (C function)c.audit_log_uringhNtauh1hhj?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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOubj)}(h h]h }(hj&4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhj%4hMOubjg)}(haudit_log_uringh]jm)}(haudit_log_uringh]haudit_log_uring}(hj84hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj44ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhj%4hMOubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjT4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP4ubj)}(h h]h }(hja4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP4ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjr4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjt4modnameN classnameNjI jL )}jO ]jR )}jE j:4sbc.audit_log_uringasbuh1hhjP4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP4ubjm)}(hctxh]hctx}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjP4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjL4ubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhj%4hMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj%4hMOubah}(h]j 4ah ](jjeh"]h$]h&]jj)jhuh1hhj%4hMOhj 4hhubj)}(hhh]h)}(hgenerate a AUDIT_URINGOP recordh]hgenerate a AUDIT_URINGOP record}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhj4hhubah}(h]h ]h"]h$]h&]uh1jhj 4hhhj%4hMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj?hNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShj4ubj)}(hhh]j)}(h/``struct audit_context *ctx`` the audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hj5h]hstruct audit_context *ctx}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMUhj5ubj)}(hhh]h)}(hthe audit contexth]hthe audit context}(hj15hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhj.5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj-5hMUhj5ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_free (C function)c.__audit_freehNtauh1hhj?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}(hjr5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjn5hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjn5hhhj5hMubjg)}(h __audit_freeh]jm)}(h __audit_freeh]h __audit_free}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjn5hhhj5hMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE j5sbc.__audit_freeasbuh1hhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(htskh]htsk}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhjn5hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjj5hhhj5hMubah}(h]je5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMhjg5hhubj)}(hhh]h)}(hfree a per-task audit contexth]hfree a per-task audit context}(hj26hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj/6hhubah}(h]h ]h"]h$]h&]uh1jhjg5hhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJ6jjJ6jjjuh1hhhhj?hNhNubj)}(h**Parameters** ``struct task_struct *tsk`` task whose audit context block to free **Description** Called from copy_process, do_exit, and the io_uring codeh](h)}(h**Parameters**h]j)}(hjT6h]h Parameters}(hjV6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR6ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjN6ubj)}(hhh]j)}(hC``struct task_struct *tsk`` task whose audit context block to free h](j)}(h``struct task_struct *tsk``h]j)}(hjs6h]hstruct task_struct *tsk}(hju6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq6ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjm6ubj)}(hhh]h)}(h&task whose audit context block to freeh]h&task whose audit context block to free}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjm6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjj6ubah}(h]h ]h"]h$]h&]uh1jhjN6ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjN6ubh)}(h8Called from copy_process, do_exit, and the io_uring codeh]h8Called from copy_process, do_exit, and the io_uring code}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjN6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_return_fixup (C function)c.audit_return_fixuphNtauh1hhj?hhhNhNubh)}(hhh](j)}(hKvoid audit_return_fixup (struct audit_context *ctx, int success, long code)h]j)}(hJvoid audit_return_fixup(struct audit_context *ctx, int success, long code)h](j )}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj7hM0ubjg)}(haudit_return_fixuph]jm)}(haudit_return_fixuph]haudit_return_fixup}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj7hM0ubj)}(h3(struct audit_context *ctx, int success, long code)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hj07hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,7ubj)}(h h]h }(hj=7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,7ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjN7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjP7modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.audit_return_fixupasbuh1hhj,7ubj)}(h h]h }(hjn7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,7ubj)}(hjh]h*}(hj|7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,7ubjm)}(hctxh]hctx}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(7ubj)}(h int successh](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubjm)}(hsuccessh]hsuccess}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(7ubj)}(h long codeh](j )}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubjm)}(hcodeh]hcode}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(7ubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhj7hM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj7hM0ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj7hM0hj6hhubj)}(hhh]h)}(h+fixup the return codes in the audit_contexth]h+fixup the return codes in the audit_context}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hj8hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj7hM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj58jj58jjjuh1hhhhj?hNhNubj)}(hX\**Parameters** ``struct audit_context *ctx`` the audit_context ``int success`` true/false value to indicate if the operation succeeded or not ``long code`` operation return code **Description** We need to fixup the return code in the audit logs if the actual return codes are later going to be fixed by the arch specific signal handlers.h](h)}(h**Parameters**h]j)}(hj?8h]h Parameters}(hjA8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=8ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hj98ubj)}(hhh](j)}(h0``struct audit_context *ctx`` the audit_context h](j)}(h``struct audit_context *ctx``h]j)}(hj^8h]hstruct audit_context *ctx}(hj`8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hjX8ubj)}(hhh]h)}(hthe audit_contexth]hthe audit_context}(hjw8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs8hM1hjt8ubah}(h]h ]h"]h$]h&]uh1jhjX8ubeh}(h]h ]h"]h$]h&]uh1jhjs8hM1hjU8ubj)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hj8h]h int success}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj8ubj)}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM2hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM2hjU8ubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hj8h]h long code}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3hj8ubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM3hj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hM3hjU8ubeh}(h]h ]h"]h$]h&]uh1jhj98ubh)}(h**Description**h]j)}(hj 9h]h Description}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 9ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hj98ubh)}(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.}(hj!9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hj98ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhj?hhhNhNubh)}(hhh](j)}(h void __audit_uring_entry (u8 op)h]j)}(hvoid __audit_uring_entry(u8 op)h](j )}(hvoidh]hvoid}(hjP9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjL9hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLubj)}(h h]h }(hj_9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL9hhhj^9hMLubjg)}(h__audit_uring_entryh]jm)}(h__audit_uring_entryh]h__audit_uring_entry}(hjq9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjm9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjL9hhhj^9hMLubj)}(h(u8 op)h]j)}(hu8 oph](h)}(hhh]jm)}(hu8h]hu8}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE js9sbc.__audit_uring_entryasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hoph]hop}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhjL9hhhj^9hMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjH9hhhj^9hMLubah}(h]jC9ah ](jjeh"]h$]h&]jj)jhuh1hhj^9hMLhjE9hhubj)}(hhh]h)}(h4prepare the kernel task's audit context for io_uringh]h6prepare the kernel task’s audit context for io_uring}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLhj9hhubah}(h]h ]h"]h$]h&]uh1jhjE9hhhj^9hMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhj?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)}(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.chMPhj:ubj)}(hhh]j)}(h``u8 op`` the io_uring opcode h](j)}(h ``u8 op``h]j)}(hj):h]hu8 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.chMMhj#:ubj)}(hhh]h)}(hthe io_uring opcodeh]hthe io_uring opcode}(hjB: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)}(hjd:h]h Description}(hjf:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb:ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhj:ubh)}(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.}(hjz:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMNhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_uring_exit (C function)c.__audit_uring_exithNtauh1hhj?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}(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)}(h__audit_uring_exith]jm)}(h__audit_uring_exith]h__audit_uring_exit}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hMoubj)}(h(int success, long code)h](j)}(h int successh](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)}(hsuccessh]hsuccess}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(h long codeh](j )}(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)}(hcodeh]hcode}(hj7;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(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)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hja;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&]jjjjy;jjy;jjjuh1hhhhj?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)}(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)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hj;h]h int success}(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.chMphj;ubj)}(hhh]h)}(h>true/false value to indicate if the operation succeeded or noth]h>true/false value to indicate if the operation succeeded or not}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMphj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMphj;ubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hj;h]h long code}(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.chMqhj;ubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMqhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMqhj;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.chMshj};ubh)}(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.}(hj,<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMrhj};ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhj?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}(hj[<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjW<hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hjj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjW<hhhji<hMubjg)}(h__audit_syscall_entryh]jm)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hj|<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjx<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjW<hhhji<hMubj)}(hS(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j)}(h int majorh](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)}(hmajorh]hmajor}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hunsigned long a1h](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)}(ha1h]ha1}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hunsigned long a2h](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 }(hjH=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubjm)}(ha2h]ha2}(hjV=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hunsigned long a3h](j )}(hunsignedh]hunsigned}(hjo=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjk=ubj)}(h h]h }(hj}=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk=ubj )}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjk=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk=ubjm)}(ha3h]ha3}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hunsigned long a4h](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)}(ha4h]ha4}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubeh}(h]h ]h"]h$]h&]jjuh1jhjW<hhhji<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjS<hhhji<hMubah}(h]jN<ah ](jjeh"]h$]h&]jj)jhuh1hhji<hMhjP<hhubj)}(hhh]h)}(h(fill in an audit record at syscall entryh]h(fill in an audit record at syscall entry}(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&]uh1jhjP<hhhji<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:>jj:>jjjuh1hhhhj?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)}(hjD>h]h Parameters}(hjF>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB>ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj>>ubj)}(hhh](j)}(h,``int major`` major syscall type (function) h](j)}(h ``int major``h]j)}(hjc>h]h int major}(hje>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja>ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj]>ubj)}(hhh]h)}(hmajor syscall type (function)h]hmajor syscall type (function)}(hj|>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx>hMhjy>ubah}(h]h ]h"]h$]h&]uh1jhj]>ubeh}(h]h ]h"]h$]h&]uh1jhjx>hMhjZ>ubj)}(h3``unsigned long a1`` additional syscall register 1 h](j)}(h``unsigned long a1``h]j)}(hj>h]hunsigned long a1}(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)}(hadditional syscall register 1h]hadditional syscall register 1}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjZ>ubj)}(h3``unsigned long a2`` additional syscall register 2 h](j)}(h``unsigned long a2``h]j)}(hj>h]hunsigned long a2}(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)}(hadditional syscall register 2h]hadditional syscall register 2}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjZ>ubj)}(h3``unsigned long a3`` additional syscall register 3 h](j)}(h``unsigned long a3``h]j)}(hj?h]hunsigned long a3}(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)}(hadditional syscall register 3h]hadditional syscall register 3}(hj'?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#?hMhj$?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj#?hMhjZ>ubj)}(h3``unsigned long a4`` additional syscall register 4 h](j)}(h``unsigned long a4``h]j)}(hjG?h]hunsigned long a4}(hjI?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE?ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjA?ubj)}(hhh]h)}(hadditional syscall register 4h]hadditional syscall register 4}(hj`?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\?hMhj]?ubah}(h]h ]h"]h$]h&]uh1jhjA?ubeh}(h]h ]h"]h$]h&]uh1jhj\?hMhjZ>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.chMhj>>ubh)}(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).}(hj?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&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__audit_syscall_exit (C function)c.__audit_syscall_exithNtauh1hhj?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}(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_syscall_exith]jm)}(h__audit_syscall_exith]h__audit_syscall_exit}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhj?hMubj)}(h(int success, long return_code)h](j)}(h int successh](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)}(hsuccessh]hsuccess}(hj @hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hlong return_codeh](j )}(hlongh]hlong}(hj9@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5@ubj)}(h h]h }(hjG@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5@ubjm)}(h return_codeh]h return_code}(hjU@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5@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,deallocate audit context after a system callh]h,deallocate audit context after a system call}(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@jjjuh1hhhhj?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)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj@ubj)}(hhh](j)}(h-``int success`` success value of the syscall h](j)}(h``int success``h]j)}(hj@h]h int success}(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)}(hsuccess value of the syscallh]hsuccess value of the syscall}(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)}(h1``long return_code`` return value of the syscall h](j)}(h``long return_code``h]j)}(hj@h]hlong return_code}(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)}(hreturn value of the syscallh]hreturn value of the syscall}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hj4Ah]h Description}(hj6AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Aubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj@ubh)}(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().}(hjJAhhhNhNubah}(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&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_reusename (C function)c.__audit_reusenamehNtauh1hhj?hhhNhNubh)}(hhh](j)}(h=struct filename * __audit_reusename (const __user char *uptr)h]j)}(h;struct filename *__audit_reusename(__user const char *uptr)h](j)}(hj6}h]hstruct}(hjyAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuAhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM}ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuAhhhjAhM}ubh)}(hhh]jm)}(hfilenameh]hfilename}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE __audit_reusenamesbc.__audit_reusenameasbuh1hhjuAhhhjAhM}ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuAhhhjAhM}ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuAhhhjAhM}ubjg)}(h__audit_reusenameh]jm)}(hjAh]h__audit_reusename}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuAhhhjAhM}ubj)}(h(__user const char *uptr)h]j)}(h__user const char *uptrh](h__user}(hjAhhhNhNubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hcharh]hchar}(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hj.BhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hnameh]hname}(hjKEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hconst struct dentry *dentryh](j)}(hjh]hconst}(hjdEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Eubj)}(h h]h }(hjqEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`Eubj)}(hj6}h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Eubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`Eubh)}(hhh]jm)}(hdentryh]hdentry}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]j,Ec.__audit_inodeasbuh1hhj`Eubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`Eubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Eubjm)}(hdentryh]hdentry}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj )}(hinth]hint}(hj FhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hflagsh]hflags}(hj'FhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjDhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjDhhubj)}(hhh]h)}(h(store the inode and device from a lookuph]h(store the inode and device from a lookup}(hjQFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjNFhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjiFjjiFjjjuh1hhhhj?hNhNubj)}(h**Parameters** ``struct filename *name`` name being audited ``const struct dentry *dentry`` dentry being audited ``unsigned int flags`` attributes for this particular entryh](h)}(h**Parameters**h]j)}(hjsFh]h Parameters}(hjuFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqFubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjmFubj)}(hhh](j)}(h-``struct filename *name`` name being audited h](j)}(h``struct filename *name``h]j)}(hjFh]hstruct filename *name}(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.chMhjFubj)}(hhh]h)}(hname being auditedh]hname being audited}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubj)}(h5``const struct dentry *dentry`` dentry being audited h](j)}(h``const struct dentry *dentry``h]j)}(hjFh]hconst struct dentry *dentry}(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.chMhjFubj)}(hhh]h)}(hdentry being auditedh]hdentry being audited}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFubj)}(h;``unsigned int flags`` attributes for this particular entryh](j)}(h``unsigned int flags``h]j)}(hjGh]hunsigned int flags}(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.chMhjFubj)}(hhh]h)}(h$attributes for this particular entryh]h$attributes for this particular entry}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjFubeh}(h]h ]h"]h$]h&]uh1jhjmFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hauditsc_get_stamp (C function)c.auditsc_get_stamphNtauh1hhj?hhhNhNubh)}(hhh](j)}(hLint auditsc_get_stamp (struct audit_context *ctx, struct audit_stamp *stamp)h]j)}(hKint auditsc_get_stamp(struct audit_context *ctx, struct audit_stamp *stamp)h](j )}(hinth]hint}(hj^GhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZGhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjmGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZGhhhjlGhM ubjg)}(hauditsc_get_stamph]jm)}(hauditsc_get_stamph]hauditsc_get_stamp}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{Gubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZGhhhjlGhM ubj)}(h6(struct audit_context *ctx, struct audit_stamp *stamp)h](j)}(hstruct audit_context *ctxh](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.auditsc_get_stampasbuh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hctxh]hctx}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct audit_stamp *stamph](j)}(hj6}h]hstruct}(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Hubh)}(hhh]jm)}(h audit_stamph]h audit_stamp}(hj+HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(Hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-HmodnameN classnameNjI jL )}jO ]jGc.auditsc_get_stampasbuh1hhj Hubj)}(h h]h }(hjIHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Hubj)}(hjh]h*}(hjWHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Hubjm)}(hstamph]hstamp}(hjdHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjZGhhhjlGhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVGhhhjlGhM ubah}(h]jQGah ](jjeh"]h$]h&]jj)jhuh1hhjlGhM hjSGhhubj)}(hhh]h)}(h(get local copies of audit_context valuesh]h(get local copies of audit_context values}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjHhhubah}(h]h ]h"]h$]h&]uh1jhjSGhhhjlGhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhj?hNhNubj)}(h**Parameters** ``struct audit_context *ctx`` audit_context for the task ``struct audit_stamp *stamp`` timestamp to record **Description** Also sets the context as auditable.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjHubj)}(hhh](j)}(h9``struct audit_context *ctx`` audit_context for the task h](j)}(h``struct audit_context *ctx``h]j)}(hjHh]hstruct audit_context *ctx}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjHubj)}(hhh]h)}(haudit_context for the taskh]haudit_context for the task}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM hjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhM hjHubj)}(h2``struct audit_stamp *stamp`` timestamp to record h](j)}(h``struct audit_stamp *stamp``h]j)}(hjIh]hstruct audit_stamp *stamp}(hj IhhhNhNubah}(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)}(htimestamp to recordh]htimestamp to record}(hj!IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhM hjHubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]j)}(hjCIh]h Description}(hjEIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAIubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjHubh)}(h#Also sets the context as auditable.h]h#Also sets the context as auditable.}(hjYIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_mq_open (C function)c.__audit_mq_openhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hDvoid __audit_mq_open (int oflag, umode_t mode, struct mq_attr *attr)h]j)}(hCvoid __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr)h](j )}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhjIhM ubjg)}(h__audit_mq_openh]jm)}(h__audit_mq_openh]h__audit_mq_open}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhjIhM ubj)}(h/(int oflag, umode_t mode, struct mq_attr *attr)h](j)}(h int oflagh](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubjm)}(hoflagh]hoflag}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE jIsbc.__audit_mq_openasbuh1hhjIubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubjm)}(hmodeh]hmode}(hj+JhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hstruct mq_attr *attrh](j)}(hj6}h]hstruct}(hjDJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Jubj)}(h h]h }(hjQJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Jubh)}(hhh]jm)}(hmq_attrh]hmq_attr}(hjbJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_Jubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdJmodnameN classnameNjI jL )}jO ]jJc.__audit_mq_openasbuh1hhj@Jubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@Jubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Jubjm)}(hattrh]hattr}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhjIhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhM ubah}(h]j{Iah ](jjeh"]h$]h&]jj)jhuh1hhjIhM hj}Ihhubj)}(hhh]h)}(h%record audit data for a POSIX MQ openh]h%record audit data for a POSIX MQ open}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJhhubah}(h]h ]h"]h$]h&]uh1jhj}IhhhjIhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1hhhhj?hNhNubj)}(ht**Parameters** ``int oflag`` open flag ``umode_t mode`` mode bits ``struct mq_attr *attr`` queue attributesh](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJubj)}(hhh](j)}(h``int oflag`` open flag h](j)}(h ``int oflag``h]j)}(hjKh]h int oflag}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjKubj)}(hhh]h)}(h open flagh]h open flag}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM hjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhM hjJubj)}(h``umode_t mode`` mode bits h](j)}(h``umode_t mode``h]j)}(hj?Kh]h umode_t mode}(hjAKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Kubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj9Kubj)}(hhh]h)}(h mode bitsh]h mode bits}(hjXKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTKhM hjUKubah}(h]h ]h"]h$]h&]uh1jhj9Kubeh}(h]h ]h"]h$]h&]uh1jhjTKhM hjJubj)}(h)``struct mq_attr *attr`` queue attributesh](j)}(h``struct mq_attr *attr``h]j)}(hjxKh]hstruct mq_attr *attr}(hjzKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjrKubj)}(hhh]h)}(hqueue attributesh]hqueue attributes}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjKubah}(h]h ]h"]h$]h&]uh1jhjrKubeh}(h]h ]h"]h$]h&]uh1jhjKhM hjJubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __audit_mq_sendrecv (C function)c.__audit_mq_sendrecvhNtauh1hhj?hhhNhNubh)}(hhh](j)}(hsvoid __audit_mq_sendrecv (mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h]j)}(hrvoid __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](j )}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhjKhM ubjg)}(h__audit_mq_sendrecvh]jm)}(h__audit_mq_sendrecvh]h__audit_mq_sendrecv}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhjKhM ubj)}(hZ(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.__audit_mq_sendrecvasbuh1hhj Lubj)}(h h]h }(hj2LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Lubjm)}(hmqdesh]hmqdes}(hj@LhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hsize_t msg_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj\LhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^LmodnameN classnameNjI jL )}jO ]j.Lc.__audit_mq_sendrecvasbuh1hhjULubj)}(h h]h }(hjzLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjULubjm)}(hmsg_lenh]hmsg_len}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjULubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hunsigned int msg_prioh](j )}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubjm)}(hmsg_prioh]hmsg_prio}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(h$const struct timespec64 *abs_timeouth](j)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hj6}h]hstruct}(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(h timespec64h]h timespec64}(hj+MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(Mubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-MmodnameN classnameNjI jL )}jO ]j.Lc.__audit_mq_sendrecvasbuh1hhjLubj)}(h h]h }(hjIMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjWMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(h abs_timeouth]h abs_timeout}(hjdMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhM ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjKhM hjKhhubj)}(hhh]h)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjMhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhj?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)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjMubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjMh]h mqd_t mqdes}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjMubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM hjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhM hjMubj)}(h"``size_t msg_len`` Message length h](j)}(h``size_t msg_len``h]j)}(hjNh]hsize_t msg_len}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjNubj)}(hhh]h)}(hMessage lengthh]hMessage length}(hj!NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM hjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM hjMubj)}(h+``unsigned int msg_prio`` Message priority h](j)}(h``unsigned int msg_prio``h]j)}(hjANh]hunsigned int msg_prio}(hjCNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Nubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj;Nubj)}(hhh]h)}(hMessage priorityh]hMessage priority}(hjZNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVNhM hjWNubah}(h]h ]h"]h$]h&]uh1jhj;Nubeh}(h]h ]h"]h$]h&]uh1jhjVNhM hjMubj)}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j)}(h(``const struct timespec64 *abs_timeout``h]j)}(hjzNh]h$const struct timespec64 *abs_timeout}(hj|NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjtNubj)}(hhh]h)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjNubah}(h]h ]h"]h$]h&]uh1jhjtNubeh}(h]h ]h"]h$]h&]uh1jhjNhM hjMubeh}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhj?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}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNhhhjNhM ubjg)}(h__audit_mq_notifyh]jm)}(h__audit_mq_notifyh]h__audit_mq_notify}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhjNhM ubj)}(h2(mqd_t mqdes, const struct sigevent *notification)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE jNsbc.__audit_mq_notifyasbuh1hhj Oubj)}(h h]h }(hj4OhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Oubjm)}(hmqdesh]hmqdes}(hjBOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Oubj)}(h#const struct sigevent *notificationh](j)}(hjh]hconst}(hj[OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWOubj)}(h h]h }(hjhOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWOubj)}(hj6}h]hstruct}(hjvOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWOubh)}(hhh]jm)}(hsigeventh]hsigevent}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]j0Oc.__audit_mq_notifyasbuh1hhjWOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWOubjm)}(h notificationh]h notification}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Oubeh}(h]h ]h"]h$]h&]jjuh1jhjNhhhjNhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhM ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhM hjNhhubj)}(hhh]h)}(h'record audit data for a POSIX MQ notifyh]h'record audit data for a POSIX MQ notify}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhj?hNhNubj)}(hm**Parameters** ``mqd_t mqdes`` MQ descriptor ``const struct sigevent *notification`` Notification eventh](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjPubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hj8Ph]h mqd_t mqdes}(hj:PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Pubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj2Pubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjQPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMPhM hjNPubah}(h]h ]h"]h$]h&]uh1jhj2Pubeh}(h]h ]h"]h$]h&]uh1jhjMPhM hj/Pubj)}(h:``const struct sigevent *notification`` Notification eventh](j)}(h'``const struct sigevent *notification``h]j)}(hjqPh]h#const struct sigevent *notification}(hjsPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoPubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjkPubj)}(hhh]h)}(hNotification eventh]hNotification event}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjPubah}(h]h ]h"]h$]h&]uh1jhjkPubeh}(h]h ]h"]h$]h&]uh1jhjPhM hj/Pubeh}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__audit_mq_getsetattr (C function)c.__audit_mq_getsetattrhNtauh1hhj?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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjPhM ubjg)}(h__audit_mq_getsetattrh]jm)}(h__audit_mq_getsetattrh]h__audit_mq_getsetattr}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhM ubj)}(h%(mqd_t mqdes, struct mq_attr *mqstat)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hj QhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj QmodnameN classnameNjI jL )}jO ]jR )}jE jPsbc.__audit_mq_getsetattrasbuh1hhjQubj)}(h h]h }(hj+QhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(hmqdesh]hmqdes}(hj9QhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hstruct mq_attr *mqstath](j)}(hj6}h]hstruct}(hjRQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNQubj)}(h h]h }(hj_QhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNQubh)}(hhh]jm)}(hmq_attrh]hmq_attr}(hjpQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrQmodnameN classnameNjI jL )}jO ]j'Qc.__audit_mq_getsetattrasbuh1hhjNQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNQubjm)}(hmqstath]hmqstat}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhM ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhM hjPhhubj)}(hhh]h)}(h2record audit data for a POSIX MQ get/set attributeh]h2record audit data for a POSIX MQ get/set attribute}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhj?hNhNubj)}(hV**Parameters** ``mqd_t mqdes`` MQ descriptor ``struct mq_attr *mqstat`` MQ flagsh](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjQubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjRh]h mqd_t mqdes}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjRubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hj-RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)RhM hj*Rubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhj)RhM hj Rubj)}(h#``struct mq_attr *mqstat`` MQ flagsh](j)}(h``struct mq_attr *mqstat``h]j)}(hjMRh]hstruct mq_attr *mqstat}(hjORhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKRubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjGRubj)}(hhh]h)}(hMQ flagsh]hMQ flags}(hjfRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjcRubah}(h]h ]h"]h$]h&]uh1jhjGRubeh}(h]h ]h"]h$]h&]uh1jhjbRhM hj Rubeh}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_ipc_obj (C function)c.__audit_ipc_objhNtauh1hhj?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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjRhM ubjg)}(h__audit_ipc_objh]jm)}(h__audit_ipc_objh]h__audit_ipc_obj}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjRhM ubj)}(h(struct kern_ipc_perm *ipcp)h]j)}(hstruct kern_ipc_perm *ipcph](j)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE jRsbc.__audit_ipc_objasbuh1hhjRubj)}(h h]h }(hj"ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hj0ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hipcph]hipcp}(hj=ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjRhhhjRhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjRhM ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjRhM hjRhhubj)}(hhh]h)}(h record audit data for ipc objecth]h record audit data for ipc object}(hjgShhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjdShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhj?hNhNubj)}(h@**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permissionsh](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM$ hjSubj)}(hhh]j)}(h.``struct kern_ipc_perm *ipcp`` ipc permissionsh](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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM& hjSubj)}(hhh]h)}(hipc permissionsh]hipc permissions}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM! hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShM& hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__audit_ipc_set_perm (C function)c.__audit_ipc_set_permhNtauh1hhj?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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjShhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1 ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjShhhjThM1 ubjg)}(h__audit_ipc_set_permh]jm)}(h__audit_ipc_set_permh]h__audit_ipc_set_perm}(hj#ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjShhhjThM1 ubj)}(h:(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j)}(hunsigned long qbytesh](j )}(hunsignedh]hunsigned}(hj?ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;Tubj)}(h h]h }(hjMThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Tubj )}(hlongh]hlong}(hj[ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;Tubj)}(h h]h }(hjiThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;Tubjm)}(hqbytesh]hqbytes}(hjwThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Tubj)}(h uid_t uidh](h)}(hhh]jm)}(huid_th]huid_t}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jR )}jE j%Tsbc.__audit_ipc_set_permasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(huidh]huid}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Tubj)}(h gid_t gidh](h)}(hhh]jm)}(hgid_th]hgid_t}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jTc.__audit_ipc_set_permasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hgidh]hgid}(hj UhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Tubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hj%UhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"Uubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'UmodnameN classnameNjI jL )}jO ]jTc.__audit_ipc_set_permasbuh1hhjUubj)}(h h]h }(hjCUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubjm)}(hmodeh]hmode}(hjQUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Tubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjThM1 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjThM1 ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjThM1 hjShhubj)}(hhh]h)}(h)record audit data for new ipc permissionsh]h)record audit data for new ipc permissions}(hj{UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1 hjxUhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjThM1 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhj?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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5 hjUubj)}(hhh](j)}(h$``unsigned long qbytes`` msgq bytes h](j)}(h``unsigned long qbytes``h]j)}(hjUh]hunsigned long qbytes}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2 hjUubj)}(hhh]h)}(h msgq bytesh]h msgq bytes}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM2 hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM2 hjUubj)}(h``uid_t uid`` msgq user id h](j)}(h ``uid_t uid``h]j)}(hjUh]h uid_t uid}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3 hjUubj)}(hhh]h)}(h msgq user idh]h msgq user id}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj VhM3 hj Vubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhj VhM3 hjUubj)}(h``gid_t gid`` msgq group id h](j)}(h ``gid_t gid``h]j)}(hj.Vh]h gid_t gid}(hj0VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Vubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4 hj(Vubj)}(hhh]h)}(h msgq group idh]h msgq group id}(hjGVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCVhM4 hjDVubah}(h]h ]h"]h$]h&]uh1jhj(Vubeh}(h]h ]h"]h$]h&]uh1jhjCVhM4 hjUubj)}(h)``umode_t mode`` msgq mode (permissions) h](j)}(h``umode_t mode``h]j)}(hjgVh]h umode_t mode}(hjiVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeVubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5 hjaVubj)}(hhh]h)}(hmsgq mode (permissions)h]hmsgq mode (permissions)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|VhM5 hj}Vubah}(h]h ]h"]h$]h&]uh1jhjaVubeh}(h]h ]h"]h$]h&]uh1jhj|VhM5 hjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM7 hjUubh)}(h"Called only after audit_ipc_obj().h]h"Called only after audit_ipc_obj().}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM6 hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_socketcall (C function)c.__audit_socketcallhNtauh1hhj?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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMN ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjVhMN ubjg)}(h__audit_socketcallh]jm)}(h__audit_socketcallh]h__audit_socketcall}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjVhMN ubj)}(h (int nargs, unsigned long *args)h](j)}(h int nargsh](j )}(hinth]hint}(hj$WhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Wubj)}(h h]h }(hj2WhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Wubjm)}(hnargsh]hnargs}(hj@WhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hunsigned long *argsh](j )}(hunsignedh]hunsigned}(hjYWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUWubj)}(h h]h }(hjgWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUWubj )}(hlongh]hlong}(hjuWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUWubjm)}(hargsh]hargs}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhMN ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjVhMN ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhMN hjVhhubj)}(hhh]h)}(h$record audit data for sys_socketcallh]h$record audit data for sys_socketcall}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMN hjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMN ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhj?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)}(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.chMR hjWubj)}(hhh](j)}(hJ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. h](j)}(h ``int nargs``h]j)}(hj Xh]h int nargs}(hj XhhhNhNubah}(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.chMO hjXubj)}(hhh]h)}(h;number of args, which should not be more than AUDITSC_ARGS.h]h;number of args, which should not be more than AUDITSC_ARGS.}(hj"XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMO hjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMO hjXubj)}(h"``unsigned long *args`` args arrayh](j)}(h``unsigned long *args``h]j)}(hjBXh]hunsigned long *args}(hjDXhhhNhNubah}(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.chMQ hj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjC\modnameN classnameNjI jL )}jO ]jR )}jE j \sbc.audit_signal_info_syscallasbuh1hhj\ubj)}(h h]h }(hja\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjo\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hth]ht}(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)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(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\jjjuh1hhhhj?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)}(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 task_struct *t`` task being signaled h](j)}(h``struct task_struct *t``h]j)}(hj\h]hstruct task_struct *t}(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)}(htask being signaledh]htask being signaled}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj\ubh)}(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.}(hj8]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&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__audit_log_bprm_fcaps (C function)c.__audit_log_bprm_fcapshNtauh1hhj?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}(hjg]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc]hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjv]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc]hhhju]hM ubjg)}(h__audit_log_bprm_fcapsh]jm)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjc]hhhju]hM ubj)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j)}(hstruct linux_binprm *bprmh](j)}(hj6}h]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 linux_binprmh]h linux_binprm}(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_log_bprm_fcapsasbuh1hhj]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)}(hbprmh]hbprm}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hconst struct cred *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)}(hj6}h]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)}(hcredh]hcred}(hjO^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQ^modnameN classnameNjI jL )}jO ]j]c.__audit_log_bprm_fcapsasbuh1hhj^ubj)}(h h]h }(hjm^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)}(hj6}h]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.__audit_log_bprm_fcapsasbuh1hhj^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]ubeh}(h]h ]h"]h$]h&]jjuh1jhjc]hhhju]hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_]hhhju]hM ubah}(h]jZ]ah ](jjeh"]h$]h&]jj)jhuh1hhju]hM hj\]hhubj)}(hhh]h)}(h9store information about a loading bprm and relevant fcapsh]h9store information about a loading bprm and relevant fcaps}(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\]hhhju]hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjU_jjU_jjjuh1hhhhj?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)}(hj__h]h Parameters}(hja_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 hjY_ubj)}(hhh](j)}(hB``struct linux_binprm *bprm`` pointer to the bprm being processed h](j)}(h``struct linux_binprm *bprm``h]j)}(hj~_h]hstruct linux_binprm *bprm}(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 hjx_ubj)}(hhh]h)}(h#pointer to the bprm being processedh]h#pointer to the bprm being processed}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1jhjx_ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hju_ubj)}(h8``const struct cred *new`` the proposed new credentials h](j)}(h``const struct cred *new``h]j)}(hj_h]hconst struct cred *new}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj_ubj)}(hhh]h)}(hthe proposed new credentialsh]hthe proposed new 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 hju_ubj)}(h/``const struct cred *old`` the old 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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj_ubj)}(hhh]h)}(hthe old credentialsh]hthe old 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 hju_ubeh}(h]h ]h"]h$]h&]uh1jhjY_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 hjY_ubh)}(hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscallh]hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscall}(hjA`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjY_ubh)}(h-Erich]h-Eric}(hjP`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjY_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_log_capset (C function)c.__audit_log_capsethNtauh1hhj?hhhNhNubh)}(hhh](j)}(hHvoid __audit_log_capset (const struct cred *new, const struct cred *old)h]j)}(hGvoid __audit_log_capset(const struct cred *new, const struct cred *old)h](j )}(hvoidh]hvoid}(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_log_capseth]jm)}(h__audit_log_capseth]h__audit_log_capset}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{`hhhj`hM ubj)}(h0(const struct cred *new, const struct cred *old)h](j)}(hconst struct cred *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)}(hj6}h]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.__audit_log_capsetasbuh1hhj`ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hj#ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hnewh]hnew}(hj0ahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjIahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEaubj)}(h h]h }(hjVahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEaubj)}(hj6}h]hstruct}(hjdahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEaubj)}(h h]h }(hjqahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEaubh)}(hhh]jm)}(hcredh]hcred}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjamodnameN classnameNjI jL )}jO ]jac.__audit_log_capsetasbuh1hhjEaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEaubjm)}(holdh]hold}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj{`hhhj`hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjw`hhhj`hM ubah}(h]jr`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM hjt`hhubj)}(hhh]h)}(h;store information about the arguments to the capset syscallh]h;store information about the arguments to the capset syscall}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjahhubah}(h]h ]h"]h$]h&]uh1jhjt`hhhj`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj?hNhNubj)}(h**Parameters** ``const struct cred *new`` the new credentials ``const struct cred *old`` the old (current) credentials **Description** Record the arguments userspace sent to sys_capset for later printing by the audit system if applicableh](h)}(h**Parameters**h]j)}(hjbh]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.chM hjbubj)}(hhh](j)}(h/``const struct cred *new`` the new credentials h](j)}(h``const struct cred *new``h]j)}(hj&bh]hconst struct cred *new}(hj(bhhhNhNubah}(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.chM hj bubj)}(hhh]h)}(hthe new credentialsh]hthe new credentials}(hj?bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;bhM hj``const struct qstr *dname`` dentry name that we're comparing h](j)}(h``const struct qstr *dname``h]j)}(hjmh]hconst struct qstr *dname}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjmubj)}(hhh]h)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(h8``const char *path`` full pathname that we're comparing h](j)}(h``const char *path``h]j)}(hjmh]hconst char *path}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjmubj)}(hhh]h)}(h"full pathname that we're comparingh]h$full pathname that we’re comparing}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(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)}(hjnh]h int parentlen}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjnubj)}(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.}(hj1nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-nhMhj.nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj-nhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?hhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM"ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hjcnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`nhhhhhM.ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsys_acct (C function) c.sys_acct<hNtauh1hhj`nhhhNhNubh)}(hhh](j)}(h(long sys_acct (const char __user * name)h]j)}(h&long sys_acct(const char __user *name)h](j )}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjnhMubjg)}(hsys_accth]jm)}(hsys_accth]hsys_acct}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjnhMubj)}(h(const char __user *name)h]j)}(hconst char __user *nameh](j)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj )}(hcharh]hchar}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubh__user}(hjnhhhNhNubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hnameh]hname}(hjohhhNhNubah}(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]j}nah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjnhhubj)}(hhh]h)}(h!enable/disable process accountingh]h!enable/disable process accounting}(hjGohhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjDohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_ojj_ojjjuh1hhhhj`nhNhNubj)}(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)}(hjioh]h Parameters}(hjkohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgoubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM!hjcoubj)}(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)}(hjoh]hconst char __user * name}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjoubj)}(hhh]h)}(h?file name for accounting records or NULL to shutdown accountingh]h?file name for accounting records or NULL to shutdown accounting}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjcoubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM hjcoubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjcoubh)}(h **Return**h]j)}(hjoh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM$hjcoubh)}(h30 for success or negative errno values for failure.h]h30 for success or negative errno values for failure.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM%hjcoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj`nhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hacct_collect (C function)c.acct_collecthNtauh1hhj`nhhhNhNubh)}(hhh](j)}(h1void acct_collect (long exitcode, int group_dead)h]j)}(h0void acct_collect(long exitcode, int group_dead)h](j )}(hvoidh]hvoid}(hj/phhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+phhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM.ubj)}(h h]h }(hj>phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+phhhj=phM.ubjg)}(h acct_collecth]jm)}(h acct_collecth]h acct_collect}(hjPphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+phhhj=phM.ubj)}(h(long exitcode, int group_dead)h](j)}(h long exitcodeh](j )}(hlongh]hlong}(hjlphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhpubj)}(h h]h }(hjzphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhpubjm)}(hexitcodeh]hexitcode}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdpubj)}(hint group_deadh](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(h group_deadh]h group_dead}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdpubeh}(h]h ]h"]h$]h&]jjuh1jhj+phhhj=phM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'phhhj=phM.ubah}(h]j"pah ](jjeh"]h$]h&]jj)jhuh1hhj=phM.hj$phhubj)}(hhh]h)}(h0collect accounting information into pacct_structh]h0collect accounting information into pacct_struct}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM.hjphhubah}(h]h ]h"]h$]h&]uh1jhj$phhhj=phM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhj`nhNhNubj)}(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 qh]h Parameters}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM2hjqubj)}(hhh](j)}(h!``long exitcode`` task exit code h](j)}(h``long exitcode``h]j)}(hj(qh]h long exitcode}(hj*qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&qubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM/hj"qubj)}(hhh]h)}(htask exit codeh]htask exit code}(hjAqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=qhM/hj>qubah}(h]h ]h"]h$]h&]uh1jhj"qubeh}(h]h ]h"]h$]h&]uh1jhj=qhM/hjqubj)}(hH``int group_dead`` not 0, if this thread is the last one in the process.h](j)}(h``int group_dead``h]j)}(hjaqh]hint group_dead}(hjcqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_qubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM1hj[qubj)}(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.}(hjzqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM0hjwqubah}(h]h ]h"]h$]h&]uh1jhj[qubeh}(h]h ]h"]h$]h&]uh1jhjvqhM1hjqubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj`nhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hacct_process (C function)c.acct_processhNtauh1hhj`nhhhNhNubh)}(hhh](j)}(hvoid acct_process (void)h]j)}(hvoid acct_process(void)h](j )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMgubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjqhMgubjg)}(h acct_processh]jm)}(h acct_processh]h acct_process}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjqhMgubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubah}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjqhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjqhMgubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjqhMghjqhhubj)}(hhh]h)}(h.handles process accounting for an exiting taskh]h.handles process accounting for an exiting task}(hj"rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMghjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:rjj:rjjjuh1hhhhj`nhNhNubj)}(h'**Parameters** ``void`` no argumentsh](h)}(h**Parameters**h]j)}(hjDrh]h Parameters}(hjFrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBrubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMkhj>rubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j)}(hjcrh]hvoid}(hjerhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjarubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMmhj]rubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj|rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chKhjyrubah}(h]h ]h"]h$]h&]uh1jhj]rubeh}(h]h ]h"]h$]h&]uh1jhjxrhMmhjZrubah}(h]h ]h"]h$]h&]uh1jhj>rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj`nhhhNhNubeh}(h]accounting-frameworkah ]h"]accounting frameworkah$]h&]uh1hhhhhhhhM.ubh)}(hhh](h)}(h Block Devicesh]h Block Devices}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhhhhhM4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_advance (C function) c.bio_advancehNtauh1hhjrhhhNhNubh)}(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}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhK|ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjrhK|ubjg)}(h bio_advanceh]jm)}(h bio_advanceh]h bio_advance}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhjrhK|ubj)}(h&(struct bio *bio, unsigned int nbytes)h](j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hj shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubh)}(hhh]jm)}(hbioh]hbio}(hj1shhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.subah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3smodnameN classnameNjI jL )}jO ]jR )}jE jrsb c.bio_advanceasbuh1hhjsubj)}(h h]h }(hjQshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hj_shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hbioh]hbio}(hjlshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj subj)}(hunsigned int nbytesh](j )}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj )}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubjm)}(hnbytesh]hnbytes}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj subeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhK|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhK|ubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhK|hjrhhubj)}(hhh]h)}(h0increment/complete a bio by some number of bytesh]h0increment/complete a bio by some number of bytes}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhK|hjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhK|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjrhNhNubj)}(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 th]h Parameters}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhjtubj)}(hhh](j)}(h#``struct bio *bio`` bio to advance h](j)}(h``struct bio *bio``h]j)}(hj(th]hstruct bio *bio}(hj*thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&tubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhK}hj"tubj)}(hhh]h)}(hbio to advanceh]hbio to advance}(hjAthhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=thK}hj>tubah}(h]h ]h"]h$]h&]uh1jhj"tubeh}(h]h ]h"]h$]h&]uh1jhj=thK}hjtubj)}(h4``unsigned int nbytes`` number of bytes to complete h](j)}(h``unsigned int nbytes``h]j)}(hjath]hunsigned int nbytes}(hjcthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_tubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhK~hj[tubj)}(hhh]h)}(hnumber of bytes to completeh]hnumber of bytes to complete}(hjzthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvthK~hjwtubah}(h]h ]h"]h$]h&]uh1jhj[tubeh}(h]h ]h"]h$]h&]uh1jhjvthK~hjtubeh}(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:310: ./include/linux/bio.hhKhjtubh)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhjtubh)}(hI**bio** will then represent the remaining, uncompleted portion of the io.h](j)}(h**bio**h]hbio}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhB will then represent the remaining, uncompleted portion of the io.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfolio_iter (C struct) c.folio_iterhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h folio_iterh]j)}(hstruct folio_iterh](j)}(hj6}h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhKubj)}(h h]h }(hj uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhj uhKubjg)}(h folio_iterh]jm)}(hjth]h folio_iter}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhj uhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhj uhKubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhj uhKhjthhubj)}(hhh]h)}(h(State for iterating all folios in a bio.h]h(State for iterating all folios in a bio.}(hj@uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM hj=uhhubah}(h]h ]h"]h$]h&]uh1jhjthhhj uhKubeh}(h]h ](jstructeh"]h$]h&]jjjjXujjXujjjuh1hhhhjrhNhNubj)}(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}(hjduhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`uubh:}(hj`uhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj\uubj#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; };}hj}usbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj\uubh)}(h **Members**h]j)}(hjuh]hMembers}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj\uubj)}(hhh](j)}(hI``folio`` The current folio we're iterating. NULL after the last folio. h](j)}(h ``folio``h]j)}(hjuh]hfolio}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM hjuubj)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjuubj)}(h5``offset`` The byte offset within the current folio. h](j)}(h ``offset``h]j)}(hjuh]hoffset}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM hjuubj)}(hhh]h)}(h)The byte offset within the current folio.h]h)The byte offset within the current folio.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjuubj)}(hQ``length`` The number of bytes in this iteration (will not cross folio boundary).h](j)}(h ``length``h]j)}(hjvh]hlength}(hj!vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjvubj)}(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).}(hj8vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4vhMhj5vubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj4vhMhjuubeh}(h]h ]h"]h$]h&]uh1jhj\uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhjrhhhNhNubh)}(hhh](j)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]jg)}(hbio_for_each_folio_allh]jm)}(hjrvh]hbio_for_each_folio_all}(hj|vhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjtvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM;ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjpvhhhjvhM;ubah}(h]jkvah ](jjeh"]h$]h&]jj)jhuh1hhjvhM;hjmvhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjmvhhhjvhM;ubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1hhhhjrhNhNubh)}(h$``bio_for_each_folio_all (fi, bio)``h]j)}(hjvh]h bio_for_each_folio_all (fi, bio)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM=hjrhhubj)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM;hjvubah}(h]h ]h"]h$]h&]uh1jhjvhM;hjrhhubj)}(hr**Parameters** ``fi`` struct folio_iter which is updated for each folio. ``bio`` struct bio to iterate over.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM?hjvubj)}(hhh](j)}(h:``fi`` struct folio_iter which is updated for each folio. h](j)}(h``fi``h]j)}(hjwh]hfi}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM<hjvubj)}(hhh]h)}(h2struct folio_iter which is updated for each folio.h]h2struct folio_iter which is updated for each folio.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM<hjwubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjwhM<hjvubj)}(h#``bio`` struct bio to iterate over.h](j)}(h``bio``h]j)}(hj;wh]hbio}(hj=whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9wubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM>hj5wubj)}(hhh]h)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hjTwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM=hjQwubah}(h]h ]h"]h$]h&]uh1jhj5wubeh}(h]h ]h"]h$]h&]uh1jhjPwhM>hjvubeh}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_next_split (C function)c.bio_next_splithNtauh1hhjrhhhNhNubh)}(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)}(hj6}h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMIubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjwhMIubh)}(hhh]jm)}(hbioh]hbio}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE bio_next_splitsbc.bio_next_splitasbuh1hhjwhhhjwhMIubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjwhMIubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhMIubjg)}(hbio_next_splith]jm)}(hjwh]hbio_next_split}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjwhMIubj)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj xubh)}(hhh]jm)}(hbioh]hbio}(hj-xhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*xubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/xmodnameN classnameNjI jL )}jO ]jwc.bio_next_splitasbuh1hhj xubj)}(h h]h }(hjKxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj xubj)}(hjh]h*}(hjYxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubjm)}(hbioh]hbio}(hjfxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h int sectorsh](j )}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{xubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{xubjm)}(hsectorsh]hsectors}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jwc.bio_next_splitasbuh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubjm)}(hgfph]hgfp}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct bio_set *bsh](j)}(hj6}h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hj yhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubh)}(hhh]jm)}(hbio_seth]hbio_set}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jwc.bio_next_splitasbuh1hhjxubj)}(h h]h }(hj8yhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjFyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hbsh]hbs}(hjSyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhMIubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjwhMIhjwhhubj)}(hhh]h)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hj}yhhhNhNubj)}(h **sectors**h]hsectors}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}yubh# from a bio, splitting if necessary}(hj}yhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMIhjzyhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhjrhNhNubj)}(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)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMMhjyubj)}(hhh](j)}(h!``struct bio *bio`` bio to split h](j)}(h``struct bio *bio``h]j)}(hjyh]hstruct bio *bio}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMJhjyubj)}(hhh]h)}(h bio to splith]h bio to split}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMJhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMJhjyubj)}(hE``int sectors`` number of sectors to split from the front of **bio** h](j)}(h``int sectors``h]j)}(hj zh]h int sectors}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMKhjzubj)}(hhh]h)}(h4number of sectors to split from the front of **bio**h](h-number of sectors to split from the front of }(hj"zhhhNhNubj)}(h**bio**h]hbio}(hj*zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"zubeh}(h]h ]h"]h$]h&]uh1hhjzhMKhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMKhjyubj)}(h``gfp_t gfp`` gfp mask h](j)}(h ``gfp_t gfp``h]j)}(hjPzh]h gfp_t gfp}(hjRzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMLhjJzubj)}(hhh]h)}(hgfp maskh]hgfp mask}(hjizhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjezhMLhjfzubah}(h]h ]h"]h$]h&]uh1jhjJzubeh}(h]h ]h"]h$]h&]uh1jhjezhMLhjyubj)}(h0``struct bio_set *bs`` bio set to allocate from h](j)}(h``struct bio_set *bs``h]j)}(hjzh]hstruct bio_set *bs}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMMhjzubj)}(hhh]h)}(hbio set to allocate fromh]hbio set to allocate from}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMMhjyubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(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:310: ./include/linux/bio.hhMOhjyubh)}(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 }(hjzhhhNhNubj)}(h **sectors**h]hsectors}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh of }(hjzhhhNhNubj)}(h**bio**h]hbio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh - if the bio is smaller than }(hjzhhhNhNubj)}(h **sectors**h]hsectors}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh%, returns the original bio unchanged.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMOhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_add_max_vecs (C function)c.bio_add_max_vecshNtauh1hhjrhhhNhNubh)}(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)}(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)}(h&``struct request_queue *q`` the queue h](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)}(h the queueh]h the queue}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehKhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhjGubah}(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.chKhj+ubj)}(hXTThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function. This function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h](h)}(hXThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function.h]hXThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjubh)}(hThis function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h]hThis function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.}(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&]uh1jhjhKhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h.void blk_set_pm_only (struct request_queue *q)h]j)}(h-void blk_set_pm_only(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hblk_set_pm_onlyh]jm)}(hblk_set_pm_onlyh]hblk_set_pm_only}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.blk_set_pm_onlyasbuh1hhj"ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]j܅ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjޅhhubj)}(hhh]h)}(hincrement pm_only counterh]hincrement pm_only counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjޅhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hC**Parameters** ``struct request_queue *q`` request queue pointerh](h)}(h**Parameters**h]j)}(hjʆh]h Parameters}(hj̆hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȆubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjĆubj)}(hhh]j)}(h1``struct request_queue *q`` request queue pointerh](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjubj)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjĆubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_put_queue (C function)c.blk_put_queuehNtauh1hhjrhhhNhNubh)}(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}(hjChhhNhNubah}(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 }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhjQhMubjg)}(h blk_put_queueh]jm)}(h blk_put_queueh]h blk_put_queue}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjQhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(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 jfsbc.blk_put_queueasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj̇hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hjch]hq}(hjهhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj)}(hhh]h)}(h$decrement the request_queue refcounth]h$decrement the request_queue refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(h**Parameters** ``struct request_queue *q`` the request_queue structure to decrement the refcount for **Description** Decrements the refcount of the request_queue and free it when the refcount reaches 0.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.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)}(hjCh]hstruct request_queue *q}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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 decrement the refcount forh]h9the request_queue structure to decrement the refcount for}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj: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&]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&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_get_queue (C function)c.blk_get_queuehNtauh1hhjrhhhNhNubh)}(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 hjhhhU/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&]uh1jhjhhhjЈhMubjg)}(h blk_get_queueh]jm)}(h blk_get_queueh]h blk_get_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj߈ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjЈhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_get_queueasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjXhhhNhNubah}(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$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.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjЈhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(h**Parameters** ``struct request_queue *q`` the request_queue structure to increment the refcount for **Description** Increment the refcount of the request_queue kobject. **Context** Any context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]j)}(hV``struct request_queue *q`` the request_queue structure to increment the refcount for h](j)}(h``struct request_queue *q``h]j)}(hj‰h]hstruct request_queue *q}(hjĉhhhNhNubah}(h]h ]h"]h$]h&]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 increment the refcount forh]h9the request_queue structure to increment the refcount for}(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&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(h **Context**h]j)}(hj$h]hContext}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(h Any context.h]h Any context.}(hj:hhhNhNubah}(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&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsubmit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhjrhhhNhNubh)}(hhh](j)}(h(void submit_bio_noacct (struct bio *bio)h]j)}(h'void submit_bio_noacct(struct bio *bio)h](j )}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjwhMubjg)}(hsubmit_bio_noaccth]jm)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjwhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hjĊhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjƊmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.submit_bio_noacctasbuh1hhjubj)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhj^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}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhjrhNhNubj)}(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)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM hjEubj)}(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)}(hjjh]hstruct bio *bio}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjdubj)}(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 send 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)}(hǰ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)}(hK``struct bio *bio`` The :c:type:`struct bio ` which describes the I/O h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]h)}(h6The :c:type:`struct bio ` which describes the I/Oh](hThe }(hjhhhNhNubh)}(h:c:type:`struct bio `h]j)}(hjh]h struct bio}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jbiouh1hhjhMhjubh which describes the I/O}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƌubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(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 send 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)}(hjih]h struct bio}(hjkhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jbiouh1hhU/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 send 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&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_poll (C function) c.bio_pollhNtauh1hhjrhhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj΍hhhjhMubjg)}(hbio_pollh]jm)}(hbio_pollh]hbio_poll}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj΍hhhjhMubj)}(h@(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(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 jsb c.bio_pollasbuh1hhj ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbioh]hbio}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct io_comp_batch *iobh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(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 ]jI c.bio_pollasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubj)}(hjh]h*}(hjˎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjm)}(hiobh]hiob}(hj؎hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int flagsh](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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)}(hpoll for BIO completionsh]hpoll for BIO completions}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjǍhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1hhhhjrhNhNubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjoubj)}(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)}(hj͏h]hstruct io_comp_batch *iob}(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 batches of IOh]h batches of IO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjǏubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``unsigned int flags`` BLK_POLL_* flags that control the behavior h](j)}(h``unsigned int flags``h]j)}(hjh]hunsigned int flags}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(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.chMhjoubh)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjoubh)}(h**Note**h]j)}(hjhh]hNote}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjoubh)}(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 }(hj~hhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh8, or be in a RCU critical section to prevent freeing of }(hj~hhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhjrhhhNhNubh)}(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}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj͐hhhjߐhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj͐hhhjߐhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj͐hhhjߐhMubjg)}(hbio_start_io_accth]jm)}(hbio_start_io_accth]hbio_start_io_acct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj͐hhhjߐhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubh)}(hhh]jm)}(hbioh]hbio}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bio_start_io_acctasbuh1hhj&ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjm)}(hbioh]hbio}(hjhhhNhNubah}(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*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ƐhhhjߐhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjőjjőjjjuh1hhhhjrhNhNubj)}(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)}(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 start account 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 start account forh]hbio to start account for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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:311: ./block/blk-core.chMhjɑubh)}(hGReturns the start time that should be passed back to bio_end_io_acct().h]hGReturns the start time that should be passed back to bio_end_io_acct().}(hj?hhhNhNubah}(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&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_lld_busy (C function)c.blk_lld_busyhNtauh1hhjrhhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM<ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhj|hM<ubjg)}(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&]jjuh1jfhjjhhhj|hM<ubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]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}(hjɒhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjƒubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj˒modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_lld_busyasbuh1hhjubj)}(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&]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)}(h:Check if underlying low-level drivers of a device are busyh]h:Check if underlying low-level drivers of a device are busy}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM<hj*hhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhjrhNhNubj)}(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)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM@hjIubj)}(hhh]j)}(hB``struct request_queue *q`` the queue of the device being checked h](j)}(h``struct request_queue *q``h]j)}(hjnh]hstruct request_queue *q}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM=hjhubj)}(hhh]h)}(h%the queue of the device being checkedh]h%the queue of the device being checked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjeubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM?hjIubj)}(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.chM?hjubh)}(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.}(hjғhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMChjubeh}(h]h ]h"]h$]h&]uh1jhjѓhM?hjIubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMIhjIubh)}(h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)h]h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMJhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_start_plug (C function)c.blk_start_plughNtauh1hhjrhhhNhNubh)}(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}(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)}(hblk_start_plugh]jm)}(hblk_start_plugh]hblk_start_plug}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj<hMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hj6}h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(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 jQsbc.blk_start_plugasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hplugh]hplug}(hjĔhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubah}(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)}(h7initialize blk_plug and track it inside the task_structh]h7initialize blk_plug and track it inside the task_struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj ubj)}(hhh]j)}(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)}(hj/h]hstruct blk_plug *plug}(hj1hhhNhNubah}(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)}(hEThe :c:type:`struct blk_plug ` that needs to be initializedh](hThe }(hjHhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjRh]hstruct blk_plug}(hjThhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jblk_pluguh1hhjDhMhjHubh that needs to be initialized}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj&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:311: ./block/blk-core.chMhj ubj)}(hX'blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below). Tracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h](h)}(hX blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below).h](hXablk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds }(hjhhhNhNubj)}(h``BLK_MAX_REQUEST_COUNT``h]hBLK_MAX_REQUEST_COUNT}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ. The queued I/Os may also be submitted early if the task schedules (see below).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h]hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don’t deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.}(hjڕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjٕhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_finish_plug (C function)c.blk_finish_plughNtauh1hhjrhhhNhNubh)}(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}(hjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMubjg)}(hblk_finish_plugh]jm)}(hblk_finish_plugh]hblk_finish_plug}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hj6}h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(hblk_plugh]hblk_plug}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjlmodnameN classnameNjI jL )}jO ]jR )}jE j2sbc.blk_finish_plugasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h(mark the end of a batch of submitted I/Oh]h(mark the end of a batch of submitted I/O}(hjϖhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj̖hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]j)}(h^``struct blk_plug *plug`` The :c:type:`struct blk_plug ` passed to blk_start_plug() 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.chMhj ubj)}(hhh]h)}(hCThe :c:type:`struct blk_plug ` passed to blk_start_plug()h](hThe }(hj)hhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hj3h]hstruct blk_plug}(hj5hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jblk_pluguh1hhj%hMhj)ubh passed to blk_start_plug()}(hj)hhhNhNubeh}(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)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(hXIndicate that a batch of I/O submissions is complete. This function must be paired with an initial call to blk_start_plug(). The intent is to allow the block layer to optimize I/O submission. See the documentation for blk_start_plug() for more information.h]hXIndicate that a batch of I/O submissions is complete. This function must be paired with an initial call to blk_start_plug(). The intent is to allow the block layer to optimize I/O submission. See the documentation for blk_start_plug() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_queue_enter (C function)c.blk_queue_enterhNtauh1hhjrhhhNhNubh)}(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&]uh1jhjhhhjhM,ubjg)}(hblk_queue_enterh]jm)}(hblk_queue_enterh]hblk_queue_enter}(hjԗhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjЗubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM,ubj)}(h3(struct request_queue *q, blk_mq_req_flags_t flags)h](j)}(hstruct request_queue *qh](j)}(hj6}h]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&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j֗sbc.blk_queue_enterasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hblk_mq_req_flags_t flagsh](h)}(hhh]jm)}(hblk_mq_req_flags_th]hblk_mq_req_flags_t}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]j*c.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&]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"try to increase q->q_usage_counterh]h"try to increase q->q_usage_counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjҘjjҘjjjuh1hhhhjrhNhNubj)}(h**Parameters** ``struct request_queue *q`` request queue pointer ``blk_mq_req_flags_t flags`` BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh](h)}(h**Parameters**h]j)}(hjܘh]h Parameters}(hjޘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjژubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM-hjubj)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(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)}(hj4h]hblk_mq_req_flags_t flags}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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)}(h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh]h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM.hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM/hjubeh}(h]h ]h"]h$]h&]uh1jhj֘ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhjrhhhNhNubh)}(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)}(hj6}h]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 request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_rq_map_user_iovasbuh1hhjǙubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǙubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǙubjm)}(hjch]hq}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjǙubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjÙubj)}(hstruct request *rqh](j)}(hj6}h]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hrequesth]hrequest}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhj8ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjÙubj)}(hstruct rq_map_data *map_datah](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rq_map_datah]h rq_map_data}(hjʚhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjǚubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj̚modnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmap_datah]hmap_data}(hjhhhNhNubah}(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 }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hiov_iterh]hiov_iter}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjshhhNhNubah}(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 ]jc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjțhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(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)}(h4map user data to a request, for passthrough requestsh]h4map user data to a request, for passthrough requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX0**Parameters** ``struct request_queue *q`` request queue where request should be inserted ``struct request *rq`` request to map data to ``struct rq_map_data *map_data`` pointer to the rq_map_data holding pages (if necessary) ``const struct iov_iter *iter`` iovec iterator ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used. A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(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)}(hjAh]hstruct request_queue *q}(hjChhhNhNubah}(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)}(h.request queue where request should be insertedh]h.request queue where request should be inserted}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(h.``struct request *rq`` request to map data to h](j)}(h``struct request *rq``h]j)}(hjzh]hstruct request *rq}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjtubj)}(hhh]h)}(hrequest to map data toh]hrequest to map data to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(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)}(hj̜hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȜhMhjɜubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȜhMhj8ubj)}(h/``const struct iov_iter *iter`` iovec iterator h](j)}(h``const struct iov_iter *iter``h]j)}(hjh]hconst struct iov_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(hiovec iteratorh]hiovec iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j)}(hj%h]hgfp_t gfp_mask}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj8ubeh}(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&]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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjvubh)}(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.chMhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h'int blk_rq_unmap_user (struct bio *bio)h]j)}(h&int blk_rq_unmap_user(struct bio *bio)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMlubj)}(h h]h }(hj͝hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj̝hMlubjg)}(hblk_rq_unmap_userh]jm)}(hblk_rq_unmap_userh]hblk_rq_unmap_user}(hjߝhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj۝ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj̝hMlubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj6}h]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 jsbc.blk_rq_unmap_userasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioh]hbio}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj̝hMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj̝hMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj̝hMlhjhhubj)}(hhh]h)}(hunmap a request with user datah]hunmap a request with user data}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMlhj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̝hMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX**Parameters** ``struct bio *bio`` start of bio list **Description** Unmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMphjubj)}(hhh]j)}(h&``struct bio *bio`` start of bio list h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(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.chMmhjubj)}(hhh]h)}(hstart of bio listh]hstart of bio list}(hj؞hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԞhMmhj՞ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԞhMmhjubah}(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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMohjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMohjubah}(h]h ]h"]h$]h&]uh1jhj"hMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhjrhhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjWhMubjg)}(hblk_rq_map_kernh]jm)}(hblk_rq_map_kernh]hblk_rq_map_kern}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhMubj)}(hB(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j)}(hstruct request *rqh](j)}(hj6}h]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 jlsbc.blk_rq_map_kernasbuh1hhjubj)}(h h]h }(hjğhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjҟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrqh]hrq}(hjߟhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(h void *kbufh](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)}(hkbufh]hkbuf}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hlenh]hlen}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(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 ]jc.blk_rq_map_kernasbuh1hhjubj)}(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&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj>hhubj)}(hhh]h)}(h6map kernel data to a request, for passthrough requestsh]h6map kernel data to a request, for passthrough requests}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hXW**Parameters** ``struct request *rq`` request to fill ``void *kbuf`` the kernel buffer ``unsigned int len`` length of user data ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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)}(h'``struct request *rq`` request to fill h](j)}(h``struct request *rq``h]j)}(hj%h]hstruct request *rq}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh]h)}(hrequest to fillh]hrequest to fill}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(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.chMhjXubj)}(hhh]h)}(hthe kernel bufferh]hthe kernel buffer}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubj)}(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)}(hjСh]hgfp_t gfp_mask}(hjҡhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΡubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjʡubj)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(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&]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 if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]h)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj!ubah}(h]h ]h"]h$]h&]uh1jhj3hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_register_queue (C function)c.blk_register_queuehNtauh1hhjrhhhNhNubh)}(hhh](j)}(h-int blk_register_queue (struct gendisk *disk)h]j)}(h,int blk_register_queue(struct gendisk *disk)h](j )}(hinth]hint}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhMubjg)}(hblk_register_queueh]jm)}(hblk_register_queueh]hblk_register_queue}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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 j}sbc.blk_register_queueasbuh1hhjubj)}(h h]h }(hjբhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjOhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhjrhNhNubj)}(hk**Parameters** ``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.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:320: ./block/blk-sysfs.chMhj6ubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjUubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhjrhhhNhNubh)}(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&]uh1jlhjңubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjãhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jأsbc.blk_unregister_queueasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdiskh]hdisk}(hjKhhhNhNubah}(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#counterpart of blk_register_queue()h]h#counterpart of blk_register_queue()}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjãhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(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.}(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**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: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.}(hjhhhNhNubah}(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&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhjrhhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhjDhKubjg)}(hblk_set_stacking_limitsh]jm)}(hblk_set_stacking_limitsh]hblk_set_stacking_limits}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhjDhKubj)}(h(struct queue_limits *lim)h]j)}(hstruct queue_limits *limh](j)}(hj6}h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(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 jYsbc.blk_set_stacking_limitsasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hlimh]hlim}(hj̥hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhKubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhKhj+hhubj)}(hhh]h)}(h'set default limits for stacking devicesh]h'set default limits for stacking devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK#hjubj)}(hhh]j)}(hA``struct queue_limits *lim`` the queue_limits structure to reset h](j)}(h``struct queue_limits *lim``h]j)}(hj7h]hstruct queue_limits *lim}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK hj1ubj)}(hhh]h)}(h#the queue_limits structure to reseth]h#the queue_limits structure to reset}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhK hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhK hj.ubah}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK"hjubh)}(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!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhjrhhhNhNubh)}(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)}(hj6}h]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.queue_limits_commit_updateasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hj6}h]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubh)}(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 ]j.c.queue_limits_commit_updateasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(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'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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjŦhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(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)}(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:323: ./block/blk-settings.chMhjubj)}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hj'h]hstruct request_queue *q}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM hj!ubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(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-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hj`h]hstruct queue_limits *lim}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM hjZubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubh)}(hApply the limits in **lim** that were obtained from queue_limits_start_update() and updated by the caller to **q**. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.h](hApply the limits in }(hjhhhNhNubj)}(h**lim**h]hlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhR that were obtained from queue_limits_start_update() and updated by the caller to }(hjhhhNhNubj)}(h**q**h]hq}(hj˨hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhjrhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM0ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj!hM0ubjg)}(h!queue_limits_commit_update_frozenh]jm)}(h!queue_limits_commit_update_frozenh]h!queue_limits_commit_update_frozen}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj!hM0ubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE j6sb#c.queue_limits_commit_update_frozenasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hstruct queue_limits *limh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjΩhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjߩhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjܩubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j#c.queue_limits_commit_update_frozenasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj!hM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj!hM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hM0hjhhubj)}(hhh]h)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM0hj?hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjrhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM4hj^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.chM1hj}ubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjzubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM2hjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjժhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѪhM2hjҪubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѪhM2hjzubeh}(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.chM4hj^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 }(hj hhhNhNubj)}(h**lim**h]hlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhf that were obtained from queue_limits_start_update() and updated with the new values by the caller to }(hj hhhNhNubj)}(h**q**h]hq}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh>. Freezes the queue before the update and unfreezes it after.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM3hj^ubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM7hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hqueue_limits_set (C function)c.queue_limits_sethNtauh1hhjrhhhNhNubh)}(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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMIubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkhhhj}hMIubjg)}(hqueue_limits_seth]jm)}(hqueue_limits_seth]hqueue_limits_set}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhj}hMIubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj6}h]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}(hjʫhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjǫubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj̫modnameN classnameNjI jL )}jO ]jR )}jE jsbc.queue_limits_setasbuh1hhjubj)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jc.queue_limits_setasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlimh]hlim}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhj}hMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj}hMIubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hMIhjdhhubj)}(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.chMIhjhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX]**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were freshly initialized to **q**. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.chMMhjubj)}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hj߬h]hstruct request_queue *q}(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.chMJhj٬ubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhj٬ubeh}(h]h ]h"]h$]h&]uh1jhjhMJhj֬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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMKhjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMKhj֬ubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMMhjubh)}(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 }(hjihhhNhNubj)}(h**lim**h]hlim}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh" that were freshly initialized to }(hjihhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhe. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMLhjubh)}(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.chMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_stack_limits (C function)c.blk_stack_limitshNtauh1hhjrhhhNhNubh)}(hhh](j)}(hUint blk_stack_limits (struct queue_limits *t, struct queue_limits *b, sector_t start)h]j)}(hTint blk_stack_limits(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j )}(hinth]hint}(hj˭hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjǭhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj)}(h h]h }(hjڭhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǭhhhj٭hMubjg)}(hblk_stack_limitsh]jm)}(hblk_stack_limitsh]hblk_stack_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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)}(hj6}h]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&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_stack_limitsasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hj~\h]ht}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *bh](j)}(hj6}h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(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 ]jBc.blk_stack_limitsasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjîhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hjGh]hb}(hjЮhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t starth](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jBc.blk_stack_limitsasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjǭhhhj٭hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjíhhhj٭hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj٭hMhjhhubj)}(hhh]h)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjAhhhNhNubah}(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&]uh1jhjhhhj٭hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhjrhNhNubj)}(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)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj]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.chMhj|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(hR``struct queue_limits *b`` the underlying queue limits (bottom, component device) h](j)}(h``struct queue_limits *b``h]j)}(hjh]hstruct queue_limits *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.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&]uh1hhjЯhMhjѯubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЯhMhjyubj)}(h=``sector_t start`` first data sector within component device h](j)}(h``sector_t start``h]j)}(hjh]hsector_t start}(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)first data sector within component deviceh]h)first data sector within component device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjyubeh}(h]h ]h"]h$]h&]uh1jhj]ubh)}(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:323: ./block/blk-settings.chMhj]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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjEubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjEubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhjrhhhNhNubh)}(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)}(hj6}h]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 ]jR )}jE jsbc.queue_limits_stack_bdevasbuh1hhjưubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjưubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjưubjm)}(hj~\h]ht}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjưubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj°ubj)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jc.queue_limits_stack_bdevasbuh1hhj7ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(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 ]jc.queue_limits_stack_bdevasbuh1hhjubj)}(h h]h }(hj̱hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoffseth]hoffset}(hjڱhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj°ubj)}(hconst char *pfxh](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)}(hpfxh]hpfx}(hj7hhhNhNubah}(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'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjahhhNhNubah}(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&]jjjjyjjyjjjuh1hhhhjrhNhNubj)}(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.chMhj}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)}(hC``struct block_device *bdev`` the underlying block device (bottom) h](j)}(h``struct block_device *bdev``h]j)}(hj۲h]hstruct block_device *bdev}(hjݲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٲubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjղubj)}(hhh]h)}(h$the underlying block device (bottom)h]h$the underlying block device (bottom)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjղubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hH``sector_t offset`` offset to beginning of data within component device h](j)}(h``sector_t offset``h]j)}(hjh]hsector_t offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh]h)}(h3offset to beginning of data within component deviceh]h3offset to beginning of data within component device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjubj)}(h6``const char *pfx`` prefix to use for warnings logged h](j)}(h``const char *pfx``h]j)}(hjMh]hconst char *pfx}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjGubj)}(hhh]h)}(h!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjubeh}(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.chMhj}ubj)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]h)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhjrhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjӳhhhjhMubjg)}(hqueue_limits_stack_integrityh]jm)}(hqueue_limits_stack_integrityh]hqueue_limits_stack_integrity}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjӳhhhjhMubj)}(h0(struct queue_limits *t, struct queue_limits *b)h](j)}(hstruct queue_limits *th](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE jsbc.queue_limits_stack_integrityasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hj~\h]ht}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct queue_limits *bh](j)}(hj6}h]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_stack_integrityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjδhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjGh]hb}(hj۴hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjӳhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjϳhhhjhMubah}(h]jʳah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj̳hhubj)}(hhh]h)}(hstack integrity profileh]hstack integrity profile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj̳hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX**Parameters** ``struct queue_limits *t`` target queue limits ``struct queue_limits *b`` base queue limits **Description** Check if the integrity profile in the **b** can be stacked into the target **t**. Stacking is possible if either: a) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** If **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(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.chMhj ubj)}(hhh](j)}(h/``struct queue_limits *t`` target queue limits h](j)}(h``struct queue_limits *t``h]j)}(hjEh]hstruct queue_limits *t}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj?ubj)}(hhh]h)}(htarget queue limitsh]htarget queue limits}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(h-``struct queue_limits *b`` base queue limits h](j)}(h``struct queue_limits *b``h]j)}(hj~h]hstruct queue_limits *b}(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.chMhjxubj)}(hhh]h)}(hbase queue limitsh]hbase queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj ubh)}(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 }(hjϵhhhNhNubj)}(h**b**h]hb}(hj׵hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϵubh can be stacked into the target }(hjϵhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϵubh". Stacking is possible if either:}(hjϵhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj ubj)}(ha) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** h]jG)}(hhh](j)}(h;does not have any integrity information stacked into it yeth]h)}(hj h]h;does not have any integrity information stacked into it yet}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h@the integrity profile in **b** is identical to the one in **t** h]h)}(h?the integrity profile in **b** is identical to the one in **t**h](hthe integrity profile in }(hj%hhhNhNubj)}(h**b**h]hb}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh is identical to the one in }(hj%hhhNhNubj)}(h**t**h]ht}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiHjdjkHhjlHj(uh1jGhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubh)}(hyIf **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](hIf }(hjfhhhNhNubj)}(h**b**h]hb}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh can be stacked into }(hjfhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh , return }(hjfhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh. Else return }(hjfhhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh( and clear the integrity information in }(hjfhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhjrhhhNhNubh)}(hhh](j)}(hFvoid blk_set_queue_depth (struct request_queue *q, unsigned int depth)h]j)}(hEvoid blk_set_queue_depth(struct request_queue *q, unsigned int depth)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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)}(hblk_set_queue_depthh]jm)}(hblk_set_queue_depthh]hblk_set_queue_depth}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h-(struct request_queue *q, unsigned int depth)h](j)}(hstruct request_queue *qh](j)}(hj6}h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_set_queue_depthasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(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}(hjhhhNhNubah}(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&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h1tell the block layer about the device queue depthh]h1tell the block layer about the device queue depth}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(ht**Parameters** ``struct request_queue *q`` the request queue for the device ``unsigned int depth`` queue depthh](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]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)}(hj@h]hstruct request_queue *q}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj:ubj)}(hhh]h)}(h the request queue for the deviceh]h the request queue for the device}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(h"``unsigned int depth`` queue depthh](j)}(h``unsigned int depth``h]j)}(hjyh]hunsigned int depth}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjsubj)}(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&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhjrhhhNhNubh)}(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 hjϸhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjϸhhhjhMubjg)}(hblkdev_issue_flushh]jm)}(hblkdev_issue_flushh]hblkdev_issue_flush}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjϸhhhjhMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj6}h]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.blkdev_issue_flushasbuh1hhj 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&]noemphjjuh1jhjubah}(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 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ȸhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(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&]uh1jhjҹubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjιubj)}(hhh]h)}(hblockdev to issue flush forh]hblockdev to issue flush for}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjubj)}(h/Issue a flush for the block device in question.h]h)}(hj'h]h/Issue a flush for the block device in question.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhj%ubah}(h]h ]h"]h$]h&]uh1jhj6hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhjrhhhNhNubh)}(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}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKLubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjkhKLubjg)}(hblkdev_issue_discardh]jm)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjkhKLubj)}(hO(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]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.blkdev_issue_discardasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(hsector_t sectorh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(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)}(hsectorh]hsector}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jԺc.blkdev_issue_discardasbuh1hhjPubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(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 }(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&]jjuh1jhjYhhhjkhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjkhKLubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhKLhjRhhubj)}(hhh]h)}(hqueue a discardh]hqueue a discard}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKLhjhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjrhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKPhjubj)}(hhh](j)}(h<``struct block_device *bdev`` blockdev to issue discard for h](j)}(h``struct block_device *bdev``h]j)}(hj6h]hstruct block_device *bdev}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKMhj0ubj)}(hhh]h)}(hblockdev to issue discard forh]hblockdev to issue discard for}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKMhj-ubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjoh]hsector_t sector}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKNhjiubj)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhKNhj-ubj)}(h3``sector_t nr_sects`` number of sectors to discard h](j)}(h``sector_t nr_sects``h]j)}(hjh]hsector_t nr_sects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKOhjubj)}(hhh]h)}(hnumber of sectors to discardh]hnumber of sectors to discard}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhj-ubj)}(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&]uh1jhj߼ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKPhjۼubj)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKPhjubah}(h]h ]h"]h$]h&]uh1jhjۼubeh}(h]h ]h"]h$]h&]uh1jhjhKPhj-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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKRhjubj)}(h4Issue a discard request for the sectors in question.h]h)}(hj4h]h4Issue a discard request for the sectors in question.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKRhj2ubah}(h]h ]h"]h$]h&]uh1jhjChKRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhjrhhhNhNubh)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhMubjg)}(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&]jjuh1jfhjfhhhjxhMubj)}(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)}(hj6}h]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}(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_zerooutasbuh1hhjubj)}(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)}(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 }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsectorh]hsector}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jc.__blkdev_issue_zerooutasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(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 ]jc.__blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjʾhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hjؾhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio **bioph](j)}(hj6}h]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&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioph]hbiop}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhj_hhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj̿jj̿jjjuh1hhhhjrhNhNubj)}(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.chMhjпubj)}(hhh](j)}(h0``struct block_device *bdev`` blockdev to issue h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjubj)}(hhh]h)}(hblockdev to issueh]hblockdev to issue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hj.h]hsector_t sector}(hj0hhhNhNubah}(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)}(h start sectorh]h start sector}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjgh]hsector_t nr_sects}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjaubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjubj)}(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.chMhjubj)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``struct bio **biop`` pointer to anchor bio h](j)}(h``struct bio **biop``h]j)}(hjh]hstruct bio **biop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjubj)}(hhh]h)}(hpointer to anchor bioh]hpointer to anchor bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hjh]hunsigned flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhj ubj)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(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)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjпubj)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjcubh)}(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 }(hjvhhhNhNubj)}(h ``flags``h]hflags}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh contains BLKDEV_ZERO_NOUNMAP.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM hjcubh)}(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.chMhjcubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjпubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhjrhhhNhNubh)}(hhh](j)}(hxint blkdev_issue_zeroout (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h]j)}(hwint blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM)ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM)ubjg)}(hblkdev_issue_zeroouth]jm)}(hblkdev_issue_zeroouth]hblkdev_issue_zeroout}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM)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)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 ]jUc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 ]jUc.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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jUc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubjm)}(hflagsh]hflags}(hjhhhNhNubah}(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)}(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&]uh1jhjhhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX**Parameters** ``struct block_device *bdev`` blockdev to write ``sector_t sector`` start sector ``sector_t nr_sects`` number of sectors to write ``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) ``unsigned flags`` controls detailed behavior **Description** Zero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM-hjubj)}(hhh](j)}(h0``struct block_device *bdev`` blockdev to write h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM*hjubj)}(hhh]h)}(hblockdev to writeh]hblockdev to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hj%h]hsector_t sector}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM+hjubj)}(hhh]h)}(h start sectorh]h start sector}(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``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hj^h]hsector_t nr_sects}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM,hjXubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM,hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM,hjubj)}(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-hjubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hjh]hunsigned flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM.hjubj)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM0hjubj)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h]h)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h](hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for }(hj%hhhNhNubj)}(h ``flags``h]hflags}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM0hj!ubah}(h]h ]h"]h$]h&]uh1jhjEhM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhjrhhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjzhMubjg)}(hblk_trace_ioctlh]jm)}(hblk_trace_ioctlh]hblk_trace_ioctl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjzhMubj)}(h;(struct block_device *bdev, unsigned cmd, char __user *arg)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]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.blk_trace_ioctlasbuh1hhjubj)}(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 unsigned cmdh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmdh]hcmd}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hchar __user *argh](j )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh__user}(hjLhhhNhNubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hargh]harg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjzhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjahhubj)}(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&]uh1jhjahhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(h**Parameters** ``struct block_device *bdev`` the block device ``unsigned cmd`` the ioctl cmd ``char __user *arg`` the argument data, if anyh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh](j)}(h/``struct block_device *bdev`` the block device h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]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 block deviceh]hthe block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h``unsigned cmd`` the ioctl cmd h](j)}(h``unsigned cmd``h]j)}(hj/h]h unsigned cmd}(hj1hhhNhNubah}(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 ioctl cmdh]h the ioctl cmd}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(h.``char __user *arg`` the argument data, if anyh](j)}(h``char __user *arg``h]j)}(hjhh]hchar __user *arg}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjbubj)}(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.chMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h1void blk_trace_shutdown (struct request_queue *q)h]j)}(h0void blk_trace_shutdown(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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_shutdownh]jm)}(hblk_trace_shutdownh]hblk_trace_shutdown}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_trace_shutdownasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjXhhhNhNubah}(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!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.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hZ**Parameters** ``struct request_queue *q`` the request queue associated with the deviceh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]j)}(hH``struct request_queue *q`` the request queue associated with the deviceh](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h,the request queue associated with the deviceh]h,the request queue associated with the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhjrhhhNhNubh)}(hhh](j)}(hivoid blk_add_trace_rq (struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h]j)}(hhvoid blk_add_trace_rq(struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 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 }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj*hMubjg)}(hblk_add_trace_rqh]jm)}(hblk_add_trace_rqh]hblk_add_trace_rq}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj*hMubj)}(hS(struct request *rq, blk_status_t error, unsigned int nr_bytes, u32 what, u64 cgid)h](j)}(hstruct request *rqh](j)}(hj6}h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hrequesth]hrequest}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE j?sbc.blk_add_trace_rqasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hblk_status_t errorh](h)}(hhh]jm)}(h blk_status_th]h blk_status_t}(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)}(herrorh]herror}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hunsigned int nr_bytesh](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)}(hnr_bytesh]hnr_bytes}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hu32 whath](h)}(hhh]jm)}(hu32h]hu32}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rqasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcgidh]hcgid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(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)Add a trace for a request oriented actionh]h)Add a trace for a request oriented action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX7**Parameters** ``struct request *rq`` the source request ``blk_status_t error`` return status to log ``unsigned int nr_bytes`` number of completed bytes ``u32 what`` the action ``u64 cgid`` the cgroup info **Description** Records an action against a request. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(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.chMhj!ubj)}(hhh](j)}(h*``struct request *rq`` the source request h](j)}(h``struct request *rq``h]j)}(hjFh]hstruct request *rq}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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&]uh1hhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjyubj)}(hhh]h)}(hreturn status to logh]hreturn status to log}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(h4``unsigned int nr_bytes`` number of completed bytes h](j)}(h``unsigned int nr_bytes``h]j)}(hjh]hunsigned int nr_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(hnumber of completed bytesh]hnumber of completed bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(h``u32 what`` the action h](j)}(h ``u32 what``h]j)}(hjh]hu32 what}(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 actionh]h the action}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(h``u64 cgid`` the cgroup info h](j)}(h ``u64 cgid``h]j)}(hj*h]hu64 cgid}(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)}(hthe cgroup infoh]hthe cgroup info}(hjChhhNhNubah}(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)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj!ubj)}(hDRecords an action against a request. Will log the bio offset + size.h]h)}(hj}h]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.chMhj{ubah}(h]h ]h"]h$]h&]uh1jhjhMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhjrhhhNhNubh)}(hhh](j)}(hVvoid blk_add_trace_bio (struct request_queue *q, struct bio *bio, u32 what, int error)h]j)}(hUvoid blk_add_trace_bio(struct request_queue *q, struct bio *bio, u32 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.chMRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMRubjg)}(hblk_add_trace_bioh]jm)}(hblk_add_trace_bioh]hblk_add_trace_bio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMRubj)}(h?(struct request_queue *q, struct bio *bio, u32 what, int error)h](j)}(hstruct request_queue *qh](j)}(hj6}h]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&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_bioasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjnhhhNhNubah}(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 ]j*c.blk_add_trace_bioasbuh1hhj]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&]noemphjjuh1jhjubj)}(hu32 whath](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j*c.blk_add_trace_bioasbuh1hhjubj)}(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)}(h int errorh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(herrorh]herror}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMRhjhhubj)}(hhh]h)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMRhj\hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhjrhNhNubj)}(h**Parameters** ``struct request_queue *q`` queue the io is for ``struct bio *bio`` the source bio ``u32 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.chMVhj{ubj)}(hhh](j)}(h0``struct request_queue *q`` queue the io is for h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMShjubj)}(hhh]h)}(hqueue the io is forh]hqueue the io is for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(h#``struct bio *bio`` the source bio h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMThjubj)}(hhh]h)}(hthe source bioh]hthe source bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubj)}(h``u32 what`` the action h](j)}(h ``u32 what``h]j)}(hjh]hu32 what}(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.chMUhj ubj)}(hhh]h)}(h the actionh]h the action}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMUhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMUhjubj)}(h``int error`` error, if any h](j)}(h ``int error``h]j)}(hjKh]h int error}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMVhjEubj)}(hhh]h)}(h error, if anyh]h error, if any}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMVhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMVhjubeh}(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:335: ./kernel/trace/blktrace.chMXhj{ubj)}(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.chMXhjubah}(h]h ]h"]h$]h&]uh1jhjhMXhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhjrhhhNhNubh)}(hhh](j)}(hVvoid blk_add_trace_bio_remap (void *ignore, struct bio *bio, dev_t dev, sector_t from)h]j)}(hUvoid blk_add_trace_bio_remap(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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_bio_remaph]jm)}(hblk_add_trace_bio_remaph]hblk_add_trace_bio_remap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h9(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](j)}(h void *ignoreh](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*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hignoreh]hignore}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct bio *bioh](j)}(hj6}h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hbioh]hbio}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_bio_remapasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(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 ]jc.blk_add_trace_bio_remapasbuh1hhjubj)}(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)}(h sector_t fromh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_bio_remapasbuh1hhj 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 ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h%Add a trace for a bio-remap operationh]h%Add a trace for a bio-remap operation}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjrhNhNubj)}(hX **Parameters** ``void *ignore`` trace callback data parameter (not used) ``struct bio *bio`` the source bio ``dev_t dev`` source device ``sector_t from`` source sector **Description** Called after a bio is remapped to a different device and/or sector.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh](j)}(h:``void *ignore`` trace callback data parameter (not used) h](j)}(h``void *ignore``h]j)}(hjh]h void *ignore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``struct bio *bio`` the source bio h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(hthe source bioh]hthe source bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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 deviceh]h source device}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjRh]h sector_t from}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjLubj)}(hhh]h)}(h source sectorh]h source sector}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubeh}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhjrhhhNhNubh)}(hhh](j)}(hXvoid blk_add_trace_rq_remap (void *ignore, struct request *rq, dev_t dev, sector_t from)h]j)}(hWvoid blk_add_trace_rq_remap(void *ignore, struct request *rq, dev_t dev, sector_t from)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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_rq_remaph]jm)}(hblk_add_trace_rq_remaph]hblk_add_trace_rq_remap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h<(void *ignore, struct request *rq, dev_t dev, sector_t from)h](j)}(h void *ignoreh](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*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hignoreh]hignore}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct request *rqh](j)}(hj6}h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(hhh]jm)}(hrequesth]hrequest}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_rq_remapasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 ]jc.blk_add_trace_rq_remapasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(h sector_t fromh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rq_remapasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfromh]hfrom}(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)Add a trace for a request-remap operationh]h)Add a trace for a request-remap operation}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjrhNhNubj)}(hX **Parameters** ``void *ignore`` trace callback data parameter (not used) ``struct request *rq`` the source request ``dev_t dev`` target device ``sector_t from`` source sector **Description** Device mapper remaps request to other devices. Add a trace for that action.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh](j)}(h:``void *ignore`` trace callback data parameter (not used) h](j)}(h``void *ignore``h]j)}(hjh]h void *ignore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``struct request *rq`` the source request h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.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``dev_t dev`` target device 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hhh]h)}(h target deviceh]h target device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjPh]h sector_t from}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjJubj)}(hhh]h)}(h source sectorh]h source sector}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubj)}(hKDevice mapper remaps request to other devices. Add a trace for that action.h]h)}(hKDevice mapper remaps request to other devices. Add a trace for that action.h]hKDevice mapper remaps request to other devices. Add a trace for that action.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdisk_release (C function)c.disk_releasehNtauh1hhjrhhhNhNubh)}(hhh](j)}(h&void disk_release (struct device *dev)h]j)}(h%void disk_release(struct device *dev)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h disk_releaseh]jm)}(h disk_releaseh]h disk_release}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jsbc.disk_releaseasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(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/releases all allocated resources of the gendiskh]h/releases all allocated resources of the gendisk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX**Parameters** ``struct device *dev`` the device representing this disk **Description** This function releases all allocated resources of the gendisk. Drivers which used __device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk. **Context** can sleeph](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubj)}(hhh]j)}(h9``struct device *dev`` the device representing this disk h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubj)}(hhh]h)}(h!the device representing this diskh]h!the device representing this disk}(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&]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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(hXBDrivers 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]hXBDrivers which used __device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(h **Context**h]j)}(hjLh]hContext}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(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}(hjbhhhNhNubah}(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&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bdev_count_inflight (C function)c.bdev_count_inflighthNtauh1hhjrhhhNhNubh)}(hhh](j)}(hthe requested major device number [1..BLKDEV_MAJOR_MAX-1]. If }(hj9hhhNhNubj)}(h **major**h]hmajor}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh. = 0, try to allocate any unused major number.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKhjubj)}(hR``const char *name`` the name of the new block device as a zero terminated string h](j)}(h``const char *name``h]j)}(hjlh]hconst char *name}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjfubj)}(hhh]h)}(hubj)}(h=``struct gendisk *disk`` per-device partitioning information h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMBhjzubj)}(hhh]h)}(h#per-device partitioning informationh]h#per-device partitioning information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMBhj>ubj)}(hM``const struct attribute_group **groups`` Additional per-device sysfs groups h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMChjubj)}(hhh]h)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChj>ubj)}(h6``struct fwnode_handle *fwnode`` attached disk fwnode h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjh]hstruct fwnode_handle *fwnode}(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.chMDhjubj)}(hhh]h)}(hattached disk fwnodeh]hattached disk fwnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhj>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:341: ./block/genhd.chMFhj"ubh)}(hzThis function registers the partitioning information in **disk** with the kernel. Also attach a fwnode to the disk device.h](h8This function registers the partitioning information in }(hjChhhNhNubj)}(h**disk**h]hdisk}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh: with the kernel. Also attach a fwnode to the disk device.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMEhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_add_disk (C function)c.device_add_diskhNtauh1hhjrhhhNhNubh)}(hhh](j)}(hhint device_add_disk (struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h]j)}(hgint device_add_disk(struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMhubjg)}(hdevice_add_diskh]jm)}(hdevice_add_diskh]hdevice_add_disk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMhubj)}(hT(struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h](j)}(hstruct device *parenth](j)}(hj6}h]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.device_add_diskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jc.device_add_diskasbuh1hhj/ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h%const struct attribute_group **groupsh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.device_add_diskasbuh1hhjubj)}(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)}(hgroupsh]hgroups}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhMhubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMhhjyhhubj)}(hhh]h)}(h#add disk information to kernel listh]h#add disk information to kernel list}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhhjIhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhjrhNhNubj)}(hX:**Parameters** ``struct device *parent`` parent device for the disk ``struct gendisk *disk`` per-device partitioning information ``const struct attribute_group **groups`` Additional per-device sysfs groups **Description** This function registers the partitioning information in **disk** with the kernel.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMlhjhubj)}(hhh](j)}(h5``struct device *parent`` parent device for the disk h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMihjubj)}(hhh]h)}(hparent device for the diskh]hparent device for the disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubj)}(h=``struct gendisk *disk`` per-device partitioning information h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMjhjubj)}(hhh]h)}(h#per-device partitioning informationh]h#per-device partitioning information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubj)}(hM``const struct attribute_group **groups`` Additional per-device sysfs groups h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMkhjubj)}(hhh]h)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMmhjhubh)}(hQThis function registers the partitioning information in **disk** with the kernel.h](h8This function registers the partitioning information in }(hjPhhhNhNubj)}(h**disk**h]hdisk}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh with the kernel.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMlhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_mark_disk_dead (C function)c.blk_mark_disk_deadhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h.void blk_mark_disk_dead (struct gendisk *disk)h]j)}(h-void blk_mark_disk_dead(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_mark_disk_deadh]jm)}(hblk_mark_disk_deadh]hblk_mark_disk_dead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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_mark_disk_deadasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdiskh]hdisk}(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)}(hmark a disk as deadh]hmark a disk as dead}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhjrhNhNubj)}(h**Parameters** ``struct gendisk *disk`` disk to mark as dead **Description** Mark as disk as dead (e.g. surprise removed) and don't accept any new I/O to this disk.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjmubj)}(hhh]j)}(h.``struct gendisk *disk`` disk to mark as dead h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubj)}(hhh]h)}(hdisk to mark as deadh]hdisk to mark as dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjmubh)}(hWMark as disk as dead (e.g. surprise removed) and don't accept any new I/O to this disk.h]hYMark as disk as dead (e.g. surprise removed) and don’t accept any new I/O to this disk.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdel_gendisk (C function) c.del_gendiskhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h'void del_gendisk (struct gendisk *disk)h]j)}(h&void del_gendisk(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(h del_gendiskh]jm)}(h del_gendiskh]h del_gendisk}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]jR )}jE j5sb c.del_gendiskasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubah}(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)}(hremove the gendiskh]hremove the gendisk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hXb**Parameters** ``struct gendisk *disk`` the struct gendisk to remove **Description** Removes the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue. This is the counter to the respective __device_add_disk() call. The final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if __device_add_disk() was used. Drivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred. **Context** can sleeph](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubj)}(hhh]j)}(h6``struct gendisk *disk`` the struct gendisk to remove h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhj ubj)}(hhh]h)}(hthe struct gendisk to removeh]hthe struct gendisk to remove}(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&]uh1jhjubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(hRemoves the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue.h]hRemoves the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(h?This is the counter to the respective __device_add_disk() call.h]h?This is the counter to the respective __device_add_disk() call.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(hThe final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if __device_add_disk() was used.h]hThe final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if __device_add_disk() was used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubh)}(hfDrivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred.h]hfDrivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM#hjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM&hjubh)}(h can sleeph]h can sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hinvalidate_disk (C function)c.invalidate_diskhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h+void invalidate_disk (struct gendisk *disk)h]j)}(h*void invalidate_disk(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM?ubjg)}(hinvalidate_diskh]jm)}(hinvalidate_diskh]hinvalidate_disk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM?ubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.invalidate_diskasbuh1hhj ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdiskh]hdisk}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM?hjhhubj)}(hhh]h)}(hinvalidate the diskh]hinvalidate the disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM?hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` the struct gendisk to invalidate **Description** A helper to invalidates the disk. It will clean the disk's associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers. **Context** can sleeph](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMChjubj)}(hhh]j)}(h:``struct gendisk *disk`` the struct gendisk to invalidate h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chM@hjubj)}(hhh]h)}(h the struct gendisk to invalidateh]h the struct gendisk to invalidate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubah}(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:341: ./block/genhd.chMBhjubh)}(hA helper to invalidates the disk. It will clean the disk's associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers.h]hA helper to invalidates the disk. It will clean the disk’s associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMAhjubh)}(h **Context**h]j)}(hjJh]hContext}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMEhjubh)}(h can sleeph]h can sleep}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMFhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hput_disk (C function) c.put_diskhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h$void put_disk (struct gendisk *disk)h]j)}(h#void put_disk(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hput_diskh]jm)}(hput_diskh]hput_disk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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 jsb c.put_diskasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdiskh]hdisk}(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)}(hdecrements the gendisk refcounth]hdecrements the gendisk refcount}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhjrhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` the struct gendisk to decrement the refcount for **Description** This decrements the refcount for the struct gendisk. When this reaches 0 we'll have disk_release() called. **Note** for blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called). **Context** Any context, but the last reference must not be dropped from atomic context.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjkubj)}(hhh]j)}(hJ``struct gendisk *disk`` the struct gendisk to decrement the refcount for h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubj)}(hhh]h)}(h0the struct gendisk to decrement the refcount forh]h0the struct gendisk to decrement the refcount for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjkubh)}(hjThis decrements the refcount for the struct gendisk. When this reaches 0 we'll have disk_release() called.h]hlThis decrements the refcount for the struct gendisk. When this reaches 0 we’ll have disk_release() called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjkubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjkubh)}(hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).h]hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjkubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjkubh)}(hLAny context, but the last reference must not be dropped from atomic context.h]hLAny context, but the last reference must not be dropped from atomic context.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_disk_ro (C function) c.set_disk_rohNtauh1hhjrhhhNhNubh)}(hhh](j)}(h7void set_disk_ro (struct gendisk *disk, bool read_only)h]j)}(h6void set_disk_ro(struct gendisk *disk, bool read_only)h](j )}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjlhMubjg)}(h set_disk_roh]jm)}(h set_disk_roh]h set_disk_ro}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjlhMubj)}(h&(struct gendisk *disk, bool read_only)h](j)}(hstruct gendisk *diskh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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 jsb c.set_disk_roasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool read_onlyh](j )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(h read_onlyh]h read_only}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(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)}(hset a gendisk read-onlyh]hset a gendisk read-only}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhjrhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` gendisk to operate on ``bool read_only`` ``true`` to set the disk read-only, ``false`` set the disk read/write **Description** This function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.h](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjnubj)}(hhh](j)}(h/``struct gendisk *disk`` gendisk to operate on h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubj)}(hhh]h)}(hgendisk to operate onh]hgendisk to operate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hY``bool read_only`` ``true`` to set the disk read-only, ``false`` set the disk read/write h](j)}(h``bool read_only``h]j)}(hjh]hbool read_only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjubj)}(hhh]h)}(hE``true`` to set the disk read-only, ``false`` set the disk read/writeh](j)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to set the disk read-only, }(hjhhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh set the disk read/write}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjnubh)}(hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.h]hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bdev_validate_blocksize (C function)c.bdev_validate_blocksizehNtauh1hhjrhhhNhNubh)}(hhh](j)}(hGint bdev_validate_blocksize (struct block_device *bdev, int block_size)h]j)}(hFint bdev_validate_blocksize(struct block_device *bdev, int block_size)h](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjzhKubjg)}(hbdev_validate_blocksizeh]jm)}(hbdev_validate_blocksizeh]hbdev_validate_blocksize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjzhKubj)}(h+(struct block_device *bdev, int block_size)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]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_validate_blocksizeasbuh1hhjubj)}(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)}(hint block_sizeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h block_sizeh]h block_size}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjzhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhKubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhKhjahhubj)}(hhh]h)}(h(check that this block size is acceptableh]h(check that this block size is acceptable}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhj^hhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhjrhNhNubj)}(hXZ**Parameters** ``struct block_device *bdev`` blockdevice to check ``int block_size`` block size to check **Description** For block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device. **Return** On success zero is returned, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhj}ubj)}(hhh](j)}(h3``struct block_device *bdev`` blockdevice to check h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubj)}(hhh]h)}(hblockdevice to checkh]hblockdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h'``int block_size`` block size to check h](j)}(h``int block_size``h]j)}(hjh]hint block_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubj)}(hhh]h)}(hblock size to checkh]hblock size to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhj}ubh)}(hFor block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device.h]hFor block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhj}ubh)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhj}ubh)}(hhjubj)}(hhh]j)}(h4``struct block_device *bdev`` blockdevice to unlock h](j)}(h``struct block_device *bdev``h]j)}(hj+h]hstruct block_device *bdev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM;hj%ubj)}(hhh]h)}(hblockdevice to unlockh]hblockdevice to unlock}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM;hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hM;hj"ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM=hjubh)}(hHUnlocks the filesystem and marks it writeable again after bdev_freeze().h]hHUnlocks the filesystem and marks it writeable again after bdev_freeze().}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM<hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM>hjubh)}(hhj{ubj)}(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.chM;hjubj)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(h1``void *holder`` holder trying to claim **bdev** h](j)}(h``void *holder``h]j)}(hjh]h void *holder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM<hjubj)}(hhh]h)}(hholder trying to claim **bdev**h](hholder trying to claim }(hjhhhNhNubj)}(h**bdev**h]hbdev}(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<hjubj)}(h2``const struct blk_holder_ops *hops`` holder ops. h](j)}(h%``const struct blk_holder_ops *hops``h]j)}(hj h]h!const struct blk_holder_ops *hops}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM=hjubj)}(hhh]h)}(h holder ops.h]h holder ops.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM=hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM=hjubeh}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h**Description**h]j)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM?hj{ubh)}(hClaim **bdev**. This function fails if **bdev** is already claimed by another holder and waits if another claiming is in progress. return, the caller has ownership of bd_claiming and bd_holder[s].h](hClaim }(hjqhhhNhNubj)}(h**bdev**h]hbdev}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh. This function fails if }(hjqhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh 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].}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chM>hj{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.chMBhj{ubh)}(h/0 if **bdev** can be claimed, -EBUSY otherwise.h](h0 if }(hjhhhNhNubj)}(h**bdev**h]hbdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" can be claimed, -EBUSY otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMChj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbd_abort_claiming (C function)c.bd_abort_claiminghNtauh1hhjrhhhNhNubh)}(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}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(hbd_abort_claimingh]jm)}(hbd_abort_claimingh]hbd_abort_claiming}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h)(struct block_device *bdev, void *holder)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.bd_abort_claimingasbuh1hhj6ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubj)}(h void *holderh](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)}(hholderh]hholder}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubeh}(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 abort claiming of a block deviceh]h abort claiming of a block device}(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&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hXS**Parameters** ``struct block_device *bdev`` block device of interest ``void *holder`` holder that has claimed **bdev** **Description** Abort claiming of a block device when the exclusive open failed. This can be also used when exclusive open is not actually desired and we just needed to block other exclusive openers for a while.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]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)}(hj@h]hstruct block_device *bdev}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj:ubj)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(h2``void *holder`` holder that has claimed **bdev** h](j)}(h``void *holder``h]j)}(hjyh]h void *holder}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjsubj)}(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&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(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.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbdev_fput (C function) c.bdev_fputhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h'void bdev_fput (struct file *bdev_file)h]j)}(h&void bdev_fput(struct file *bdev_file)h](j )}(hvoidh]hvoid}(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 bdev_fputh]jm)}(h bdev_fputh]h bdev_fput}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct file *bdev_file)h]j)}(hstruct file *bdev_fileh](j)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(hfileh]hfile}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE j*sb c.bdev_fputasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(h bdev_fileh]h bdev_file}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h0yield claim to the block device and put the fileh]h0yield claim to the block device and put the file}(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&]jjjjjjjjjuh1hhhhjrhNhNubj)}(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)}(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)}(h-``struct file *bdev_file`` open block device h](j)}(h``struct file *bdev_file``h]j)}(hjh]hstruct file *bdev_file}(hj hhhNhNubah}(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)}(hopen block deviceh]hopen block device}(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)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(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.}(hjYhhhNhNubah}(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&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlookup_bdev (C function) c.lookup_bdevhNtauh1hhjrhhhNhNubh)}(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&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h"(const char *pathname, dev_t *dev)h](j)}(hconst char *pathnameh](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)}(hpathnameh]hpathname}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 ]jR )}jE jsb c.lookup_bdevasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(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]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}hhubj)}(hhh]h)}(h&Look up a struct block_device by name.h]h&Look up a struct block_device by name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hXh**Parameters** ``const char *pathname`` Name of the block device in the filesystem. ``dev_t *dev`` Pointer to the block device's dev_t, if found. **Description** Lookup the block device's dev_t at **pathname** in the current namespace if possible and return it in **dev**. **Context** May sleep. **Return** 0 if succeeded, negative errno otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubj)}(hhh](j)}(hE``const char *pathname`` Name of the block device in the filesystem. h](j)}(h``const char *pathname``h]j)}(hjh]hconst char *pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubj)}(hhh]h)}(h+Name of the block device in the filesystem.h]h+Name of the block device in the filesystem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``dev_t *dev`` Pointer to the block device's dev_t, if found. h](j)}(h``dev_t *dev``h]j)}(hjh]h dev_t *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(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)}(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 }(hjUhhhNhNubj)}(h **pathname**h]hpathname}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh7 in the current namespace if possible and return it in }(hjUhhhNhNubj)}(h**dev**h]hdev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(h)0 if succeeded, negative errno otherwise.h]h)0 if succeeded, negative errno otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhjrhhhNhNubh)}(hhh](j)}(h>void bdev_mark_dead (struct block_device *bdev, bool surprise)h]j)}(h=void bdev_mark_dead(struct block_device *bdev, bool surprise)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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)}(hbdev_mark_deadh]jm)}(hbdev_mark_deadh]hbdev_mark_dead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h*(struct block_device *bdev, bool surprise)h](j)}(hstruct block_device *bdevh](j)}(hj6}h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bdev_mark_deadasbuh1hhj/ubj)}(h h]h }(hjqhhhNhNubah}(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&]noemphjjuh1jhj+ubj)}(h bool surpriseh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsurpriseh]hsurprise}(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)}(hmark a block device as deadh]hmark a block device as dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrhNhNubj)}(hX&**Parameters** ``struct block_device *bdev`` block device to operate on ``bool surprise`` indicate a surprise removal **Description** Tell the file system that this devices or media is dead. If **surprise** is set to ``true`` the device or media is already gone, if not we are preparing for an orderly removal. This calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(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.chMhjubj)}(hhh](j)}(h9``struct block_device *bdev`` block device to operate on h](j)}(h``struct block_device *bdev``h]j)}(hj+h]hstruct block_device *bdev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj%ubj)}(hhh]h)}(hblock device to operate onh]hblock device to operate on}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj"ubj)}(h.``bool surprise`` indicate a surprise removal h](j)}(h``bool surprise``h]j)}(hjdh]h bool surprise}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhj^ubj)}(hhh]h)}(hindicate a surprise removalh]hindicate a surprise removal}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj"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&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(hTell the file system that this devices or media is dead. If **surprise** is set to ``true`` the device or media is already gone, if not we are preparing for an orderly removal.h](h=Tell the file system that this devices or media is dead. If }(hjhhhNhNubj)}(h **surprise**h]hsurprise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is set to }(hjhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU the device or media is already gone, if not we are preparing for an orderly removal.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubh)}(hThis calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.h]hThis calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrhhhNhNubeh}(h] block-devicesah ]h"] block devicesah$]h&]uh1hhhhhhhhM4ubh)}(hhh](h)}(h Char devicesh]h Char devices}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM\ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#register_chrdev_region (C function)c.register_chrdev_regionhNtauh1hhjhhhNhNubh)}(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}(hj0hhhNhNubah}(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}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(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}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE jSsbc.register_chrdev_regionasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubjm)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(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&]noemphjjuh1jhjeubj)}(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}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hKubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hKhj%hhubj)}(hhh]h)}(h"register a range of device numbersh]h"register a range of device numbers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjWhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhjhNhNubj)}(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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjvubj)}(hhh](j)}(h```dev_t from`` the first in the desired range of device numbers; must include the major number. h](j)}(h``dev_t from``h]j)}(hjh]h dev_t from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(hPthe first in the desired range of device numbers; must include the major number.h]hPthe first in the desired range of device numbers; must include the major number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hE``unsigned count`` the number of consecutive device numbers required h](j)}(h``unsigned count``h]j)}(hjh]hunsigned count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(h1the number of consecutive device numbers requiredh]h1the number of consecutive device numbers required}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h7``const char *name`` the name of the device or driver. h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(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.chKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(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:350: ./fs/char_dev.chKhjvubh)}(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.chKhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h alloc_chrdev_region (C function)c.alloc_chrdev_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hZint alloc_chrdev_region (dev_t *dev, unsigned baseminor, unsigned count, const char *name)h]j)}(hYint alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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)}(halloc_chrdev_regionh]jm)}(halloc_chrdev_regionh]halloc_chrdev_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hB(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j)}(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 jsbc.alloc_chrdev_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned baseminorh](j )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h baseminorh]h baseminor}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hcounth]hcount}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(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&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h'register a range of char device numbersh]h'register a range of char device numbers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh](j)}(h:``dev_t *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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj5ubj)}(hhh]h)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhj2ubj)}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned baseminor``h]j)}(hjth]hunsigned baseminor}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjnubj)}(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&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhj2ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj2ubj)}(hA``const char *name`` the name of the associated device or driver h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(h+the name of the associated device or driverh]h+the name of the associated device or driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj2ubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubh)}(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 }(hj7hhhNhNubj)}(h**dev**h]hdev}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh). Returns zero or a negative error code.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__register_chrdev (C function)c.__register_chrdevhNtauh1hhjhhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhR/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&]uh1jhjthhhjhKubjg)}(h__register_chrdevh]jm)}(h__register_chrdevh]h__register_chrdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhjhKubj)}(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 }(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)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseminorh](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 }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h baseminorh]h baseminor}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj )}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(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)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(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 ]jR )}jE jsbc.__register_chrdevasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfopsh]hfops}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhKubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjmhhubj)}(hhh]h)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hXm**Parameters** ``unsigned int major`` major device number or 0 for dynamic allocation ``unsigned int baseminor`` first of the requested range of minor numbers ``unsigned int count`` the number of minor numbers required ``const char *name`` name of this range of devices ``const struct file_operations *fops`` file operations associated with this devices **Description** If **major** == 0 this functions will dynamically allocate a major and return its number. If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success. Returns a -ve errno on failure. The name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh](j)}(hG``unsigned int major`` major device number or 0 for dynamic allocation h](j)}(h``unsigned int major``h]j)}(hjh]hunsigned int major}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(h/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hI``unsigned int baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(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.chKhjubj)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjubj)}(h<``unsigned int count`` the number of minor numbers required h](j)}(h``unsigned int count``h]j)}(hjVh]hunsigned int count}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjPubj)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjubj)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hT``const struct file_operations *fops`` file operations associated with this devices h](j)}(h&``const struct file_operations *fops``h]j)}(hjh]h"const struct file_operations *fops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubj)}(hhh]h)}(h,file operations associated with this devicesh]h,file operations associated with this devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]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:350: ./fs/char_dev.chKhjubh)}(hYIf **major** == 0 this functions will dynamically allocate a major and return its number.h](hIf }(hjhhhNhNubj)}(h **major**h]hmajor}(hj!hhhNhNubah}(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.chKhjubh)}(h|If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success.h](hIf }(hj:hhhNhNubj)}(h **major**h]hmajor}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubhp > 0 this function will attempt to reserve a device with the given major number and will return zero on success.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h]hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it’s ok to use e.g. the name of the module here.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%unregister_chrdev_region (C function)c.unregister_chrdev_regionhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.unregister_chrdev_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]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$unregister a range of device numbersh]h$unregister a range of device numbers}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM/hjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjhNhNubj)}(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.chM3hjubj)}(hhh](j)}(h?``dev_t from`` the first in the range of numbers to unregister h](j)}(h``dev_t from``h]j)}(hjh]h dev_t from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM0hjubj)}(hhh]h)}(h/the first in the range of numbers to unregisterh]h/the first in the range of numbers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(h>``unsigned count`` the number of device numbers to unregister h](j)}(h``unsigned count``h]j)}(hjh]hunsigned count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM1hjubj)}(hhh]h)}(h*the number of device numbers to unregisterh]h*the number of device numbers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubeh}(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.chM3hjubh)}(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 }(hj1hhhNhNubj)}(h **count**h]hcount}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh device numbers, starting with }(hj1hhhNhNubj)}(h**from**h]hfrom}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __unregister_chrdev (C function)c.__unregister_chrdevhNtauh1hhjhhhNhNubh)}(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.chMEubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMEubjg)}(h__unregister_chrdevh]jm)}(h__unregister_chrdevh]h__unregister_chrdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMEubj)}(hR(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j)}(hunsigned int majorh](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)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int 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 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)}(h baseminorh]h baseminor}(hjJ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjc hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ ubj)}(h h]h }(hjq 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)}(hcounth]hcount}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ ubeh}(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}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhMEubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhjyhhubj)}(hhh]h)}(hunregister and destroy a cdevh]hunregister and destroy a cdev}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMEhj hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj: jj: jjjuh1hhhhjhNhNubj)}(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)}(hjD h]h Parameters}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMIhj> ubj)}(hhh](j)}(h+``unsigned int major`` major device number h](j)}(h``unsigned int major``h]j)}(hjc h]hunsigned int major}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMFhj] ubj)}(hhh]h)}(hmajor device numberh]hmajor device number}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx hMFhjy ubah}(h]h ]h"]h$]h&]uh1jhj] ubeh}(h]h ]h"]h$]h&]uh1jhjx hMFhjZ ubj)}(h?``unsigned int baseminor`` first of the range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(hj h]hunsigned int 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.chMGhj ubj)}(hhh]h)}(h#first of the range of minor numbersh]h#first of the range of minor numbers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMGhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMGhjZ ubj)}(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.chMHhj ubj)}(hhh]h)}(h2the number of minor numbers this cdev is occupyingh]h2the number of minor numbers this cdev is occupying}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMHhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMHhjZ ubj)}(h3``const char *name`` name of this range of devices h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMIhj ubj)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hj' hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj# hMIhj$ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj# hMIhjZ ubeh}(h]h ]h"]h$]h&]uh1jhj> ubh)}(h**Description**h]j)}(hjI h]h Description}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMKhj> ubh)}(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 }(hj_ hhhNhNubj)}(h **major**h]hmajor}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ ubh, }(hj_ hhhNhNubj)}(h **baseminor**h]h baseminor}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ ubh and }(hj_ hhhNhNubj)}(h **count**h]hcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ ubh5. This function undoes what __register_chrdev() did.}(hj_ hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMJhj> ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_add (C function) c.cdev_addhNtauh1hhjhhhNhNubh)}(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 hhhj hMubjg)}(hcdev_addh]jm)}(hcdev_addh]hcdev_add}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h+(struct cdev *p, dev_t dev, unsigned count)h](j)}(hstruct cdev *ph](j)}(hj6}h]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_addasbuh1hhj 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)}(hjh]hp}(hjZ hhhNhNubah}(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}(hju hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjw modnameN classnameNjI jL )}jO ]j;  c.cdev_addasbuh1hhjn ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjn ubjm)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn 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 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 a char device to the systemh]hadd a char device to the system}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct cdev *p`` the cdev structure for the device ``dev_t dev`` the first device number for which this device is responsible ``unsigned count`` the number of consecutive minor numbers corresponding to this device **Description** cdev_add() adds the device represented by **p** to the system, making it live immediately. A negative error code is returned on failure.h](h)}(h**Parameters**h]j)}(hj" h]h Parameters}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubj)}(hhh](j)}(h5``struct cdev *p`` the cdev structure for the device h](j)}(h``struct cdev *p``h]j)}(hjA h]hstruct cdev *p}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj? ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj; ubj)}(hhh]h)}(h!the cdev structure for the deviceh]h!the cdev structure for the device}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV hMhjW ubah}(h]h ]h"]h$]h&]uh1jhj; ubeh}(h]h ]h"]h$]h&]uh1jhjV hMhj8 ubj)}(hK``dev_t dev`` the first device number for which this device is responsible h](j)}(h ``dev_t dev``h]j)}(hjz h]h dev_t dev}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjt ubj)}(hhh]h)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkobjh]hkobj}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThMhj;hhubj)}(hhh]h)}(h(set the parent kobject for a char deviceh]h(set the parent kobject for a char device}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX***Parameters** ``struct cdev *p`` the cdev structure ``struct kobject *kobj`` the kobject to take a reference to **Description** cdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.h](h)}(h**Parameters**h]j)}(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)}(h&``struct cdev *p`` the cdev structure 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)}(hthe cdev structureh]hthe cdev structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``struct kobject *kobj`` the kobject to take a reference to h](j)}(h``struct kobject *kobj``h]j)}(hjh]hstruct kobject *kobj}(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 kobject to take a reference toh]h"the kobject to take a reference to}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(hcdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.h]hcdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_device_add (C function)c.cdev_device_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(h;int cdev_device_add (struct cdev *cdev, struct device *dev)h]j)}(h:int cdev_device_add(struct cdev *cdev, struct device *dev)h](j )}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkhhhj}hM ubjg)}(hcdev_device_addh]jm)}(hcdev_device_addh]hcdev_device_add}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhj}hM ubj)}(h'(struct cdev *cdev, struct device *dev)h](j)}(hstruct cdev *cdevh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcdevh]hcdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.cdev_device_addasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcdevh]hcdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jc.cdev_device_addasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhj}hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj}hM ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hM hjdhhubj)}(hhh]h)}(h?add a char device and it's corresponding struct device, linkinkh]hAadd a char device and it’s corresponding struct device, linkink}(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&]uh1jhjdhhhj}hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the cdev structure ``struct device *dev`` the device structure **Description** cdev_device_add() adds the char device represented by **cdev** to the system, just as cdev_add does. It then adds **dev** to the system using device_add The dev_t for the char device will be taken from the struct device which needs to be initialized first. This helper function correctly takes a reference to the parent device so the parent will not get released until all references to the cdev are released. This helper uses dev->devt for the device number. If it is not set it will not add the cdev and it will be equivalent to device_add. This function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device. **NOTE** Callers must assume that userspace was able to open the cdev and can call cdev fops callbacks at any time, even if this function fails.h](h)}(h**Parameters**h]j)}(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)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hjh]hstruct cdev *cdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM hjubj)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM hjubj)}(hhh]h)}(hthe device structureh]hthe device structure}(hj2hhhNhNubah}(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)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(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 }(hjjhhhNhNubj)}(h**cdev**h]hcdev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh4 to the system, just as cdev_add does. It then adds }(hjjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhX  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.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(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.chMhjubh)}(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.chMhjubh)}(h**NOTE**h]j)}(hjh]hNOTE}(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.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_device_del (C function)c.cdev_device_delhNtauh1hhjhhhNhNubh)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM8hjNubj)}(hhh](j)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hjsh]hstruct cdev *cdev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM5hjmubj)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM6hjubj)}(hhh]h)}(hthe device structureh]hthe device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjjubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM8hjNubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM7hjNubh)}(hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.h]hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM:hjNubh)}(h**NOTE**h]j)}(hjh]hNOTE}(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=hjNubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM>hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_del (C function) c.cdev_delhNtauh1hhjhhhNhNubh)}(hhh](j)}(hvoid cdev_del (struct cdev *p)h]j)}(hvoid cdev_del(struct cdev *p)h](j )}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMOubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjphMOubjg)}(hcdev_delh]jm)}(hcdev_delh]hcdev_del}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjphMOubj)}(h(struct cdev *p)h]j)}(hstruct cdev *ph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcdevh]hcdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.cdev_delasbuh1hhjubj)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj^hhhjphMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjphMOubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphMOhjWhhubj)}(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.chMOhjhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhjhNhNubj)}(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)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMShj=ubj)}(hhh]j)}(h4``struct cdev *p`` the cdev structure to be removed h](j)}(h``struct cdev *p``h]j)}(hjbh]hstruct cdev *p}(hjdhhhNhNubah}(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.chMPhj\ubj)}(hhh]h)}(h the cdev structure to be removedh]h the cdev structure to be removed}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMPhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMPhjYubah}(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.chMRhj=ubh)}(hPcdev_del() removes **p** from the system, possibly freeing the structure itself.h](hcdev_del() removes }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 from the system, possibly freeing the structure itself.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMQhj=ubh)}(h**NOTE**h]j)}(hjh]hNOTE}(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.chMThj=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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMUhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_alloc (C function) c.cdev_allochNtauh1hhjhhhNhNubh)}(hhh](j)}(hstruct cdev * cdev_alloc (void)h]j)}(hstruct cdev *cdev_alloc(void)h](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM|ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj(hM|ubh)}(hhh]jm)}(hcdevh]hcdev}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jR )}jE cdev_allocsb c.cdev_allocasbuh1hhjhhhj(hM|ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj(hM|ubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hM|ubjg)}(h cdev_alloch]jm)}(hjXh]h cdev_alloc}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hM|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(hM|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hM|ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj(hM|hjhhubj)}(hhh]h)}(hallocate a cdev structureh]hallocate a cdev structure}(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&]uh1jhjhhhj(hM|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hu**Parameters** ``void`` no arguments **Description** Allocates and returns a cdev structure, or NULL 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)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjubh)}(h;Allocates and returns a cdev structure, or NULL on failure.h]h;Allocates and returns a cdev structure, or NULL on failure.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcdev_init (C function) c.cdev_inithNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhjhMubjg)}(h cdev_inith]jm)}(h cdev_inith]h cdev_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhjhMubj)}(h7(struct cdev *cdev, const struct file_operations *fops)h](j)}(hstruct cdev *cdevh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcdevh]hcdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.cdev_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hcdevh]hcdev}(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 }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hj6}h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]j c.cdev_initasbuh1hhj+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&]jjuh1jhj|hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]h)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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)}(h2``struct cdev *cdev`` the structure to initialize h](j)}(h``struct cdev *cdev``h]j)}(hj h]hstruct cdev *cdev}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(hK``const struct file_operations *fops`` the file_operations for this device h](j)}(h&``const struct file_operations *fops``h]j)}(hjEh]h"const struct file_operations *fops}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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&]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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubh)}(haInitializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h Initializes }(hjhhhNhNubj)}(h**cdev**h]hcdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, remembering }(hjhhhNhNubj)}(h**fops**h]hfops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh7, making it ready to add to the system with cdev_add().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM\ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMbubh)}(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 }(hjhhhNhNubh)}(h:c:type:`struct clk `h]j)}(hjh]h struct clk}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jclkuh1hhhhMdhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMdhjhhubh)}(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 }(hjhhhNhNubj)}(h*retention mode*h]hretention mode}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMnhjhhubh)}(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&]uh1hhhhMxhjhhubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_notifier (C struct)c.clk_notifierhNtauh1hhjhhhNhNubh)}(hhh](j)}(h clk_notifierh]j)}(hstruct clk_notifierh](j)}(hj6}h]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhX/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&]uh1jhjkhhhj|hKubjg)}(h clk_notifierh]jm)}(hjih]h clk_notifier}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhj|hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj|hKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj|hKhjdhhubj)}(hhh]h)}(hassociate a clk with a notifierh]hassociate a clk with a notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK,hjhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj|hKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hjubj#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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK2hjubh)}(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:389: ./include/linux/clk.hhK8hjubj)}(hhh](j)}(h4``clk`` struct clk * to associate the notifier with h](j)}(h``clk``h]j)}(hjh]hclk}(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.hhK.hjubj)}(hhh]h)}(h+struct clk * to associate the notifier withh]h+struct clk * to associate the notifier with}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hK.hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hK.hjubj)}(h8``notifier_head`` a blocking_notifier_head for this clk h](j)}(h``notifier_head``h]j)}(hjWh]h notifier_head}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK/hjQubj)}(hhh]h)}(h%a blocking_notifier_head for this clkh]h%a blocking_notifier_head for this clk}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhK/hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhK/hjubj)}(h``node`` linked list pointersh](j)}(h``node``h]j)}(hjh]hnode}(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.hhK/hjubj)}(hhh]h)}(hlinked list pointersh]hlinked list pointers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(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.hhK3hjhhubh)}(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 }(hjhhhNhNubj)}(h**clk**h]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. Future notifiers on that }(hjhhhNhNubj)}(h**clk**h]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are added to the }(hjhhhNhNubj)}(h**notifier_head**h]h notifier_head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhjhhhNhNubh)}(hhh](j)}(hclk_notifier_datah]j)}(hstruct clk_notifier_datah](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjThK8ubjg)}(hclk_notifier_datah]jm)}(hjAh]hclk_notifier_data}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjThK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhjThK8ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjThK8hj<hhubj)}(hhh]h)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK=hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjThK8ubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhjubj#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; };}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKChjubh)}(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:389: ./include/linux/clk.hhKIhjubj)}(hhh](j)}(h#``clk`` struct clk * being changed h](j)}(h``clk``h]j)}(hjh]hclk}(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.hhK?hjubj)}(hhh]h)}(hstruct clk * being changedh]hstruct clk * being changed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK?hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK?hjubj)}(h'``old_rate`` previous rate of this clk h](j)}(h ``old_rate``h]j)}(hj/h]hold_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.hhK@hj)ubj)}(hhh]h)}(hprevious rate of this clkh]hprevious rate of this clk}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhK@hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhK@hjubj)}(h!``new_rate`` new rate of this clkh](j)}(h ``new_rate``h]j)}(hjhh]hnew_rate}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hjbubj)}(hhh]h)}(hnew rate of this clkh]hnew rate of this clk}(hjhhhNhNubah}(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&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hK@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(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.hhKDhjhhubh)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhjhhhNhNubh)}(hhh](j)}(h clk_bulk_datah]j)}(hstruct clk_bulk_datah](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKIubjg)}(h clk_bulk_datah]jm)}(hjh]h clk_bulk_data}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKIhjhhubj)}(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&]uh1jhjhhhjhKIubeh}(h]h ](jstructeh"]h$]h&]jjjjCjjCjjjuh1hhhhjhNhNubj)}(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}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh:}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhjGubj#C)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hjhsbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKThjGubh)}(h **Members**h]j)}(hjyh]hMembers}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKYhjGubj)}(hhh](j)}(h``id`` clock consumer ID h](j)}(h``id``h]j)}(hjh]hid}(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.hhKQhjubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubj)}(h2``clk`` struct clk * to store the associated clockh](j)}(h``clk``h]j)}(hjh]hclk}(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.hhKQhjubj)}(hhh]h)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(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.hhKUhjhhubh)}(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.hhKRhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhjhhhNhNubh)}(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}(hjR hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjN hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK_ubj)}(h h]h }(hja hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN hhhj` hK_ubjg)}(hclk_notifier_registerh]jm)}(hclk_notifier_registerh]hclk_notifier_register}(hjs hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjN hhhj` hK_ubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hj6}h]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 ju sbc.clk_notifier_registerasbuh1hhj 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 ubj)}(hstruct notifier_block *nbh](j)}(hj6}h]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 ]j c.clk_notifier_registerasbuh1hhj 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)}(hnbh]hnb}(hjX!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjN hhhj` hK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJ hhhj` hK_ubah}(h]jE ah ](jjeh"]h$]h&]jj)jhuh1hhj` hK_hjG 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&]uh1jhjG hhhj` hK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjhNhNubj)}(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}(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)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hj!h]hstruct notifier_block *nb}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.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&]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)}(hj7"h]h Description}(hj9"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjM"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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhjhhhNhNubh)}(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 hjx"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&]uh1jhjx"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&]jjuh1jfhjx"hhhj"hKjubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hj6}h]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*}(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)}(hstruct notifier_block *nbh](j)}(hj6}h]hstruct}(hj+#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'#ubj)}(h h]h }(hj8#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'#ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hjI#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjK#modnameN classnameNjI jL )}jO ]j"c.clk_notifier_unregisterasbuh1hhj'#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)}(hnbh]hnb}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubeh}(h]h ]h"]h$]h&]jjuh1jhjx"hhhj"hKjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjt"hhhj"hKjubah}(h]jo"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hKjhjq"hhubj)}(hhh]h)}(h0unregister a clock rate-change notifier callbackh]h0unregister a clock rate-change notifier callback}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKjhj#hhubah}(h]h ]h"]h$]h&]uh1jhjq"hhhj"hKjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock whose rate we are no longer interested in ``struct notifier_block *nb`` notifier block which will be unregisteredh](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKnhj#ubj)}(hhh](j)}(hD``struct clk *clk`` clock whose rate we are no longer interested in h](j)}(h``struct clk *clk``h]j)}(hj#h]hstruct clk *clk}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKkhj#ubj)}(hhh]h)}(h/clock whose rate we are no longer interested inh]h/clock whose rate we are no longer interested in}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKkhj$ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj$hKkhj#ubj)}(hG``struct notifier_block *nb`` notifier block which will be unregisteredh](j)}(h``struct notifier_block *nb``h]j)}(hj&$h]hstruct notifier_block *nb}(hj($hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKmhj $ubj)}(hhh]h)}(h)notifier block which will be unregisteredh]h)notifier block which will be unregistered}(hj?$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKlhj<$ubah}(h]h ]h"]h$]h&]uh1jhj $ubeh}(h]h ]h"]h$]h&]uh1jhj;$hKmhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhjhhhNhNubh)}(hhh](j)}(h_int devm_clk_notifier_register (struct device *dev, struct clk *clk, struct notifier_block *nb)h]j)}(h^int devm_clk_notifier_register(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKqubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|$hhhj$hKqubjg)}(hdevm_clk_notifier_registerh]jm)}(hdevm_clk_notifier_registerh]hdevm_clk_notifier_register}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|$hhhj$hKqubj)}(h@(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j)}(hstruct device *devh](j)}(hj6}h]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}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$modnameN classnameNjI jL )}jO ]jR )}jE j$sbc.devm_clk_notifier_registerasbuh1hhj$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)}(hdevh]hdev}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct clk *clkh](j)}(hj6}h]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}(hjM%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjO%modnameN classnameNjI jL )}jO ]j$c.devm_clk_notifier_registerasbuh1hhj+%ubj)}(h h]h }(hjk%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+%ubj)}(hjh]h*}(hjy%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)}(hstruct notifier_block *nbh](j)}(hj6}h]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 ]j$c.devm_clk_notifier_registerasbuh1hhj%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$hKqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjx$hhhj$hKqubah}(h]js$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hKqhju$hhubj)}(hhh]h)}(h0register a managed rate-change notifier callbackh]h0register a managed rate-change notifier callback}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKqhj&hhubah}(h]h ]h"]h$]h&]uh1jhju$hhhj$hKqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8&jj8&jjjuh1hhhhjhNhNubj)}(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)}(hjB&h]h Parameters}(hjD&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.hhKuhj<&ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hja&h]hstruct device *dev}(hjc&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKrhj[&ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjz&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv&hKrhjw&ubah}(h]h ]h"]h$]h&]uh1jhj[&ubeh}(h]h ]h"]h$]h&]uh1jhjv&hKrhjX&ubj)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(hj&h]hstruct clk *clk}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKshj&ubj)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKshj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hKshjX&ubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hj&h]hstruct notifier_block *nb}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKthj&ubj)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKthj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hKthjX&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.hhKvhj<&ubh)}(h'Returns 0 on success, -EERROR otherwiseh]h'Returns 0 on success, -EERROR otherwise}(hj$'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKuhj<&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhjhhhNhNubh)}(hhh](j)}(h'long clk_get_accuracy (struct clk *clk)h]j)}(h&long clk_get_accuracy(struct clk *clk)h](j )}(hlongh]hlong}(hjS'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjO'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|ubj)}(h h]h }(hjb'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO'hhhja'hK|ubjg)}(hclk_get_accuracyh]jm)}(hclk_get_accuracyh]hclk_get_accuracy}(hjt'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjO'hhhja'hK|ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]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 jv'sbc.clk_get_accuracyasbuh1hhj'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&]jjuh1jhjO'hhhja'hK|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjK'hhhja'hK|ubah}(h]jF'ah ](jjeh"]h$]h&]jj)jhuh1hhja'hK|hjH'hhubj)}(hhh]h)}(hHobtain the clock accuracy in ppb (parts per billion) for a clock source.h]hHobtain the clock accuracy in ppb (parts per billion) for a clock source.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|hj(hhubah}(h]h ]h"]h$]h&]uh1jhjH'hhhja'hK|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+(jj+(jjjuh1hhhhjhNhNubj)}(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)}(hj5(h]h Parameters}(hj7(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3(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)}(hjT(h]hstruct clk *clk}(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:389: ./include/linux/clk.hhK~hjN(ubj)}(hhh]h)}(h clock sourceh]h clock source}(hjm(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji(hK~hjj(ubah}(h]h ]h"]h$]h&]uh1jhjN(ubeh}(h]h ]h"]h$]h&]uh1jhji(hK~hjK(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:389: ./include/linux/clk.hhKhj/(ubh)}(hPThis gets the clock source accuracy expressed in ppb. A perfect clock returns 0.h]hPThis gets the clock source accuracy expressed in ppb. A perfect clock returns 0.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj/(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_phase (C function)c.clk_set_phasehNtauh1hhjhhhNhNubh)}(hhh](j)}(h0int clk_set_phase (struct clk *clk, int degrees)h]j)}(h/int clk_set_phase(struct clk *clk, int degrees)h](j )}(hinth]hint}(hj(hhhNhNubah}(h]h ]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)}(h clk_set_phaseh]jm)}(h clk_set_phaseh]h clk_set_phase}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj(hKubj)}(h(struct clk *clk, int degrees)h](j)}(hstruct clk *clkh](j)}(hj6}h]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 reftargetj1)modnameN classnameNjI jL )}jO ]jR )}jE j(sbc.clk_set_phaseasbuh1hhj )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)}(hclkh]hclk}(hjj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj )ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj )ubj)}(h int degreesh](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)}(hdegreesh]hdegrees}(hj)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(adjust the phase shift of a clock signalh]h(adjust the phase shift of a clock signal}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock signal source ``int degrees`` number of degrees the signal is shifted **Description** Shifts the phase of a clock signal by the specified degrees. Returns 0 on success, -EERROR otherwise.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj)ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj *h]hstruct clk *clk}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj*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)}(h8``int degrees`` number of degrees the signal is shifted h](j)}(h``int degrees``h]j)}(hjC*h]h int degrees}(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.hhKhj=*ubj)}(hhh]h)}(h'number of degrees the signal is shiftedh]h'number of degrees the signal is shifted}(hj\*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX*hKhjY*ubah}(h]h ]h"]h$]h&]uh1jhj=*ubeh}(h]h ]h"]h$]h&]uh1jhjX*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:389: ./include/linux/clk.hhKhj)ubh)}(heShifts the phase of a clock signal by the specified degrees. Returns 0 on success, -EERROR otherwise.h]heShifts the phase of a clock signal by the specified degrees. Returns 0 on success, -EERROR otherwise.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_phase (C function)c.clk_get_phasehNtauh1hhjhhhNhNubh)}(hhh](j)}(h#int clk_get_phase (struct clk *clk)h]j)}(h"int clk_get_phase(struct clk *clk)h](j )}(hinth]hint}(hj*hhhNhNubah}(h]h ]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)}(h clk_get_phaseh]jm)}(h clk_get_phaseh]h clk_get_phase}(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)}(hj6}h]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_get_phaseasbuh1hhj*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*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)}(h(return the phase shift of a clock signalh]h(return the phase shift of a clock signal}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock signal source **Description** Returns the phase shift of a clock node in degrees, otherwise returns -EERROR.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj+ubj)}(hhh]j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj+h]hstruct clk *clk}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj+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+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:389: ./include/linux/clk.hhKhj+ubh)}(hNReturns the phase shift of a clock node in degrees, otherwise returns -EERROR.h]hNReturns the phase shift of a clock node in degrees, otherwise returns -EERROR.}(hj,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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhjhhhNhNubh)}(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}(hjD,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 }(hjS,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@,hhhjR,hKubjg)}(hclk_set_duty_cycleh]jm)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hje,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhja,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@,hhhjR,hKubj)}(h5(struct clk *clk, unsigned int num, unsigned int den)h](j)}(hstruct clk *clkh](j)}(hj6}h]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 jg,sbc.clk_set_duty_cycleasbuh1hhj},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&]noemphjjuh1jhjy,ubj)}(hunsigned int numh](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)}(hnumh]hnum}(hj+-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy,ubj)}(hunsigned int denh](j )}(hunsignedh]hunsigned}(hjD-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@-ubj)}(h h]h }(hjR-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@-ubj )}(hinth]hint}(hj`-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@-ubj)}(h h]h }(hjn-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@-ubjm)}(hdenh]hden}(hj|-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjy,ubeh}(h]h ]h"]h$]h&]jjuh1jhj@,hhhjR,hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<,hhhjR,hKubah}(h]j7,ah ](jjeh"]h$]h&]jj)jhuh1hhjR,hKhj9,hhubj)}(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&]uh1jhj9,hhhjR,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjhNhNubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj-ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj-h]hstruct clk *clk}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj-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)}(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}(hj9.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5.hKhj6.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj5.hKhj-ubj)}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j)}(h``unsigned int den``h]j)}(hjY.h]hunsigned int den}(hj[.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjS.ubj)}(hhh]h)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hjr.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn.hKhjo.ubah}(h]h ]h"]h$]h&]uh1jhjS.ubeh}(h]h ]h"]h$]h&]uh1jhjn.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: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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhjhhhNhNubh)}(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 }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj.hKubjg)}(hclk_get_scaled_duty_cycleh]jm)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj.hKubj)}(h%(struct clk *clk, unsigned int scale)h](j)}(hstruct clk *clkh](j)}(hj6}h]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}(hj4/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6/modnameN classnameNjI jL )}jO ]jR )}jE j.sbc.clk_get_scaled_duty_cycleasbuh1hhj/ubj)}(h h]h }(hjT/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)}(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&]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-return the duty cycle ratio of a clock signalh]h-return 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&]uh1jhj.hhhj.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhjhNhNubj)}(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.Ih](h)}(h**Parameters**h]j)}(hj 0h]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:389: ./include/linux/clk.hhKhj0ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj+0h]hstruct clk *clk}(hj-0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj%0ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjD0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@0hKhjA0ubah}(h]h ]h"]h$]h&]uh1jhj%0ubeh}(h]h ]h"]h$]h&]uh1jhj@0hKhj"0ubj)}(hY``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer h](j)}(h``unsigned int scale``h]j)}(hjd0h]hunsigned int scale}(hjf0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj^0ubj)}(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}0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy0hKhjz0ubah}(h]h ]h"]h$]h&]uh1jhj^0ubeh}(h]h ]h"]h$]h&]uh1jhjy0hKhj"0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(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:389: ./include/linux/clk.hhKhj0ubh)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_is_match (C function)c.clk_is_matchhNtauh1hhjhhhNhNubh)}(hhh](j)}(h` object. Returns false otherwise. Note that two NULL clks are treated as matching.h](h)}(h**Parameters**h]j)}(hji2h]h Parameters}(hjk2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjc2ubj)}(hhh](j)}(h/``const struct clk *p`` clk compared against q h](j)}(h``const struct clk *p``h]j)}(hj2h]hconst struct clk *p}(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.hhKhj2ubj)}(hhh]h)}(hclk compared against qh]hclk compared against q}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubj)}(h/``const struct clk *q`` clk compared against p h](j)}(h``const struct clk *q``h]j)}(hj2h]hconst struct clk *q}(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.hhKhj2ubj)}(hhh]h)}(hclk compared against ph]hclk compared against p}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubeh}(h]h ]h"]h$]h&]uh1jhjc2ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjc2ubh)}(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 }(hj3hhhNhNubj)}(h**p**h]hp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh and }(hj3hhhNhNubj)}(h**q**h]hq}(hj,3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh share the same }(hj3hhhNhNubh)}(h$:c:type:`struct clk_core `h]j)}(hj@3h]hstruct clk_core}(hjB3hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj>3ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jclk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj3ubh object.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj]3hKhjc2ubh)}(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.}(hjh3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjc2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhjhhhNhNubh)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhj3hKubjg)}(hclk_rate_exclusive_geth]jm)}(hclk_rate_exclusive_geth]hclk_rate_exclusive_get}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj3hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(hclkh]hclk}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE j3sbc.clk_rate_exclusive_getasbuh1hhj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj 4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hclkh]hclk}(hj-4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hKubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hKhj3hhubj)}(hhh]h)}(h3get exclusivity over the rate control of a producerh]h3get exclusivity over the rate control of a producer}(hjW4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjT4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo4jjo4jjjuh1hhhhjhNhNubj)}(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)}(hjy4h]h Parameters}(hj{4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjs4ubj)}(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.hhKhj4ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1jhjs4ubh)}(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.hhKhjs4ubh)}(hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitchesh]hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitches}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjs4ubh)}(hIf exlusivity is claimed more than once on clock, even by the same driver, the rate effectively gets locked as exclusivity can't be preempted.h]hIf exlusivity is claimed more than once on clock, even by the same driver, the rate effectively gets locked as exclusivity can’t be preempted.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjs4ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjs4ubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjs4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(devm_clk_rate_exclusive_get (C function)c.devm_clk_rate_exclusive_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(hEint devm_clk_rate_exclusive_get (struct device *dev, struct clk *clk)h]j)}(hDint devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk)h](j )}(hinth]hint}(hjE5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjA5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjT5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjA5hhhjS5hKubjg)}(hdevm_clk_rate_exclusive_geth]jm)}(hdevm_clk_rate_exclusive_geth]hdevm_clk_rate_exclusive_get}(hjf5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjb5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjA5hhhjS5hKubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~5ubh)}(hhh]jm)}(hdeviceh]hdevice}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE jh5sbc.devm_clk_rate_exclusive_getasbuh1hhj~5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~5ubjm)}(hdevh]hdev}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz5ubj)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(hclkh]hclk}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]j5c.devm_clk_rate_exclusive_getasbuh1hhj5ubj)}(h h]h }(hj06hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj>6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hclkh]hclk}(hjK6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz5ubeh}(h]h ]h"]h$]h&]jjuh1jhjA5hhhjS5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=5hhhjS5hKubah}(h]j85ah ](jjeh"]h$]h&]jj)jhuh1hhjS5hKhj:5hhubj)}(hhh]h)}(h&devm variant of clk_rate_exclusive_geth]h&devm variant of clk_rate_exclusive_get}(hju6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjr6hhubah}(h]h ]h"]h$]h&]uh1jhj:5hhhjS5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhjhNhNubj)}(hX-**Parameters** ``struct device *dev`` device the exclusivity is bound to ``struct clk *clk`` clock source **Description** Calls clk_rate_exclusive_get() on **clk** and registers a devm cleanup handler on **dev** to call clk_rate_exclusive_put(). Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6ubj)}(hhh](j)}(h:``struct device *dev`` device the exclusivity is bound to h](j)}(h``struct device *dev``h]j)}(hj6h]hstruct device *dev}(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"device the exclusivity is bound toh]h"device the exclusivity is bound to}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubj)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj6h]hstruct clk *clk}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj*7h]h Description}(hj,7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6ubh)}(h{Calls clk_rate_exclusive_get() on **clk** and registers a devm cleanup handler on **dev** to call clk_rate_exclusive_put().h](h"Calls clk_rate_exclusive_get() on }(hj@7hhhNhNubj)}(h**clk**h]hclk}(hjH7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@7ubh) and registers a devm cleanup handler on }(hj@7hhhNhNubj)}(h**dev**h]hdev}(hjZ7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@7ubh" to call clk_rate_exclusive_put().}(hj@7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjs7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_rate_exclusive_put (C function)c.clk_rate_exclusive_puthNtauh1hhjhhhNhNubh)}(hhh](j)}(h-void clk_rate_exclusive_put (struct clk *clk)h]j)}(h,void clk_rate_exclusive_put(struct clk *clk)h](j )}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhj7hKubjg)}(hclk_rate_exclusive_puth]jm)}(hclk_rate_exclusive_puth]hclk_rate_exclusive_put}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhj7hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(hclkh]hclk}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.clk_rate_exclusive_putasbuh1hhj7ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj+8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hclkh]hclk}(hj88hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hKubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj7hKhj7hhubj)}(hhh]h)}(h7release exclusivity over the rate control of a producerh]h7release exclusivity over the rate control of a producer}(hjb8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj_8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjz8jjz8jjjuh1hhhhjhNhNubj)}(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)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj~8ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj8h]hstruct clk *clk}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj8ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj~8ubh)}(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:389: ./include/linux/clk.hhKhj~8ubh)}(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()}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj~8ubh)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj~8ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj~8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_prepare (C function) c.clk_preparehNtauh1hhjhhhNhNubh)}(hhh](j)}(h!int clk_prepare (struct clk *clk)h]j)}(h int clk_prepare(struct clk *clk)h](j )}(hinth]hint}(hjA9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM,ubj)}(h h]h }(hjP9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=9hhhjO9hM,ubjg)}(h clk_prepareh]jm)}(h clk_prepareh]h clk_prepare}(hjb9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=9hhhjO9hM,ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj~9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz9ubh)}(hhh]jm)}(hclkh]hclk}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE jd9sb c.clk_prepareasbuh1hhjz9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjz9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz9ubjm)}(hclkh]hclk}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjv9ubah}(h]h ]h"]h$]h&]jjuh1jhj=9hhhjO9hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj99hhhjO9hM,ubah}(h]j49ah ](jjeh"]h$]h&]jj)jhuh1hhjO9hM,hj69hhubj)}(hhh]h)}(hprepare a clock sourceh]hprepare 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.hhM,hj9hhubah}(h]h ]h"]h$]h&]uh1jhj69hhhjO9hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhjhNhNubj)}(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)}(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.hhM0hj:ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjB:h]hstruct clk *clk}(hjD:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM-hj<:ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj[:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW:hM-hjX:ubah}(h]h ]h"]h$]h&]uh1jhj<:ubeh}(h]h ]h"]h$]h&]uh1jhjW:hM-hj9: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:389: ./include/linux/clk.hhM/hj:ubh)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hj:ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM0hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhjhhhNhNubh)}(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}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhj:hM8ubjg)}(hclk_is_enabled_when_preparedh]jm)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hM8ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]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_is_enabled_when_preparedasbuh1hhj ;ubj)}(h h]h }(hjK;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ;ubj)}(hjh]h*}(hjY;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ;ubjm)}(hclkh]hclk}(hjf;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj:hM8ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hM8hj:hhubj)}(hhh]h)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hj;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhjhNhNubj)}(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)}(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.hhM<hj;ubj)}(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.hhM9hj;ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM9hj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM9hj;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:389: ./include/linux/clk.hhM;hj;ubh)}(hReturns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise.h]hReturns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise.}(hj"<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM:hj;ubh)}(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.}(hj1<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM=hj;ubh)}(hRegardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.h]hRegardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.}(hj@<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMAhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_unprepare (C function)c.clk_unpreparehNtauh1hhjhhhNhNubh)}(hhh](j)}(h$void clk_unprepare (struct clk *clk)h]j)}(h#void clk_unprepare(struct clk *clk)h](j )}(hvoidh]hvoid}(hjo<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjk<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&]uh1jhjk<hhhj}<hM\ubjg)}(h clk_unprepareh]jm)}(h clk_unprepareh]h clk_unprepare}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjk<hhhj}<hM\ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]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_unprepareasbuh1hhj<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&]jjuh1jhjk<hhhj}<hM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjg<hhhj}<hM\ubah}(h]jb<ah ](jjeh"]h$]h&]jj)jhuh1hhj}<hM\hjd<hhubj)}(hhh]h)}(h"undo preparation of a clock sourceh]h"undo preparation of 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.hhM\hj,=hhubah}(h]h ]h"]h$]h&]uh1jhjd<hhhj}<hM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjG=jjG=jjjuh1hhhhjhNhNubj)}(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)}(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:389: ./include/linux/clk.hhM`hjK=ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjp=h]hstruct clk *clk}(hjr=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjj=ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM]hj=ubah}(h]h ]h"]h$]h&]uh1jhjj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hM]hjg=ubah}(h]h ]h"]h$]h&]uh1jhjK=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.hhM_hjK=ubh)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjK=ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMahjK=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get (C function) c.clk_gethNtauh1hhjhhhNhNubh)}(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)}(hj6}h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhX/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&]uh1jhj=hhhj >hMuubh)}(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_getsb c.clk_getasbuh1hhj=hhhj >hMuubj)}(h h]h }(hj?>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhj >hMuubj)}(hjh]h*}(hjM>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj >hMuubjg)}(hclk_geth]jm)}(hj<>h]hclk_get}(hj^>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZ>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj >hMuubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]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)}(hdeviceh]hdevice}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]j:> c.clk_getasbuh1hhju>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)}(hdevh]hdev}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhju>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjq>ubj)}(hconst char *idh](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)}(hidh]hid}(hj-?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjq>ubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhj >hMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj >hMuubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj >hMuhj=hhubj)}(hhh]h)}(h2lookup and obtain a reference to a clock producer.h]h2lookup and obtain a reference to a clock producer.}(hjW?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuhjT?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj >hMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo?jjo?jjjuh1hhhhjhNhNubj)}(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)}(hjy?h]h Parameters}(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:389: ./include/linux/clk.hhMyhjs?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.hhMvhj?ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMvhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMvhj?ubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj?h]hconst char *id}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMwhj?ubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj?hhhNhNubah}(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&]uh1jhjs?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.hhMyhjs?ubh)}(hXDReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hj"@hhhNhNubj)}(h**dev**h]hdev}(hj*@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"@ubh and }(hj"@hhhNhNubj)}(h**id**h]hid}(hj<@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"@ubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj"@hhhNhNubj)}(h**id**h]hid}(hjN@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"@ubhY may be identical strings, but clk_get may return different clock producers depending on }(hj"@hhhNhNubj)}(h**dev**h]hdev}(hj`@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"@ubh.)}(hj"@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMxhjs?ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjy@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM~hjs?ubh)}(h;clk_get should not be called from within interrupt context.h]h;clk_get should not be called from within interrupt context.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjs?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_get (C function)c.clk_bulk_gethNtauh1hhjhhhNhNubh)}(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}(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 clk_bulk_geth]jm)}(h clk_bulk_geth]h clk_bulk_get}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@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)}(hj6}h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(hdeviceh]hdevice}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE j@sbc.clk_bulk_getasbuh1hhj@ubj)}(h h]h }(hj2AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hdevh]hdev}(hjMAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h int num_clksh](j )}(hinth]hint}(hjfAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbAubj)}(h h]h }(hjtAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbAubjm)}(hnum_clksh]hnum_clks}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]j.Ac.clk_bulk_getasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hclksh]hclks}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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;lookup and obtain a number of references to clock producer.h]h;lookup and obtain a number of references to clock producer.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4Bjj4Bjjjuh1hhhhjhNhNubj)}(hXO**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** This helper function allows drivers to get several clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller. Returns 0 if all clocks specified in clk_bulk_data table are obtained successfully, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field. Drivers must assume that the clock source is not enabled. clk_bulk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj>Bh]h Parameters}(hj@BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjeFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaFubj)}(h h]h }(hjrFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaFubh)}(hhh]jm)}(hdeviceh]hdevice}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jR )}jE jKFsbc.clk_bulk_get_optionalasbuh1hhjaFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaFubjm)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]Fubj)}(h int num_clksh](j )}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubjm)}(hnum_clksh]hnum_clks}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]Fubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]hstruct}(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj*GhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'Gubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,GmodnameN classnameNjI jL )}jO ]jFc.clk_bulk_get_optionalasbuh1hhjGubj)}(h h]h }(hjHGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjVGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hclksh]hclks}(hjcGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]Fubeh}(h]h ]h"]h$]h&]jjuh1jhj$Fhhhj6FhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj Fhhhj6FhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhj6FhMhjFhhubj)}(hhh]h)}(h:lookup and obtain a number of references to clock producerh]h:lookup and obtain a number of references to clock producer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj6FhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Behaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjGubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjGh]hstruct device *dev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjGubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjHh]h int num_clks}(hj HhhhNhNubah}(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.hhMhjHubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjGubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hj@Hh]hstruct clk_bulk_data *clks}(hjBHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Hubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:Hubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjYHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUHhMhjVHubah}(h]h ]h"]h$]h&]uh1jhj:Hubeh}(h]h ]h"]h$]h&]uh1jhjUHhMhjGubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hj{Hh]h Description}(hj}HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjGubh)}(hBehaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.h]hBehaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.}(hjHhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevm_clk_bulk_get (C function)c.devm_clk_bulk_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(hTint devm_clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hSint devm_clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHhhhjHhMubjg)}(hdevm_clk_bulk_geth]jm)}(hdevm_clk_bulk_geth]hdevm_clk_bulk_get}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHhhhjHhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hj IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(hdeviceh]hdevice}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]jR )}jE jHsbc.devm_clk_bulk_getasbuh1hhjHubj)}(h h]h }(hj;IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjIIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hdevh]hdev}(hjVIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(h int num_clksh](j )}(hinth]hint}(hjoIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkIubj)}(h h]h }(hj}IhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkIubjm)}(hnum_clksh]hnum_clks}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjImodnameN classnameNjI jL )}jO ]j7Ic.devm_clk_bulk_getasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjm)}(hclksh]hclks}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhjHhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjHhMhjHhhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hj%JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj"Jhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=Jjj=Jjjjuh1hhhhjhNhNubj)}(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)}(hjGJh]h Parameters}(hjIJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjAJubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjfJh]hstruct device *dev}(hjhJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdJubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj`Jubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{JhMhj|Jubah}(h]h ]h"]h$]h&]uh1jhj`Jubeh}(h]h ]h"]h$]h&]uh1jhj{JhMhj]Jubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjJh]h int num_clks}(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.hhMhjJubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj]Jubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjJh]hstruct clk_bulk_data *clks}(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.hhMhjJubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj]Jubeh}(h]h ]h"]h$]h&]uh1jhjAJubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjAJubh)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hj)KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjAJubh)}(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.}(hj8KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjAJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhjhhhNhNubh)}(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}(hjgKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjvKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcKhhhjuKhMubjg)}(hdevm_clk_bulk_get_optionalh]jm)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_bulk_get_optional}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjcKhhhjuKhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(hdeviceh]hdevice}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.devm_clk_bulk_get_optionalasbuh1hhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hdevh]hdev}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(h int num_clksh](j )}(hinth]hint}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hj$LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubjm)}(hnum_clksh]hnum_clks}(hj2LhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hstruct clk_bulk_data *clksh](j)}(hj6}h]hstruct}(hjKLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGLubj)}(h h]h }(hjXLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGLubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjiLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkLmodnameN classnameNjI jL )}jO ]jKc.devm_clk_bulk_get_optionalasbuh1hhjGLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGLubjm)}(hclksh]hclks}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjcKhhhjuKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_KhhhjuKhMubah}(h]jZKah ](jjeh"]h$]h&]jj)jhuh1hhjuKhMhj\Khhubj)}(hhh]h)}(h-managed get multiple optional consumer clocksh]h-managed get multiple optional consumer clocks}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLhhubah}(h]h ]h"]h$]h&]uh1jhj\KhhhjuKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhjhNhNubj)}(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)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj Mh]hstruct device *dev}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjMubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj&MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"MhMhj#Mubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhj"MhMhjMubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjFMh]h int num_clks}(hjHMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj@Mubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj_MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[MhMhj\Mubah}(h]h ]h"]h$]h&]uh1jhj@Mubeh}(h]h ]h"]h$]h&]uh1jhj[MhMhjMubj)}(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)}(hjMh]hstruct clk_bulk_data *clks}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Mubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjyMubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjyMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(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.hhMhjLubh)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLubh)}(hXReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field.h](hReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses }(hjMhhhNhNubj)}(h**dev**h]hdev}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh and }(hjMhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjMhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh field.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj$NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLubh)}(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.}(hj3NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhjhhhNhNubh)}(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}(hjbNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^NhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjqNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^NhhhjpNhMubjg)}(hdevm_clk_bulk_get_allh]jm)}(hdevm_clk_bulk_get_allh]hdevm_clk_bulk_get_all}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^NhhhjpNhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(hdeviceh]hdevice}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE jNsbc.devm_clk_bulk_get_allasbuh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hdevh]hdev}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hstruct clk_bulk_data **clksh](j)}(hj6}h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Oubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj/OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,Oubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1OmodnameN classnameNjI jL )}jO ]jNc.devm_clk_bulk_get_allasbuh1hhj Oubj)}(h h]h }(hjMOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Oubj)}(hjh]h*}(hj[OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubj)}(hjh]h*}(hjhOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubjm)}(hclksh]hclks}(hjuOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhj^NhhhjpNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZNhhhjpNhMubah}(h]jUNah ](jjeh"]h$]h&]jj)jhuh1hhjpNhMhjWNhhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjWNhhhjpNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1hhhhjhNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjOubj)}(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.hhMhjOubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjOubj)}(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)}(hjPh]hstruct clk_bulk_data **clks}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjPubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj2PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.PhMhj/Pubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhj.PhMhjOubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjTPh]h Description}(hjVPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjOubh)}(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 }(hjjPhhhNhNubj)}(h**clks**h]hclks}(hjrPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjPubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjOubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhjhhhNhNubh)}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjPhMubjg)}(hdevm_clk_bulk_get_all_enabledh]jm)}(hdevm_clk_bulk_get_all_enabledh]hdevm_clk_bulk_get_all_enabled}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(hdeviceh]hdevice}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jR )}jE jPsbc.devm_clk_bulk_get_all_enabledasbuh1hhjPubj)}(h h]h }(hj5QhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjCQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hdevh]hdev}(hjPQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hstruct clk_bulk_data **clksh](j)}(hj6}h]hstruct}(hjiQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeQubj)}(h h]h }(hjvQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeQubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]j1Qc.devm_clk_bulk_get_all_enabledasbuh1hhjeQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeQubjm)}(hclksh]hclks}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhjPhhubj)}(hhh]h)}(h3Get and enable all clocks of the consumer (managed)h]h3Get and enable all clocks of the consumer (managed)}(hjQhhhNhNubah}(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&]uh1jhjPhhhjPhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1hhhhjhNhNubj)}(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)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjRubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj8Rh]hstruct device *dev}(hj:RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Rubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj2Rubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjQRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMRhMhjNRubah}(h]h ]h"]h$]h&]uh1jhj2Rubeh}(h]h ]h"]h$]h&]uh1jhjMRhMhj/Rubj)}(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)}(hjqRh]hstruct clk_bulk_data **clks}(hjsRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkRubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjkRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhj/Rubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjRubh)}(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 }(hjRhhhNhNubj)}(h**clks**h]hclks}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjRubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevm_clk_get (C function)c.devm_clk_gethNtauh1hhjhhhNhNubh)}(hhh](j)}(h>struct clk * devm_clk_get (struct device *dev, const char *id)h]j)}(h`ubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjc`h]hstruct device *dev}(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.hhM[hj]`ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(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[hjZ`ubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj`h]hconst char *id}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM\hj`ubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(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\hjZ`ubeh}(h]h ]h"]h$]h&]uh1jhj>`ubh)}(h **Context**h]j)}(hj`h]hContext}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hj>`ubh)}(h May sleep.h]h May sleep.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hj>`ubh)}(h **Return**h]j)}(hj`h]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hj>`ubh)}(hXTa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_prepared().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjahhhNhNubj)}(h**dev**h]hdev}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh and }(hjahhhNhNubj)}(h**id**h]hid}(hj.ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_prepared().}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hj>`ubh)}(h**Description**h]j)}(hjIah]h Description}(hjKahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMghj>`ubh)}(hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.h]hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.}(hj_ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMfhj>`ubh)}(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.}(hjnahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMihj>`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*devm_clk_get_optional_enabled (C function)c.devm_clk_get_optional_enabledhNtauh1hhjhhhNhNubh)}(hhh](j)}(hOstruct clk * devm_clk_get_optional_enabled (struct device *dev, const char *id)h]j)}(hMstruct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id)h](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMpubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjahhhjahMpubh)}(hhh]jm)}(hclkh]hclk}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjamodnameN classnameNjI jL )}jO ]jR )}jE devm_clk_get_optional_enabledsbc.devm_clk_get_optional_enabledasbuh1hhjahhhjahMpubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjahhhjahMpubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahMpubjg)}(hdevm_clk_get_optional_enabledh]jm)}(hjah]hdevm_clk_get_optional_enabled}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhjahMpubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hj$bhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(hhh]jm)}(hdeviceh]hdevice}(hj5bhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2bubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7bmodnameN classnameNjI jL )}jO ]jac.devm_clk_get_optional_enabledasbuh1hhjbubj)}(h h]h }(hjSbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjabhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hdevh]hdev}(hjnbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hconst char *idh](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj )}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hidh]hid}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjahMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjahMpubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahMphjahhubj)}(hhh]h)}(h.devm_clk_get_optional() + clk_prepare_enable()h]h.devm_clk_get_optional() + clk_prepare_enable()}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMphjbhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjj cjj cjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled(). **Description** The returned clk (if valid) is prepared and enabled. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(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.hhMthjcubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj6ch]hstruct device *dev}(hj8chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4cubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMrhj0cubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjOchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKchMrhjLcubah}(h]h ]h"]h$]h&]uh1jhj0cubeh}(h]h ]h"]h$]h&]uh1jhjKchMrhj-cubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjoch]hconst char *id}(hjqchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMshjicubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMshjcubah}(h]h ]h"]h$]h&]uh1jhjicubeh}(h]h ]h"]h$]h&]uh1jhjchMshj-cubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h **Context**h]j)}(hjch]hContext}(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.hhMuhjcubh)}(h May sleep.h]h May sleep.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuhjcubh)}(h **Return**h]j)}(hjch]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMwhjcubh)}(hXSa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjchhhNhNubj)}(h**dev**h]hdev}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh and }(hjchhhNhNubj)}(h**id**h]hid}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_enabled().}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMwhjcubh)}(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:389: ./include/linux/clk.hhM~hjcubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hj2dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM}hjcubh)}(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.}(hjAdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h4devm_clk_get_optional_enabled_with_rate (C function))c.devm_clk_get_optional_enabled_with_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(hmstruct clk * devm_clk_get_optional_enabled_with_rate (struct device *dev, const char *id, unsigned long rate)h]j)}(hkstruct clk *devm_clk_get_optional_enabled_with_rate(struct device *dev, const char *id, unsigned long rate)h](j)}(hj6}h]hstruct}(hjpdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjldhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj~dhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjldhhhj}dhMubh)}(hhh]jm)}(hclkh]hclk}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE 'devm_clk_get_optional_enabled_with_ratesb)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjldhhhj}dhMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjldhhhj}dhMubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjldhhhj}dhMubjg)}(h'devm_clk_get_optional_enabled_with_rateh]jm)}(hjdh]h'devm_clk_get_optional_enabled_with_rate}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjldhhhj}dhMubj)}(h8(struct device *dev, const char *id, unsigned long rate)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(hdeviceh]hdevice}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj emodnameN classnameNjI jL )}jO ]jd)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjdubj)}(h h]h }(hj&ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hj4ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hdevh]hdev}(hjAehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hconst char *idh](j)}(hjh]hconst}(hjZehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVeubj)}(h h]h }(hjgehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVeubj )}(hcharh]hchar}(hjuehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVeubjm)}(hidh]hid}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj )}(hlongh]hlong}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubjm)}(hrateh]hrate}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjldhhhj}dhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhdhhhj}dhMubah}(h]jcdah ](jjeh"]h$]h&]jj)jhuh1hhj}dhMhjedhhubj)}(hhh]h)}(h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()h]h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()}(hjfhhhNhNubah}(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&]uh1jhjedhhhj}dhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1fjj1fjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID ``unsigned long rate`` new clock rate **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled(). **Description** The returned clk (if valid) is prepared and enabled and rate was set. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hj;fh]h Parameters}(hj=fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9fubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj5fubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjZfh]hstruct device *dev}(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.hhMhjTfubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjsfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjofhMhjpfubah}(h]h ]h"]h$]h&]uh1jhjTfubeh}(h]h ]h"]h$]h&]uh1jhjofhMhjQfubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjfh]hconst char *id}(hjfhhhNhNubah}(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.hhMhjfubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjQfubj)}(h&``unsigned long rate`` new clock rate h](j)}(h``unsigned long rate``h]j)}(hjfh]hunsigned long rate}(hjfhhhNhNubah}(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.hhMhjfubj)}(hhh]h)}(hnew clock rateh]hnew clock rate}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjQfubeh}(h]h ]h"]h$]h&]uh1jhj5fubh)}(h **Context**h]j)}(hjgh]hContext}(hj ghhhNhNubah}(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.hhMhj5fubh)}(h May sleep.h]h May sleep.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj5fubh)}(h **Return**h]j)}(hj.gh]hReturn}(hj0ghhhNhNubah}(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.hhMhj5fubh)}(hXSa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjDghhhNhNubj)}(h**dev**h]hdev}(hjLghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDgubh and }(hjDghhhNhNubj)}(h**id**h]hid}(hj^ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDgubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_enabled().}(hjDghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj5fubh)}(h**Description**h]j)}(hjygh]h Description}(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.hhMhj5fubh)}(hEThe returned clk (if valid) is prepared and enabled and rate was set.h]hEThe returned clk (if valid) is prepared and enabled and rate was set.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj5fubh)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj5fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$devm_get_clk_from_child (C function)c.devm_get_clk_from_childhNtauh1hhjhhhNhNubh)}(hhh](j)}(hestruct clk * devm_get_clk_from_child (struct device *dev, struct device_node *np, const char *con_id)h]j)}(hcstruct clk *devm_get_clk_from_child(struct device *dev, struct device_node *np, const char *con_id)h](j)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghMubh)}(hhh]jm)}(hclkh]hclk}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE devm_get_clk_from_childsbc.devm_get_clk_from_childasbuh1hhjghhhjghMubj)}(h h]h }(hj hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghMubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghMubjg)}(hdevm_get_clk_from_childh]jm)}(hj hh]hdevm_get_clk_from_child}(hj,hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(hubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghMubj)}(h@(struct device *dev, struct device_node *np, const char *con_id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hjGhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChubj)}(h h]h }(hjThhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChubh)}(hhh]jm)}(hdeviceh]hdevice}(hjehhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjghmodnameN classnameNjI jL )}jO ]jhc.devm_get_clk_from_childasbuh1hhjChubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChubjm)}(hdevh]hdev}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjChubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?hubj)}(hstruct device_node *nph](j)}(hj6}h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(h device_nodeh]h device_node}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jhc.devm_get_clk_from_childasbuh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hnph]hnp}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?hubj)}(hconst char *con_idh](j)}(hjh]hconst}(hj'ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#iubj)}(h h]h }(hj4ihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#iubj )}(hcharh]hchar}(hjBihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#iubj)}(h h]h }(hjPihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#iubj)}(hjh]h*}(hj^ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#iubjm)}(hcon_idh]hcon_id}(hjkihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?hubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjghhubj)}(hhh]h)}(hJlookup and obtain a managed reference to a clock producer from child node.h]hJlookup and obtain a managed reference to a clock producer from child node.}(hjihhhNhNubah}(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&]uh1jhjghhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``struct device_node *np`` pointer to clock consumer node ``const char *con_id`` clock consumer ID **Description** This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using **np** and **con_id** The clock will automatically be freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjiubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(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.hhMhjiubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjiubj)}(h:``struct device_node *np`` pointer to clock consumer node h](j)}(h``struct device_node *np``h]j)}(hjjh]hstruct device_node *np}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj jubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj jubj)}(hhh]h)}(hpointer to clock consumer nodeh]hpointer to clock consumer node}(hj(jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$jhMhj%jubah}(h]h ]h"]h$]h&]uh1jhj jubeh}(h]h ]h"]h$]h&]uh1jhj$jhMhjiubj)}(h)``const char *con_id`` clock consumer ID h](j)}(h``const char *con_id``h]j)}(hjHjh]hconst char *con_id}(hjJjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjBjubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]jhMhj^jubah}(h]h ]h"]h$]h&]uh1jhjBjubeh}(h]h ]h"]h$]h&]uh1jhj]jhMhjiubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjiubh)}(hThis function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using **np** and **con_id**h](h~This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using }(hjjhhhNhNubj)}(h**np**h]hnp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh and }(hjjhhhNhNubj)}(h **con_id**h]hcon_id}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjiubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_enable (C function) c.clk_enablehNtauh1hhjhhhNhNubh)}(hhh](j)}(h int clk_enable (struct clk *clk)h]j)}(hint clk_enable(struct clk *clk)h](j )}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjkhMubjg)}(h clk_enableh]jm)}(h clk_enableh]h clk_enable}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjkhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj4khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0kubj)}(h h]h }(hjAkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0kubh)}(hhh]jm)}(hclkh]hclk}(hjRkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTkmodnameN classnameNjI jL )}jO ]jR )}jE jksb c.clk_enableasbuh1hhj0kubj)}(h h]h }(hjrkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0kubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0kubjm)}(hclkh]hclk}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,kubah}(h]h ]h"]h$]h&]jjuh1jhjjhhhjkhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjkhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjjhhubj)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1hhhhjhNhNubj)}(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)}(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.hhMhjkubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjkh]hstruct clk *clk}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkubj)}(hhh]h)}(h clock sourceh]h clock source}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj lhMhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhj lhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubh)}(h**Description**h]j)}(hj3lh]h Description}(hj5lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1lubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkubh)}(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.}(hjIlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjXlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjkubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjglhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_enable (C function)c.clk_bulk_enablehNtauh1hhjhhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlhhhX/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&]uh1jhjlhhhjlhMubjg)}(hclk_bulk_enableh]jm)}(hclk_bulk_enableh]hclk_bulk_enable}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhhjlhMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubjm)}(hnum_clksh]hnum_clks}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hj6}h]hstruct}(hj#mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj0mhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjAmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>mubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmmodnameN classnameNjI jL )}jO ]jR )}jE jlsbc.clk_bulk_enableasbuh1hhjmubj)}(h h]h }(hjamhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjomhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hclksh]hclks}(hj|mhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(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)}(h9inform the system when the set of clks should be running.h]h9inform the system when the set of clks should be running.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhjhNhNubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjmubj)}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjmh]h int num_clks}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjmubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(hI``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h$``const struct clk_bulk_data *clks``h]j)}(hj nh]h const struct clk_bulk_data *clks}(hj"nhhhNhNubah}(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)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hj9nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5nhMhj6nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj5nhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hj[nh]h Description}(hj]nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjmubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjqnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjmubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_disable (C function) c.clk_disablehNtauh1hhjhhhNhNubh)}(hhh](j)}(h"void clk_disable (struct clk *clk)h]j)}(h!void clk_disable(struct clk *clk)h](j )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjnhMubjg)}(h clk_disableh]jm)}(h clk_disableh]h clk_disable}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjnhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubh)}(hhh]jm)}(hclkh]hclk}(hj ohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj omodnameN classnameNjI jL )}jO ]jR )}jE jnsb c.clk_disableasbuh1hhjnubj)}(h h]h }(hj*ohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hj8ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hclkh]hclk}(hjEohhhNhNubah}(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>inform the system when the clock source is no longer required.h]h>inform the system when the clock source is no longer required.}(hjoohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjlohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjhNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjoubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjoh]hstruct clk *clk}(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.hhMhjoubj)}(hhh]h)}(h clock sourceh]h clock source}(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)}(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.hhMhjoubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjoubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjoubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhjhhhNhNubh)}(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}(hjNphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj]phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJphhhj\phMubjg)}(hclk_bulk_disableh]jm)}(hclk_bulk_disableh]hclk_bulk_disable}(hjophhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJphhhj\phMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hnum_clksh]hnum_clks}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hj6}h]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE jqpsbc.clk_bulk_disableasbuh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hj'qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hclksh]hclks}(hj4qhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjJphhhj\phMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFphhhj\phMubah}(h]jApah ](jjeh"]h$]h&]jj)jhuh1hhj\phMhjCphhubj)}(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^qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj[qhhubah}(h]h ]h"]h$]h&]uh1jhjCphhhj\phMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvqjjvqjjjuh1hhhhjhNhNubj)}(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)}(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:389: ./include/linux/clk.hhMhjzqubj)}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjqh]h int num_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)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjqubj)}(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)}(hjqh]h const struct 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&]uh1jhjqhMhjqubeh}(h]h ]h"]h$]h&]uh1jhjzqubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzqubh)}(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.}(hj)rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzqubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj8rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzqubh)}(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.}(hjGrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_rate (C function)c.clk_get_ratehNtauh1hhjhhhNhNubh)}(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}(hjvrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrrhhhX/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&]uh1jhjrrhhhjrhMubj )}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrrhhhjrhMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrrhhhjrhMubjg)}(h clk_get_rateh]jm)}(h clk_get_rateh]h clk_get_rate}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrrhhhjrhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(hclkh]hclk}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE jrsbc.clk_get_rateasbuh1hhjrubj)}(h h]h }(hj shhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hclkh]hclk}(hj(shhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhjrrhhhjrhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnrhhhjrhMubah}(h]jirah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjkrhhubj)}(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.}(hjRshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjOshhubah}(h]h ]h"]h$]h&]uh1jhjkrhhhjrhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjsjjjsjjjuh1hhhhjhNhNubj)}(h2**Parameters** ``struct clk *clk`` clock sourceh](h)}(h**Parameters**h]j)}(hjtsh]h Parameters}(hjvshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjnsubj)}(hhh]j)}(h ``struct clk *clk`` clock sourceh](j)}(h``struct clk *clk``h]j)}(hjsh]hstruct clk *clk}(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)}(h clock sourceh]h clock source}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjnsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_put (C function) c.clk_puthNtauh1hhjhhhNhNubh)}(hhh](j)}(hvoid clk_put (struct clk *clk)h]j)}(hvoid clk_put(struct clk *clk)h](j )}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjshMubjg)}(hclk_puth]jm)}(hclk_puth]hclk_put}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj tubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjshMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj*thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&tubj)}(h h]h }(hj7thhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&tubh)}(hhh]jm)}(hclkh]hclk}(hjHthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJtmodnameN classnameNjI jL )}jO ]jR )}jE jtsb c.clk_putasbuh1hhj&tubj)}(h h]h }(hjhthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&tubj)}(hjh]h*}(hjvthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&tubjm)}(hclkh]hclk}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"tubah}(h]h ]h"]h$]h&]jjuh1jhjshhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjshMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshMhjshhubj)}(hhh]h)}(h"free" the clock sourceh]h“free” the clock source}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjthhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhjhNhNubj)}(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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjtubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjth]hstruct clk *clk}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjtubj)}(hhh]h)}(h clock sourceh]h clock source}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubh)}(h**Note**h]j)}(hj)uh]hNote}(hj+uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'uubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjtubh)}(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.}(hj?uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjtubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjNuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_put (C function)c.clk_bulk_puthNtauh1hhjhhhNhNubh)}(hhh](j)}(h``struct clk *clk`` clock source acquired with devm_clk_get() 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 source acquired with devm_clk_get()h]h)clock source acquired with devm_clk_get()}(hj<{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8{hMhj9{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj8{hMhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(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.hhMhjzubh)}(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.}(hjt{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzubh)}(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 hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_round_rate (C function)c.clk_round_ratehNtauh1hhjhhhNhNubh)}(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.hhM*ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhj{hM*ubjg)}(hclk_round_rateh]jm)}(hclk_round_rateh]hclk_round_rate}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhj{hM*ubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]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_round_rateasbuh1hhj{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}(hjH|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hja|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]|ubj)}(h h]h }(hjo|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)}(hrateh]hrate}(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)}(h3adjust a rate to the exact rate a clock can provideh]h3adjust a rate to the exact rate a clock can provide}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM*hj|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjhNhNubj)}(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&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hj|ubj)}(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.hhM+hj|ubj)}(hhh]h)}(h clock sourceh]h clock source}(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``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hj=}h]hunsigned long rate}(hj?}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM,hj7}ubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(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|ubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hj|ubh)}(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 }(hj}hhhNhNubj)}(h**rate**h]hrate}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubhv to clk_set_rate(), what clock rate would I end up with?” without changing the hardware in any way. In other words:}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM-hj|ubj)}(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.hhM1hj}ubah}(h]h ]h"]h$]h&]uh1jhj}hM1hj|ubh)}(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.hhM3hj|ubj)}(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);}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM5hj}ubah}(h]h ]h"]h$]h&]uh1jhj}hM5hj|ubh)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hj|ubh)}(h4Returns rounded clock rate in Hz, or negative errno.h]h4Returns rounded clock rate in Hz, or negative errno.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate (C function)c.clk_set_ratehNtauh1hhjhhhNhNubh)}(hhh](j)}(h6int clk_set_rate (struct clk *clk, unsigned long rate)h]j)}(h5int clk_set_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hj.~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMAubj)}(h h]h }(hj=~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*~hhhj<~hMAubjg)}(h clk_set_rateh]jm)}(h clk_set_rateh]h clk_set_rate}(hjO~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*~hhhj<~hMAubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjk~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg~ubj)}(h h]h }(hjx~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg~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 jQ~sbc.clk_set_rateasbuh1hhjg~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg~ubjm)}(hclkh]hclk}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc~ubj)}(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}(hj~hhhNhNubah}(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&]noemphjjuh1jhjc~ubeh}(h]h ]h"]h$]h&]jjuh1jhj*~hhhj<~hMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&~hhhj<~hMAubah}(h]j!~ah ](jjeh"]h$]h&]jj)jhuh1hhj<~hMAhj#~hhubj)}(hhh]h)}(h%set the clock rate for a clock sourceh]h%set the 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.hhMAhj<hhubah}(h]h ]h"]h$]h&]uh1jhj#~hhhj<~hMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhjhNhNubj)}(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)}(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.hhMEhj[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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBhjzubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjwubj)}(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.hhMChjubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjwubeh}(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:389: ./include/linux/clk.hhMEhj[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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMDhj[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.hhMGhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhjhhhNhNubh)}(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}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjVhMMubjg)}(hclk_set_rate_exclusiveh]jm)}(hclk_set_rate_exclusiveh]hclk_set_rate_exclusive}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjVhMMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]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 jksbc.clk_set_rate_exclusiveasbuh1hhjubj)}(h h]h }(hjÀhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjрhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjހhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubj)}(hunsigned long rateh](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)}(hrateh]hrate}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhjVhMMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMMhj=hhubj)}(hhh]h)}(h:set the clock rate and claim exclusivity over clock sourceh]h:set the clock rate and claim exclusivity over clock source}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMMhjVhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhjhNhNubj)}(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)}(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.hhMQhjuubj)}(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.hhMOhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjӁh]hunsigned long rate}(hjՁhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjсubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMPhj́ubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhj́ubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubeh}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMRhjuubh)}(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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMQhjuubh)}(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()}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMThjuubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMXhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_has_parent (C function)c.clk_has_parenthNtauh1hhjhhhNhNubh)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmhhhX/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&]uh1jhjmhhhj~hM^ubjg)}(hclk_has_parenth]jm)}(hclk_has_parenth]hclk_has_parent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhj~hM^ubj)}(h1(const struct clk *clk, const struct clk *parent)h](j)}(hconst struct clk *clkh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj6}h]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 ]jR )}jE jsbc.clk_has_parentasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct clk *parenth](j)}(hjh]hconst}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hj6}h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(hclkh]hclk}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jc.clk_has_parentasbuh1hhj6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhj~hM^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhj~hM^ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhj~hM^hjfhhubj)}(hhh]h)}(h1check if a clock is a possible parent for anotherh]h1check if a clock is a possible parent for another}(hjփhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjӃhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhj~hM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hXU**Parameters** ``const struct clk *clk`` clock source ``const struct clk *parent`` parent clock source **Description** This function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent. Returns true if **parent** is a possible parent for **clk**, false otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMbhjubj)}(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.hhM_hjubj)}(hhh]h)}(h clock sourceh]h clock source}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM_hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM_hjubj)}(h1``const struct clk *parent`` parent clock source h](j)}(h``const struct clk *parent``h]j)}(hjPh]hconst struct clk *parent}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjJubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM`hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM`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:389: ./include/linux/clk.hhMbhjubh)}(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.hhMahjubh)}(hMReturns true if **parent** is a possible parent for **clk**, false otherwise.h](hReturns true if }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is a possible parent for }(hjhhhNhNubj)}(h**clk**h]hclk}(hjʄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, false otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhjhhhNhNubh)}(hhh](j)}(hNint clk_set_rate_range (struct clk *clk, unsigned long min, unsigned long max)h]j)}(hMint clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMjubjg)}(hclk_set_rate_rangeh]jm)}(hclk_set_rate_rangeh]hclk_set_rate_range}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMjubj)}(h7(struct clk *clk, unsigned long min, unsigned long max)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hjMhhhNhNubah}(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_set_rate_rangeasbuh1hhj<ubj)}(h h]h }(hj~hhhNhNubah}(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&]noemphjjuh1jhj8ubj)}(hunsigned long minh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(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 }(hj܅hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hminh]hmin}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hunsigned long maxh](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)}(hmaxh]hmax}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMjubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMjhjhhubj)}(hhh]h)}(h#set a rate range for a clock sourceh]h#set a rate range for a clock source}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMjhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhjhNhNubj)}(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.hhMnhjubj)}(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.hhMkhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubj)}(hB``unsigned long min`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long min``h]j)}(hj߆h]hunsigned long min}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݆ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMlhjنubj)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMlhjubah}(h]h ]h"]h$]h&]uh1jhjنubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjubj)}(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.hhMmhjubj)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMmhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMmhjubeh}(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:389: ./include/linux/clk.hhMohjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhjhhhNhNubh)}(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 hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMtubjg)}(hclk_set_min_rateh]jm)}(hclk_set_min_rateh]hclk_set_min_rate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMtubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]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 ]jR )}jE jsbc.clk_set_min_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}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hlongh]hlong}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj͇ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMthjhhubj)}(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.hhMthjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.hhMxhjň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.hhMuhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(hC``unsigned long rate`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long rate``h]j)}(hj#h]hunsigned long rate}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMvhjubj)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMvhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMvhjubeh}(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.hhMxhjňubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMwhjňubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhjhhhNhNubh)}(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.hhM}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM}ubjg)}(hclk_set_max_rateh]jm)}(hclk_set_max_rateh]hclk_set_max_rate}(hjĉhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM}ubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj6}h]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_max_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}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj܉ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj؉ubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj )}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(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+set a maximum clock rate for a clock sourceh]h+set a maximum clock rate for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj̊jj̊jjjuh1hhhhjhNhNubj)}(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)}(hj֊h]h Parameters}(hj؊hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԊubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjЊubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(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.hhM~hjubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM~hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM~hjubj)}(hC``unsigned long rate`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long rate``h]j)}(hj.h]hunsigned long rate}(hj0hhhNhNubah}(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+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubeh}(h]h ]h"]h$]h&]uh1jhjЊubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_parent (C function)c.clk_set_parenthNtauh1hhjhhhNhNubh)}(hhh](j)}(h8int clk_set_parent (struct clk *clk, struct clk *parent)h]j)}(h7int clk_set_parent(struct clk *clk, struct clk *parent)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_set_parenth]jm)}(hclk_set_parenth]hclk_set_parent}(hjϋhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjˋubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h%(struct clk *clk, struct clk *parent)h](j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jыsbc.clk_set_parentasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk *parenth](j)}(hj6}h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(hclkh]hclk}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]j%c.clk_set_parentasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(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 the parent clock source for this clockh]h*set the parent clock source for this clock}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h 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}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h+``struct clk *parent`` parent clock source h](j)}(h``struct clk *parent``h]j)}(hjXh]hstruct clk *parent}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjRubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubeh}(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&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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_parent (C function)c.clk_get_parenthNtauh1hhjhhhNhNubh)}(hhh](j)}(h-struct clk * clk_get_parent (struct clk *clk)h]j)}(h+struct clk *clk_get_parent(struct clk *clk)h](j)}(hj6}h]hstruct}(hj؍hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԍ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ԍhhhjhMubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE clk_get_parentsbc.clk_get_parentasbuh1hhjԍhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjԍhhhjhMubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԍhhhjhMubjg)}(hclk_get_parenth]jm)}(hjh]hclk_get_parent}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjԍhhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(hclkh]hclk}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jc.clk_get_parentasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubah}(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*get the parent clock source for this clockh]h*get the parent clock source for this clock}(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͍hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** Returns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubah}(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:389: ./include/linux/clk.hhMhjubh)}(hfReturns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.h]hfReturns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.}(hjehhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_sys (C function) c.clk_get_syshNtauh1hhjhhhNhNubh)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE clk_get_syssb c.clk_get_sysasbuh1hhjhhhjhMubj)}(h h]h }(hjԏhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h clk_get_sysh]jm)}(hjяh]h clk_get_sys}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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&]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 }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdev_idh]hdev_id}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](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)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(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&get a clock based upon the device nameh]h&get a clock based upon the device name}(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&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX4**Parameters** ``const char *dev_id`` device name ``const char *con_id`` connection ID **Description** Returns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification. Drivers must assume that the clock source is not enabled. clk_get_sys should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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#``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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h%``const char *con_id`` connection ID h](j)}(h``const char *con_id``h]j)}(hjSh]hconst char *con_id}(hjUhhhNhNubah}(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.hhMhjMubj)}(hhh]h)}(h connection IDh]h connection ID}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubeh}(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)}(hXIReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjhhhNhNubj)}(h **dev_id**h]hdev_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjבhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(h?clk_get_sys should not be called from within interrupt context.h]h?clk_get_sys should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_save_context (C function)c.clk_save_contexthNtauh1hhjhhhNhNubh)}(hhh](j)}(hint clk_save_context (void)h]j)}(hint clk_save_context(void)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_save_contexth]jm)}(hclk_save_contexth]hclk_save_context}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj#hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubah}(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)}(hsave clock context for poweroffh]hsave clock context for poweroff}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjyhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h 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``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:389: ./include/linux/clk.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Ғ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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjubh)}(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.}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h clk_restore_context (C function)c.clk_restore_contexthNtauh1hhjhhhNhNubh)}(hhh](j)}(hvoid clk_restore_context (void)h]j)}(hvoid clk_restore_context(void)h](j )}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhX/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&]uh1jhj9hhhjKhMubjg)}(hclk_restore_contexth]jm)}(hclk_restore_contexth]hclk_restore_context}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhjKhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvubah}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj2hhubj)}(hhh]h)}(h$restore clock context after poweroffh]h$restore clock context after poweroff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** This occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.h](h)}(h**Parameters**h]j)}(hjƓh]h Parameters}(hjȓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjēubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]j)}(h``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:389: ./include/linux/clk.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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjubh)}(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.}(hj6hhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_drop_range (C function)c.clk_drop_rangehNtauh1hhjhhhNhNubh)}(hhh](j)}(h$int clk_drop_range (struct clk *clk)h]j)}(h#int clk_drop_range(struct clk *clk)h](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjahhhX/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&]uh1jhjahhhjshMubjg)}(hclk_drop_rangeh]jm)}(hclk_drop_rangeh]hclk_drop_range}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhjshMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj6}h]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 reftargetj”modnameN classnameNjI jL )}jO ]jR )}jE jsbc.clk_drop_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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjahhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjshMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshMhjZhhubj)}(hhh]h)}(h!Reset any range set on that clockh]h!Reset any range set on that clock}(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&]uh1jhjZhhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1hhhhjhNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **Description** Returns success (0) or negative errno.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:389: ./include/linux/clk.hhMhjAubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjfh]hstruct clk *clk}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj`ubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(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&]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:389: ./include/linux/clk.hhMhjAubh)}(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.hhMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_optional (C function)c.clk_get_optionalhNtauh1hhjhhhNhNubh)}(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)}(hj6}h]hstruct}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE clk_get_optionalsbc.clk_get_optionalasbuh1hhjhhhjhMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hclk_get_optionalh]jm)}(hj#h]hclk_get_optional}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj6}h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(hdeviceh]hdevice}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j!c.clk_get_optionalasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hconst char *idh](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)}(hidh]hid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̖ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjޕhhhjhMubah}(h]jٕah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjەhhubj)}(hhh]h)}(hhhhNhNubah}(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ەhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjhNhNubj)}(hX **Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Description** Behaves the same as clk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(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.hhMhjZubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(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”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjїhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj͗hMhjΗubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͗hMhjvubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjZubh)}(hBehaves the same as clk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL.h]hBehaves the same as clk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]clock-frameworkah ]h"]clock frameworkah$]h&]uh1hhhhhhhhMbubh)}(hhh](h)}(hSynchronization Primitivesh]hSynchronization Primitives}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hhhhhMubh)}(hhh](h)}(hRead-Copy Update (RCU)h]hRead-Copy Update (RCU)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'same_state_synchronize_rcu (C function)c.same_state_synchronize_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hRbool same_state_synchronize_rcu (unsigned long oldstate1, unsigned long oldstate2)h]j)}(hQbool same_state_synchronize_rcu(unsigned long oldstate1, unsigned long oldstate2)h](j )}(hj8h]hbool}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhK6ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhjohK6ubjg)}(hsame_state_synchronize_rcuh]jm)}(hsame_state_synchronize_rcuh]hsame_state_synchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhjohK6ubj)}(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}(hj֘hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long oldstate2h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h oldstate2h]h oldstate2}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhjohK6ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjohK6ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjohK6hjWhhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhK6hjNhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjohK6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``unsigned long oldstate1`` First old-state value. ``unsigned long oldstate2`` Second old-state value. **Description** The two old-state values must have been obtained from either get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or get_completed_synchronize_rcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](h)}(h**Parameters**h]j)}(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.hhK:hjmubj)}(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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhK7hjubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubj)}(h4``unsigned long oldstate2`` Second old-state value. h](j)}(h``unsigned long oldstate2``h]j)}(hj˙h]hunsigned long oldstate2}(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.hhK8hjřubj)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK8hjubah}(h]h ]h"]h$]h&]uh1jhjřubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(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.hhK:hjmubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or get_completed_synchronize_rcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or get_completed_synchronize_rcu(). Returns }(hjhhhNhNubj)}(h**true**h]htrue}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% if the two values are identical and }(hjhhhNhNubj)}(h **false**h]hfalse}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhK9hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%rcu_trace_implies_rcu_gp (C function)c.rcu_trace_implies_rcu_gphNtauh1hhj8hhhNhNubh)}(hhh](j)}(h$bool rcu_trace_implies_rcu_gp (void)h]j)}(h#bool rcu_trace_implies_rcu_gp(void)h](j )}(hj8h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkhhhj|hKubjg)}(hrcu_trace_implies_rcu_gph]jm)}(hrcu_trace_implies_rcu_gph]hrcu_trace_implies_rcu_gp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhj|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&]jjuh1jhjkhhhj|hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj|hKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj|hKhjdhhubj)}(hhh]h)}(h?does an RCU Tasks Trace grace period imply an RCU grace period?h]h?does an RCU Tasks Trace grace period imply an RCU grace period?}(hj՚hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjҚhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj|hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hXD**Parameters** ``void`` no arguments **Description** As 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. You have been warned!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.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:398: ./include/linux/rcupdate.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)}(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.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.}(hjghhhNhNubah}(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!}(hjvhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#cond_resched_tasks_rcu_qs (C macro)c.cond_resched_tasks_rcu_qshNtauh1hhj8hhhNhNubh)}(hhh](j)}(hcond_resched_tasks_rcu_qsh]j)}(hcond_resched_tasks_rcu_qsh]jg)}(hcond_resched_tasks_rcu_qsh]jm)}(hjh]hcond_resched_tasks_rcu_qs}(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.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՛jjjuh1hhhhj8hNhNubh)}(h ``cond_resched_tasks_rcu_qs ()``h]j)}(hjۛh]hcond_resched_tasks_rcu_qs ()}(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.hhKhj8hhubj)}(hX Report potential quiescent states to RCU **Description** This macro resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels. h](j)}(h)Report potential quiescent states to RCU h]h)}(h(Report potential quiescent states to RCUh]h(Report potential quiescent states to RCU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hThis macro resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels.h]hThis macro resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj8hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!rcu_softirq_qs_periodic (C macro)c.rcu_softirq_qs_periodichNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_softirq_qs_periodich]j)}(hrcu_softirq_qs_periodich]jg)}(hrcu_softirq_qs_periodich]jm)}(hjNh]hrcu_softirq_qs_periodic}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjkhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjkhKhjIhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIhhhjkhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(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.hhKhj8hhubj)}(h*Report RCU and RCU-Tasks quiescent states h]h)}(h)Report RCU and RCU-Tasks quiescent statesh]h)Report RCU and RCU-Tasks quiescent states}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj8hhubj)}(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.hhMhjubj)}(hhh]j)}(h+``old_ts`` jiffies at start of processing. h](j)}(h ``old_ts``h]j)}(hjޜh]hold_ts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܜubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj؜ubj)}(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&]uh1jhj؜ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj՜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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hXThis helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as **old_ts** at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument.h](hThis helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as }(hj/hhhNhNubj)}(h **old_ts**h]hold_ts}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.h]hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hX,The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won't achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.h]hX.The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won’t achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_LOCKDEP_WARN (C macro)c.RCU_LOCKDEP_WARNhNtauh1hhj8hhhNhNubh)}(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.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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h``RCU_LOCKDEP_WARN (c, s)``h]j)}(hjĝh]hRCU_LOCKDEP_WARN (c, s)}(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.hhMhj8hhubj)}(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}(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&]uh1jhjhMhj8hhubj)}(hX**Parameters** ``c`` condition to check ``s`` informative message **Description** This checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd ("rcu: Reject RCU_LOCKDEP_WARN() false positives") for more detail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h``c`` condition to check h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(hcondition to checkh]hcondition to check}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h``s`` informative message h](j)}(h``s``h]j)}(hjQh]hs}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjKubj)}(hhh]h)}(hinformative messageh]hinformative message}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubeh}(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)}(hXOThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd ("rcu: Reject RCU_LOCKDEP_WARN() false positives") for more detail.h]hXSThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd (“rcu: Reject RCU_LOCKDEP_WARN() false positives”) for more detail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)lockdep_assert_in_rcu_read_lock (C macro)!c.lockdep_assert_in_rcu_read_lockhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hlockdep_assert_in_rcu_read_lockh]j)}(hlockdep_assert_in_rcu_read_lockh]jg)}(hlockdep_assert_in_rcu_read_lockh]jm)}(hj˞h]hlockdep_assert_in_rcu_read_lock}(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.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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h&``lockdep_assert_in_rcu_read_lock ()``h]j)}(hjh]h"lockdep_assert_in_rcu_read_lock ()}(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.hhMhj8hhubj)}(h WARN if not protected by rcu_read_lock() **Description** Splats if lockdep is enabled and there is no rcu_read_lock() in effect. h](j)}(h)WARN if not protected by rcu_read_lock() h]h)}(h(WARN if not protected by rcu_read_lock()h]h(WARN if not protected by rcu_read_lock()}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj3hMhjubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj8hhubh)}(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_bhhNtauh1hhj8hhhNhNubh)}(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)}(hjzh]h"lockdep_assert_in_rcu_read_lock_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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&]jjjuh1jjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h)``lockdep_assert_in_rcu_read_lock_bh ()``h]j)}(hjh]h%lockdep_assert_in_rcu_read_lock_bh ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj8hhubj)}(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()}(hjԟhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjПubah}(h]h ]h"]h$]h&]uh1jhjhMhj̟ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj̟ubh)}(hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.h]hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj̟ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8hhubh)}(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_schedhNtauh1hhj8hhhNhNubh)}(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)}(hj)h]h%lockdep_assert_in_rcu_read_lock_sched}(hj3hhhNhNubah}(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'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_jjjuh1hhhhj8hNhNubh)}(h,``lockdep_assert_in_rcu_read_lock_sched ()``h]j)}(hjeh]h(lockdep_assert_in_rcu_read_lock_sched ()}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj8hhubj)}(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&]uh1jhjhMhj{ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj{ubh)}(hSplats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required.h]hSplats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&lockdep_assert_in_rcu_reader (C macro)c.lockdep_assert_in_rcu_readerhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hlockdep_assert_in_rcu_readerh]j)}(hlockdep_assert_in_rcu_readerh]jg)}(hlockdep_assert_in_rcu_readerh]jm)}(hjؠh]hlockdep_assert_in_rcu_reader}(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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h#``lockdep_assert_in_rcu_reader ()``h]j)}(hjh]hlockdep_assert_in_rcu_reader ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj8hhubj)}(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}(hj2hhhNhNubah}(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*ubh)}(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.hhMhj*ubh)}(hSplats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers.h]hSplats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj*ubh)}(hNote that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT.h]hNote that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj*ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj8hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunrcu_pointer (C macro)c.unrcu_pointerhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h unrcu_pointerh]j)}(h unrcu_pointerh]jg)}(h unrcu_pointerh]jm)}(hjh]h unrcu_pointer}(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̡jjjuh1hhhhj8hNhNubh)}(h``unrcu_pointer (p)``h]j)}(hjҡh]hunrcu_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.hhMhj8hhubj)}(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&]uh1jhjhMhj8hhubj)}(h**Parameters** ``p`` pointer needing to lose its __rcu property **Description** Converts **p** from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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)}(h1``p`` pointer needing to lose its __rcu property h](j)}(h``p``h]j)}(hj&h]hp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj ubj)}(hhh]h)}(h*pointer needing to lose its __rcu propertyh]h*pointer needing to lose its __rcu property}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(h|Converts **p** from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.h](h Converts }(hjwhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubhn from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.}(hjwhhhNhNubeh}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_INITIALIZER (C macro)c.RCU_INITIALIZERhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hRCU_INITIALIZERh]j)}(hRCU_INITIALIZERh]jg)}(hRCU_INITIALIZERh]jm)}(hjh]hRCU_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.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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h``RCU_INITIALIZER (v)``h]j)}(hjh]hRCU_INITIALIZER (v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM*hj8hhubj)}(h7statically initialize an RCU-protected global variable h]h)}(h6statically initialize an RCU-protected global variableh]h6statically initialize an RCU-protected global variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM(hjubah}(h]h ]h"]h$]h&]uh1jhjhM(hj8hhubj)}(h@**Parameters** ``v`` The value to statically initialize with.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM,hjubj)}(hhh]j)}(h.``v`` The value to statically initialize with.h](j)}(h``v``h]j)}(hjBh]hv}(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.hhM.hj<ubj)}(hhh]h)}(h(The value to statically initialize with.h]h(The value to statically initialize with.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM)hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM.hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_assign_pointer (C macro)c.rcu_assign_pointerhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_assign_pointerh]j)}(hrcu_assign_pointerh]jg)}(hrcu_assign_pointerh]jm)}(hjh]hrcu_assign_pointer}(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&]jjjj̣jj̣jjjuh1hhhhj8hNhNubh)}(h``rcu_assign_pointer (p, v)``h]j)}(hjңh]hrcu_assign_pointer (p, v)}(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.hhM0hj8hhubj)}(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.hhM.hjubah}(h]h ]h"]h$]h&]uh1jhjhM.hj8hhubj)}(hX**Parameters** ``p`` pointer to assign to ``v`` value to assign (publish) **Description** Assigns the specified value to the specified RCU-protected pointer, ensuring that any concurrent RCU readers will see any prior initialization. Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code. In some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details. Note that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the "extra" evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.hhM2hjubj)}(hhh](j)}(h``p`` pointer to assign to h](j)}(h``p``h]j)}(hj&h]hp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM/hj ubj)}(hhh]h)}(hpointer to assign toh]hpointer to assign to}(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 ``v`` value to assign (publish) h](j)}(h``v``h]j)}(hj_h]hv}(hjahhhNhNubah}(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.hhM0hjYubj)}(hhh]h)}(hvalue to assign (publish)h]hvalue to assign (publish)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM0hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM0hjubeh}(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.hhM2hjubh)}(hAssigns the specified value to the specified RCU-protected pointer, ensuring that any concurrent RCU readers will see any prior initialization.h]hAssigns the specified value to the specified RCU-protected pointer, ensuring that any concurrent RCU readers will see any prior initialization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM1hjubh)}(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.hhM5hjubh)}(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.}(hjΤhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM;hjubh)}(hXNote that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the "extra" evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.h]hXNote that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the “extra” evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.}(hjݤhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMChjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_replace_pointer (C macro)c.rcu_replace_pointerhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_replace_pointerh]j)}(hrcu_replace_pointerh]jg)}(hrcu_replace_pointerh]jm)}(hjh]hrcu_replace_pointer}(hjhhhNhNubah}(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.hhMXubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj#hMXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hMXhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj#hMXubeh}(h]h ](jmacroeh"]h$]h&]jjjj<jj<jjjuh1hhhhj8hNhNubh)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j)}(hjBh]h%rcu_replace_pointer (rcu_ptr, ptr, c)}(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.hhMZhj8hhubj)}(h0replace an RCU pointer, returning its old value h]h)}(h/replace an RCU pointer, returning its old valueh]h/replace an RCU pointer, returning its old value}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMXhjXubah}(h]h ]h"]h$]h&]uh1jhjjhMXhj8hhubj)}(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)}(hjwh]h Parameters}(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.hhM\hjqubj)}(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.hhMYhjubj)}(hhh]h)}(h(RCU pointer, whose old value is returnedh]h(RCU pointer, whose old value is returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubj)}(h``ptr`` regular pointer h](j)}(h``ptr``h]j)}(hjϥh]hptr}(hjѥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͥubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMZhjɥubj)}(hhh]h)}(hregular pointerh]hregular pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjɥubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubj)}(hI``c`` the lockdep conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjh]hc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM[hjubj)}(hhh]h)}(hBthe lockdep conditions under which the dereference will take placeh]hBthe lockdep conditions under which the dereference will take place}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjubeh}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM]hjqubh)}(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 }(hjYhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh! is an RCU-annotated pointer and }(hjYhhhNhNubj)}(h**c**h]hc}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh} is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of }(hjYhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh is returned, and }(hjYhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh is set to }(hjYhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM\hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_access_pointer (C macro)c.rcu_access_pointerhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_access_pointerh]j)}(hrcu_access_pointerh]jg)}(hrcu_access_pointerh]jm)}(hjܦh]hrcu_access_pointer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjަhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMjubah}(h]h ]h"]h$]h&]jjjuh1jjjhjڦhhhjhMjubah}(h]jզah ](jjeh"]h$]h&]jj)jhuh1hhjhMjhjצhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjצhhhjhMjubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h``rcu_access_pointer (p)``h]j)}(hjh]hrcu_access_pointer (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMlhj8hhubj)}(h(fetch RCU pointer with no dereferencing h]h)}(h'fetch RCU pointer with no dereferencingh]h'fetch RCU pointer with no dereferencing}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMjhj.ubah}(h]h ]h"]h$]h&]uh1jhj@hMjhj8hhubj)}(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)}(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.hhMnhjGubj)}(hhh]j)}(h``p`` The pointer to read 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.hhMkhjfubj)}(hhh]h)}(hThe pointer to readh]hThe pointer to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjcubah}(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.hhMmhjGubh)}(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.hhMlhjGubh)}(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.}(hj̧hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMvhjGubh)}(hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.h]hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.}(hjۧhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM|hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_check (C macro)c.rcu_dereference_checkhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_dereference_checkh]j)}(hrcu_dereference_checkh]jg)}(hrcu_dereference_checkh]jm)}(hjh]hrcu_dereference_check}(hjhhhNhNubah}(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&]jjjj:jj:jjjuh1hhhhj8hNhNubh)}(h ``rcu_dereference_check (p, c)``h]j)}(hj@h]hrcu_dereference_check (p, c)}(hjBhhhNhNubah}(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.hhMhj8hhubj)}(h$rcu_dereference with debug checking h]h)}(h#rcu_dereference with debug checkingh]h#rcu_dereference with debug checking}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjVubah}(h]h ]h"]h$]h&]uh1jhjhhMhj8hhubj)}(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)}(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)}(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)}(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.hhMhjǨubj)}(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&]uh1jhjǨubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(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.hhMhjoubh)}(hXsDo an rcu_dereference(), but check that the conditions under which the dereference will take place are correct. Typically the conditions indicate the various locking conditions that should be held at that point. The check should return true if the conditions are satisfied. An implicit check for being in an RCU read-side critical section (rcu_read_lock()) is included.h]hXsDo an rcu_dereference(), but check that the conditions under which the dereference will take place are correct. Typically the conditions indicate the various locking conditions that should be held at that point. The check should return true if the conditions are satisfied. An implicit check for being in an RCU read-side critical section (rcu_read_lock()) is included.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjoubh)}(h For example:h]h For example:}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjoubj)}(hSbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `)); h]h)}(hRbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `));h](h6bar = rcu_dereference_check(foo->bar, lockdep_is_held(}(hj@hhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjJh]h foo->lock}(hjLhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj@ubh));}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjghMhj<ubah}(h]h ]h"]h$]h&]uh1jhjghMhjoubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjoubh)}(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.hhMhjoubj)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h]j)}(hhh]j)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h](j)}(hSbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) ||h](h6bar = rcu_dereference_check(foo->bar, lockdep_is_held(}(hjhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjh]h foo->lock}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh) ||}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjȩhMhjubj)}(hhh]h)}(h.atomic_read(:c:type:`foo->usage `) == 0);h](h atomic_read(}(hj֩hhhNhNubh)}(h:c:type:`foo->usage `h]j)}(hjh]h foo->usage}(hjhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjީubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jfoouh1hhjȩhMhj֩ubh) == 0);}(hj֩hhhNhNubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjoubh)}(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.}(hj hhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_dereference_bh_check (C macro)c.rcu_dereference_bh_checkhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_dereference_bh_checkh]j)}(hrcu_dereference_bh_checkh]jg)}(hrcu_dereference_bh_checkh]jm)}(hjIh]hrcu_dereference_bh_check}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjfhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjDhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjDhhhjfhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(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.hhMhj8hhubj)}(h'rcu_dereference_bh with debug checking h]h)}(h&rcu_dereference_bh with debug checkingh]h&rcu_dereference_bh with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj8hhubj)}(hX'**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjӪubeh}(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.hhMhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhjЪubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjMh]h Description}(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.hhMhjubh)}(hXThis is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.h]hXThis is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.}(hjchhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%rcu_dereference_sched_check (C macro)c.rcu_dereference_sched_checkhNtauh1hhj8hhhNhNubh)}(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&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj«jj«jjjuh1hhhhj8hNhNubh)}(h&``rcu_dereference_sched_check (p, c)``h]j)}(hjȫh]h"rcu_dereference_sched_check (p, c)}(hjʫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƫubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj8hhubj)}(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.hhMhjޫubah}(h]h ]h"]h$]h&]uh1jhjhMhj8hhubj)}(hX***Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is the RCU-sched counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for preempt_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_sched() into account.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjUh]hc}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjOubj)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubeh}(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.}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#rcu_dereference_all_check (C macro)c.rcu_dereference_all_checkhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_dereference_all_checkh]j)}(hrcu_dereference_all_checkh]jg)}(hrcu_dereference_all_checkh]jm)}(hjϬh]hrcu_dereference_all_check}(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.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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h$``rcu_dereference_all_check (p, c)``h]j)}(hj h]h rcu_dereference_all_check (p, c)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj8hhubj)}(h(rcu_dereference_all with debug checking h]h)}(h'rcu_dereference_all with debug checkingh]h'rcu_dereference_all with debug checking}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj3hMhj8hhubj)}(hXD**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is similar to rcu_dereference_check(), but allows protection by all forms of vanilla RCU readers, including preemption disabled, bh-disabled, and interrupt-disabled regions of code. Note that "vanilla RCU" excludes SRCU and the various Tasks RCU flavors. Please note that this macro should not be backported to any Linux-kernel version preceding v5.0 due to changes in synchronize_rcu() semantics prior to that version.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(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)}(hj_h]hp}(hjahhhNhNubah}(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.hhMhjYubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(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&]uh1jhjhMhjVubeh}(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: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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#rcu_dereference_protected (C macro)c.rcu_dereference_protectedhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_dereference_protectedh]j)}(hrcu_dereference_protectedh]jg)}(hrcu_dereference_protectedh]jm)}(hjh]hrcu_dereference_protected}(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]j ah ](jjeh"]h$]h&]jj)jhuh1hhj/hMhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj/hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjHjjHjjjuh1hhhhj8hNhNubh)}(h$``rcu_dereference_protected (p, c)``h]j)}(hjNh]h rcu_dereference_protected (p, c)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj8hhubj)}(h)fetch RCU pointer when updates prevented h]h)}(h(fetch RCU pointer when updates preventedh]h(fetch RCU pointer when updates prevented}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjdubah}(h]h ]h"]h$]h&]uh1jhjvhMhj8hhubj)}(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.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)}(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.hhMhjծubj)}(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&]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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj}ubh)}(hX{Return the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does *not* prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.h](hReturn the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does }(hj,hhhNhNubj)}(h*not*h]hnot}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj}ubh)}(hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h]hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.}(hjMhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference (C macro)c.rcu_dereferencehNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_dereferenceh]j)}(hrcu_dereferenceh]jg)}(hrcu_dereferenceh]jm)}(hjvh]hrcu_dereference}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h``rcu_dereference (p)``h]j)}(hjh]hrcu_dereference (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj8hhubj)}(h.fetch RCU-protected pointer for dereferencing h]h)}(h-fetch RCU-protected pointer for dereferencingh]h-fetch RCU-protected pointer for dereferencing}(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گhMhj8hhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** This is a simple wrapper around rcu_dereference_check().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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&]uh1jhjhMhjubah}(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&]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().}(hjWhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_bh (C macro)c.rcu_dereference_bhhNtauh1hhj8hhhNhNubh)}(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&]jjjuh1jjjhj~hhhjhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(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.hhMhj8hhubj)}(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}(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&]uh1jhjhMhj8hhubj)}(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.hhM hjubj)}(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.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&]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)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjahhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_sched (C macro)c.rcu_dereference_schedhNtauh1hhj8hhhNhNubh)}(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.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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h``rcu_dereference_sched (p)``h]j)}(hjƱh]hrcu_dereference_sched (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.hhMhj8hhubj)}(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.hhM hjܱubah}(h]h ]h"]h$]h&]uh1jhjhM hj8hhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubah}(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&]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.}(hjkhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_all (C macro)c.rcu_dereference_allhNtauh1hhj8hhhNhNubh)}(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&]jjjjʲjjʲjjjuh1hhhhj8hNhNubh)}(h``rcu_dereference_all (p)``h]j)}(hjвh]hrcu_dereference_all (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.hhMhj8hhubj)}(h2fetch RCU-all-protected pointer for dereferencing h]h)}(h1fetch RCU-all-protected pointer for dereferencingh]h1fetch RCU-all-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj8hhubj)}(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)}(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.hhMhjubj)}(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&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(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.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjuhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_pointer_handoff (C macro)c.rcu_pointer_handoffhNtauh1hhj8hhhNhNubh)}(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.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Գjjjuh1hhhhj8hNhNubh)}(h``rcu_pointer_handoff (p)``h]j)}(hjڳh]hrcu_pointer_handoff (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.hhMhj8hhubj)}(h/Hand off a pointer from RCU to other mechanism h]h)}(h.Hand off a pointer from RCU to other mechanismh]h.Hand off a pointer from RCU to other mechanism}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj8hhubj)}(hXk**Parameters** ``p`` The pointer to hand off **Description** This is simply an identity function, but it documents where a pointer is handed off from RCU to some other synchronization mechanism, for example, reference counting or locking. In C11, it would map to kill_dependency(). It could be used as follows:: rcu_read_lock(); p = rcu_dereference(gp); long_lived = is_long_lived(p); if (long_lived) { if (!atomic_inc_not_zero(p->refcnt)) long_lived = false; else p = rcu_pointer_handoff(p); } rcu_read_unlock();h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM!hj ubj)}(hhh]j)}(h``p`` The pointer to hand off h](j)}(h``p``h]j)}(hj.h]hp}(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.hhMhj(ubj)}(hhh]h)}(hThe pointer to hand offh]hThe pointer to hand off}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(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.hhM hj 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.hhMhj 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.hhM$hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_lock (C function)c.rcu_read_lockhNtauh1hhj8hhhNhNubh)}(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.hhM3ubj)}(h h]h }(hj̴hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj˴hM3ubjg)}(h rcu_read_lockh]jm)}(h rcu_read_lockh]h rcu_read_lock}(hj޴hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڴubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj˴hM3ubj)}(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˴hM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj˴hM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj˴hM3hjhhubj)}(hhh]h)}(h7mark the beginning of an RCU read-side critical sectionh]h7mark the beginning of an RCU read-side critical section}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM3hj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj˴hM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhj8hNhNubj)}(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)}(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.hhM7hj@ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjeh]hvoid}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj_ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKhj\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:398: ./include/linux/rcupdate.hhKhj@ubh)}(hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.h]hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM4hj@ubh)}(hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.h]hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.}(hjŵhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM<hj@ubh)}(hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.h]hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.}(hjԵhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM@hj@ubh)}(hRCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes.h]hRCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMLhj@ubh)}(hYou can avoid reading and understanding the next paragraph by following this rule: don't put anything in an rcu_read_lock() RCU read-side critical section that would block in a !PREEMPTION kernel. But if you want the full story, read on!h]hYou can avoid reading and understanding the next paragraph by following this rule: don’t put anything in an rcu_read_lock() RCU read-side critical section that would block in a !PREEMPTION kernel. But if you want the full story, read on!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMPhj@ubh)}(hX#In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU), it is illegal to block while in an RCU read-side critical section. In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION kernel builds, RCU read-side critical sections may be preempted, but explicit blocking is illegal. Finally, in preemptible RCU implementations in real-time (with -rt patchset) kernel builds, RCU read-side critical sections may be preempted and they may also block, but only when acquiring spinlocks that are subject to priority inheritance.h]hX#In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU), it is illegal to block while in an RCU read-side critical section. In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION kernel builds, RCU read-side critical sections may be preempted, but explicit blocking is illegal. Finally, in preemptible RCU implementations in real-time (with -rt patchset) kernel builds, RCU read-side critical sections may be preempted and they may also block, but only when acquiring spinlocks that are subject to priority inheritance.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMUhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_unlock (C function)c.rcu_read_unlockhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_read_unlock (void)h]j)}(hvoid rcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMsubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj>hMsubjg)}(hrcu_read_unlockh]jm)}(hrcu_read_unlockh]hrcu_read_unlock}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMsubj)}(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>hMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMsubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMshj%hhubj)}(hhh]h)}(h3marks the end of an RCU read-side critical section.h]h3marks the end of an RCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMshjhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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.hhMwhjubj)}(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&]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}(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)}(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)}(hX!In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.h]hX#In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler’s runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMthjubh)}(h)See rcu_read_lock() for more information.h]h)See rcu_read_lock() for more information.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_lock_bh (C function)c.rcu_read_lock_bhhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_bh (void)h]j)}(hvoid rcu_read_lock_bh(void)h](j )}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjuhMubjg)}(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&]jjuh1jfhjchhhjuhMubj)}(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&]jjuh1jhjchhhjuhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(hhh]h)}(h0mark the beginning of an RCU-bh critical sectionh]h0mark the beginning of an RCU-bh 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&]uh1jhj\hhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(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.}(hjohhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_unlock_bh (C function)c.rcu_read_unlock_bhhNtauh1hhj8hhhNhNubh)}(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}(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)}(h4marks the end of a softirq-only RCU critical sectionh]h4marks the end of a softirq-only RCU critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hf**Parameters** ``void`` no arguments **Description** See rcu_read_lock_bh() for more information.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj!ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjFh]hvoid}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]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}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj!ubh)}(h,See rcu_read_lock_bh() for more information.h]h,See rcu_read_lock_bh() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_read_lock_sched (C function)c.rcu_read_lock_schedhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_sched (void)h]j)}(hvoid rcu_read_lock_sched(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:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjչhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¹hhhjԹhMubjg)}(hrcu_read_lock_schedh]jm)}(hrcu_read_lock_schedh]hrcu_read_lock_sched}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj¹hhhjԹ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&]jjuh1jhj¹hhhjԹhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjԹhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԹhMhjhhubj)}(hhh]h)}(h2mark the beginning of a RCU-sched critical sectionh]h2mark the beginning of a RCU-sched critical section}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԹhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj8hNhNubj)}(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)}(hjOh]h Parameters}(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.hhMhjIubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjnh]hvoid}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjhubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjeubah}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjIubh)}(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.hhMhjIubh)}(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.}(hjκhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_read_unlock_sched (C function)c.rcu_read_unlock_schedhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h!void rcu_read_unlock_sched (void)h]j)}(h void rcu_read_unlock_sched(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMubjg)}(hrcu_read_unlock_schedh]jm)}(hrcu_read_unlock_schedh]hrcu_read_unlock_sched}(hjhhhNhNubah}(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 hj6ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubah}(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/marks the end of a RCU-classic critical sectionh]h/marks the end of a RCU-classic critical section}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhj8hNhNubj)}(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&]uh1jhj޻ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(h/See rcu_read_lock_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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_INIT_POINTER (C macro)c.RCU_INIT_POINTERhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hRCU_INIT_POINTERh]j)}(hRCU_INIT_POINTERh]jg)}(hRCU_INIT_POINTERh]jm)}(hjh]hRCU_INIT_POINTER}(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.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&]jjjjUjjUjjjuh1hhhhj8hNhNubh)}(h``RCU_INIT_POINTER (p, v)``h]j)}(hj[h]hRCU_INIT_POINTER (p, v)}(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.hhMhj8hhubj)}(h$initialize an RCU protected pointer h]h)}(h#initialize an RCU protected pointerh]h#initialize an RCU protected pointer}(hjuhhhNhNubah}(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&]uh1jhjhMhj8hhubj)}(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.}(hjȼhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjļhMhjżubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjļhMhjubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(h(The value to initialized the pointer to.h]h(The value to initialized the pointer to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]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)}(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:}(hj9hhhNhNubah}(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)}(hjMh](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(hjOhhhNhNubj)}(h*or*h]hor}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjKubah}(h]h ]h"]h$]h&]uh1jhjHubj)}(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 }(hjuhhhNhNubj)}(h*or*h]hor}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(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&]uh1jhjHubj)}(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() }(hjhhhNhNubj)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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 }(hjhhhNhNubj)}(h*any*h]hany}(hjȽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 reader-visible changes to this structure since then }(hjhhhNhNubj)}(h*or*h]hor}(hjڽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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&]jiHjdjkHhjlHjmHuh1jGhjubeh}(h]h ]h"]h$]h&]uh1jhjHubeh}(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()!!!}(hj hhhNhNubah}(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 }(hj/hhhNhNubj)}(h*after*h]hafter}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhX you have completely initialized the reader-accessible portions of the linked structure.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!RCU_POINTER_INITIALIZER (C macro)c.RCU_POINTER_INITIALIZERhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hRCU_POINTER_INITIALIZERh]j)}(hRCU_POINTER_INITIALIZERh]jg)}(hRCU_POINTER_INITIALIZERh]jm)}(hjyh]hRCU_POINTER_INITIALIZER}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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&]jjjuh1jjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(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.hhMhj8hhubj)}(h/statically initialize an RCU protected pointer h]h)}(h.statically initialize an RCU protected pointerh]h.statically initialize an RCU protected pointer}(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ݾhMhj8hhubj)}(h**Parameters** ``p`` The pointer to be initialized. ``v`` The value to initialized the pointer to. **Description** GCC-style initialization for an RCU-protected pointer in a structure field.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h%``p`` The pointer to be initialized. h](j)}(h``p``h]j)}(hj h]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjBh]hv}(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 value to initialized the pointer to.h]h(The value to initialized the pointer to.}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(hKGCC-style initialization for an RCU-protected pointer in a structure field.h]hKGCC-style initialization for an RCU-protected pointer in a structure field.}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfree_rcu (C macro) c.kfree_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h kfree_rcuh]j)}(h kfree_rcuh]jg)}(h kfree_rcuh]jm)}(hjh]h kfree_rcu}(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.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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h``kfree_rcu (ptr, rhf)``h]j)}(hjh]hkfree_rcu (ptr, rhf)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM&hj8hhubj)}(h&kfree an object after a grace period. h]h)}(h%kfree an object after a grace period.h]h%kfree an object after a grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM$hjubah}(h]h ]h"]h$]h&]uh1jhj hM$hj8hhubj)}(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() or kmem_cache_alloc(). Note that the allowable offset might decrease in the future. The BUILD_BUG_ON check must not involve any function calls, hence the checks are done in macros here.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM(hj'ubj)}(hhh](j)}(h:``ptr`` pointer to kfree for double-argument invocations. h](j)}(h``ptr``h]j)}(hjLh]hptr}(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.hhM%hjFubj)}(hhh]h)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM%hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM%hjCubj)}(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&hjCubeh}(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.hhM(hj'ubh)}(hXMany rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time.h]hXMany rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM'hj'ubh)}(hXThe kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes.h]hXThe kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM,hj'ubh)}(hRThe object to be freed can be allocated either by kmalloc() or kmem_cache_alloc().h]hRThe object to be freed can be allocated either by kmalloc() or kmem_cache_alloc().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM6hj'ubh)}(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)}(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)}(hj3h]hvoid}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhj-ubj)}(hhh]h)}(h no argumentsh]h no arguments}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubh)}(hXThe scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn't. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings.h]hXThe scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn’t. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM}hjubh)}(hXTherefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU's ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU's quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU.h]hXTherefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU’s ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU’s quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(hX<Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.h]hX<Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_is_watching (C function)c.rcu_is_watchinghNtauh1hhj8hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrcu_is_watchingh]jm)}(hrcu_is_watchingh]hrcu_is_watching}(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)}(h9RCU read-side critical sections permitted on current CPU?h]h9RCU read-side critical sections permitted on current CPU?}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj8hNhNubj)}(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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjeubj)}(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&]uh1jhjeubh)}(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.chKhjeubh)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(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.chMhjeubh)}(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 }(hj hhhNhNubj)}(h**true**h]htrue}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, 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 }(hj hhhNhNubj)}(h **false**h]hfalse}(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.chMhjeubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_set_gpwrap_lag (C function)c.rcu_set_gpwrap_laghNtauh1hhj8hhhNhNubh)}(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 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)}(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&]jjuh1jfhj~hhhjhM 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&]jjuh1jhj~hhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhM ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjwhhubj)}(hhh]h)}(h'Set RCU GP sequence overflow lag value.h]h'Set RCU GP sequence overflow lag value.}(hj!hhhNhNubah}(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&]uh1jhjwhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhj8hNhNubj)}(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)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhj=ubj)}(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)}(hjbh]hunsigned long lag_gps}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj\ubj)}(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. }(hj{hhhNhNubj)}(h **lag_gps**h]hlag_gps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh3 = 0 means we reset it back to the boot-time value.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu_hurry (C function)c.call_rcu_hurryhNtauh1hhj8hhhNhNubh)}(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.chMT ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMT ubjg)}(hcall_rcu_hurryh]jm)}(hcall_rcu_hurryh]hcall_rcu_hurry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMT ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE jsbc.call_rcu_hurryasbuh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hrcu_callback_t funch](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 ]jEc.call_rcu_hurryasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMT ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMT ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMT 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.chMT hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMT ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hXS**Parameters** ``struct rcu_head *head`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. Use this API instead of call_rcu() if you don't want the callback to be delayed for very long periods of time, which can happen on systems without memory pressure and on systems which are lightly loaded or mostly idle. This function will cause callbacks to be invoked sooner than later at the expense of extra power. Other than that, this function is identical to, and reuses call_rcu()'s logic. Refer to call_rcu() for more details about memory ordering and other functionality.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMX hjubj)}(hhh](j)}(hM``struct rcu_head *head`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *head``h]j)}(hjh]hstruct rcu_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMX hjubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMX hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMX hjubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjPh]hrcu_callback_t func}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMY hjJubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMY hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMY 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM[ 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.chMZ 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.chM^ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu (C function) c.call_rcuhNtauh1hhj8hhhNhNubh)}(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.chMq ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMq ubjg)}(hcall_rcuh]jm)}(hcall_rcuh]hcall_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMq ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hj6}h]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}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jR )}jE jsb c.call_rcuasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 ]jV 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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMq ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMq ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMq 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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMq hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMq ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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}(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.chMu 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.chMv hj"ubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMv hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMv hjubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjah]hrcu_callback_t func}(hjchhhNhNubah}(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.chMw hj[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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMw hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMw 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMy hjubh)}(hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.h]hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMx hjubh)}(hXBIt is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler.h]hXBIt is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXNote that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when "func()" is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of "func()" must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.h]hXNote that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when “func()” is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of “func()” must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXkFurthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function "func()", then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of "func()" -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).h]hXsFurthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function “func()”, then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of “func()” -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h]hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXSpecific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().h]hXSpecific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().}(hj hhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_rcu (C function)c.synchronize_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid synchronize_rcu (void)h]j)}(hvoid synchronize_rcu(void)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.chM ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhjIhM ubjg)}(hsynchronize_rcuh]jm)}(hsynchronize_rcuh]hsynchronize_rcu}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhjIhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtubah}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhjIhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjIhM ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhM hj0hhubj)}(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&]uh1jhj0hhhjIhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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}(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.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.}(hj4hhhNhNubah}(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.}(hjChhhNhNubah}(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.}(hjRhhhNhNubah}(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).}(hjahhhNhNubah}(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.}(hjphhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/get_completed_synchronize_rcu_full (C function)$c.get_completed_synchronize_rcu_fullhNtauh1hhj8hhhNhNubh)}(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.chM5 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM5 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&]jjuh1jfhjhhhjhM5 ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]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_completed_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}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM5 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM5 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5 hjhhubj)}(hhh]h)}(h/Return a full pre-completed polled state cookieh]h/Return a full pre-completed polled state cookie}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5 hj\hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM5 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhj8hNhNubj)}(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.chM9 hj{ubj)}(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.chM6 hjubj)}(hhh]h)}(hPlace to put state cookieh]hPlace to put state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6 hjubah}(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.chM8 hj{ubh)}(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.chM7 hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&get_state_synchronize_rcu (C function)c.get_state_synchronize_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h.unsigned long get_state_synchronize_rcu (void)h]j)}(h-unsigned long get_state_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMD ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hMD ubj )}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhj@hMD ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hMD ubjg)}(hget_state_synchronize_rcuh]jm)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hMD 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.hhhj@hMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj@hMD ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMD hj'hhubj)}(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.chMD hjhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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.chMH 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&]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)}(hj1h]h Description}(hj3hhhNhNubah}(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)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chME hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+get_state_synchronize_rcu_full (C function) c.get_state_synchronize_rcu_fullhNtauh1hhj8hhhNhNubh)}(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}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMV ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhMV 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&]jjuh1jfhjrhhhjhMV ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]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*}(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&]jjuh1jhjrhhhjhMV ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMV ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMV hjkhhubj)}(hhh]h)}(h-Snapshot RCU state, both normal and expeditedh]h-Snapshot RCU state, both normal and expedited}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMV hj3hhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMV ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1hhhhj8hNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMZ hjRubj)}(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)}(hjwh]hstruct rcu_gp_oldstate *rgosp}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMW hjqubj)}(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&]uh1hhjhMW hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMW hjnubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMY hjRubh)}(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.chMX hjRubh)}(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.chMa hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'start_poll_synchronize_rcu (C function)c.start_poll_synchronize_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h/unsigned long start_poll_synchronize_rcu (void)h]j)}(h.unsigned long start_poll_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]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 ubj )}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj&hM ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj&hM ubjg)}(hstart_poll_synchronize_rcuh]jm)}(hstart_poll_synchronize_rcuh]hstart_poll_synchronize_rcu}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj&hM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubah}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(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)}(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&]uh1jhj hhhj&hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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)}(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.}(hj-hhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,start_poll_synchronize_rcu_full (C function)!c.start_poll_synchronize_rcu_fullhNtauh1hhj8hhhNhNubh)}(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}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjjhM ubjg)}(hstart_poll_synchronize_rcu_fullh]jm)}(hstart_poll_synchronize_rcu_fullh]hstart_poll_synchronize_rcu_full}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjjhM ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]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*}(hjhhhNhNubah}(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&]jjuh1jhjXhhhjjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjjhM ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhM hjQhhubj)}(hhh]h)}(h/Take a full snapshot and start RCU grace periodh]h/Take a full snapshot and start RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj8hNhNubj)}(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)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj8ubj)}(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)}(hj]h]hstruct rcu_gp_oldstate *rgosp}(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 hjWubj)}(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()}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM hjTubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj8ubh)}(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 hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'poll_state_synchronize_rcu (C function)c.poll_state_synchronize_rcuhNtauh1hhj8hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hpoll_state_synchronize_rcuh]jm)}(hpoll_state_synchronize_rcuh]hpoll_state_synchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj )}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubjm)}(holdstateh]holdstate}(hjchhhNhNubah}(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)}(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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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()}(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)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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 }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh was obtained, return }(hjhhhNhNubj)}(h**true**h]htrue}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, otherwise return }(hjhhhNhNubj)}(h **false**h]hfalse}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **false**h]hfalse}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjhhhNhNubj)}(h**true**h]htrue}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,poll_state_synchronize_rcu_full (C function)!c.poll_state_synchronize_rcu_fullhNtauh1hhj8hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hpoll_state_synchronize_rcu_fullh]jm)}(hpoll_state_synchronize_rcu_fullh]hpoll_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)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.poll_state_synchronize_rcu_fullasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(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)}(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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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}(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)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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 }(hjJhhhNhNubj)}(h$*rgosp was obtained, return **true**h]h"rgosp was obtained, return **true*}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh, otherwise return }(hjJhhhNhNubj)}(h **false**h]hfalse}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh. If }(hjJhhhNhNubj)}(h **false**h]hfalse}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjJhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjJhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hjJhhhNhNubeh}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!cond_synchronize_rcu (C function)c.cond_synchronize_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h2void cond_synchronize_rcu (unsigned long oldstate)h]j)}(h1void cond_synchronize_rcu(unsigned long oldstate)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj#hMubjg)}(hcond_synchronize_rcuh]jm)}(hcond_synchronize_rcuh]hcond_synchronize_rcu}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj#hMubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj )}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubjm)}(holdstateh]holdstate}(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*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&]uh1jhj hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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.chMhjubj)}(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()}(hjhhhNhNubah}(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)}(hj0h]h Description}(hj2hhhNhNubah}(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.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.}(hjFhhhNhNubah}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubh)}(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 }(hjdhhhNhNubj)}(h **oldstate**h]holdstate}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh/ and that returned at the end of this function.}(hjdhhhNhNubeh}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&cond_synchronize_rcu_full (C function)c.cond_synchronize_rcu_fullhNtauh1hhj8hhhNhNubh)}(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.chM-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM-ubjg)}(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&]jjuh1jfhjhhhjhM-ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]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 jsbc.cond_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj.hhhNhNubah}(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*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM-hjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhj8hNhNubj)}(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.chM1hjubj)}(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.chM.hjubj)}(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&]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.chM0hjubh)}(hX"If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **rgosp** was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.h](hIf a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubha was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.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 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5hjubh)}(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 }(hj'hhhNhNubj)}(h **rgosp**h]hrgosp}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh/ and that returned at the end of this function.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM:hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_barrier (C function) c.rcu_barrierhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_barrier (void)h]j)}(hvoid rcu_barrier(void)h](j )}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjvhMubjg)}(h rcu_barrierh]jm)}(h rcu_barrierh]h rcu_barrier}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjvhMubj)}(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&]jjuh1jhjdhhhjvhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhjvhMhj]hhubj)}(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&]uh1jhj]hhhjvhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hX>**Parameters** ``void`` no arguments **Description** Note that this primitive does not necessarily wait for an RCU grace period to complete. For example, if there are no RCU callbacks queued anywhere in the system, then rcu_barrier() is within its rights to return immediately, without waiting for anything, much less an RCU grace period. In fact, rcu_barrier() will normally not result in any RCU grace periods beyond those that were already destined to be executed. In kernels built with CONFIG_RCU_LAZY=y, this function also hurries all pending lazy RCU callbacks.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.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%hKhjubah}(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&]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.}(hjahhhNhNubah}(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.}(hjphhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_barrier_throttled (C function)c.rcu_barrier_throttledhNtauh1hhj8hhhNhNubh)}(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.chMDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMDubjg)}(hrcu_barrier_throttledh]jm)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMDubj)}(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&]jjuh1jhjhhhjhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMDhjhhubj)}(hhh]h)}(h-Do rcu_barrier(), but limit to one per secondh]h-Do rcu_barrier(), but limit to one per second}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMDube^h}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hXl**Parameters** ``void`` no arguments **Description** This can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware's try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three. This is intended for use by test suites to avoid OOM by flushing RCU callbacks from the previous test before starting the next. See the rcutree.do_rcu_barrier module parameter for more information. Why not simply make rcu_barrier() more scalable? That might be the eventual endpoint, but let's keep it simple for the time being. Note that the module parameter infrastructure serializes calls to a given .set() function, but should concurrent .set() invocation ever be possible, we are ready!h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMHhj"ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjGh]hvoid}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjAubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhj"ubh)}(hXBThis can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware's try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three.h]hXDThis can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware’s try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMEhj"ubh)}(hThis is intended for use by test suites to avoid OOM by flushing RCU callbacks from the previous test before starting the next. See the rcutree.do_rcu_barrier module parameter for more information.h]hThis is intended for use by test suites to avoid OOM by flushing RCU callbacks from the previous test before starting the next. See the rcutree.do_rcu_barrier module parameter for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMKhj"ubh)}(hX&Why not simply make rcu_barrier() more scalable? That might be the eventual endpoint, but let's keep it simple for the time being. Note that the module parameter infrastructure serializes calls to a given .set() function, but should concurrent .set() invocation ever be possible, we are ready!h]hX(Why not simply make rcu_barrier() more scalable? That might be the eventual endpoint, but let’s keep it simple for the time being. Note that the module parameter infrastructure serializes calls to a given .set() function, but should concurrent .set() invocation ever be possible, we are ready!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMOhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&synchronize_rcu_expedited (C function)c.synchronize_rcu_expeditedhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h%void synchronize_rcu_expedited (void)h]j)}(h$void synchronize_rcu_expedited(void)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)}(hsynchronize_rcu_expeditedh]jm)}(hsynchronize_rcu_expeditedh]hsynchronize_rcu_expedited}(hjhhhNhNubah}(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 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)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhj8hNhNubj)}(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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjhubj)}(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&]uh1jhjhubh)}(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.hhKhjhubh)}(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.hhMhjhubh)}(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.hhMhjhubh)}(hKThis has the same semantics as (but is more brutal than) synchronize_rcu().h]hKThis has the same semantics as (but is more brutal than) synchronize_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h1start_poll_synchronize_rcu_expedited (C function)&c.start_poll_synchronize_rcu_expeditedhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h9unsigned long start_poll_synchronize_rcu_expedited (void)h]j)}(h8unsigned long start_poll_synchronize_rcu_expedited(void)h](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhZ/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&]uh1jhj'hhhj9hMubj )}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhj9hMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj9hMubjg)}(h$start_poll_synchronize_rcu_expeditedh]jm)}(h$start_poll_synchronize_rcu_expeditedh]h$start_poll_synchronize_rcu_expedited}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj9hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj hhubj)}(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&]uh1jhj hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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}(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&]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.}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h6start_poll_synchronize_rcu_expedited_full (C function)+c.start_poll_synchronize_rcu_expedited_fullhNtauh1hhj8hhhNhNubh)}(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}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhhZ/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&]uh1jhjkhhhj}hMubjg)}(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&]jjuh1jfhjkhhhj}hMubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hj6}h]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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjkhhhj}hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj}hMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjdhhubj)}(hhh]h)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhj,hhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhj8hNhNubj)}(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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjKubj)}(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)}(hjph]hstruct rcu_gp_oldstate *rgosp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjjubj)}(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&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubah}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjKubh)}(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.hhMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+cond_synchronize_rcu_expedited (C function) c.cond_synchronize_rcu_expeditedhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhKubjg)}(hrcu_async_relaxh]jm)}(hrcu_async_relaxh]hrcu_async_relax}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhKhj3hhubj)}(hhh]h)}(h%Make future async RCU callbacks lazy.h]h%Make future async RCU callbacks lazy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubh)}(h^After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.h]h^After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_expedite_gp (C function)c.rcu_expedite_gphNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_expedite_gp (void)h]j)}(hvoid rcu_expedite_gp(void)h](j )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjthKubjg)}(hrcu_expedite_gph]jm)}(hrcu_expedite_gph]hrcu_expedite_gp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjthKubj)}(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&]jjuh1jhjbhhhjthKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjthKubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthKhj[hhubj)}(hhh]h)}(h!Expedite future RCU grace periodsh]h!Expedite future RCU grace periods}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubj)}(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#hKhjubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubh)}(hAfter a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.h]hAfter a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_unexpedite_gp (C function)c.rcu_unexpedite_gphNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_unexpedite_gp (void)h]j)}(hvoid rcu_unexpedite_gp(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hrcu_unexpedite_gph]jm)}(hrcu_unexpedite_gph]hrcu_unexpedite_gp}(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)Cancel prior rcu_expedite_gp() invocationh]h)Cancel prior rcu_expedite_gp() invocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj8hNhNubj)}(hXk**Parameters** ``void`` no arguments **Description** Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubj)}(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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubh)}(hX1Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.h]hX1Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_lock_held (C function)c.rcu_read_lock_heldhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hint rcu_read_lock_held (void)h]j)}(hint rcu_read_lock_held(void)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMFubjg)}(hrcu_read_lock_heldh]jm)}(hrcu_read_lock_heldh]hrcu_read_lock_held}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMFubj)}(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&]jjuh1jhjhhhjhMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMFhjhhubj)}(hhh]h)}(h.might we be in RCU read-side critical section?h]h.might we be in RCU read-side critical section?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhj8hNhNubj)}(hXq**Parameters** ``void`` no arguments **Description** If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section. Checks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler. Note that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMJhj9ubj)}(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.chKhjXubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhj9ubh)}(hXZIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.h]hXZIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMGhj9ubh)}(hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMMhj9ubh)}(hNote that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler.h]hNote that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMPhj9ubh)}(hNote that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h]hNote that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMUhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_read_lock_bh_held (C function)c.rcu_read_lock_bh_heldhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h int rcu_read_lock_bh_held (void)h]j)}(hint rcu_read_lock_bh_held(void)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMdubjg)}(hrcu_read_lock_bh_heldh]jm)}(hrcu_read_lock_bh_heldh]hrcu_read_lock_bh_held}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMdubj)}(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&]jjuh1jhjhhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMdhjhhubj)}(hhh]h)}(h1might we be in RCU-bh read-side critical section?h]h1might we be in RCU-bh read-side critical section?}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMdhjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hXW**Parameters** ``void`` no arguments **Description** Check for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section. Check debug_lockdep_rcu_enabled() to prevent false positives during boot. Note that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhhjubj)}(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:404: ./kernel/rcu/update.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:404: ./kernel/rcu/update.chKhjubh)}(hXLCheck for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.h]hXLCheck for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMehjubh)}(hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.h]hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMlhjubh)}(hNote that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h]hNote that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwakeme_after_rcu (C function)c.wakeme_after_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h-void wakeme_after_rcu (struct rcu_head *head)h]j)}(h,void wakeme_after_rcu(struct rcu_head *head)h](j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hMubjg)}(hwakeme_after_rcuh]jm)}(hwakeme_after_rcuh]hwakeme_after_rcu}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj_hMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hj6}h]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 jtsbc.wakeme_after_rcuasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)}(h5Callback function to awaken a task after grace periodh]h5Callback function to awaken a task after grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhj8hNhNubj)}(h**Parameters** ``struct rcu_head *head`` Pointer to rcu_head member within rcu_synchronize structure **Description** Awaken the corresponding task now that a grace period has elapsed.h](h)}(h**Parameters**h]j)}(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:404: ./kernel/rcu/update.chMhj-ubj)}(hhh]j)}(hV``struct rcu_head *head`` Pointer to rcu_head member within rcu_synchronize structure h](j)}(h``struct rcu_head *head``h]j)}(hjRh]hstruct rcu_head *head}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjLubj)}(hhh]h)}(h;Pointer to rcu_head member within rcu_synchronize structureh]h;Pointer to rcu_head member within rcu_synchronize structure}(hjkhhhNhNubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhj-ubh)}(hBAwaken the corresponding task now that a grace period has elapsed.h]hBAwaken the corresponding task now that a grace period has elapsed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#init_rcu_head_on_stack (C function)c.init_rcu_head_on_stackhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h3void init_rcu_head_on_stack (struct rcu_head *head)h]j)}(h2void init_rcu_head_on_stack(struct rcu_head *head)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hinit_rcu_head_on_stackh]jm)}(hinit_rcu_head_on_stackh]hinit_rcu_head_on_stack}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(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 reftargetj/modnameN classnameNjI jL )}jO ]jR )}jE jsbc.init_rcu_head_on_stackasbuh1hhj ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hheadh]hhead}(hjhhhhNhNubah}(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)}(h-initialize on-stack rcu_head for debugobjectsh]h-initialize on-stack rcu_head for debugobjects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``struct rcu_head *head`` pointer to rcu_head structure to be initialized **Description** This function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubj)}(hhh]j)}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized h](j)}(h``struct rcu_head *head``h]j)}(hjh]hstruct rcu_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubj)}(hhh]h)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubh)}(hXIThis function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h]hXIThis function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&destroy_rcu_head_on_stack (C function)c.destroy_rcu_head_on_stackhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h6void destroy_rcu_head_on_stack (struct rcu_head *head)h]j)}(h5void destroy_rcu_head_on_stack(struct rcu_head *head)h](j )}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjahMubjg)}(hdestroy_rcu_head_on_stackh]jm)}(hdestroy_rcu_head_on_stackh]hdestroy_rcu_head_on_stack}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjahMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hj6}h]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 jvsbc.destroy_rcu_head_on_stackasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjHhhubj)}(hhh]h)}(h*destroy on-stack rcu_head for debugobjectsh]h*destroy on-stack rcu_head for debugobjects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``struct rcu_head *head`` pointer to rcu_head structure to be initialized **Description** This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhj/ubj)}(hhh]j)}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized h](j)}(h``struct rcu_head *head``h]j)}(hjTh]hstruct rcu_head *head}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhjNubj)}(hhh]h)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubah}(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:404: ./kernel/rcu/update.chMhj/ubh)}(hX}This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h]hX}This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*get_completed_synchronize_rcu (C function)c.get_completed_synchronize_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h2unsigned long get_completed_synchronize_rcu (void)h]j)}(h1unsigned long get_completed_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chM:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM:ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhM:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM:ubjg)}(hget_completed_synchronize_rcuh]jm)}(hget_completed_synchronize_rcuh]hget_completed_synchronize_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM: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&]jjuh1jhjhhhjhM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM:hjhhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chM:hjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhj8hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a value that will always be treated by functions like poll_state_synchronize_rcu() as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(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:404: ./kernel/rcu/update.chM>hjsubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.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&]uh1jhjsubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chKhjsubh)}(hReturns a value that will always be treated by functions like poll_state_synchronize_rcu() as a cookie whose grace period has already completed.h]hReturns a value that will always be treated by functions like poll_state_synchronize_rcu() as a cookie whose grace period has already completed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:404: ./kernel/rcu/update.chM;hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+get_completed_synchronize_srcu (C function) c.get_completed_synchronize_srcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h3unsigned long get_completed_synchronize_srcu (void)h]j)}(h2unsigned long get_completed_synchronize_srcu(void)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKJubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj&hKJubj )}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj&hKJubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj&hKJubjg)}(hget_completed_synchronize_srcuh]jm)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj&hKJubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubah}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hKJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hKJubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj&hKJhj hhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKJhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hKJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKNhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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&]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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(same_state_synchronize_srcu (C function)c.same_state_synchronize_srcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hSbool same_state_synchronize_srcu (unsigned long oldstate1, unsigned long oldstate2)h]j)}(hRbool same_state_synchronize_srcu(unsigned long oldstate1, unsigned long oldstate2)h](j )}(hj8h]hbool}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK]ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjihK]ubjg)}(hsame_state_synchronize_srcuh]jm)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjihK]ubj)}(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 }(hjhhhNhNubah}(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}(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 oldstate2h]h oldstate2}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjihK]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjihK]ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjihK]hjQhhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK]hjHhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjihK]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj8hNhNubj)}(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)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKahjgubj)}(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.hhK^hjubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK^hjubj)}(h4``unsigned long oldstate2`` Second old-state value. h](j)}(h``unsigned long oldstate2``h]j)}(hjh]hunsigned long oldstate2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK_hjubj)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(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&]uh1jhjgubh)}(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.hhKahjgubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% if the two values are identical and }(hjhhhNhNubj)}(h **false**h]hfalse}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhK`hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_read_lock_held (C function)c.srcu_read_lock_heldhNtauh1hhj8hhhNhNubh)}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjwhKubjg)}(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&]jjuh1jfhjehhhjwhKubj)}(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)}(hj6}h]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_lock_heldasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(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&]jjuh1jhjehhhjwhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhKubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhKhj^hhubj)}(hhh]h)}(h/might we be in SRCU read-side critical section?h]h/might we be in SRCU read-side critical section?}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjAhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1hhhhj8hNhNubj)}(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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj`ubj)}(hhh]j)}(hE``const struct srcu_struct *ssp`` The srcu_struct structure to check h](j)}(h!``const struct srcu_struct *ssp``h]j)}(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&]uh1jhjhKhj|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.hhKhj`ubh)}(hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.h]hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj`ubh)}(hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj`ubh)}(hNote that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h]hNote that SRCU is based on its own statemachine and it doesn’t relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_dereference_check (C macro)c.srcu_dereference_checkhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hsrcu_dereference_checkh]j)}(hsrcu_dereference_checkh]jg)}(hsrcu_dereference_checkh]jm)}(hjh]hsrcu_dereference_check}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/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&]jjjjSjjSjjjuh1hhhhj8hNhNubh)}(h&``srcu_dereference_check (p, ssp, c)``h]j)}(hjYh]h"srcu_dereference_check (p, ssp, c)}(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.hhKhj8hhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjoubah}(h]h ]h"]h$]h&]uh1jhjhKhj8hhubj)}(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&]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&]uh1jhjhKhjubj)}(h-``c`` condition to check for update-side use h](j)}(h``c``h]j)}(hj h]hc}(hj"hhhNhNubah}(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&condition to check for update-side useh]h&condition to check for update-side use}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKhjubeh}(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&]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 }(hjqhhhNhNubj)}(h**c**h]hc}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh evaluates to 1. The }(hjqhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hjqhhhNhNubeh}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_dereference (C macro)c.srcu_dereferencehNtauh1hhj8hhhNhNubh)}(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&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubh)}(h``srcu_dereference (p, ssp)``h]j)}(hjh]hsrcu_dereference (p, ssp)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj8hhubj)}(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&]uh1jhj"hKhj8hhubj)}(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)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj)ubj)}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjNh]hp}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjHubj)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchKhjEubj)}(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&]uh1jhjhKhjEubeh}(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.hhKhj)ubh)}(hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h]hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_dereference_notrace (C macro)c.srcu_dereference_notracehNtauh1hhj8hhhNhNubh)}(hhh](j)}(hsrcu_dereference_notraceh]j)}(hsrcu_dereference_notraceh]jg)}(hsrcu_dereference_notraceh]jm)}(hjh]hsrcu_dereference_notrace}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj8jj8jjjuh1hhhhj8hNhNubh)}(h%``srcu_dereference_notrace (p, ssp)``h]j)}(hj>h]h!srcu_dereference_notrace (p, ssp)}(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.hhKhj8hhubj)}(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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjTubah}(h]h ]h"]h$]h&]uh1jhjfhKhj8hhubj)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjmubj)}(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)}(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.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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_read_lock (C function)c.srcu_read_lockhNtauh1hhj8hhhNhNubh)}(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}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj2hKubjg)}(hsrcu_read_lockh]jm)}(hsrcu_read_lockh]hsrcu_read_lock}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj2hKubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.srcu_read_lockasbuh1hhj]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&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj2hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj2hKhjhhubj)}(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.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). The return value from srcu_read_lock() is guaranteed to be non-negative. This value must be passed unaltered to the matching srcu_read_unlock(). Note that srcu_read_lock() and the matching srcu_read_unlock() must occur in the same context, for example, it is illegal to invoke srcu_read_unlock() in an irq handler if the matching srcu_read_lock() was invoked in process context. Or, for that matter to invoke srcu_read_unlock() from one task and the matching srcu_read_lock() from another.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj%h]hstruct srcu_struct *ssp}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubj)}(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: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}(hjbhhhNhNubah}(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)}(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().}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjubh)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_read_lock_fast (C function)c.srcu_read_lock_fasthNtauh1hhj8hhhNhNubh)}(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)}(hj6}h]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_read_lock_fastsbc.srcu_read_lock_fastasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh__percpu}(hjhhhNhNubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hsrcu_read_lock_fasth]jm)}(hjh]hsrcu_read_lock_fast}(hj% hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj! ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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 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 ]jc.srcu_read_lock_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&]noemphjjuh1jhj8 ubah}(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.}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj8hNhNubj)}(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. If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. Note that srcu_read_lock_fast() 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.hhMhj ubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj h]hstruct srcu_struct *ssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj 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&]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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubh)}(hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information.h]hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information.}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubh)}(hX<If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.h]hX<If srcu_read_lock_fast() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after. Note that grace-period auto-expediting is disabled for _fast srcu_struct structures because auto-expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all.}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubh)}(hNote that srcu_read_lock_fast() 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]hNote that srcu_read_lock_fast() 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.}(hjq 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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_down_read_fast (C function)c.srcu_down_read_fasthNtauh1hhj8hhhNhNubh)}(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)}(hj6}h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 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,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 ]jR )}jE srcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhj hhhj hM,ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM,ubh__percpu}(hj hhhNhNubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM,ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM,ubjg)}(hsrcu_down_read_fasth]jm)}(hj h]hsrcu_down_read_fast}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM,ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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 ]j c.srcu_down_read_fastasbuh1hhj( ubj)}(h h]h }(hjh hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj( ubj)}(hjh]h*}(hjv 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 hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM,ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM,hj hhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM,hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj8hNhNubj)}(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().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.hhM0hj ubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj h]hstruct srcu_struct *ssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM-hj 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&]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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM/hj ubh)}(hEnter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information.h]hEnter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information.}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM.hj ubh)}(haThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast().h]haThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast().}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM2hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#srcu_read_lock_nmisafe (C function)c.srcu_read_lock_nmisafehNtauh1hhj8hhhNhNubh)}(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}(hj} hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjy 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&]uh1jhjy hhhj hM?ubjg)}(hsrcu_read_lock_nmisafeh]jm)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjy hhhj hM?ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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_lock_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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjy hhhj hM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhju hhhj hM?ubah}(h]jp ah ](jjeh"]h$]h&]jj)jhuh1hhj hM?hjr hhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM?hj: hhubah}(h]h ]h"]h$]h&]uh1jhjr hhhj hM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjU jjU jjjuh1hhhhj8hNhNubj)}(hXu**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section, but in an NMI-safe manner. See srcu_read_lock() for more information. If srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.h](h)}(h**Parameters**h]j)}(hj_ h]h Parameters}(hja 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.hhMChjY ubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj~ h]hstruct srcu_struct *ssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM@hjx 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&]uh1hhj hM@hj ubah}(h]h ]h"]h$]h&]uh1jhjx ubeh}(h]h ]h"]h$]h&]uh1jhj hM@hju ubah}(h]h ]h"]h$]h&]uh1jhjY 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.hhMBhjY ubh)}(hoEnter an SRCU read-side critical section, but in an NMI-safe manner. See srcu_read_lock() for more information.h]hoEnter an SRCU read-side critical section, but in an NMI-safe manner. See srcu_read_lock() for more information.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMAhjY ubh)}(hIf srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.h]hIf srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMDhjY ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_down_read (C function)c.srcu_down_readhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h,int srcu_down_read (struct srcu_struct *ssp)h]j)}(h+int srcu_down_read(struct srcu_struct *ssp)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhM_ubjg)}(hsrcu_down_readh]jm)}(hsrcu_down_readh]hsrcu_down_read}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhM_ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jR )}jE j0sbc.srcu_down_readasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM_hjhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM_hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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.hhMchjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM`hjubj)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM`hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM`hjubah}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMbhjubh)}(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.hhMahjubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMjhjubh)}(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.hhMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_read_unlock (C function)c.srcu_read_unlockhNtauh1hhj8hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM|ubjg)}(hsrcu_read_unlockh]jm)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM|ubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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 reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_unlockasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint idxh](j )}(hinth]hint}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubjm)}(hidxh]hidx}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(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)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM|hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM}hjubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hjh]hint idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM~hjubj)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM~hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM~hjubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(h(Exit an SRCU read-side critical section.h]h(Exit an SRCU read-side critical section.}(hjlhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_read_unlock_fast (C function)c.srcu_read_unlock_fasthNtauh1hhj8hhhNhNubh)}(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}(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_unlock_fasth]jm)}(hsrcu_read_unlock_fasth]hsrcu_read_unlock_fast}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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_unlock_fastasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct srcu_ctr __percpu *scph](j)}(hj6}h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjmodnameN classnameNjI jL )}jO ]jc.srcu_read_unlock_fastasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubh__percpu}(hjFhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hscph]hscp}(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)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from 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&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hj hhhNhNubah}(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)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(hjWh]hstruct srcu_ctr __percpu *scp}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjQubj)}(hhh]h)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubeh}(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.hhMhjubh)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight 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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_up_read_fast (C function)c.srcu_up_read_fasthNtauh1hhj8hhhNhNubh)}(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}(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_up_read_fasth]jm)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_up_read_fastasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hj6}h]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 ]jNc.srcu_up_read_fastasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__percpu}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hscph]hscp}(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)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from 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&]jjjj1jj1jjjuh1hhhhj8hNhNubj)}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj5ubj)}(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)}(hjZh]hstruct srcu_struct *ssp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjTubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). 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&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubj)}(hhh]h)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(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.hhMhj5ubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%srcu_read_unlock_nmisafe (C function)c.srcu_read_unlock_nmisafehNtauh1hhj8hhhNhNubh)}(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}(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 }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj!hMubjg)}(hsrcu_read_unlock_nmisafeh]jm)}(hsrcu_read_unlock_nmisafeh]hsrcu_read_unlock_nmisafe}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj!hMubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE j6sbc.srcu_read_unlock_nmisafeasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hint idxh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from 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&]uh1jhjhhhj!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj8hNhNubj)}(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.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)}(hjIh]hstruct srcu_struct *ssp}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjCubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubj)}(hF``int idx`` return value from corresponding srcu_read_lock_nmisafe(). h](j)}(h ``int idx``h]j)}(hjh]hint idx}(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.hhMhj|ubj)}(hhh]h)}(h9return value from corresponding srcu_read_lock_nmisafe().h]h9return value from corresponding srcu_read_lock_nmisafe().}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj$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.}(hjhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_up_read (C function)c.srcu_up_readhNtauh1hhj8hhhNhNubh)}(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}(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)}(h srcu_up_readh]jm)}(h srcu_up_readh]h srcu_up_read}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hint idxh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from 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&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj8h]hstruct srcu_struct *ssp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj2ubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hjqh]hint idx}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjkubj)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(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().}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+smp_mb__after_srcu_read_unlock (C function) c.smp_mb__after_srcu_read_unlockhNtauh1hhj8hhhNhNubh)}(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}(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)}(hsmp_mb__after_srcu_read_unlockh]jm)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hjhhhNhNubah}(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&]noemphjjuh1jhj&ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+ensure full ordering after srcu_read_unlockh]h+ensure full ordering after srcu_read_unlock}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhj8hNhNubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjtubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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&]uh1jhjtubh)}(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.hhKhjtubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjtubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)smp_mb__after_srcu_read_lock (C function)c.smp_mb__after_srcu_read_lockhNtauh1hhj8hhhNhNubh)}(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.hhMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$hhhj6hMubjg)}(hsmp_mb__after_srcu_read_lockh]jm)}(hsmp_mb__after_srcu_read_lockh]hsmp_mb__after_srcu_read_lock}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhhj6hMubj)}(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&]jjuh1jhj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhjhhubj)}(hhh]h)}(h)ensure full ordering after srcu_read_lockh]h)ensure full ordering after srcu_read_lock}(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&]uh1jhjhhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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)}(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.hhKhjubh)}(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.hhMhjubh)}(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.}(hj0hhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hinit_srcu_struct (C function)c.init_srcu_structhNtauh1hhj8hhhNhNubh)}(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.chM.ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhjmhM.ubjg)}(hinit_srcu_structh]jm)}(hinit_srcu_structh]hinit_srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhjmhM.ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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.init_srcu_structasbuh1hhjubj)}(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[hhhjmhM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjmhM.ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhM.hjThhubj)}(hhh]h)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM.hjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhj8hNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Must invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(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.chM2hj;ubj)}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj`h]hstruct srcu_struct *ssp}(hjbhhhNhNubah}(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/hjZubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM/hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM/hjWubah}(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:408: ./kernel/rcu/srcutree.chM1hj;ubh)}(hMust 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]hMust 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM0hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_readers_active (C function)c.srcu_readers_activehNtauh1hhj8hhhNhNubh)}(hhh](j)}(h2bool srcu_readers_active (struct srcu_struct *ssp)h]j)}(h1bool srcu_readers_active(struct srcu_struct *ssp)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM;ubjg)}(hsrcu_readers_activeh]jm)}(hsrcu_readers_activeh]hsrcu_readers_active}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM;ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_readers_activeasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjuhhhNhNubah}(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)}(h6returns true if there are readers. and false otherwiseh]h6returns true if there are readers. and false otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM;hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(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:408: ./kernel/rcu/srcutree.chM?hjubj)}(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)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM=hjubj)}(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).}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM?hjubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM>hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h cleanup_srcu_struct (C function)c.cleanup_srcu_structhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h2void cleanup_srcu_struct (struct srcu_struct *ssp)h]j)}(h1void cleanup_srcu_struct(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 }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhjnhMubjg)}(hcleanup_srcu_structh]jm)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhjnhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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.cleanup_srcu_structasbuh1hhjubj)}(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\hhhjnhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjnhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjUhhubj)}(hhh]h)}(h!deconstruct a sleep-RCU structureh]h!deconstruct a sleep-RCU structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8 jj8 jjjuh1hhhhj8hNhNubj)}(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)}(hjB h]h Parameters}(hjD 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)}(h3``struct srcu_struct *ssp`` structure to clean up. h](j)}(h``struct srcu_struct *ssp``h]j)}(hja h]hstruct srcu_struct *ssp}(hjc 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)}(hstructure to clean up.h]hstructure to clean up.}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv hMhjw ubah}(h]h ]h"]h$]h&]uh1jhj[ ubeh}(h]h ]h"]h$]h&]uh1jhjv hMhjX 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)}(hMust invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.h]hMust invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj< ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_srcu (C function) c.call_srcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hSvoid call_srcu (struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h]j)}(hRvoid call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj 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&]uh1jhj hhhj hM}ubjg)}(h call_srcuh]jm)}(h call_srcuh]h call_srcu}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM}ubj)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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!modnameN classnameNjI jL )}jO ]jR )}jE j!sb c.call_srcuasbuh1hhj!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)}(hssph]hssp}(hjw!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hstruct rcu_head *rhph](j)}(hj6}h]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)}(hrcu_headh]hrcu_head}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jX! c.call_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)}(hrhph]hrhp}(hj!hhhNhNubah}(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}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jX! c.call_srcuasbuh1hhj!ubj)}(h h]h }(hj!"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubjm)}(hfunch]hfunc}(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:Queue a callback for invocation after an SRCU grace periodh]h:Queue a callback for invocation after an SRCU grace period}(hjY"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM}hjV"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjq"jjq"jjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in queue the callback ``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. ``rcu_callback_t func`` function to be invoked after the SRCU grace period **Description** The callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested. The callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block. See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hj{"h]h Parameters}(hj}"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy"ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhju"ubj)}(hhh](j)}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback h](j)}(h``struct srcu_struct *ssp``h]j)}(hj"h]hstruct srcu_struct *ssp}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM~hj"ubj)}(hhh]h)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(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)}(hN``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j)}(h``struct rcu_head *rhp``h]j)}(hj"h]hstruct rcu_head *rhp}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj"ubj)}(hhh]h)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj"ubj)}(hK``rcu_callback_t func`` function to be invoked after the SRCU grace period h](j)}(h``rcu_callback_t func``h]j)}(hj #h]hrcu_callback_t func}(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)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(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&]uh1jhju"ubh)}(h**Description**h]j)}(hjG#h]h Description}(hjI#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE#ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhju"ubh)}(hXThe callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested.h]hXThe callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested.}(hj]#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhju"ubh)}(hThe callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block.h]hThe callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block.}(hjl#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhju"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.}(hj{#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhju"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'synchronize_srcu_expedited (C function)c.synchronize_srcu_expeditedhNtauh1hhj8hhhNhNubh)}(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 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_srcu_expeditedh]jm)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(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)}(hj6}h]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_srcu_expeditedasbuh1hhj#ubj)}(h h]h }(hj%$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hj3$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#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hMhj#hhubj)}(hhh]h)}(hBrute-force SRCU grace periodh]hBrute-force SRCU grace period}(hjj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjg$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhj8hNhNubj)}(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.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)}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_srcu (C function)c.synchronize_srcuhNtauh1hhj8hhhNhNubh)}(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 hj6%hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hjI%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6%hhhjH%hMubjg)}(hsynchronize_srcuh]jm)}(hsynchronize_srcuh]hsynchronize_srcu}(hj[%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjW%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6%hhhjH%hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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)}(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_srcuasbuh1hhjs%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)}(hssph]hssp}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjo%ubah}(h]h ]h"]h$]h&]jjuh1jhj6%hhhjH%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2%hhhjH%hMubah}(h]j-%ah ](jjeh"]h$]h&]jj)jhuh1hhjH%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/%hhhjH%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhj8hNhNubj)}(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&]uh1jhj9&ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj5&ubj)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjT&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP&hMhjQ&ubah}(h]h ]h"]h$]h&]uh1jhj5&ubeh}(h]h ]h"]h$]h&]uh1jhjP&hMhj2&ubah}(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&]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 ](j΅jc-typeeh"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jsspuh1hhZ/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&]uh1hhj&hMhj&ubh)}(h/Can block; must be called from process context.h]h/Can block; must be called from process context.}(hj&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.}(hj&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.chMhj&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.chMhj&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.chMhj&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.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'get_state_synchronize_srcu (C function)c.get_state_synchronize_srcuhNtauh1hhj8hhhNhNubh)}(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}(hjG'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjC'hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hjV'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC'hhhjU'hMubj )}(hlongh]hlong}(hjd'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjC'hhhjU'hMubj)}(h h]h }(hjr'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC'hhhjU'hMubjg)}(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&]jjuh1jfhjC'hhhjU'hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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.get_state_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&]jjuh1jhjC'hhhjU'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?'hhhjU'hMubah}(h]j:'ah ](jjeh"]h$]h&]jj)jhuh1hhjU'hMhj<'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.chMhj (hhubah}(h]h ]h"]h$]h&]uh1jhj<'hhhjU'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;(jj;(jjjuh1hhhhj8hNhNubj)}(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)}(hjE(h]h Parameters}(hjG(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC(ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM hj?(ubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjd(h]hstruct srcu_struct *ssp}(hjf(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb(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 to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj}(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy(hMhjz(ubah}(h]h ]h"]h$]h&]uh1jhj^(ubeh}(h]h ]h"]h$]h&]uh1jhjy(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.chM hj?(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().}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(start_poll_synchronize_srcu (C function)c.start_poll_synchronize_srcuhNtauh1hhj8hhhNhNubh)}(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}(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(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)}(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&]jjuh1jfhj(hhhj(hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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.start_poll_synchronize_srcuasbuh1hhj9)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)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%Provide cookie and start grace periodh]h%Provide cookie and start 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&]uh1jhj(hhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhj8hNhNubj)}(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)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj)ubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct 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.chMhj)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*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)}(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.}(hjR*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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(poll_state_synchronize_srcu (C function)c.poll_state_synchronize_srcuhNtauh1hhj8hhhNhNubh)}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}*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&]uh1jhj}*hhhj*hM)ubjg)}(hpoll_state_synchronize_srcuh]jm)}(hpoll_state_synchronize_srcuh]hpoll_state_synchronize_srcu}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}*hhhj*hM)ubj)}(h/(struct srcu_struct *ssp, unsigned long cookie)h](j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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.poll_state_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*ubj)}(hunsigned long cookieh](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}(hjK+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj++ubj)}(h h]h }(hjY+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj++ubjm)}(hcookieh]hcookie}(hjg+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&]jjjuh1jjjhjy*hhhj*hM)ubah}(h]jt*ah ](jjeh"]h$]h&]jj)jhuh1hhj*hM)hjv*hhubj)}(hhh]h)}(h Has cookie's grace period ended?h]h"Has cookie’s grace period ended?}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM)hj+hhubah}(h]h ]h"]h$]h&]uh1jhjv*hhhj*hM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhj8hNhNubj)}(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)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM-hj+ubj)}(hhh](j)}(h?``struct srcu_struct *ssp`` 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+ubj)}(hj``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). h](j)}(h``unsigned long cookie``h]j)}(hj ,h]hunsigned long cookie}(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)}(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().}(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)}(hjF,h]h Description}(hjH,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD,ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM-hj+ubh)}(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 }(hj\,hhhNhNubj)}(h**true**h]htrue}(hjd,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\,ubhL if an SRCU grace period elapsed since the time that the cookie was created.}(hj\,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM,hj+ubh)}(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.}(hj},hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM1hj+ubh)}(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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM:hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_barrier (C function)c.srcu_barrierhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h+void srcu_barrier (struct srcu_struct *ssp)h]j)}(h*void srcu_barrier(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMsubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj,hMsubjg)}(h srcu_barrierh]jm)}(h srcu_barrierh]h srcu_barrier}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj,hMsubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]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_barrierasbuh1hhj,ubj)}(h h]h }(hj6-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hjD-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hssph]hssp}(hjQ-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj,hMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hMsubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hMshj,hhubj)}(hhh]h)}(h8Wait until all in-flight call_srcu() callbacks complete.h]h8Wait until all in-flight call_srcu() callbacks complete.}(hj{-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMshjx-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhj8hNhNubj)}(hc**Parameters** ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.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.chMwhj-ubj)}(hhh]j)}(hQ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.h](j)}(h``struct srcu_struct *ssp``h]j)}(hj-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.chMyhj-ubj)}(hhh]h)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMthj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMyhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#srcu_batches_completed (C function)c.srcu_batches_completedhNtauh1hhj8hhhNhNubh)}(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.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$.hMubj )}(hlongh]hlong}(hj3.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhj$.hMubj)}(h h]h }(hjA.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj$.hMubjg)}(hsrcu_batches_completedh]jm)}(hsrcu_batches_completedh]hsrcu_batches_completed}(hjS.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj$.hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj6}h]hstruct}(hjo.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk.ubj)}(h h]h }(hj|.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk.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 jU.sbc.srcu_batches_completedasbuh1hhjk.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjk.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk.ubjm)}(hssph]hssp}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjg.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)}(hreturn batches completed.h]hreturn batches completed.}(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 /jjjuh1hhhhj8hNhNubj)}(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/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)}(hM``struct srcu_struct *ssp`` srcu_struct on which to report batch completion. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj3/h]hstruct srcu_struct *ssp}(hj5/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1/ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj-/ubj)}(hhh]h)}(h0srcu_struct on which to report batch completion.h]h0srcu_struct on which to report batch completion.}(hjL/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH/hMhjI/ubah}(h]h ]h"]h$]h&]uh1jhj-/ubeh}(h]h ]h"]h$]h&]uh1jhjH/hMhj*/ubah}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj/ubh)}(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.}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_bl_del_rcu (C function)c.hlist_bl_del_rcuhNtauh1hhj8hhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/hhhj/hKubjg)}(hhlist_bl_del_rcuh]jm)}(hhlist_bl_del_rcuh]hhlist_bl_del_rcu}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/hhhj/hKubj)}(h(struct hlist_bl_node *n)h]j)}(hstruct hlist_bl_node *nh](j)}(hj6}h]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_bl_nodeh]h hlist_bl_node}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]jR )}jE j/sbc.hlist_bl_del_rcuasbuh1hhj/ubj)}(h h]h }(hj.0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hj<0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hjyh]hn}(hjI0hhhNhNubah}(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)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjr0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhjo0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj8hNhNubj)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK hj0ubj)}(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)}(hj0h]hstruct hlist_bl_node *n}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhj0ubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Note**h]j)}(hj0h]hNote}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK#hj0ubh)}(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().}(hj"1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK&hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlist_bl_add_head_rcu (C function)c.hlist_bl_add_head_rcuhNtauh1hhj8hhhNhNubh)}(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}(hjQ1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjM1hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK5ubj)}(h h]h }(hj`1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM1hhhj_1hK5ubjg)}(hhlist_bl_add_head_rcuh]jm)}(hhlist_bl_add_head_rcuh]hhlist_bl_add_head_rcu}(hjr1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjM1hhhj_1hK5ubj)}(h2(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j)}(hstruct hlist_bl_node *nh](j)}(hj6}h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h hlist_bl_nodeh]h hlist_bl_node}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE jt1sbc.hlist_bl_add_head_rcuasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hjyh]hn}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct hlist_bl_head *hh](j)}(hj6}h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj 2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h hlist_bl_headh]h hlist_bl_head}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]j1c.hlist_bl_add_head_rcuasbuh1hhj1ubj)}(h h]h }(hj;2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjI2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hhh]hh}(hjV2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjM1hhhj_1hK5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjI1hhhj_1hK5ubah}(h]jD1ah ](jjeh"]h$]h&]jj)jhuh1hhj_1hK5hjF1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjF1hhhj_1hK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj8hNhNubj)}(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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK9hj2ubj)}(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)}(hj2h]hstruct hlist_bl_node *n}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK6hj2ubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hK6hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hK6hj2ubj)}(h0``struct hlist_bl_head *h`` the list to add to. h](j)}(h``struct hlist_bl_head *h``h]j)}(hj2h]hstruct hlist_bl_head *h}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK7hj2ubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hK7hj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hK7hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj&3h]h Description}(hj(3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$3ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK9hj2ubh)}(hYAdds the specified element to the specified hlist_bl, while permitting racing traversals.h]hYAdds the specified element to the specified hlist_bl, while permitting racing traversals.}(hj<3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK9hj2ubh)}(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().}(hjK3hhhNhNubah}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK\hj3ubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hj4h]htpos}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKYhj3ubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKYhj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj4hKYhj3ubj)}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj=4h]hpos}(hj?4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKZhj74ubj)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hjV4hhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hj`4h]hstruct hlist_bl_node}(hjb4hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj^4ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅j hlist_bl_nodeuh1hhjR4hKZhjV4ubh to use as a loop cursor.}(hjV4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjR4hKZhjS4ubah}(h]h ]h"]h$]h&]uh1jhj74ubeh}(h]h ]h"]h$]h&]uh1jhjR4hKZhj3ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj4h]hhead}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK[hj4ubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hK[hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hK[hj3ubj)}(h;``member`` the name of the hlist_bl_node within the struct.h](j)}(h ``member``h]j)}(hj4h]hmember}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK]hj4ubj)}(hhh]h)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK\hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hK]hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_for_each_rcu (C macro)c.list_for_each_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hlist_for_each_rcuh]j)}(hlist_for_each_rcuh]jg)}(hlist_for_each_rcuh]jm)}(hj&5h]hlist_for_each_rcu}(hj05hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(5hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK.ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj$5hhhjC5hK.ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhjC5hK.hj!5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj!5hhhjC5hK.ubeh}(h]h ](jmacroeh"]h$]h&]jjjj\5jj\5jjjuh1hhhhj8hNhNubh)}(h!``list_for_each_rcu (pos, head)``h]j)}(hjb5h]hlist_for_each_rcu (pos, head)}(hjd5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hj8hhubj)}(h+Iterate over a list in an RCU-safe fashion h]h)}(h*Iterate over a list in an RCU-safe fashionh]h*Iterate over a list in an RCU-safe fashion}(hj|5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK.hjx5ubah}(h]h ]h"]h$]h&]uh1jhj5hK.hj8hhubj)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK2hj5ubj)}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj5h]hpos}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK/hj5ubj)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hj5hhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hj5h]hstruct list_head}(hj5hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅j list_headuh1hhj5hK/hj5ubh to use as a loop cursor.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj5hK/hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hK/hj5ubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hj6h]hhead}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK1hj 6ubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj+6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hj(6ubah}(h]h ]h"]h$]h&]uh1jhj 6ubeh}(h]h ]h"]h$]h&]uh1jhj'6hK1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_tail_rcu (C macro)c.list_tail_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h list_tail_rcuh]j)}(h list_tail_rcuh]jg)}(h list_tail_rcuh]jm)}(hjf6h]h list_tail_rcu}(hjp6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjh6hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjd6hhhj6hK8ubah}(h]j_6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hK8hja6hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhja6hhhj6hK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjj6jj6jjjuh1hhhhj8hNhNubh)}(h``list_tail_rcu (head)``h]j)}(hj6h]hlist_tail_rcu (head)}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK:hj8hhubj)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8hj6ubah}(h]h ]h"]h$]h&]uh1jhj6hK8hj8hhubj)}(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)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(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)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj:ubj)}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hj ;h]hstruct list_head *new}(hj";hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj;ubj)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hj9;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5;hKhj6;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj5;hKhj;ubj)}(h6``struct list_head *head`` list head to add it before h](j)}(h``struct list_head *head``h]j)}(hjY;h]hstruct list_head *head}(hj[;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW;ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjS;ubj)}(hhh]h)}(hlist head to add it beforeh]hlist head to add it before}(hjr;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn;hKhjo;ubah}(h]h ]h"]h$]h&]uh1jhjS;ubeh}(h]h ]h"]h$]h&]uh1jhjn;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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj:ubh)}(hUInsert a new entry before the specified head. This is useful for implementing queues.h]hUInsert a new entry before the specified head. This is useful for implementing queues.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj:ubh)}(hXZThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXZThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_del_rcu (C function)c.list_del_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h+void list_del_rcu (struct list_head *entry)h]j)}(h*void list_del_rcu(struct list_head *entry)h](j )}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhj;hKubjg)}(h list_del_rcuh]jm)}(h list_del_rcuh]h list_del_rcu}(hj <hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhj;hKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj6}h]hstruct}(hj%<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!<ubj)}(h h]h }(hj2<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!<ubh)}(hhh]jm)}(h list_headh]h list_head}(hjC<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjE<modnameN classnameNjI jL )}jO ]jR )}jE j <sbc.list_del_rcuasbuh1hhj!<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)}(hentryh]hentry}(hj~<hhhNhNubah}(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)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhj8hNhNubj)}(hXz**Parameters** ``struct list_head *entry`` the element to delete from the list. **Note** list_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu(). Note that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<ubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hj<h]hstruct list_head *entry}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<ubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj<ubah}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<ubh)}(hlist_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hlist_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hj:=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<ubh)}(hpIn particular, it means that we can not poison the forward pointers that may still be used for walking the list.h]hpIn particular, it means that we can not poison the forward pointers that may still be used for walking the list.}(hjI=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<ubh)}(hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hjX=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<ubh)}(hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h]hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.}(hjg=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_bidir_del_rcu (C function)c.list_bidir_del_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h1void list_bidir_del_rcu (struct list_head *entry)h]j)}(h0void list_bidir_del_rcu(struct list_head *entry)h](j )}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhj=hKubjg)}(hlist_bidir_del_rcuh]jm)}(hlist_bidir_del_rcuh]hlist_bidir_del_rcu}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj=hKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj6}h]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_bidir_del_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)}(hentryh]hentry}(hj,>hhhNhNubah}(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)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hjV>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjS>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjn>jjn>jjjuh1hhhhj8hNhNubj)}(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)}(hjx>h]h Parameters}(hjz>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv>ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjr>ubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hj>h]hstruct list_head *entry}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj>ubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1jhjr>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.hhKhjr>ubh)}(hzIn contrast to list_del_rcu() doesn't poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().h]h|In contrast to list_del_rcu() doesn’t poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjr>ubh)}(h**Note**h]j)}(hj>h]hNote}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjr>ubh)}(hXlist_empty() on entry does not return true after this because the entry is in a special undefined state that permits RCU-based lockfree reverse traversal. In particular this means that we can not poison the forward and backwards pointers that may still be used for walking the list.h]hXlist_empty() on entry does not return true after this because the entry is in a special undefined state that permits RCU-based lockfree reverse traversal. In particular this means that we can not poison the forward and backwards pointers that may still be used for walking the list.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjr>ubh)}(hX[The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hX[The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjr>ubh)}(hTNote that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list.h]hTNote that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list.}(hj-?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjr>ubh)}(hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h]hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.}(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_del_init_rcu (C function)c.hlist_del_init_rcuhNtauh1hhj8hhhNhNubh)}(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}(hjk?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjg?hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjz?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg?hhhjy?hKubjg)}(hhlist_del_init_rcuh]jm)}(hhlist_del_init_rcuh]hhlist_del_init_rcu}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjg?hhhjy?hKubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hj6}h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(dhj?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_del_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)}(hjyh]hn}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubah}(h]h ]h"]h$]h&]jjuh1jhjg?hhhjy?hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjc?hhhjy?hKubah}(h]j^?ah ](jjeh"]h$]h&]jj)jhuh1hhjy?hKhj`?hhubj)}(hhh]h)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hj*@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj'@hhubah}(h]h ]h"]h$]h&]uh1jhj`?hhhjy?hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjB@jjB@jjjuh1hhhhj8hNhNubj)}(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)}(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:412: ./include/linux/rculist.hhKhjF@ubj)}(hhh]j)}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjk@h]hstruct hlist_node *n}(hjm@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji@ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhje@ubj)}(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&]uh1jhje@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhjb@ubah}(h]h ]h"]h$]h&]uh1jhjF@ubh)}(h**Note**h]j)}(hj@h]hNote}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjF@ubh)}(hlist_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.h]hlist_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjF@ubh)}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjF@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_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu().h]hX^The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu().}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjF@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_replace_rcu (C function)c.list_replace_rcuhNtauh1hhj8hhhNhNubh)}(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}(hj AhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjAhKubjg)}(hlist_replace_rcuh]jm)}(hlist_replace_rcuh]hlist_replace_rcu}(hj*AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&Aubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjAhKubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hj6}h]hstruct}(hjFAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBAubj)}(h h]h }(hjSAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBAubh)}(hhh]jm)}(h list_headh]h list_head}(hjdAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfAmodnameN classnameNjI jL )}jO ]jR )}jE j,Asbc.list_replace_rcuasbuh1hhjBAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBAubjm)}(holdh]hold}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>Aubj)}(hstruct list_head *newh](j)}(hj6}h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h list_headh]h list_head}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jAc.list_replace_rcuasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hnewh]hnew}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>Aubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhKubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhjAhKhj@hhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hj9BhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj6Bhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjAhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQBjjQBjjjuh1hhhhj8hNhNubj)}(hX|**Parameters** ``struct list_head *old`` the element to be replaced ``struct list_head *new`` the new element to insert **Description** The **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any. **Note** **old** should not be empty.h](h)}(h**Parameters**h]j)}(hj[Bh]h Parameters}(hj]BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjUBubj)}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hjzBh]hstruct list_head *old}(hj|BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxBubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjtBubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjtBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjqBubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hjBh]hstruct list_head *new}(hjBhhhNhNubah}(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.hhKhjBubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjqBubeh}(h]h ]h"]h$]h&]uh1jhjUBubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjUBubh)}(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 }(hjChhhNhNubj)}(h**old**h]hold}(hj ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh! entry will be replaced with the }(hjChhhNhNubj)}(h**new**h]hnew}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjUBubh)}(h**Note**h]j)}(hj9Ch]hNote}(hj;ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Cubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjUBubh)}(h**old** should not be empty.h](j)}(h**old**h]hold}(hjSChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOCubh should not be empty.}(hjOChhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjUBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__list_splice_init_rcu (C function)c.__list_splice_init_rcuhNtauh1hhj8hhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhjChM ubjg)}(h__list_splice_init_rcuh]jm)}(h__list_splice_init_rcuh]h__list_splice_init_rcu}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjChhhjChM ubj)}(h\(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj6}h]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(h list_headh]h list_head}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE jCsbc.__list_splice_init_rcuasbuh1hhjCubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hlisth]hlist}(hj"DhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct list_head *prevh](j)}(hj6}h]hstruct}(hj;DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Dubj)}(h h]h }(hjHDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Dubh)}(hhh]jm)}(h list_headh]h list_head}(hjYDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[DmodnameN classnameNjI jL )}jO ]jDc.__list_splice_init_rcuasbuh1hhj7Dubj)}(h h]h }(hjwDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Dubjm)}(hprevh]hprev}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct list_head *nexth](j)}(hj6}h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(h list_headh]h list_head}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jDc.__list_splice_init_rcuasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hnexth]hnext}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hj)EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hj'h]h(}(hj7EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjDEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hsynch]hsync}(hjQEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubj)}(hj(h]h)}(hj_EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hj'h]h(}(hjlEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj )}(hvoidh]hvoid}(hjyEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(hj(h]h)}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(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)}(h1join an RCU-protected list into an existing list.h]h1join an RCU-protected list into an existing list.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1hhhhj8hNhNubj)}(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)}(hjEh]h Parameters}(hjEhhhNhNubah}(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.hhM hjEubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjEh]hstruct list_head *list}(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.hhM hjEubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjFhM hjEubj)}(hK``struct list_head *prev`` points to the last element of the existing list h](j)}(h``struct list_head *prev``h]j)}(hj*Fh]hstruct list_head *prev}(hj,FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Fubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hj$Fubj)}(hhh]h)}(h/points to the last element of the existing listh]h/points to the last element of the existing list}(hjCFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?FhM hj@Fubah}(h]h ]h"]h$]h&]uh1jhj$Fubeh}(h]h ]h"]h$]h&]uh1jhj?FhM hjEubj)}(hL``struct list_head *next`` points to the first element of the existing list h](j)}(h``struct list_head *next``h]j)}(hjcFh]hstruct list_head *next}(hjeFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hj]Fubj)}(hhh]h)}(h0points to the first element of the existing listh]h0points to the first element of the existing list}(hj|FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxFhM hjyFubah}(h]h ]h"]h$]h&]uh1jhj]Fubeh}(h]h ]h"]h$]h&]uh1jhjxFhM hjEubj)}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j)}(h``void (*sync)(void)``h]j)}(hjFh]hvoid (*sync)(void)}(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.hhM hjFubj)}(hhh]h)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhM hjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjEubh)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjFhhhNhNubj)}(h**prev**h]hprev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh and }(hjFhhhNhNubj)}(h**next**h]hnext}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh; can be RCU-read traversed concurrently with this function.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjEubh)}(hNote that this function blocks.h]hNote that this function blocks.}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjEubh)}(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.}(hj/GhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!list_splice_init_rcu (C function)c.list_splice_init_rcuhNtauh1hhj8hhhNhNubh)}(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}(hj^GhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZGhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMEubj)}(h h]h }(hjmGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZGhhhjlGhMEubjg)}(hlist_splice_init_rcuh]jm)}(hlist_splice_init_rcuh]hlist_splice_init_rcu}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{Gubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZGhhhjlGhMEubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj6}h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h list_headh]h list_head}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.list_splice_init_rcuasbuh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hlisth]hlist}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct list_head *headh](j)}(hj6}h]hstruct}(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Hubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Hubh)}(hhh]jm)}(h list_headh]h list_head}(hj+HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(Hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-HmodnameN classnameNjI jL )}jO ]jGc.list_splice_init_rcuasbuh1hhj Hubj)}(h h]h }(hjIHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Hubj)}(hjh]h*}(hjWHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Hubjm)}(hheadh]hhead}(hjdHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj}HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyHubj)}(hj'h]h(}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyHubjm)}(hsynch]hsync}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyHubj)}(hj(h]h)}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyHubj)}(hj'h]h(}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyHubj )}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyHubj)}(hj(h]h)}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjZGhhhjlGhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVGhhhjlGhMEubah}(h]jQGah ](jjeh"]h$]h&]jj)jhuh1hhjlGhMEhjSGhhubj)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMEhjIhhubah}(h]h ]h"]h$]h&]uh1jhjSGhhhjlGhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*Ijj*Ijjjuh1hhhhj8hNhNubj)}(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)}(hj4Ih]h Parameters}(hj6IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Iubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMIhj.Iubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjSIh]hstruct list_head *list}(hjUIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQIubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMGhjMIubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjlIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhIhMGhjiIubah}(h]h ]h"]h$]h&]uh1jhjMIubeh}(h]h ]h"]h$]h&]uh1jhjhIhMGhjJIubj)}(hX``struct list_head *head`` the place in the existing list to splice the first list into h](j)}(h``struct list_head *head``h]j)}(hjIh]hstruct list_head *head}(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.hhMHhjIubj)}(hhh]h)}(hKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:Kubj)}(h h]h }(hjLKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:Kubj)}(hj'h]h(}(hjZKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Kubj)}(hjh]h*}(hjgKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Kubjm)}(hsynch]hsync}(hjtKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:Kubj)}(hj(h]h)}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Kubj)}(hj'h]h(}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Kubj )}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:Kubj)}(hj(h]h)}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTJubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhj-JhMTubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj-JhMTubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhj-JhMThjJhhubj)}(hhh]h)}(hHsplice an RCU-protected list into an existing list, designed for queues.h]hHsplice an RCU-protected list into an existing list, designed for queues.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMThjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhj-JhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhj8hNhNubj)}(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)}(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:412: ./include/linux/rculist.hhMXhjKubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjLh]hstruct list_head *list}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMVhjLubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hj-LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)LhMVhj*Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhj)LhMVhj Lubj)}(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)}(hjMLh]hstruct list_head *head}(hjOLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKLubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMWhjGLubj)}(hhh]h)}(hMhMchj8hhubj)}(hXg**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() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjKMh]h Parameters}(hjMMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMghjEMubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hjjMh]hptr}(hjlMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMdhjdMubj)}(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 ](j΅jc-typeeh"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅j list_headuh1hhjMhMdhjMubh pointer.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjMhMdhjMubah}(h]h ]h"]h$]h&]uh1jhjdMubeh}(h]h ]h"]h$]h&]uh1jhjMhMdhjaMubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjMh]htype}(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.hhMehjMubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMehjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMehjaMubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjMh]hmember}(hjNhhhNhNubah}(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.hhMfhjMubj)}(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&]uh1hhjNhMfhjNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjNhMfhjaMubeh}(h]h ]h"]h$]h&]uh1jhjEMubh)}(h**Description**h]j)}(hj:Nh]h Description}(hjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj8hhubj)}(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}(hjZPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjVPubah}(h]h ]h"]h$]h&]uh1jhjhPhMhj8hhubj)}(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)}(hjuPh]h Parameters}(hjwPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjoPubj)}(hhh](j)}(h ``head`` the head for the list. h](j)}(h``head``h]j)}(hjPh]hhead}(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)}(hthe head for the list.h]hthe head for the list.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(h5``ptr`` the list head to take the next element from. h](j)}(h``ptr``h]j)}(hjPh]hptr}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjPubj)}(hhh]h)}(h,the list head to take the next element from.h]h,the list head to take the next element from.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjQh]htype}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjQubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjPubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj?Qh]hmember}(hjAQhhhNhNubah}(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.hhMhj9Qubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjXQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTQhMhjUQubah}(h]h ]h"]h$]h&]uh1jhj9Qubeh}(h]h ]h"]h$]h&]uh1jhjTQhMhjPubeh}(h]h ]h"]h$]h&]uh1jhjoPubh)}(h**Description**h]j)}(hjzQh]h Description}(hj|QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjoPubh)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjoPubh)}(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().}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjoPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!list_for_each_entry_rcu (C macro)c.list_for_each_entry_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_rcuh]j)}(hlist_for_each_entry_rcuh]jg)}(hlist_for_each_entry_rcuh]jm)}(hjQh]hlist_for_each_entry_rcu}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(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&]jjjuh1jjjhjQhhhjQhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhjQhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjQhhhjQhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjQjjQjjjuh1hhhhj8hNhNubh)}(h8``list_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjRh]h4list_for_each_entry_rcu (pos, head, member, cond...)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj8hhubj)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjRubah}(h]h ]h"]h$]h&]uh1jhj,RhMhj8hhubj)}(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)}(hj9Rh]h Parameters}(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.hhMhj3Rubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjXRh]hpos}(hjZRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjRRubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjqRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmRhMhjnRubah}(h]h ]h"]h$]h&]uh1jhjRRubeh}(h]h ]h"]h$]h&]uh1jhjmRhMhjORubj)}(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&]uh1jhjRhMhjORubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjRh]hmember}(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 name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjORubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hjSh]hcond...}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjRubj)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjShMhjORubeh}(h]h ]h"]h$]h&]uh1jhj3Rubh)}(h**Description**h]j)}(hj>Sh]h Description}(hj@ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlockdep expression for the lock required to traverse the list.h]h>lockdep expression for the lock required to traverse the list.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]j)}(hjTh]h Description}(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.hhMhjSubh)}(hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h]hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_entry_lockless (C macro)c.list_entry_locklesshNtauh1hhj8hhhNhNubh)}(hhh](j)}(hlist_entry_locklessh]j)}(hlist_entry_locklessh]jg)}(hlist_entry_locklessh]jm)}(hj2Uh]hlist_entry_lockless}(hj**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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjUubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hjUh]hptr}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjUubj)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjUhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjUh]hstruct list_head}(hjUhhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅j list_headuh1hhjUhMhjUubh pointer.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjUubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjVh]htype}(hj VhhhNhNubah}(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.hhMhjVubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj7VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3VhMhj4Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj3VhMhjUubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjWVh]hmember}(hjYVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjQVubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjpVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlVhMhjmVubah}(h]h ]h"]h$]h&]uh1jhjQVubeh}(h]h ]h"]h$]h&]uh1jhjlVhMhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjUubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&list_for_each_entry_lockless (C macro)c.list_for_each_entry_locklesshNtauh1hhj8hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_locklessh]j)}(hlist_for_each_entry_locklessh]jg)}(hlist_for_each_entry_locklessh]jm)}(hjVh]hlist_for_each_entry_lockless}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjVhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhMhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjWjjWjjjuh1hhhhj8hNhNubh)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j)}(hj Wh]h0list_for_each_entry_lockless (pos, head, member)}(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.hhMhj8hhubj)}(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'WhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj#Wubah}(h]h ]h"]h$]h&]uh1jhj5WhMhj8hhubj)}(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)}(hjBWh]h Parameters}(hjDWhhhNhNubah}(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.hhMhj``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjch]hstruct hlist_node *n}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMrhjcubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMrhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMrhjcubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hjch]hstruct hlist_head *h}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMshjcubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMshjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMshjcubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMuhjcubh)}(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.}(hj1dhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMuhjcubh)}(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@dhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMxhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_add_tail_rcu (C function)c.hlist_add_tail_rcuhNtauh1hhj8hhhNhNubh)}(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}(hjodhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkdhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hj~dhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkdhhhj}dhMubjg)}(hhlist_add_tail_rcuh]jm)}(hhlist_add_tail_rcuh]hhlist_add_tail_rcu}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkdhhhj}dhMubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hj6}h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE jdsbc.hlist_add_tail_rcuasbuh1hhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hjyh]hn}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hstruct hlist_head *hh](j)}(hj6}h]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hj*ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hj;ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8eubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=emodnameN classnameNjI jL )}jO ]jdc.hlist_add_tail_rcuasbuh1hhjeubj)}(h h]h }(hjYehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjgehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hjX2h]hh}(hjtehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjkdhhhj}dhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjgdhhhj}dhMubah}(h]jbdah ](jjeh"]h$]h&]jj)jhuh1hhj}dhMhjddhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjddhhhj}dhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the element to add to the hash list. ``struct hlist_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(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.hhMhjeubj)}(hhh](j)}(h>``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjeh]hstruct hlist_node *n}(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.hhMhjeubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hjfh]hstruct hlist_head *h}(hj fhhhNhNubah}(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.hhMhjfubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj!fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjeubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjCfh]h Description}(hjEfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjeubh)}(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.}(hjYfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjeubh)}(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().}(hjhfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!hlist_add_before_rcu (C function)c.hlist_add_before_rcuhNtauh1hhj8hhhNhNubh)}(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}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjfhMubjg)}(hhlist_add_before_rcuh]jm)}(hhlist_add_before_rcuh]hhlist_add_before_rcu}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjfhMubj)}(h/(struct hlist_node *n, struct hlist_node *next)h](j)}(hstruct hlist_node *nh](j)}(hj6}h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jR )}jE jfsbc.hlist_add_before_rcuasbuh1hhjfubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hj ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hjyh]hn}(hj-ghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct hlist_node *nexth](j)}(hj6}h]hstruct}(hjEghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAgubj)}(h h]h }(hjRghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAgubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjcghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`gubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjegmodnameN classnameNjI jL )}jO ]jgc.hlist_add_before_rcuasbuh1hhjAgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAgubjm)}(hnexth]hnext}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhjfhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhj8hNhNubj)}(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)}(hjgh]h Parameters}(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.hhMhjgubj)}(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)}(hjgh]hstruct hlist_node *n}(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 new element to add to the hash list.h]h(the new element to add to the hash list.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhMhjhubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhj hhMhjgubj)}(hP``struct hlist_node *next`` the existing element to add the new element before. h](j)}(h``struct hlist_node *next``h]j)}(hj1hh]hstruct hlist_node *next}(hj3hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj+hubj)}(hhh]h)}(h3the existing element to add the new element before.h]h3the existing element to add the new element before.}(hjJhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhhMhjGhubah}(h]h ]h"]h$]h&]uh1jhj+hubeh}(h]h ]h"]h$]h&]uh1jhjFhhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]j)}(hjlhh]h Description}(hjnhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubh)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!hlist_add_behind_rcu (C function)c.hlist_add_behind_rcuhNtauh1hhj8hhhNhNubh)}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjhhMubjg)}(hhlist_add_behind_rcuh]jm)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjhhMubj)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j)}(hstruct hlist_node *nh](j)}(hj6}h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hj ihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.hlist_add_behind_rcuasbuh1hhjhubj)}(h h]h }(hj;ihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjIihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hjyh]hn}(hjVihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hstruct hlist_node *prevh](j)}(hj6}h]hstruct}(hjnihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjiubj)}(h h]h }(hj{ihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjiubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]j7ic.hlist_add_behind_rcuasbuh1hhjjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjiubjm)}(hprevh]hprev}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjhhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj8hNhNubj)}(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)}(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:412: ./include/linux/rculist.hhMhjiubj)}(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!jh]hstruct hlist_node *n}(hj#jhhhNhNubah}(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 new element to add to the hash list.h]h(the new element to add to the hash list.}(hj:jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6jhMhj7jubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhj6jhMhjjubj)}(hO``struct hlist_node *prev`` the existing element to add the new element after. h](j)}(h``struct hlist_node *prev``h]j)}(hjZjh]hstruct hlist_node *prev}(hj\jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjTjubj)}(hhh]h)}(h2the existing element to add the new element after.h]h2the existing element to add the new element after.}(hjsjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjojhMhjpjubah}(h]h ]h"]h$]h&]uh1jhjTjubeh}(h]h ]h"]h$]h&]uh1jhjojhMhjjubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjiubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjiubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlist_for_each_entry_rcu (C macro)c.hlist_for_each_entry_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_rcuh]j)}(hhlist_for_each_entry_rcuh]jg)}(hhlist_for_each_entry_rcuh]jm)}(hjjh]hhlist_for_each_entry_rcu}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjkhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjkhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjkjjkjjjuh1hhhhj8hNhNubh)}(h9``hlist_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjkh]h5hlist_for_each_entry_rcu (pos, head, member, cond...)}(hj!khhhNhNubah}(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.hhMhj8hhubj)}(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}(hj9khhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj5kubah}(h]h ]h"]h$]h&]uh1jhjGkhMhj8hhubj)}(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)}(hjTkh]h Parameters}(hjVkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjNkubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjskh]hpos}(hjukhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqkubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjmkubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjmkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjkubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjkh]hhead}(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)}(hthe head for your list.h]hthe head for your list.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjkubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjkh]hmember}(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-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjkubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hjlh]hcond...}(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>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hj7lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3lhMhj4lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj3lhMhjjkubeh}(h]h ]h"]h$]h&]uh1jhjNkubh)}(h**Description**h]j)}(hjYlh]h Description}(hj[lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjNkubh)}(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().}(hjolhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjNkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#hlist_for_each_entry_srcu (C macro)c.hlist_for_each_entry_srcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_srcuh]j)}(hhlist_for_each_entry_srcuh]jg)}(hhlist_for_each_entry_srcuh]jm)}(hjlh]hhlist_for_each_entry_srcu}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1hhhhj8hNhNubh)}(h7``hlist_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hjlh]h3hlist_for_each_entry_srcu (pos, head, member, cond)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj8hhubj)}(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.hhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlhMhj8hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. ``cond`` lockdep expression for the lock required to traverse the list. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h](h)}(h**Parameters**h]j)}(hj mh]h Parameters}(hj mhhhNhNubah}(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,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj(mh]hpos}(hj*mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&mubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj"mubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjAmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=mhMhj>mubah}(h]h ]h"]h$]h&]uh1jhj"mubeh}(h]h ]h"]h$]h&]uh1jhj=mhMhjmubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjamh]hhead}(hjcmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_mubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj[mubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjzmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvmhMhjwmubah}(h]h ]h"]h$]h&]uh1jhj[mubeh}(h]h ]h"]h$]h&]uh1jhjvmhMhjmubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjmh]hmember}(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)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hjmh]hcond}(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)}(h>lockdep expression for the lock required to traverse the list.h]h>lockdep expression for the lock required to traverse the list.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjmubh)}(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.}(hj$nhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*hlist_for_each_entry_rcu_notrace (C macro)"c.hlist_for_each_entry_rcu_notracehNtauh1hhj8hhhNhNubh)}(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)}(hjMnh]h hlist_for_each_entry_rcu_notrace}(hjWnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOnhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjKnhhhjjnhMubah}(h]jFnah ](jjeh"]h$]h&]jj)jhuh1hhjjnhMhjHnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHnhhhjjnhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1hhhhj8hNhNubh)}(h8``hlist_for_each_entry_rcu_notrace (pos, head, member)``h]j)}(hjnh]h4hlist_for_each_entry_rcu_notrace (pos, head, member)}(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.hhMhj8hhubj)}(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)}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnhMhj8hhubj)}(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)}(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.hhMhjnubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjnh]hpos}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjnubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjnubj)}(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.}(hj/ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ohMhj,oubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhj+ohMhjnubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjOoh]hmember}(hjQohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMoubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjIoubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdohMhjeoubah}(h]h ]h"]h$]h&]uh1jhjIoubeh}(h]h ]h"]h$]h&]uh1jhjdohMhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(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.hhMhjnubh)}(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().}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjnubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM!hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_for_each_entry_rcu_bh (C macro)c.hlist_for_each_entry_rcu_bhhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_rcu_bhh]j)}(hhlist_for_each_entry_rcu_bhh]jg)}(hhlist_for_each_entry_rcu_bhh]jm)}(hjoh]hhlist_for_each_entry_rcu_bh}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM-ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohM-ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohM-hjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjohM-ubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhj8hNhNubh)}(h3``hlist_for_each_entry_rcu_bh (pos, head, member)``h]j)}(hjph]h/hlist_for_each_entry_rcu_bh (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.hhM/hj8hhubj)}(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.phhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM-hj*pubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]jjjuh1jjjhjRqhhhjqqhM>ubah}(h]jMqah ](jjeh"]h$]h&]jj)jhuh1hhjqqhM>hjOqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOqhhhjqqhM>ubeh}(h]h ](jmacroeh"]h$]h&]jjjjqjjqjjjuh1hhhhj8hNhNubh)}(h3``hlist_for_each_entry_continue_rcu (pos, member)``h]j)}(hjqh]h/hlist_for_each_entry_continue_rcu (pos, member)}(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.hhM@hj8hhubj)}(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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM>hjqubah}(h]h ]h"]h$]h&]uh1jhjqhM>hj8hhubj)}(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)}(hjqh]h Parameters}(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.hhMBhjqubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjqh]hpos}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM?hjqubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM?hjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhM?hjqubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjrh]hmember}(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.hhMAhjrubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj6rhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM@hj3rubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhj2rhMAhjqubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(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_bhhNtauh1hhj8hhhNhNubh)}(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)}(hjqrh]h$hlist_for_each_entry_continue_rcu_bh}(hj{rhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjsrhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhjorhhhjrhMJubah}(h]jjrah ](jjeh"]h$]h&]jj)jhuh1hhjrhMJhjlrhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlrhhhjrhMJubeh}(h]h ](jmacroeh"]h$]h&]jjjjrjjrjjjuh1hhhhj8hNhNubh)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j)}(hjrh]h2hlist_for_each_entry_continue_rcu_bh (pos, member)}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMLhj8hhubj)}(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}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJhjrubah}(h]h ]h"]h$]h&]uh1jhjrhMJhj8hhubj)}(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)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMNhjrubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjsh]hpos}(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.hhMKhjrubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMKhjsubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjshMKhjrubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hj:sh]hmember}(hjyhK9hj?yubah}(h]h ]h"]h$]h&]uh1jhj#yubeh}(h]h ]h"]h$]h&]uh1jhj>yhK9hj yubah}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Note**h]j)}(hjdyh]hNote}(hjfyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbyubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK;hjyubh)}(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.}(hjzyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK;hjyubh)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK?hjyubh)}(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().}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKBhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_add_head_rcu (C function)c.hlist_nulls_add_head_rcuhNtauh1hhj8hhhNhNubh)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKQubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyhhhjyhKQubjg)}(hhlist_nulls_add_head_rcuh]jm)}(hhlist_nulls_add_head_rcuh]hhlist_nulls_add_head_rcu}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjyhKQubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hj6}h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj"zhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$zmodnameN classnameNjI jL )}jO ]jR )}jE jysbc.hlist_nulls_add_head_rcuasbuh1hhjzubj)}(h h]h }(hjBzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubj)}(hjh]h*}(hjPzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjm)}(hjyh]hn}(hj]zhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hstruct hlist_nulls_head *hh](j)}(hj6}h]hstruct}(hjuzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqzubh)}(hhh]jm)}(hhlist_nulls_headh]hhlist_nulls_head}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]j>zc.hlist_nulls_add_head_rcuasbuh1hhjqzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqzubjm)}(hjX2h]hh}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjyhKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhKQubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjyhKQhjyhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhjyhKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhj8hNhNubj)}(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)}(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.hhKUhj{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)}(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.hhKRhj!{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<{hKRhj={ubah}(h]h ]h"]h$]h&]uh1jhj!{ubeh}(h]h ]h"]h$]h&]uh1jhj<{hKRhj{ubj)}(h3``struct hlist_nulls_head *h`` the list to add to. h](j)}(h``struct hlist_nulls_head *h``h]j)}(hj`{h]hstruct hlist_nulls_head *h}(hjb{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.hhKShjZ{ubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjy{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju{hKShjv{ubah}(h]h ]h"]h$]h&]uh1jhjZ{ubeh}(h]h ]h"]h$]h&]uh1jhju{hKShj{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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKUhj{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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKUhj{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.hhKXhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_add_tail_rcu (C function)c.hlist_nulls_add_tail_rcuhNtauh1hhj8hhhNhNubh)}(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}(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.hhKpubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhj{hKpubjg)}(hhlist_nulls_add_tail_rcuh]jm)}(hhlist_nulls_add_tail_rcuh]hhlist_nulls_add_tail_rcu}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj |ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhj{hKpubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hj6}h]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)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjJ|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjL|modnameN classnameNjI jL )}jO ]jR )}jE j|sbc.hlist_nulls_add_tail_rcuasbuh1hhj(|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)}(hjyh]hn}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$|ubj)}(hstruct hlist_nulls_head *hh](j)}(hj6}h]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_headh]hhlist_nulls_head}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jf|c.hlist_nulls_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)}(hjX2h]hh}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$|ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhj{hKpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhj{hKpubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hKphj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhj{hKpubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&}jj&}jjjuh1hhhhj8hNhNubj)}(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)}(hj0}h]h Parameters}(hj2}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.hhKthj*}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)}(hjO}h]hstruct hlist_nulls_node *n}(hjQ}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM}ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKqhjI}ubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjh}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd}hKqhje}ubah}(h]h ]h"]h$]h&]uh1jhjI}ubeh}(h]h ]h"]h$]h&]uh1jhjd}hKqhjF}ubj)}(h3``struct hlist_nulls_head *h`` the list to add to. h](j)}(h``struct hlist_nulls_head *h``h]j)}(hj}h]hstruct hlist_nulls_head *h}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKrhj}ubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKrhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hKrhjF}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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKthj*}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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKthj*}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.hhKwhj*}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(hlist_nulls_for_each_entry_rcu (C macro) c.hlist_nulls_for_each_entry_rcuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hhlist_nulls_for_each_entry_rcuh]j)}(hhlist_nulls_for_each_entry_rcuh]jg)}(hhlist_nulls_for_each_entry_rcuh]jm)}(hj~h]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&]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&]jjjjG~jjG~jjjuh1hhhhj8hNhNubh)}(h<``hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)``h]j)}(hjM~h]h8hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)}(hjO~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK~ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj8hhubj)}(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}(hjg~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjc~ubah}(h]h ]h"]h$]h&]uh1jhju~hKhj8hhubj)}(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)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj|~ubj)}(hhh](j)}(h-``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.}(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)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj~h]hpos}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj~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)}(hj~h]hstruct hlist_nulls_node}(hj~hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jhlist_nulls_nodeuh1hhj~hKhj~ubh to use as a loop cursor.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj~hKhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj~ubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hj6h]hhead}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj0ubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj~ubj)}(h?``member`` the name of the hlist_nulls_node within the struct. h](j)}(h ``member``h]j)}(hjoh]hmember}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjiubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhKhj~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.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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj|~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)hlist_nulls_for_each_entry_safe (C macro)!c.hlist_nulls_for_each_entry_safehNtauh1hhj8hhhNhNubh)}(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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(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.hhKhj8hhubj)}(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}(hj?hhhNhNubah}(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&]uh1jhjMhKhj8hhubj)}(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)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjTubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjyh]htpos}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjsubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhKhjpubj)}(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 }(hjˀhhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hjՀh]hstruct hlist_nulls_node}(hj׀hhhNhNubah}(h]h ](j΅jc-typeeh"]h$]h&]uh1jhjӀubah}(h]h ]h"]h$]h&]refdocjJ9 refdomainjreftypetype refexplicitrefwarnjI j߅jhlist_nulls_nodeuh1hhjǀhKhjˀubh to use as a loop cursor.}(hjˀhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjǀhKhjȀubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǀhKhjpubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(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)}(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#hKhjpubj)}(h>``member`` the name of the hlist_nulls_node within the struct.h](j)}(h ``member``h]j)}(hjGh]hmember}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjAubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hj`hhhNhNubah}(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&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjpubeh}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_is_idle (C function)c.rcu_sync_is_idlehNtauh1hhj8hhhNhNubh)}(hhh](j)}(h,bool rcu_sync_is_idle (struct rcu_sync *rsp)h]j)}(h+bool rcu_sync_is_idle(struct rcu_sync *rsp)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hrcu_sync_is_idleh]jm)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hj݁hhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jÁsbc.rcu_sync_is_idleasbuh1hhjفubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjفubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjفubjm)}(hrsph]hrsp}(hj6hhhNhNubah}(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-Are readers permitted to use their fastpaths?h]h-Are readers permitted to use their fastpaths?}(hj`hhhNhNubah}(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&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhj8hNhNubj)}(h**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** Returns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.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)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(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: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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_init (C function)c.rcu_sync_inithNtauh1hhj8hhhNhNubh)}(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 hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj/hKubjg)}(h rcu_sync_inith]jm)}(h rcu_sync_inith]h rcu_sync_init}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE jDsbc.rcu_sync_initasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(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 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.chKhjރhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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.chKhjubj)}(hhh]h)}(h/Pointer to rcu_sync structure to be initializedh]h/Pointer to rcu_sync structure to be initialized}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_func (C function)c.rcu_sync_funchNtauh1hhj8hhhNhNubh)}(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 hjxhhhV/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&]uh1jhjxhhhjhK#ubjg)}(h rcu_sync_funch]jm)}(h rcu_sync_funch]h rcu_sync_func}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhK#ubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hj6}h]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}(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_funcasbuh1hhjubj)}(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhK#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhK#ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhK#hjqhhubj)}(hhh]h)}(h4Callback function managing reader access to fastpathh]h4Callback function managing reader access to fastpath}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK#hj9hhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhj8hNhNubj)}(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)}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK'hjXubj)}(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}(hjhhhNhNubah}(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$hjwubj)}(hhh]h)}(hDPointer to rcu_head in rcu_sync structure to use for synchronizationh]hDPointer to rcu_head in rcu_sync structure to use for synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjtubah}(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:418: ./kernel/rcu/sync.chK&hjXubh)}(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%hjXubh)}(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.}(hj݅hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK)hjXubh)}(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,hjXubh)}(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.chK0hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_enter (C function)c.rcu_sync_enterhNtauh1hhj8hhhNhNubh)}(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 }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhj8hK[ubjg)}(hrcu_sync_enterh]jm)}(hrcu_sync_enterh]hrcu_sync_enter}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj8hK[ubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(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 jMsbc.rcu_sync_enterasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubah}(h]h ]h"]h$]h&]jjuh1jhj&hhhj8hK[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj8hK[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hK[hjhhubj)}(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&]uh1jhjhhhj8hK[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths. When called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(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)}(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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hK\hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hK\hj"ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_exit (C function)c.rcu_sync_exithNtauh1hhj8hhhNhNubh)}(hhh](j)}(h)void rcu_sync_exit (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_exit(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjɇhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjȇhKubjg)}(h rcu_sync_exith]jm)}(h rcu_sync_exith]h rcu_sync_exit}(hjۇhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjׇubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjȇhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]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 j݇sbc.rcu_sync_exitasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(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&]jjuh1jhjhhhjȇhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjȇhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjȇhKhjhhubj)}(hhh]h)}(h4Allow readers back onto fast path after grace periodh]h4Allow readers back onto fast path after grace period}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjȇhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** This function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubj)}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(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)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjԈhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjЈhKhjшubah}(h]h ]h"]h$]h&]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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubh)}(hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.h]hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_dtor (C function)c.rcu_sync_dtorhNtauh1hhj8hhhNhNubh)}(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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhjIhKubjg)}(h rcu_sync_dtorh]jm)}(h rcu_sync_dtorh]h rcu_sync_dtor}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhjIhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj6}h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(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 j^sbc.rcu_sync_dtorasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjĉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hrsph]hrsp}(hjщhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhjIhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjIhKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhKhj0hhubj)}(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&]uh1jhj0hhhjIhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hY**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](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)}(hG``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](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.chKhj6ubj)}(hhh]h)}(h.Pointer to rcu_sync structure to be cleaned uph]h.Pointer to rcu_sync structure to be cleaned up}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_tasks_percpu (C struct)c.rcu_tasks_percpuhNtauh1hhj8hhhNhNubh)}(hhh](j)}(hrcu_tasks_percpuh]j)}(hstruct rcu_tasks_percpuh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hrcu_tasks_percpuh]jm)}(hjh]hrcu_tasks_percpu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(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.}(hj؊hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjՊhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hX **Definition**:: struct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t __private 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 __private 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 __private 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; };}hjsbah}(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)}(hjEh]hcblist}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj?ubj)}(hhh]h)}(hCallback list.h]hCallback list.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKhj<ubj)}(h0``lock`` Lock protecting per-CPU callback list. h](j)}(h``lock``h]j)}(hj~h]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjxubj)}(hhh]h)}(h&Lock protecting per-CPU callback list.h]h&Lock protecting per-CPU callback list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhKhj<ubj)}(h6``rtp_jiffies`` Jiffies counter value for statistics. h](j)}(h``rtp_jiffies``h]j)}(hjh]h rtp_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj)}(hhh]h)}(h%Jiffies counter value for statistics.h]h%Jiffies counter value for statistics.}(hjЋhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̋hKhj͋ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̋hKhj<ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj<ubj)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj<ubj)}(h;``urgent_gp`` Number of additional non-lazy grace periods. h](j)}(h ``urgent_gp``h]j)}(hjbh]h urgent_gp}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj\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&]uh1hhjwhKhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhj<ubj)}(h0``rtp_work`` Work queue for invoking callbacks. h](j)}(h ``rtp_work``h]j)}(hjh]hrtp_work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK hjubj)}(hhh]h)}(h"Work queue for invoking callbacks.h]h"Work queue for invoking callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hj<ubj)}(h6``rtp_irq_work`` IRQ work queue for deferred wakeups. h](j)}(h``rtp_irq_work``h]j)}(hjԌh]h rtp_irq_work}(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$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!hj<ubj)}(h7``barrier_q_head`` RCU callback for barrier operation. h](j)}(h``barrier_q_head``h]j)}(hj h]hbarrier_q_head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK"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"hj<ubj)}(h5``rtp_blkd_tasks`` List of tasks blocked as readers. h](j)}(h``rtp_blkd_tasks``h]j)}(hjFh]hrtp_blkd_tasks}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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!List of tasks blocked as readers.h]h!List of tasks blocked as readers.}(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)}(hD``rtp_exit_list`` List of tasks in the latter portion of do_exit(). h](j)}(h``rtp_exit_list``h]j)}(hjh]h rtp_exit_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK$hjyubj)}(hhh]h)}(h1List of tasks in the latter portion of do_exit().h]h1List of tasks in the latter portion of do_exit().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhK$hj<ubj)}(h0``cpu`` CPU number corresponding to this entry. h](j)}(h``cpu``h]j)}(hjh]hcpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK%hjubj)}(hhh]h)}(h'CPU number corresponding to this entry.h]h'CPU number corresponding to this entry.}(hjэhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj͍hK%hj΍ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͍hK%hj<ubj)}(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)}(hjh]hMembers}(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.hhKehjubj)}(hhh](j)}(hJ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. h](j)}(h ``cbs_wait``h]j)}(hj3h]hcbs_wait}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjubj)}(hhh]h)}(h@Mutex protecting grace period, needed during mid-boot dead zone.h]h@Mutex protecting grace period, needed during mid-boot dead zone.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hj*ubj)}(hF``gp_state`` Grace period's most recent state transition (debugging). h](j)}(h ``gp_state``h]j)}(hjޏh]hgp_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܏ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK@hj؏ubj)}(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&]uh1jhj؏ubeh}(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)}(hjh]hgp_sleep}(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.hhKAhjubj)}(hhh]h)}(h4Per-grace-period sleep to prevent CPU-bound looping.h]h4Per-grace-period sleep to prevent CPU-bound looping.}(hj0hhhNhNubah}(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)}(hjPh]h init_fract}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKBhjJubj)}(hhh]h)}(hInitial backoff sleep interval.h]hInitial backoff sleep interval.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehKBhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKBhj*ubj)}(h5``gp_jiffies`` Time of last **gp_state** transition. h](j)}(h``gp_jiffies``h]j)}(hjh]h gp_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKChjubj)}(hhh]h)}(h%Time of last **gp_state** transition.h](h Time of last }(hjhhhNhNubj)}(h **gp_state**h]hgp_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh transition.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKChj*ubj)}(h8``gp_start`` Most recent grace-period start in jiffies. h](j)}(h ``gp_start``h]j)}(hjԐh]hgp_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.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)}(hj h]h tasks_gp_seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.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)}(hjFh]hn_ipis}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKFhj@ubj)}(hhh]h)}(h6Number of IPIs sent to encourage grace periods to end.h]h6Number of IPIs sent to encourage grace periods to end.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKFhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(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)}(hjh]h n_ipis_fails}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKGhjyubj)}(hhh]h)}(hNumber of IPI-send failures.h]hNumber of IPI-send failures.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKGhj*ubj)}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j)}(h``kthread_ptr``h]j)}(hjh]h kthread_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKHhjubj)}(hhh]h)}(h7This flavor's grace-period/callback-invocation kthread.h]h9This flavor’s grace-period/callback-invocation kthread.}(hjёhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj͑hKHhjΑubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.}(hj hhhNhNubah}(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.}(hjChhhNhNubah}(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)}(hC``pregp_func`` This flavor's pre-grace-period function (optional). h](j)}(h``pregp_func``h]j)}(hjch]h pregp_func}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.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&]uh1hhjxhKJhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKJhj*ubj)}(hB``pertask_func`` This flavor's per-task scan function (optional). h](j)}(h``pertask_func``h]j)}(hjh]h pertask_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKKhjubj)}(hhh]h)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKKhj*ubj)}(hD``postscan_func`` This flavor's post-task scan function (optional). h](j)}(h``postscan_func``h]j)}(hjՒh]h postscan_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.hhKLhjϒubj)}(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&]uh1jhjϒubeh}(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&]uh1jhj ubah}(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)}(hjGh]h postgp_func}(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.hhKNhjAubj)}(hhh]h)}(h4This flavor's post-grace-period function (optional).h]h6This flavor’s post-grace-period function (optional).}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKNhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(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)}(hjh]h call_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKOhjzubj)}(hhh]h)}(h-This flavor's call_rcu()-equivalent function.h]h/This flavor’s call_rcu()-equivalent function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhKOhj*ubj)}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j)}(h``wait_state``h]j)}(hjh]h wait_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKPhjubj)}(hhh]h)}(hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).h]hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).}(hjғhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjΓhKPhjϓubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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.}(hj hhhNhNubah}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKRhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKRhj*ubj)}(hO``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. h](j)}(h``percpu_enqueue_shift``h]j)}(hjdh]hpercpu_enqueue_shift}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKShj^ubj)}(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&]uh1hhjyhKShjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKShj*ubj)}(hO``percpu_enqueue_lim`` Number of per-CPU callback queues in use for enqueuing. h](j)}(h``percpu_enqueue_lim``h]j)}(hjh]hpercpu_enqueue_lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKThjubj)}(hhh]h)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKThj*ubj)}(hO``percpu_dequeue_lim`` Number of per-CPU callback queues in use for dequeuing. h](j)}(h``percpu_dequeue_lim``h]j)}(hj֔h]hpercpu_dequeue_lim}(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.hhKUhjДubj)}(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&]uh1jhjДubeh}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKVhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKVhj*ubj)}(h2``barrier_q_mutex`` Serialize barrier operations. h](j)}(h``barrier_q_mutex``h]j)}(hjHh]hbarrier_q_mutex}(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.hhKWhjBubj)}(hhh]h)}(hSerialize barrier operations.h]hSerialize barrier operations.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKWhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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)}(hjh]hbarrier_q_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKXhj{ubj)}(hhh]h)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKXhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKXhj*ubj)}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j)}(h``barrier_q_completion``h]j)}(hjh]hbarrier_q_completion}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKYhjubj)}(hhh]h)}(hBarrier wait/wakeup mechanism.h]hBarrier wait/wakeup mechanism.}(hjӕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϕhKYhjЕubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjϕhKYhj*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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhj ubah}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhK[hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhK[hj*ubj)}(h%``name`` This flavor's textual name. h](j)}(h``name``h]j)}(hjeh]hname}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK\hj_ubj)}(hhh]h)}(hThis flavor's textual name.h]hThis flavor’s textual name.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhK\hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhK\hj*ubj)}(h%``kname`` This flavor's kthread name.h](j)}(h ``kname``h]j)}(hjh]hkname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK\hjubj)}(hhh]h)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hj*ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu_tasks (C function)c.call_rcu_taskshNtauh1hhj8hhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hj6}h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.call_rcu_tasksasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(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 ]joc.call_rcu_tasksasbuh1hhjubj)}(h h]h }(hjȗhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfunch]hfunc}(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)}(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&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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.hhMhjubj)}(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)}(hjAh]hstruct rcu_head *rhp}(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.hhMhj;ubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjzh]hrcu_callback_t func}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjtubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhj8ubeh}(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.hhMhjubh)}(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.hhMhjubh)}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"synchronize_rcu_tasks (C function)c.synchronize_rcu_taskshNtauh1hhj8hhhNhNubh)}(hhh](j)}(h!void synchronize_rcu_tasks (void)h]j)}(h void synchronize_rcu_tasks(void)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(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)}(hsynchronize_rcu_tasksh]jm)}(hsynchronize_rcu_tasksh]hsynchronize_rcu_tasks}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBubah}(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)}(h1wait until an rcu-tasks grace period has elapsed.h]h1wait until an rcu-tasks grace period has elapsed.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hX7**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.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ƙ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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubh)}(hXControl will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched().h]hXControl will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hj hhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_barrier_tasks (C function)c.rcu_barrier_taskshNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_barrier_tasks (void)h]j)}(hvoid rcu_barrier_tasks(void)h](j )}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhW/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&]uh1jhjKhhhj]hMubjg)}(hrcu_barrier_tasksh]jm)}(hrcu_barrier_tasksh]hrcu_barrier_tasks}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhj]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&]jjuh1jhjKhhhj]hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj]hMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj]hMhjDhhubj)}(hhh]h)}(h.Wait for in-flight call_rcu_tasks() callbacks.h]h.Wait for in-flight call_rcu_tasks() callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjΚjjΚjjjuh1hhhhj8hNhNubj)}(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)}(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)}(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&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjҚubh)}(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.}(hjHhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'synchronize_rcu_tasks_rude (C function)c.synchronize_rcu_tasks_rudehNtauh1hhj8hhhNhNubh)}(hhh](j)}(h&void synchronize_rcu_tasks_rude (void)h]j)}(h%void synchronize_rcu_tasks_rude(void)h](j )}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhMpubjg)}(hsynchronize_rcu_tasks_rudeh]jm)}(hsynchronize_rcu_tasks_rudeh]hsynchronize_rcu_tasks_rude}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhMpubj)}(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&]jjuh1jhjshhhjhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhMpubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhMphjlhhubj)}(hhh]h)}(h&wait for a rude rcu-tasks grace periodh]h&wait for a rude rcu-tasks grace period}(hjޛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMphjۛhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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.hhMthjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hKhjubah}(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&]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().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMqhjubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMxhjubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!call_rcu_tasks_trace (C function)c.call_rcu_tasks_tracehNtauh1hhj8hhhNhNubh)}(hhh](j)}(hEvoid call_rcu_tasks_trace (struct rcu_head *rhp, rcu_callback_t func)h]j)}(hDvoid call_rcu_tasks_trace(struct rcu_head *rhp, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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)}(hcall_rcu_tasks_traceh]jm)}(hcall_rcu_tasks_traceh]hcall_rcu_tasks_trace}(hjޜhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڜubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj˜hMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hj6}h]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.call_rcu_tasks_traceasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrhph]hrhp}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]j4c.call_rcu_tasks_traceasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(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.Queue a callback trace task-based grace periodh]h.Queue a callback trace task-based grace period}(hjŝhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj˜hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjݝjjݝjjjuh1hhhhj8hNhNubj)}(hX^**Parameters** ``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a trace rcu-tasks grace period elapses, in other words after all currently executing trace rcu-tasks read-side critical sections have completed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace(). See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(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)}(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.}(hjhhhNhNubah}(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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj9ubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubeh}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubh)}(hX5The callback function will be invoked some time after a trace rcu-tasks grace period elapses, in other words after all currently executing trace rcu-tasks read-side critical sections have completed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().h]hX5The callback function will be invoked some time after a trace rcu-tasks grace period elapses, in other words after all currently executing trace rcu-tasks read-side critical sections have completed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubh)}(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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(synchronize_rcu_tasks_trace (C function)c.synchronize_rcu_tasks_tracehNtauh1hhj8hhhNhNubh)}(hhh](j)}(h'void synchronize_rcu_tasks_trace (void)h]j)}(h&void synchronize_rcu_tasks_trace(void)h](j )}(hvoidh]hvoid}(hjΞhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjʞhhhW/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&]uh1jhjʞhhhjܞhMubjg)}(hsynchronize_rcu_tasks_traceh]jm)}(hsynchronize_rcu_tasks_traceh]hsynchronize_rcu_tasks_trace}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjʞhhhjܞhMubj)}(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&]jjuh1jhjʞhhhjܞhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjƞhhhjܞhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjܞhMhjÞhhubj)}(hhh]h)}(h'wait for a trace rcu-tasks grace periodh]h'wait for a trace rcu-tasks grace period}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjÞhhhjܞhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhj8hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_trace() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjQubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjvh]hvoid}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjpubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhKhjmubah}(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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjQubh)}(hX3Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().h]hX3Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().}(hjǟhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjQubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_trace() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_trace() function is not (yet) intended for heavy use from multiple CPUs.}(hj֟hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjQubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$rcu_barrier_tasks_trace (C function)c.rcu_barrier_tasks_tracehNtauh1hhj8hhhNhNubh)}(hhh](j)}(h#void rcu_barrier_tasks_trace (void)h]j)}(h"void rcu_barrier_tasks_trace(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)}(hrcu_barrier_tasks_traceh]jm)}(hrcu_barrier_tasks_traceh]hrcu_barrier_tasks_trace}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj"hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubah}(h]h ]h"]h$]h&]noemphjjuh1jhjIubah}(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)}(h4Wait for in-flight call_rcu_tasks_trace() callbacks.h]h4Wait for in-flight call_rcu_tasks_trace() callbacks.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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}(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&]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.}(hj hhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_cpu_stall_reset (C function)c.rcu_cpu_stall_resethNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_cpu_stall_reset (void)h]j)}(hvoid rcu_cpu_stall_reset(void)h](j )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhjJhKubjg)}(hrcu_cpu_stall_reseth]jm)}(hrcu_cpu_stall_reseth]hrcu_cpu_stall_reset}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhjJhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhKubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhKhj1hhubj)}(hhh]h)}(h6restart stall-warning timeout for current grace periodh]h6restart stall-warning timeout for current grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hXg**Parameters** ``void`` no arguments **Description** To perform the reset request from the caller, disable stall detection until 3 fqs loops have passed. This is required to ensure a fresh jiffies is loaded. It should be safe to do from the fqs loop as enough timer interrupts and context switches should have passed. The caller must disable hard irqs.h](h)}(h**Parameters**h]j)}(hjšh]h Parameters}(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: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.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)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.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.}(hj5hhhNhNubah}(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.}(hjDhhhNhNubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.rcu_stall_chain_notifier_register (C function)#c.rcu_stall_chain_notifier_registerhNtauh1hhj8hhhNhNubh)}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjhMmubjg)}(h!rcu_stall_chain_notifier_registerh]jm)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjhMmubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(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_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMmubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjhhhubj)}(hhh]h)}(hAdd an RCU CPU stall notifierh]hAdd an RCU CPU stall notifier}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMmhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1hhhhj8hNhNubj)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMqhjNubj)}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hjsh]hstruct notifier_block *n}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMnhjmubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjjubah}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMphjNubh)}(hAdds an RCU CPU stall notifier to an atomic notifier chain. The **action** passed to a notifier will be **RCU_STALL_NOTIFY_NORM** or friends. The **data** will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.h](h@Adds an RCU CPU stall notifier to an atomic notifier chain. The }(hjģhhhNhNubj)}(h **action**h]haction}(hj̣hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjģubh passed to a notifier will be }(hjģhhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjޣhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjģubh or friends. The }(hjģhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjģubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hjģhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMohjNubh)}(h+Returns 0 on success, ``-EEXIST`` on error.h](hReturns 0 on success, }(hj hhhNhNubj)}(h ``-EEXIST``h]h-EEXIST}(hjhhhNhNubah}(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.hhMthjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h0rcu_stall_chain_notifier_unregister (C function)%c.rcu_stall_chain_notifier_unregisterhNtauh1hhj8hhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjXhMubjg)}(h#rcu_stall_chain_notifier_unregisterh]jm)}(h#rcu_stall_chain_notifier_unregisterh]h#rcu_stall_chain_notifier_unregister}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjXhMubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hj6}h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(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 jmsb%c.rcu_stall_chain_notifier_unregisterasbuh1hhjubj)}(h h]h }(hjŤhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjӤhhhNhNubah}(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&]jjuh1jhjFhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhj?hhubj)}(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.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhj8hNhNubj)}(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&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhj%ubj)}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hjJh]hstruct notifier_block *n}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjDubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(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:422: ./kernel/rcu/tree_stall.hhMhj%ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhj%ubh)}(h0Returns zero on success, ``-ENOENT`` on failure.h](hReturns zero on success, }(hjhhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on failure.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_read_lock_trace (C function)c.rcu_read_lock_tracehNtauh1hhj8hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_trace (void)h]j)}(hvoid rcu_read_lock_trace(void)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.hhK&ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK&ubjg)}(hrcu_read_lock_traceh]jm)}(hrcu_read_lock_traceh]hrcu_read_lock_trace}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK&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&]jjuh1jhjhhhjhK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK&ubah}(h]jޥah ](jjeh"]h$]h&]jj)jhuh1hhjhK&hjhhubj)}(hhh]h)}(h6mark beginning of RCU-trace read-side critical sectionh]h6mark beginning of RCU-trace read-side critical section}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK&hjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhj8hNhNubj)}(hX **Parameters** ``void`` no arguments **Description** When synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections. For more details, please see the documentation for rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK*hjnubj)}(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&]uh1jhjnubh)}(h**Description**h]j)}(hjΦh]h Description}(hjЦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̦ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjnubh)}(hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.h]hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK'hjnubh)}(hCFor more details, please see the documentation for rcu_read_lock().h]hCFor more details, please see the documentation for rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK.hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_read_unlock_trace (C function)c.rcu_read_unlock_tracehNtauh1hhj8hhhNhNubh)}(hhh](j)}(h!void rcu_read_unlock_trace (void)h]j)}(h void rcu_read_unlock_trace(void)h](j )}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK>ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj0hK>ubjg)}(hrcu_read_unlock_traceh]jm)}(hrcu_read_unlock_traceh]hrcu_read_unlock_trace}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj0hK>ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjWubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hK>hjhhubj)}(hhh]h)}(h0mark end of RCU-trace read-side critical sectionh]h0mark end of RCU-trace read-side critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(hXV**Parameters** ``void`` no arguments **Description** Pairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints. For more details, please see the documentation for rcu_read_unlock().h](h)}(h**Parameters**h]j)}(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.hhKBhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjʧh]hvoid}(hj̧hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȧubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjħubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߧhKhjubah}(h]h ]h"]h$]h&]uh1jhjħubeh}(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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjubh)}(hPairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints.h]hPairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK?hjubh)}(hEFor more details, please see the documentation for rcu_read_unlock().h]hEFor more details, please see the documentation for rcu_read_unlock().}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKChjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_rcu_mult (C macro)c.synchronize_rcu_multhNtauh1hhj8hhhNhNubh)}(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&]jjjjjjjjjuh1hhhhj8hNhNubh)}(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)hj8hhubj)}(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'hj8hhubj)}(hX**Parameters** ``...`` List of call_rcu() functions for different grace periods to wait on **Description** This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain's call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct. Note that call_rcu_hurry() should be used instead of call_rcu() because in kernels built with CONFIG_RCU_LAZY=y the delay between the invocation of call_rcu() and that of the corresponding RCU callback can be multiple seconds. The first argument tells Tiny RCU's _wait_rcu_gp() not to bother waiting for RCU. The reason for this is because anywhere synchronize_rcu_mult() can be called is automatically already a full grace period.h](h)}(h**Parameters**h]j)}(hjĨh]h Parameters}(hjƨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj¨ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK+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(hjݨubj)}(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&]uh1jhjݨubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjڨubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_init (C function) c.rcuref_inithNtauh1hhj8hhhNhNubh)}(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 reftargetjémodnameN 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&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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}(hjѪhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͪhKhjΪubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjͪhKhjubj)}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_read (C function) c.rcuref_readhNtauh1hhj8hhhNhNubh)}(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 }(hjǫhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjիhhhNhNubah}(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$jjjuh1hhhhj8hNhNubj)}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_is_dead (C function)c.rcuref_is_deadhNtauh1hhj8hhhNhNubh)}(hhh](j)}(h#bool rcuref_is_dead (rcuref_t *ref)h]j)}(h"bool rcuref_is_dead(rcuref_t *ref)h](j )}(hj8h]hbool}(hjͬhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjɬhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0ubj)}(h h]h }(hj۬hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjɬhhhjڬhK0ubjg)}(hrcuref_is_deadh]jm)}(hrcuref_is_deadh]hrcuref_is_dead}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjɬhhhjڬhK0ubj)}(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&]jjuh1jhjɬhhhjڬhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjŬhhhjڬhK0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjڬhK0hj¬hhubj)}(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&]uh1jhj¬hhhjڬhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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}(hj˭hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǭhK1hjȭubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǭhK1hjubah}(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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_get (C function) c.rcuref_gethNtauh1hhj8hhhNhNubh)}(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}(hj֮hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKBhjӮhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj?hKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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 ah](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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_put_rcusafe (C function)c.rcuref_put_rcusafehNtauh1hhj8hhhNhNubh)}(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&]jjjuh1jjjhjޯhhhjhKyubah}(h]jٯah ](jjeh"]h$]h&]jj)jhuh1hhjhKyhjۯhhubj)}(hhh]j)}(hhh]j)}(h;Release one reference for a rcuref reference count RCU safeh]h)}(hjh]h;Release one reference for a rcuref reference count RCU safe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKyhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKyhjhhubah}(h]h ]h"]h$]h&]uh1jhjۯhhhjhKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(hjݰh]h rcuref_t *ref}(hj߰hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۰ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKzhjװubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKzhjubah}(h]h ]h"]h$]h&]uh1jhjװubeh}(h]h ]h"]h$]h&]uh1jhjhKzhj԰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&]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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_put (C function) c.rcuref_puthNtauh1hhj8hhhNhNubh)}(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}(hj̱hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjȱubah}(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 jαsb 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&]jjjjzjjzjjjuh1hhhhj8hNhNubj)}(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)}(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: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&]uh1jhj8hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,same_state_synchronize_rcu_full (C function)!c.same_state_synchronize_rcu_fullhNtauh1hhj8hhhNhNubh)}(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)}(hj6}h]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 }(hjԳhhhNhNubah}(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)}(hj6}h]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&]jjjjjjjjjuh1hhhhj8hNhNubj)}(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)}(hjʴh]hstruct rcu_gp_oldstate *rgosp1}(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:430: ./include/linux/rcutree.hhK4hjĴubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߴhK4hjubah}(h]h ]h"]h$]h&]uh1jhjĴubeh}(h]h ]h"]h$]h&]uh1jhjߴhK4hjubj)}(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](h@jC@jmCjrCjIjIjLjLjNjNjQPjVPjQjQjSjSj3Wj8WjEZjJZj]j]jj/`jL`jQ`j!bj&bj1gj6gjqijvijjjjjnjnj!qj&qjvtj{tjvjvjByjGyj{j{j}j}jjjցjہjjjzjjjjj jjjjjj#jkjpjjjvj{jjjrjwjjjZj_jߣjjQjVjLjQjjjUjZjjjjjjjmjrjjjjjjjþjȾj1j6jjjhjmjjjTjYjjjLjQjQjVjPjUjojtjjjjj4j9jjjjjjjjjj jj*jGjLj_jdjUjZjljqjajfjVj[jKjPj]jbjojtjjjjjjjjjjjjjjjjjjjYbjjjj j jjjjj7j<j jj9"j>"j$j$jM'jR'j)j)ja,jf,j70j<0jA9j79j~;jt;jH9j;j<j<j8@j=@j DjDjGjGj#Lj(LjPjPjRjRjUjUjQXjVXjYjYj[j[j^j^jij_bj|bjbjdjdjgjgjtjijijijjjjjljlj$nj)njojoj0qj5qjrjrjjtjtjtjxjxj|j|jjjjjYj^jjjjjjj1j6jjj̓jѓj4j9j#jjMjjݖjjvj{jjjjj3j8jjžjWj\jjjljqjjjujzjjjrjwjojtj]jbjjjjjµjǵjjjojtjHjMj!j&jjjjjjjjjjj(j-jjSjpjuj!j&jjjjjjjj jjj jjjjj$jjjjj[j`j`jjjjjjjjjjojtjyjjjjjjjjjjjSjfjjj~jjjjjjjj jYjvj{j9j>jjjz j j j jjjjjjjjjLjQjjj j%jjjjj=jBj#j j4 j9 j!j!j\j#j\j#j#j#j%j%j&j&j*j*jL,jQ,j/j/j2j2jN6jS6j9j9j<j#<j.>j3>jX@j]@jBjBjIEjNEjGjGjIjIj!Lj&Lj]NjbNjQjQjSjSjXjXj@ZjEZjj\jj\j]j]j0^j5^j_j_jj`jo`jajajcjcjcjcjdjdjejejfjfjgjgjhjhjijijjjjjkjkjljljmjmjnjnjojojpjpj4rj9rjsjsjtjtjujujGwjLwjxjxj$zj)zj{j{j}j}jjj΀jӀjjjkjpjSjXj^jcjjj͋jҋjj$jjjYj^jujjmjj6j;jjœjZj_j<jAjjjojjjjj#j(jxj}jjjjjjjljqjjjjj jjj$jjjjjjjj jFjKjzjjijnjj jj{jjjjjjjjj~jjjjsjjjjjjjjJjj jjqjvjjjjjjjqjvjj j2j7jj j/j4jjjhjmjjjjjjj;j@jejjjj jjj"j'jjj j j j jjjkjPjmjrj9jyjjjjjqjvjjjjjtjyj j j"j"j#j#j5%j:%j&j&jU(jZ(j)j)ju+jz+j-j -j.j.j0j0j1j1j5j5j7j7jx:j}:j#=j(=j@j@jBjBjDjDj{HjHj*Mj/MjPjPjSjSjUjUj,Wj1WjYjYj[j[j ^j^j`j`jbjbjdjdjCfjHfjhjhj kjkjZmj_mjojojpjpj:rj?rjtjtjvjvjOxjTxj|j|j~j~jpjujjjjj6j;jjjjjDjIjjjjjǘj̘jjjjjjjzjjjjjjjj֫j۫j'j,jzjjjjOjTj1j6jGjLj߾jjjj/j4jjjjjjjjjjj]jbjjjyj~jjjjjjj:j?jjjEjJj{jjjjjj7j<jMjRjjjvj{jjjjj^jcjjjLjQjP jU j j jjjjj1j6jjjjjjjjjQjVj>jCj j j"j"j!%j&%j&j&j)j)j,j,jI/jN/j1j1jN3jS3j5j 5j@7jE7jy9j~9j2;j7;jC>jH>jSAjXAj CjCjDjDj~FjFjVJj[JjMjMjPjPjQjQjSjSjVjVjWjWj>YjCYjZjZj\j\j^j^j`j`jcjcjgjgj`ijeijjjjj mjmjCojHoj rjrjsjsjWuj\ujmwjrwjyjyj|j|jjjojjj%j*jZj_jjj1j6jjj7j<jjjzjj]jbjsjxj֡jۡjjj§jǧjjjojjjjj>jCjfjkjjjjjBjGjûjȻj,j1j}jjjjjjTjYjjjjjGjLjjjjjjjjj:j?jrjwj jjjjjjKjPjYj^jjj*j/jjjjj jjljqjjjj#jjj j%jjjEjJjjjnjsj j j j j: j? jjj1j6jYj^jjjjjojjjZnj?j\jaj!j!j#j#j%j%j;'j@'j*j*j/j /j1j 1j2j2j 4j4je5jj5j6j6jC9jH9j:j:jN<jS<j?j?jlAjqAj'Cj,CjDjDjQGjVGj{IjIjKjKjNjNjPjPjRjRjSjSjVjVjXjXjZj Zj[j[jZ]j_]jr`jw`jbjbjdjdjRfjWfjhjhjjjjjkjkjrj`nj}njnj"pj'pjqjqjjrjrjrjtjtjkvjpvjwjwj2{j7{jM}jR}j~j~jÀjȀjjjCjHj܅jj6j;jjj\jaj݋jjōjʍjĐjɐjajfj!j&jjjjjjjjj<jAjMjRjjj)j.jjjj jbjgjjíjjjʳjϳjjjƸj˸jPjUj]jbjjj_jdjjjjjjjjjjjjjjj!j&jjjwj|jjjj jjjjjQjVj_jdjujzjj"jjjjjjj{jjjjjj#j(jjjkjpjjjwj|j j j9j>jbjgjjjUjZjjjsjxj!jjbjgj:j?jjjE jJ jo"jt"js$jx$jF'jK'j(j(j*j*j7,j<,j.j.j0j0j3j3j85j=5j7j7j49j99j:j:jb<jg<j=j=j@j@jCjCjFj FjHjHjZKj_KjUNjZNjPjPjSj SjUjVjXjXj[j[j^j^jajajcdjhdjgjgjjjjjljljnjnjApjFpjirjnrjsjsjpujuujnwjswjlyjqyj{j{j!~j&~j;j@jdjijjjjjjjjjˍjЍjjjj j0j5jXj]jٕjޕj˵j'jõj8jUjZjbjgjjjGjLjjjĞjɞjsjxj"j'jѠj֠jjjjjjjjjզjڦjjjBjGjjjȬjͬj jjojtjyj~jjjjjjjjj#j(jZj_jjjjjjjjjrjwjjjFjKjjj,j1jjjjjEjJj|jj~jjjjujzjjjjj.j3jjj%j*jijnj jjOjTjjjjjj jjj[j`jjjjjj#jbjgjjjsjxj6j;j jj1j6jYj^jjjjjjjDjIjjjFjKjjj jjOjTj\jajjjjjjjjjjj j jp ju jjjjjjjjjj jjjjjj jRjWjjjSjXj j j#j#j-%j2%j:'j?'j(j(jt*jy*j,j,j .j.j/j/jD1jI1jm3jr3j5j$5j_6jd6ji7jn7j9j9j;j;j=j=j^?jc?j@jAjCjCjQGjVGjJjJjLjLjrNjwNjOjPjQjQjvSj{Sj+Uj0UjVjVjFXjKXjYjYj[j[j]j#]jl_jq_j:bj?bjbdjgdjfjfjhjhjjjjjljljFnjKnjojojMqjRqjjrjorjsjsjtjtjBvjGvj&wj+wjxj!xjyjyj{j{j ~j~jjjjjjjojtjj"jjj.j3jjjwj|jjjjjBjGjjjojjjjƞjj j/j4jfjkj=jBjޥjjjjLjQjtjyj>jCjjŬj%j*jٯjޯjjjMjRu footnote_refs}j;](j79jt;es citation_refs} autofootnotes]j;aautofootnote_refs](j79jt;esymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}j KsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.