%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 return value is the number of characters written into **buf** not including the trailing '\0'. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows. If you're not already dealing with a va_list consider using sprintf(). See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hjh]h char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hj h]hconst char *fmt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjDh]h va_list args}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj>ubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe return value is the number of characters written into **buf** not including the trailing '\0'. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.h](h:The return value is the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhi not including the trailing ‘0’. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hFIf you're not already dealing with a va_list consider using sprintf().h]hHIf you’re not already dealing with a va_list consider using sprintf().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsprintf (C function) c.sprintfhNtauh1hhhhhhNhNubh)}(hhh](j)}(h-int sprintf (char *buf, const char *fmt, ...)h]j)}(h,int sprintf(char *buf, const char *fmt, ...)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsprintfh]jm)}(hsprintfh]hsprintf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h!(char *buf, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hbufh]hbuf}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``const char *fmt`` The format string to use ``...`` Arguments for the format string **Description** The return value is the number of characters written into **buf** not including the trailing '\0'. Use snprintf() or scnprintf() in order to avoid buffer overflows. See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj:h]h char *buf}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj4ubj)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hj1ubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjsh]hconst char *fmt}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjmubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubj)}(h(``...`` Arguments for the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj1ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe return value is the number of characters written into **buf** not including the trailing '\0'. Use snprintf() or scnprintf() in order to avoid buffer overflows.h](h:The return value is the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhg not including the trailing ‘0’. Use snprintf() or scnprintf() in order to avoid buffer overflows.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvbin_printf (C function) c.vbin_printfhNtauh1hhhhhhNhNubh)}(hhh](j)}(hNint vbin_printf (u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h]j)}(hMint vbin_printf(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](j )}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM5 ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhj[hM5 ubjg)}(h vbin_printfh]jm)}(h vbin_printfh]h vbin_printf}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhj[hM5 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[hM5 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hM5 ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hM5 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.chM5 hjhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hM5 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.chM9 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.chM6 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&]uh1hhj5hM6 hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM6 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.chM7 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&]uh1hhjnhM7 hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM7 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.chM8 hjubj)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8 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.chM9 hjubj)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9 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.chMA 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)}(h**Parameters** ``const char *path`` path to extract the filename from. **Return** Pointer to the filename portion inside **path**. If no '/' exists, returns **path** unchanged.h](h)}(h**Parameters**h]j)}(hjſh]h Parameters}(hjǿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÿubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjubj)}(hhh]j)}(h8``const char *path`` path to extract the filename from. h](j)}(h``const char *path``h]j)}(hjh]hconst char *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMuhj޿ubj)}(hhh]h)}(h"path to extract the filename from.h]h"path to extract the filename from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhj޿ubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjۿubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjubh)}(h^Pointer to the filename portion inside **path**. If no '/' exists, returns **path** unchanged.h](h'Pointer to the filename portion inside }(hj5hhhNhNubj)}(h**path**h]hpath}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh . If no ‘/’ exists, returns }(hj5hhhNhNubj)}(h**path**h]hpath}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh unchanged.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrtomem_pad (C macro)c.strtomem_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h strtomem_padh]j)}(h strtomem_padh]jg)}(h strtomem_padh]jm)}(hjh]h strtomem_pad}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h!``strtomem_pad (dest, src, pad)``h]j)}(hjh]hstrtomem_pad (dest, src, pad)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]h)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj/`hhubj)}(hX6**Parameters** ``dest`` Pointer of destination character array (marked as __nonstring) ``src`` Pointer to NUL-terminated string ``pad`` Padding character to fill any remaining bytes of **dest** after copy **Description** This is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem(). Note that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j)}(h``dest``h]j)}(hjh]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubj)}(hhh]h)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj ubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hjKh]hsrc}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjEubj)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj ubj)}(hM``pad`` Padding character to fill any remaining bytes of **dest** after copy h](j)}(h``pad``h]j)}(hjh]hpad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj~ubj)}(hhh]h)}(hDPadding character to fill any remaining bytes of **dest** after copyh](h1Padding character to fill any remaining bytes of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh after copy}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem().h]hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hrNote that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](hNote that the size of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& is not an argument, as the length of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& must be discoverable by the compiler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrtomem (C macro) c.strtomemhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hstrtomemh]j)}(hstrtomemh]jg)}(hstrtomemh]jm)}(hjCh]hstrtomem}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhj`hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj`hMhj>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj`hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1hhhhj/`hNhNubh)}(h``strtomem (dest, src)``h]j)}(hjh]hstrtomem (dest, src)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]h)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj/`hhubj)}(hX**Parameters** ``dest`` Pointer of destination character array (marked as __nonstring) ``src`` Pointer to NUL-terminated string **Description** This is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad(). Note that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j)}(h``dest``h]j)}(hjh]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hj h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().h]hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hrNote that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](hNote that the size of }(hjlhhhNhNubj)}(h**dest**h]hdest}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh& is not an argument, as the length of }(hjlhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh& must be discoverable by the compiler.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemtostr (C macro) c.memtostrhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hmemtostrh]j)}(hmemtostrh]jg)}(hmemtostrh]jm)}(hjh]hmemtostr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h``memtostr (dest, src)``h]j)}(hjh]hmemtostr (dest, src)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h9Copy a possibly non-NUL-term string to a NUL-term string h]h)}(h8Copy a possibly non-NUL-term string to a NUL-term stringh]h8Copy a possibly non-NUL-term string to a NUL-term string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhj/`hhubj)}(hX@**Parameters** ``dest`` Pointer to destination NUL-terminates string ``src`` Pointer to character array (likely marked as __nonstring) **Description** This is a replacement for strncpy() uses where the source is not a NUL-terminated string. Note that sizes of **dest** and **src** must be known at compile-time.h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj$ubj)}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjIh]hdest}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjCubj)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubj)}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj|ubj)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj$ubh)}(hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.h]hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj$ubh)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be known at compile-time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemtostr_pad (C macro)c.memtostr_padhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h memtostr_padh]j)}(h memtostr_padh]jg)}(h memtostr_padh]jm)}(hj/h]h memtostr_pad}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjLhMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj*hhhjLhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjejjejjjuh1hhhhj/`hNhNubh)}(h``memtostr_pad (dest, src)``h]j)}(hjkh]hmemtostr_pad (dest, src)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h]Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destination h]h)}(h\Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destinationh]h\Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destination}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj/`hhubj)}(hX@**Parameters** ``dest`` Pointer to destination NUL-terminates string ``src`` Pointer to character array (likely marked as __nonstring) **Description** This is a replacement for strncpy() uses where the source is not a NUL-terminated string. Note that sizes of **dest** and **src** must be known at compile-time.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjh]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.h]hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjXhhhNhNubj)}(h**dest**h]hdest}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh and }(hjXhhhNhNubj)}(h**src**h]hsrc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh must be known at compile-time.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset_after (C macro)c.memset_afterhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h memset_afterh]j)}(h memset_afterh]jg)}(h memset_afterh]jm)}(hjh]h memset_after}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubh)}(h!``memset_after (obj, v, member)``h]j)}(hjh]hmemset_after (obj, v, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/`hhubj)}(h9Set a value after a struct member to the end of a struct h]h)}(h8Set a value after a struct member to the end of a structh]h8Set a value after a struct member to the end of a struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj hMhj/`hhubj)}(h**Parameters** ``obj`` Address of target struct instance ``v`` Byte value to repeatedly write ``member`` after which struct member to start writing bytes **Description** This is good for clearing padding following the given member.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hj5h]hobj}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj/ubj)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hjnh]hv}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjhubj)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,ubj)}(h<``member`` after which struct member to start writing bytes h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h0after which struct member to start writing bytesh]h0after which struct member to start writing bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(h=This is good for clearing padding following the given member.h]h=This is good for clearing padding following the given member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemset_startat (C macro)c.memset_startathNtauh1hhj/`hhhNhNubh)}(hhh](j)}(hmemset_startath]j)}(hmemset_startath]jg)}(hmemset_startath]jm)}(hj!h]hmemset_startat}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj>hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj>hM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj>hM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjWjjWjjjuh1hhhhj/`hNhNubh)}(h#``memset_startat (obj, v, member)``h]j)}(hj]h]hmemset_startat (obj, v, member)}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hj/`hhubj)}(h8Set a value starting at a member to the end of a struct h]h)}(h7Set a value starting at a member to the end of a structh]h7Set a value starting at a member to the end of a struct}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjsubah}(h]h ]h"]h$]h&]uh1jhjhM hj/`hhubj)}(hX-**Parameters** ``obj`` Address of target struct instance ``v`` Byte value to repeatedly write ``member`` struct member to start writing at **Description** Note that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hjh]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``member`` struct member to start writing at h](j)}(h ``member``h]j)}(hj#h]hmember}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj)}(hhh]h)}(h!struct member to start writing ath]h!struct member to start writing at}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hNote that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.h]hNote that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstr_has_prefix (C function)c.str_has_prefixhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h;size_t str_has_prefix (const char *str, const char *prefix)h]j)}(h:size_t str_has_prefix(const char *str, const char *prefix)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE str_has_prefixsbc.str_has_prefixasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hstr_has_prefixh]jm)}(hjh]hstr_has_prefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj )}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h#Test if a string has a given prefixh]h#Test if a string has a given prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``const char *str`` The string to test ``const char *prefix`` The string to see if **str** starts with **Description** A common way to test a prefix of a string is to do: strncmp(str, prefix, sizeof(prefix) - 1) But this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix(). **Return** * strlen(**prefix**) if **str** starts with **prefix** * 0 if **str** does not start with **prefix**h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh](j)}(h'``const char *str`` The string to test h](j)}(h``const char *str``h]j)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(hThe string to testh]hThe string to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``const char *prefix`` The string to see if **str** starts with h](j)}(h``const char *prefix``h]j)}(hj:h]hconst char *prefix}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj4ubj)}(hhh]h)}(h(The string to see if **str** starts withh](hThe string to see if }(hjShhhNhNubj)}(h**str**h]hstr}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh starts with}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]j)}(h]A common way to test a prefix of a string is to do: strncmp(str, prefix, sizeof(prefix) - 1) h](j)}(h3A common way to test a prefix of a string is to do:h]h3A common way to test a prefix of a string is to do:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj)}(hhh]h)}(h(strncmp(str, prefix, sizeof(prefix) - 1)h]h(strncmp(str, prefix, sizeof(prefix) - 1)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hsBut this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix().h]hsBut this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM$hjubj)}(hhh](j)}(h4strlen(**prefix**) if **str** starts with **prefix**h]h)}(hjh](hstrlen(}(hjhhhNhNubj)}(h **prefix**h]hprefix}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh starts with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h+0 if **str** does not start with **prefix**h]h)}(hjLh](h0 if }(hjNhhhNhNubj)}(h**str**h]hstr}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh does not start with }(hjNhhhNhNubj)}(h **prefix**h]hprefix}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM&hjJubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjChM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrstarts (C function) c.strstartshNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h4bool strstarts (const char *str, const char *prefix)h]j)}(h3bool strstarts(const char *str, const char *prefix)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM0ubjg)}(h strstartsh]jm)}(h strstartsh]h strstarts}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM0ubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstrh]hstr}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj )}(hcharh]hchar}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjm)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM0hjhhubj)}(hhh]h)}(h#does **str** start with **prefix**?h](hdoes }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh start with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const char *str`` string to examine ``const char *prefix`` prefix to look for. **Return** True if **str** begins with **prefix**. False in all other cases.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM4hjubj)}(hhh](j)}(h&``const char *str`` string to examine h](j)}(h``const char *str``h]j)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM1hjubj)}(hhh]h)}(hstring to examineh]hstring to examine}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM1hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM1hj ubj)}(h+``const char *prefix`` prefix to look for. h](j)}(h``const char *prefix``h]j)}(hjMh]hconst char *prefix}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM2hjGubj)}(hhh]h)}(hprefix to look for.h]hprefix to look for.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM2hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM2hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM4hjubh)}(hATrue if **str** begins with **prefix**. False in all other cases.h](hTrue if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh begins with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. False in all other cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrends (C function) c.strendshNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h2bool strends (const char *str, const char *suffix)h]j)}(h1bool strends(const char *str, const char *suffix)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM=ubjg)}(hstrendsh]jm)}(hstrendsh]hstrends}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM=ubj)}(h%(const char *str, const char *suffix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hcharh]hchar}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hstrh]hstr}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst char *suffixh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsuffixh]hsuffix}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM=hjhhubj)}(hhh]h)}(h+Check if a string ends with another string.h]h+Check if a string ends with another string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM=hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX**Parameters** ``const char *str`` NULL-terminated string to check against **suffix** ``const char *suffix`` NULL-terminated string defining the suffix to look for in **str** **Return** True if **str** ends with **suffix**. False in all other cases.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMAhjubj)}(hhh](j)}(hG``const char *str`` NULL-terminated string to check against **suffix** h](j)}(h``const char *str``h]j)}(hj9h]hconst char *str}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM>hj3ubj)}(hhh]h)}(h2NULL-terminated string to check against **suffix**h](h(NULL-terminated string to check against }(hjRhhhNhNubj)}(h **suffix**h]hsuffix}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1hhjNhM>hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhM>hj0ubj)}(hY``const char *suffix`` NULL-terminated string defining the suffix to look for in **str** h](j)}(h``const char *suffix``h]j)}(hjh]hconst char *suffix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM?hjzubj)}(hhh]h)}(hANULL-terminated string defining the suffix to look for in **str**h](h:NULL-terminated string defining the suffix to look for in }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM?hj0ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMAhjubh)}(h?True if **str** ends with **suffix**. False in all other cases.h](hTrue if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ends with }(hjhhhNhNubj)}(h **suffix**h]hsuffix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. False in all other cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrdup (C function) c.kstrduphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h)char * kstrdup (const char *s, gfp_t gfp)h]j)}(h'char *kstrdup(const char *s, gfp_t gfp)h](j )}(hcharh]hchar}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hKKubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj@hKKubjg)}(hkstrduph]jm)}(hkstrduph]hkstrdup}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hKKubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jbsb c.kstrdupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj@hKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj@hKKubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hKKhj'hhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKhj0hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const char *s`` the string to duplicate ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Return** newly allocated copy of **s** or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjOubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjth]h const char *s}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKLhjnubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjkubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKMhjubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjOubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrdup_const (C function)c.kstrdup_consthNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h5const char * kstrdup_const (const char *s, gfp_t gfp)h]j)}(h3const char *kstrdup_const(const char *s, gfp_t gfp)h](j)}(hjh]hconst}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj^hKYubj )}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhj^hKYubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj^hKYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj^hKYubjg)}(h kstrdup_consth]jm)}(h kstrdup_consth]h kstrdup_const}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj^hKYubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.kstrdup_constasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhj^hKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj^hKYubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj^hKYhjFhhubj)}(hhh]h)}(h0conditionally duplicate an existing const stringh]h0conditionally duplicate an existing const string}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYhjjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj^hKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hXT**Parameters** ``const char *s`` the string to duplicate ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Note** Strings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc(). **Return** source string if it is in .rodata section otherwise fallback to kstrdup.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKZhjubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK[hjubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hj"h]hNote}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubh)}(hgStrings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc().h]hgStrings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc().}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubh)}(h **Return**h]j)}(hjIh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubh)}(hHsource string if it is in .rodata section otherwise fallback to kstrdup.h]hHsource string if it is in .rodata section otherwise fallback to kstrdup.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkstrndup (C function) c.kstrnduphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h6char * kstrndup (const char *s, size_t max, gfp_t gfp)h]j)}(h4char *kstrndup(const char *s, size_t max, gfp_t gfp)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKmubjg)}(hkstrnduph]jm)}(hkstrnduph]hkstrndup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKmubj)}(h&(const char *s, size_t max, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t maxh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE jsb c.kstrndupasbuh1hhj0ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubjm)}(hmaxh]hmax}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jS c.kstrndupasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKmhjhhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hXN**Parameters** ``const char *s`` the string to duplicate ``size_t max`` read at most **max** chars from **s** ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Note** Use kmemdup_nul() instead if the size is known exactly. **Return** newly allocated copy of **s** or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKqhjubj)}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKnhjubj)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKnhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKnhjubj)}(h5``size_t max`` read at most **max** chars from **s** h](j)}(h``size_t max``h]j)}(hjQh]h size_t max}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKohjKubj)}(hhh]h)}(h%read at most **max** chars from **s**h](h read at most }(hjjhhhNhNubj)}(h**max**h]hmax}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh chars from }(hjjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1hhjfhKohjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKohjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKphjubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKphjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjubh)}(h7Use kmemdup_nul() instead if the size is known exactly.h]h7Use kmemdup_nul() instead if the size is known exactly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjubh)}(h **Return**h]j)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hj"hhhNhNubj)}(h**s**h]hs}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh or }(hj"hhhNhNubj)}(h``NULL``h]hNULL}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh in case of error}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemdup (C function) c.kmemduphNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h7void * kmemdup (const void *src, size_t len, gfp_t gfp)h]j)}(h5void *kmemdup(const void *src, size_t len, gfp_t gfp)h](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjhK}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhK}ubjg)}(hkmemduph]jm)}(hkmemduph]hkmemdup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjhK}ubj)}(h((const void *src, size_t len, gfp_t gfp)h](j)}(hconst void *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsb c.kmemdupasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]j; c.kmemdupasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhK}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhK}ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhK}hjjhhubj)}(hhh]h)}(hduplicate region of memoryh]hduplicate region of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}hjhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhK}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(hX **Parameters** ``const void *src`` memory region to duplicate ``size_t len`` memory region length ``gfp_t gfp`` GFP mask to use **Return** newly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h/``const void *src`` memory region to duplicate h](j)}(h``const void *src``h]j)}(hjh]hconst void *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hmemory region to duplicateh]hmemory region to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h$``size_t len`` memory region length h](j)}(h``size_t len``h]j)}(hj9h]h size_t len}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj3ubj)}(hhh]h)}(hmemory region lengthh]hmemory region length}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhjubj)}(h``gfp_t gfp`` GFP mask to use h](j)}(h ``gfp_t gfp``h]j)}(hjrh]h gfp_t gfp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjlubj)}(hhh]h)}(hGFP mask to useh]hGFP mask to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hsnewly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](hnewly allocated copy of }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhH in case of error, result is physically contiguous. Use kfree() to free.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkmemdup_nul (C function) c.kmemdup_nulhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h9char * kmemdup_nul (const char *s, size_t len, gfp_t gfp)h]j)}(h7char *kmemdup_nul(const char *s, size_t len, gfp_t gfp)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj$hKubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hKubjg)}(h kmemdup_nulh]jm)}(h kmemdup_nulh]h kmemdup_nul}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$hKubj)}(h&(const char *s, size_t len, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hcharh]hchar}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hjE)h]hs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jFsb c.kmemdup_nulasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.kmemdup_nulasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfph]hgfp}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hKhj hhubj)}(hhh]h)}(h5Create a NUL-terminated string from unterminated datah]h5Create a NUL-terminated string from unterminated data}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj\hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhj/`hNhNubj)}(hX **Parameters** ``const char *s`` The data to stringify ``size_t len`` The size of the data ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Return** newly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj{ubj)}(hhh](j)}(h(``const char *s`` The data to stringify h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hThe data to stringifyh]hThe data to stringify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h$``size_t len`` The size of the data h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hThe size of the datah]hThe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj ubj)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhjubeh}(h]h ]h"]h$]h&]uh1jhj{ubh)}(h **Return**h]j)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj{ubh)}(hOnewly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](hnewly allocated copy of }(hjchhhNhNubj)}(h**s**h]hs}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh with NUL-termination or }(hjchhhNhNubj)}(h``NULL``h]hNULL}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh in case of error}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_user (C function) c.memdup_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h7void * memdup_user (const void __user *src, size_t len)h]j)}(h5void *memdup_user(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(h memdup_userh]jm)}(h memdup_userh]h memdup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.memdup_userasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj h]hconst void __user *src}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjDh]h size_t len}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj>ubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hRan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h]hRan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hvmemdup_user (C function)c.vmemdup_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h8void * vmemdup_user (const void __user *src, size_t len)h]j)}(h6void *vmemdup_user(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(h vmemdup_userh]jm)}(h vmemdup_userh]h vmemdup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh__user}(hj hhhNhNubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hsrch]hsrc}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.vmemdup_userasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjh]hconst void __user *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKhjubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjRh]h size_t len}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjLubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hYan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h]hYan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstrndup_user (C function)c.strndup_userhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h2char * strndup_user (const char __user *s, long n)h]j)}(h0char *strndup_user(const char __user *s, long n)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h strndup_userh]jm)}(h strndup_userh]h strndup_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(const char __user *s, long n)h](j)}(hconst char __user *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjE)h]hs}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hlong nh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h,duplicate an existing string from user spaceh]h,duplicate an existing string from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const char __user *s`` The string to duplicate ``long n`` Maximum number of bytes to copy, including the trailing NUL. **Return** newly allocated copy of **s** or an ERR_PTR() in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM hjubj)}(hhh](j)}(h1``const char __user *s`` The string to duplicate h](j)}(h``const char __user *s``h]j)}(hjh]hconst char __user *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhj ubj)}(hhh]h)}(hThe string to duplicateh]hThe string to duplicate}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(hH``long n`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h ``long n``h]j)}(hjIh]hlong n}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjCubj)}(hhh]h)}(hnewly allocated copy of **s** or an ERR_PTR() in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! or an ERR_PTR() in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemdup_user_nul (C function)c.memdup_user_nulhNtauh1hhj/`hhhNhNubh)}(hhh](j)}(h;void * memdup_user_nul (const void __user *src, size_t len)h]j)}(h9void *memdup_user_nul(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM$ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM$ubjg)}(hmemdup_user_nulh]jm)}(hmemdup_user_nulh]hmemdup_user_nul}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM$ubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh__user}(hj!hhhNhNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hsrch]hsrc}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.memdup_user_nulasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM$hjhhubj)}(hhh]h)}(h9duplicate memory region from user space and NUL-terminateh]h9duplicate memory region from user space and NUL-terminate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj/`hNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM(hj ubj)}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hj0h]hconst void __user *src}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM&hj*ubj)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM&hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM&hj'ubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjih]h size_t len}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM'hjcubj)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hM'hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM'hj'ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM)hj ubh)}(han ERR_PTR() on failure.h]han ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM)hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj/`hhhNhNubeh}(h]string-manipulationah ]h"]string manipulationah$]h&]uh1hhhhhhhhKubeh}(h]basic-c-library-functionsah ]h"]basic c library functionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hBasic Kernel Library Functionsh]hBasic Kernel Library Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK/ubh)}(h7The Linux kernel provides more basic utility functions.h]h7The Linux kernel provides more basic utility functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjhhubh)}(hhh](h)}(hBit Operationsh]hBit Operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_bit (C function) c.set_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h4void set_bit (long nr, volatile unsigned long *addr)h]j)}(h3void set_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hKubjg)}(hset_bith]jm)}(hset_bith]hset_bit}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hvolatile unsigned long *addrh](j)}(hvolatileh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hKhjhhubj)}(hhh]h)}(hAtomically set a bit in memoryh]hAtomically set a bit in memory}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhj#hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjhNhNubj)}(hX>**Parameters** ``long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjBubj)}(hhh](j)}(h``long nr`` the bit to set h](j)}(h ``long nr``h]j)}(hjgh]hlong nr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjaubj)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj^ubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjBubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjBubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hjhhhNhNubj)}(h**nr**h]hnr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit (C function) c.clear_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h6void clear_bit (long nr, volatile unsigned long *addr)h]j)}(h5void clear_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhjOhK!ubjg)}(h clear_bith]jm)}(h clear_bith]h clear_bit}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhjOhK!ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhj=hhhjOhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjOhK!ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhK!hj6hhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!hj:hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhjhNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers).h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjYubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hj~h]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK"hjxubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjuubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK#hjubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjuubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjYubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK$hjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hchange_bit (C function) c.change_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h7void change_bit (long nr, volatile unsigned long *addr)h]j)}(h6void change_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhjEhK.ubjg)}(h change_bith]jm)}(h change_bith]h change_bit}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhjEhK.ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjEhK.ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhK.hj,hhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.hj0hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjhNhNubj)}(hX9**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjOubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjth]hlong nr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK/hjnubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjkubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK0hjubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjOubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK1hjOubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hj hhhNhNubj)}(h**nr**h]hnr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK3hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_set_bit (C function)c.test_and_set_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h=bool test_and_set_bit (long nr, volatile unsigned long *addr)h]j)}(hubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj[hK>ubjg)}(htest_and_set_bith]jm)}(htest_and_set_bith]htest_and_set_bit}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhj[hK>ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhj[hK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj[hK>ubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhj[hK>hjChhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK>hjFhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj[hK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjhNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjeubj)}(hhh](j)}(h``long nr`` Bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK?hjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK@hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjeubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKAhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htest_and_clear_bit (C function)c.test_and_clear_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h?bool test_and_clear_bit (long nr, volatile unsigned long *addr)h]j)}(h>bool test_and_clear_bit(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhjPhKLubjg)}(htest_and_clear_bith]jm)}(htest_and_clear_bith]htest_and_clear_bit}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjPhKLubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjPhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjPhKLubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjPhKLhj8hhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLhj;hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjPhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjhNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjZubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKMhjyubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjvubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKNhjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjZubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKOhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h test_and_change_bit (C function)c.test_and_change_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h@bool test_and_change_bit (long nr, volatile unsigned long *addr)h]j)}(h?bool test_and_change_bit(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhjEhKZubjg)}(htest_and_change_bith]jm)}(htest_and_change_bith]htest_and_change_bit}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjEhKZubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhjEhKZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjEhKZubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjEhKZhj-hhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZhj0hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjEhKZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjhNhNubj)}(h**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjOubj)}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjth]hlong nr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK[hjnubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjkubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK\hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjOubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK]hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___set_bit (C function) c.___set_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(h@void ___set_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(h?void ___set_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah" ]h$]h&]uh1j hj)hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj;hKubjg)}(h ___set_bith]jm)}(h ___set_bith]h ___set_bit}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj;hKubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj;hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj;hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hKhj"hhubj)}(hhh]h)}(hSet a bit in memoryh]hSet a bit in memory}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjBhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhjhNhNubj)}(hX,**Parameters** ``unsigned long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjaubj)}(hhh](j)}(h$``unsigned long nr`` the bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjaubh)}(hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___clear_bit (C function)c.___clear_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(hBvoid ___clear_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hAvoid ___clear_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhjMhK!ubjg)}(h ___clear_bith]jm)}(h ___clear_bith]h ___clear_bit}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhjMhK!ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhK!ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjMhK!hj4hhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!hjThhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjhNhNubj)}(hX0**Parameters** ``unsigned long nr`` the bit to clear ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjsubj)}(hhh](j)}(h&``unsigned long nr`` the bit to clear h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK"hjubj)}(hhh]h)}(hthe bit to clearh]hthe bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK#hjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjsubh)}(hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK$hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h___change_bit (C function)c.___change_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(hCvoid ___change_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hBvoid ___change_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hK1ubjg)}(h ___change_bith]jm)}(h ___change_bith]h ___change_bit}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj_hK1ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhj_hK1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj_hK1ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hK1hjFhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1hjfhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hK1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX2**Parameters** ``unsigned long nr`` the bit to change ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK5hjubj)}(hhh](j)}(h'``unsigned long nr`` the bit to change h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK2hjubj)}(hhh]h)}(hthe bit to changeh]hthe bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK3hjubj)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK5hjubh)}(hUnlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ___test_and_set_bit (C function)c.___test_and_set_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(hIbool ___test_and_set_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hHbool ___test_and_set_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjphKYubjg)}(h___test_and_set_bith]jm)}(h___test_and_set_bith]h___test_and_set_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjphKYubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhjphKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjphKYubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjphKYhjXhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYhjwhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjphKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK]hjubj)}(hhh](j)}(h ``unsigned long nr`` Bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKZhjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK[hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK[hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK[hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK]hjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"___test_and_clear_bit (C function)c.___test_and_clear_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(hKbool ___test_and_clear_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hJbool ___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjphhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjphhhjhKhubjg)}(h___test_and_clear_bith]jm)}(h___test_and_clear_bith]h___test_and_clear_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjphhhjhKhubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjhKhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhKhubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhKhhjihhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhhjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhKhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhjubj)}(hhh](j)}(h"``unsigned long nr`` Bit to clear h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKihjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKihjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKjhjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#___test_and_change_bit (C function)c.___test_and_change_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(hLbool ___test_and_change_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hKbool ___test_and_change_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKwubjg)}(h___test_and_change_bith]jm)}(h___test_and_change_bith]h___test_and_change_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKwubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhKwubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhKwhjzhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwhjhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubj)}(hhh](j)}(h#``unsigned long nr`` Bit to change h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKxhjubj)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKyhjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKyhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hKyhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h_test_bit (C function) c._test_bithNtauh1hhjhhhNhNubh)}(hhh](j)}(hEbool _test_bit (unsigned long nr, const volatile unsigned long *addr)h]j)}(hDbool _test_bit(unsigned long nr, volatile const unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h _test_bith]jm)}(h _test_bith]h _test_bit}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hDetermine whether a bit is seth]hDetermine whether a bit is set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh](j)}(h(``unsigned long nr`` bit number to test h](j)}(h``unsigned long nr``h]j)}(hj h]hunsigned long nr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh]h)}(hbit number to testh]hbit number to test}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjBh]h"const volatile unsigned long *addr}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj<ubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h_test_bit_acquire (C function)c._test_bit_acquirehNtauh1hhjhhhNhNubh)}(hhh](j)}(hMbool _test_bit_acquire (unsigned long nr, const volatile unsigned long *addr)h]j)}(hLbool _test_bit_acquire(unsigned long nr, volatile const unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h_test_bit_acquireh]jm)}(h_test_bit_acquireh]h_test_bit_acquire}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj )}(hlongh]hlong}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h7Determine, with acquire semantics, whether a bit is seth]h7Determine, with acquire semantics, whether a bit is set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj)}(hhh](j)}(h(``unsigned long nr`` bit number to test h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj ubj)}(hhh]h)}(hbit number to testh]hbit number to test}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjHh]h"const volatile unsigned long *addr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjBubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclear_bit_unlock (C function)c.clear_bit_unlockhNtauh1hhjhhhNhNubh)}(hhh](j)}(h=void clear_bit_unlock (long nr, volatile unsigned long *addr)h]j)}(hvoid __clear_bit_unlock(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h__clear_bit_unlockh]jm)}(h__clear_bit_unlockh]h__clear_bit_unlock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX7**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubj)}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK hjubj)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK!hjubj)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hK!hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hK!hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubh)}(hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h]hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"test_and_set_bit_lock (C function)c.test_and_set_bit_lockhNtauh1hhjhhhNhNubh)}(hhh](j)}(hBbool test_and_set_bit_lock (long nr, volatile unsigned long *addr)h]j)}(hAbool test_and_set_bit_lock(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK/ubjg)}(htest_and_set_bit_lockh]jm)}(htest_and_set_bit_lockh]htest_and_set_bit_lock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK/ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(haddrh]haddr}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK/hjhhubj)}(hhh]h)}(h,Set a bit and return its old value, for lockh]h,Set a bit and return its old value, for lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK3hjubj)}(hhh](j)}(h``long nr`` Bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK0hjubj)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK1hjubj)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK3hjubh)}(hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h]hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(xor_unlock_is_negative_byte (C function)c.xor_unlock_is_negative_bytehNtauh1hhjhhhNhNubh)}(hhh](j)}(hSbool xor_unlock_is_negative_byte (unsigned long mask, volatile unsigned long *addr)h]j)}(hRbool xor_unlock_is_negative_byte(unsigned long mask, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK>ubjg)}(hxor_unlock_is_negative_byteh]jm)}(hxor_unlock_is_negative_byteh]hxor_unlock_is_negative_byte}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK>ubj)}(h2(unsigned long mask, volatile unsigned long *addr)h](j)}(hunsigned long maskh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hunsignedh]hunsigned}(hj+ hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj9 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hjG hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjU hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjc hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(haddrh]haddr}(hjp hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhK>ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhK>hjxhhubj)}(hhh]h)}(hCXOR a single byte in memory and test if it is negative, for unlock.h]hCXOR a single byte in memory and test if it is negative, for unlock.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK>hj hhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(hX-**Parameters** ``unsigned long mask`` Change the bits which are set in this mask. ``volatile unsigned long *addr`` The address of the word containing the byte to change. **Description** Changes some of bits 0-6 in the word pointed to by **addr**. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock. **Return** Whether the top bit of the byte is set.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKBhj ubj)}(hhh](j)}(hC``unsigned long mask`` Change the bits which are set in this mask. h](j)}(h``unsigned long mask``h]j)}(hj h]hunsigned long mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK@hj ubj)}(hhh]h)}(h+Change the bits which are set in this mask.h]h+Change the bits which are set in this mask.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK@hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK@hj ubj)}(hX``volatile unsigned long *addr`` The address of the word containing the byte to change. h](j)}(h ``volatile unsigned long *addr``h]j)}(hj h]hvolatile unsigned long *addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKAhj ubj)}(hhh]h)}(h6The address of the word containing the byte to change.h]h6The address of the word containing the byte to change.}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj) hKAhj* ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj) hKAhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjO h]h Description}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM ubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKChj ubh)}(hX6Changes some of bits 0-6 in the word pointed to by **addr**. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock.h](h3Changes some of bits 0-6 in the word pointed to by }(hje hhhNhNubj)}(h**addr**h]haddr}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje ubh. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock.}(hje hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKBhj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKHhj ubh)}(h'Whether the top bit of the byte is set.h]h'Whether the top bit of the byte is set.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKIhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]bit-operationsah ]h"]bit operationsah$]h&]uh1hhjhhhhhK4ubh)}(hhh](h)}(hBitmap Operationsh]hBitmap Operations}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK@ubh)}(hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.h]hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhj hhubh)}(hXThe possible unused bits in the last, partially used word of a bitmap are 'don't care'. The implementation makes no particular effort to keep them zero. It ensures that their value will not affect the results of any operation. The bitmap operations that return Boolean (bitmap_empty, for example) or scalar (bitmap_weight, for example) results carefully filter out these unused bits from impacting their results.h]hXThe possible unused bits in the last, partially used word of a bitmap are ‘don’t care’. The implementation makes no particular effort to keep them zero. It ensures that their value will not affect the results of any operation. The bitmap operations that return Boolean (bitmap_empty, for example) or scalar (bitmap_weight, for example) results carefully filter out these unused bits from impacting their results.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhj hhubh)}(hThe byte ordering of bitmaps is more natural on little endian architectures. See the big-endian headers include/asm-ppc64/bitops.h and include/asm-s390/bitops.h for the best explanations of this ordering.h]hThe byte ordering of bitmaps is more natural on little endian architectures. See the big-endian headers include/asm-ppc64/bitops.h and include/asm-s390/bitops.h for the best explanations of this ordering.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhj hhubh)}(hThe DECLARE_BITMAP(name,bits) macro, in linux/types.h, can be used to declare an array named 'name' of just enough unsigned longs to contain all bit positions from 0 to 'bits' - 1.h]hThe DECLARE_BITMAP(name,bits) macro, in linux/types.h, can be used to declare an array named ‘name’ of just enough unsigned longs to contain all bit positions from 0 to ‘bits’ - 1.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:69: ./include/linux/bitmap.hhK{hj hhubh)}(hwThe available bitmap operations and their rough meaning in the case that the bitmap is a single unsigned long are thus:h]hwThe available bitmap operations and their rough meaning in the case that the bitmap is a single unsigned long are thus:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK!hj hhubh)}(hcThe generated code is more efficient when nbits is known at compile-time and at most BITS_PER_LONG.h]hcThe generated code is more efficient when nbits is known at compile-time and at most BITS_PER_LONG.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK$hj hhubj#C)}(hXb bitmap_zero(dst, nbits) *dst = 0UL bitmap_fill(dst, nbits) *dst = ~0UL bitmap_copy(dst, src, nbits) *dst = *src bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2 bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2 bitmap_weighted_or(dst, src1, src2, nbits) *dst = *src1 | *src2. Returns Hamming Weight of dst bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2 bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2) bitmap_complement(dst, src, nbits) *dst = ~(*src) bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal? bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2? bitmap_empty(src, nbits) Are all bits zero in *src? bitmap_full(src, nbits) Are all bits set in *src? bitmap_weight(src, nbits) Hamming Weight: number set bits bitmap_weight_and(src1, src2, nbits) Hamming Weight of and'ed bitmap bitmap_weight_andnot(src1, src2, nbits) Hamming Weight of andnot'ed bitmap bitmap_set(dst, pos, nbits) Set specified bit area bitmap_clear(dst, pos, nbits) Clear specified bit area bitmap_find_next_zero_area(buf, len, pos, n, mask) Find bit free area bitmap_find_next_zero_area_off(buf, len, pos, n, mask, mask_off) as above bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n bitmap_shift_left(dst, src, n, nbits) *dst = *src << n bitmap_cut(dst, src, first, n, nbits) Cut n bits from first, copy rest bitmap_replace(dst, old, new, mask, nbits) *dst = (*old & ~(*mask)) | (*new & *mask) bitmap_scatter(dst, src, mask, nbits) *dst = map(dense, sparse)(src) bitmap_gather(dst, src, mask, nbits) *dst = map(sparse, dense)(src) bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src) bitmap_bitremap(oldbit, old, new, nbits) newbit = map(old, new)(oldbit) bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region bitmap_release_region(bitmap, pos, order) Free specified bit region bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region bitmap_from_arr32(dst, buf, nbits) Copy nbits from u32[] buf to dst bitmap_from_arr64(dst, buf, nbits) Copy nbits from u64[] buf to dst bitmap_to_arr32(buf, src, nbits) Copy nbits from buf to u32[] dst bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst bitmap_get_value8(map, start) Get 8bit value from map at start bitmap_set_value8(map, value, start) Set 8bit value to map at start bitmap_read(map, start, nbits) Read an nbits-sized value from map at start bitmap_write(map, value, start, nbits) Write an nbits-sized value to map at starth]hXb bitmap_zero(dst, nbits) *dst = 0UL bitmap_fill(dst, nbits) *dst = ~0UL bitmap_copy(dst, src, nbits) *dst = *src bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2 bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2 bitmap_weighted_or(dst, src1, src2, nbits) *dst = *src1 | *src2. Returns Hamming Weight of dst bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2 bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2) bitmap_complement(dst, src, nbits) *dst = ~(*src) bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal? bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2? bitmap_empty(src, nbits) Are all bits zero in *src? bitmap_full(src, nbits) Are all bits set in *src? bitmap_weight(src, nbits) Hamming Weight: number set bits bitmap_weight_and(src1, src2, nbits) Hamming Weight of and'ed bitmap bitmap_weight_andnot(src1, src2, nbits) Hamming Weight of andnot'ed bitmap bitmap_set(dst, pos, nbits) Set specified bit area bitmap_clear(dst, pos, nbits) Clear specified bit area bitmap_find_next_zero_area(buf, len, pos, n, mask) Find bit free area bitmap_find_next_zero_area_off(buf, len, pos, n, mask, mask_off) as above bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n bitmap_shift_left(dst, src, n, nbits) *dst = *src << n bitmap_cut(dst, src, first, n, nbits) Cut n bits from first, copy rest bitmap_replace(dst, old, new, mask, nbits) *dst = (*old & ~(*mask)) | (*new & *mask) bitmap_scatter(dst, src, mask, nbits) *dst = map(dense, sparse)(src) bitmap_gather(dst, src, mask, nbits) *dst = map(sparse, dense)(src) bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src) bitmap_bitremap(oldbit, old, new, nbits) newbit = map(old, new)(oldbit) bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region bitmap_release_region(bitmap, pos, order) Free specified bit region bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region bitmap_from_arr32(dst, buf, nbits) Copy nbits from u32[] buf to dst bitmap_from_arr64(dst, buf, nbits) Copy nbits from u64[] buf to dst bitmap_to_arr32(buf, src, nbits) Copy nbits from buf to u32[] dst bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst bitmap_get_value8(map, start) Get 8bit value from map at start bitmap_set_value8(map, value, start) Set 8bit value to map at start bitmap_read(map, start, nbits) Read an nbits-sized value from map at start bitmap_write(map, value, start, nbits) Write an nbits-sized value to map at start}hj' sbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK)hj hhubh)}(hXNote, bitmap_zero() and bitmap_fill() operate over the region of unsigned longs, that is, bits behind bitmap till the unsigned long boundary will be zeroed or filled as well. Consider to use bitmap_clear() or bitmap_set() to make explicit zeroing or filling respectively.h]hXNote, bitmap_zero() and bitmap_fill() operate over the region of unsigned longs, that is, bits behind bitmap till the unsigned long boundary will be zeroed or filled as well. Consider to use bitmap_clear() or bitmap_set() to make explicit zeroing or filling respectively.}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhKZhj hhubh)}(hAAlso the following operations in asm/bitops.h apply to bitmaps.::h]h@Also the following operations in asm/bitops.h apply to bitmaps.:}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKdhj hhubj#C)}(hX{set_bit(bit, addr) *addr |= bit clear_bit(bit, addr) *addr &= ~bit change_bit(bit, addr) *addr ^= bit test_bit(bit, addr) Is bit set in *addr? test_and_set_bit(bit, addr) Set bit and return old value test_and_clear_bit(bit, addr) Clear bit and return old value test_and_change_bit(bit, addr) Change bit and return old value find_first_zero_bit(addr, nbits) Position first zero bit in *addr find_first_bit(addr, nbits) Position first set bit in *addr find_next_zero_bit(addr, nbits, bit) Position next zero bit in *addr >= bit find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit find_next_and_bit(addr1, addr2, nbits, bit) Same as find_next_bit, but in (*addr1 & *addr2)h]hX{set_bit(bit, addr) *addr |= bit clear_bit(bit, addr) *addr &= ~bit change_bit(bit, addr) *addr ^= bit test_bit(bit, addr) Is bit set in *addr? test_and_set_bit(bit, addr) Set bit and return old value test_and_clear_bit(bit, addr) Clear bit and return old value test_and_change_bit(bit, addr) Change bit and return old value find_first_zero_bit(addr, nbits) Position first zero bit in *addr find_first_bit(addr, nbits) Position first set bit in *addr find_next_zero_bit(addr, nbits, bit) Position next zero bit in *addr >= bit find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit find_next_and_bit(addr1, addr2, nbits, bit) Same as find_next_bit, but in (*addr1 & *addr2)}hjT sbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKfhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__bitmap_shift_right (C function)c.__bitmap_shift_righthNtauh1hhj hhhNhNubh)}(hhh](j)}(hhvoid __bitmap_shift_right (unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h]j)}(hgvoid __bitmap_shift_right(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j )}(hvoidh]hvoid}(hj| hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjx hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKRubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjx hhhj hKRubjg)}(h__bitmap_shift_righth]jm)}(h__bitmap_shift_righth]h__bitmap_shift_right}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjx hhhj hKRubj)}(hN(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdsth]hdst}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj$ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hunsignedh]hunsigned}(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj@ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hlongh]hlong}(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj\ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hsrch]hsrc}(hjw hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned shifth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hshifth]hshift}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned nbitsh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hnbitsh]hnbits}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjx hhhj hKRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjt hhhj hKRubah}(h]jo ah ](jjeh"]h$]h&]jj)jhuh1hhj hKRhjq hhubj)}(hhh]h)}(h+logical right shift of the bits in a bitmaph]h+logical right shift of the bits in a bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKRhj hhubah}(h]h ]h"]h$]h&]uh1jhjq hhhj hKRubeh}(h]h ](jfunctioneh"]h$]h&]jjjj# jj# jjjuh1hhhhj hNhNubj)}(hX}**Parameters** ``unsigned long *dst`` destination bitmap ``const unsigned long *src`` source bitmap ``unsigned shift`` shift by this many bits ``unsigned nbits`` bitmap size, in bits **Description** Shifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h](h)}(h**Parameters**h]j)}(hj- h]h Parameters}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKVhj' ubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjL h]hunsigned long *dst}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKShjF ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja hKShjb ubah}(h]h ]h"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]uh1jhja hKShjC ubj)}(h+``const unsigned long *src`` source bitmap h](j)}(h``const unsigned long *src``h]j)}(hj h]hconst unsigned long *src}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKThj ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKThj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKThjC ubj)}(h+``unsigned shift`` shift by this many bits h](j)}(h``unsigned shift``h]j)}(hj h]hunsigned shift}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKUhj ubj)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKUhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKUhjC ubj)}(h(``unsigned nbits`` bitmap size, in bits h](j)}(h``unsigned nbits``h]j)}(hj h]hunsigned nbits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKVhj ubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKVhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKVhjC ubeh}(h]h ]h"]h$]h&]uh1jhj' ubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKXhj' ubh)}(hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h]hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKWhj' ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __bitmap_shift_left (C function)c.__bitmap_shift_lefthNtauh1hhj hhhNhNubh)}(hhh](j)}(hovoid __bitmap_shift_left (unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h]j)}(hnvoid __bitmap_shift_left(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chK~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjhK~ubjg)}(h__bitmap_shift_lefth]jm)}(h__bitmap_shift_lefth]h__bitmap_shift_left}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhK~ubj)}(hV(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int shifth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hshifth]hshift}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjhK~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhK~ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhK~hjlhhubj)}(hhh]h)}(h*logical left shift of the bits in a bitmaph]h*logical left shift of the bits in a bitmap}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chK~hj;hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhK~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` destination bitmap ``const unsigned long *src`` source bitmap ``unsigned int shift`` shift by this many bits ``unsigned int nbits`` bitmap size, in bits **Description** Shifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjZubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjh]hunsigned long *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjyubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKhjvubj)}(h+``const unsigned long *src`` source bitmap h](j)}(h``const unsigned long *src``h]j)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjvubj)}(h/``unsigned int shift`` shift by this many bits h](j)}(h``unsigned int shift``h]j)}(hjh]hunsigned int shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjvubj)}(h,``unsigned int nbits`` bitmap size, in bits h](j)}(h``unsigned int nbits``h]j)}(hj*h]hunsigned int nbits}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj$ubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjZubh)}(hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h]hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_cut (C function) c.bitmap_cuthNtauh1hhj hhhNhNubh)}(hhh](j)}(hxvoid bitmap_cut (unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h]j)}(hwvoid bitmap_cut(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h bitmap_cuth]jm)}(h bitmap_cuth]h bitmap_cut}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hh(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdsth]hdst}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int firsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfirsth]hfirst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cuth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hcuth]hcut}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubjm)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhj6ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjubj)}(h9``unsigned int first`` start bit of region to be removed h](j)}(h``unsigned int first``h]j)}(hjuh]hunsigned int first}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjoubj)}(hhh]h)}(h!start bit of region to be removedh]h!start bit of region to be removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``unsigned int cut`` number of bits to remove h](j)}(h``unsigned int cut``h]j)}(hjh]hunsigned int cut}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj)}(hhh]h)}(hnumber of bits to removeh]hnumber of bits to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h,``unsigned int nbits`` bitmap size, in bits h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hSet the n-th bit of **dst** iff the n-th bit of **src** is set and n is less than **first**, or the m-th bit of **src** is set for any m such that **first** <= n < nbits, and m = n + **cut**.h](hSet the n-th bit of }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh iff the n-th bit of }(hj8hhhNhNubj)}(h**src**h]hsrc}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh is set and n is less than }(hj8hhhNhNubj)}(h **first**h]hfirst}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, or the m-th bit of }(hj8hhhNhNubj)}(h**src**h]hsrc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh is set for any m such that }(hj8hhhNhNubj)}(h **first**h]hfirst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh <= n < nbits, and m = n + }(hj8hhhNhNubj)}(h**cut**h]hcut}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(h:In pictures, example for a big-endian 32-bit architecture:h]h:In pictures, example for a big-endian 32-bit architecture:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hThe **src** bitmap is::h](hThe }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bitmap is:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj#C)}(hX)31 63 | | 10000000 11000001 11110010 00010101 10000000 11000001 01110010 00010101 | | | | 16 14 0 32h]hX)31 63 | | 10000000 11000001 11110010 00010101 10000000 11000001 01110010 00010101 | | | | 16 14 0 32}hjsbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hTif **cut** is 3, and **first** is 14, bits 14-16 in **src** are cut and **dst** is::h](hif }(hjhhhNhNubj)}(h**cut**h]hcut}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 3, and }(hjhhhNhNubj)}(h **first**h]hfirst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 14, bits 14-16 in }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are cut and }(hjhhhNhNubj)}(h**dst**h]hdst}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj#C)}(hXK31 63 | | 10110000 00011000 00110010 00010101 00010000 00011000 00101110 01000010 | | | 14 (bit 17 0 32 from @src)h]hXK31 63 | | 10110000 00011000 00110010 00010101 00010000 00011000 00101110 01000010 | | | 14 (bit 17 0 32 from @src)}hjIsbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hBNote that **dst** and **src** might overlap partially or entirely.h](h Note that }(hjXhhhNhNubj)}(h**dst**h]hdst}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh and }(hjXhhhNhNubj)}(h**src**h]hsrc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh% might overlap partially or entirely.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hThis is implemented in the obvious way, with a shift and carry step for each moved bit. Optimisation is left as an exercise for the compiler.h]hThis is implemented in the obvious way, with a shift and carry step for each moved bit. Optimisation is left as an exercise for the compiler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+bitmap_find_next_zero_area_off (C function) c.bitmap_find_next_zero_area_offhNtauh1hhj hhhNhNubh)}(hhh](j)}(hunsigned long bitmap_find_next_zero_area_off (unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask, unsigned long align_offset)h]j)}(hunsigned long bitmap_find_next_zero_area_off(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask, unsigned long align_offset)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hbitmap_find_next_zero_area_offh]jm)}(hbitmap_find_next_zero_area_offh]hbitmap_find_next_zero_area_off}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask, unsigned long align_offset)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnrh]hnr}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubjm)}(h align_maskh]h align_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long align_offseth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h align_offseth]h align_offset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhj hNhNubj)}(hXF**Parameters** ``unsigned long *map`` The address to base the search on ``unsigned long size`` The bitmap size in bits ``unsigned long start`` The bitnumber to start searching at ``unsigned int nr`` The number of zeroed bits we're looking for ``unsigned long align_mask`` Alignment mask for zero area ``unsigned long align_offset`` Alignment offset for zero area. **Description** The **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus **align_offset** is multiple of that power of 2.h](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj3ubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjXh]hunsigned long *map}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjRubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hjh]hunsigned int nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hj<h]hunsigned long align_mask}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj6ubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjOubj)}(h?``unsigned long align_offset`` Alignment offset for zero area. h](j)}(h``unsigned long align_offset``h]j)}(hju h]hunsigned long align_offset}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjoubj)}(hhh]h)}(hAlignment offset for zero area.h]hAlignment offset for zero area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj3ubh)}(hThe **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus **align_offset** is multiple of that power of 2.h](hThe }(hjhhhNhNubj)}(h**align_mask**h]h align_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubht should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus }(hjhhhNhNubj)}(h**align_offset**h]h align_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is multiple of that power of 2.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_remap (C function)c.bitmap_remaphNtauh1hhj hhhNhNubh)}(hhh](j)}(hvoid bitmap_remap (unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h]j)}(hvoid bitmap_remap(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj'hMubjg)}(h bitmap_remaph]jm)}(h bitmap_remaph]h bitmap_remap}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj'hMubj)}(hv(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj )}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnbitsh]hnbits}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhjhhubj)}(hhh]h)}(h8Apply map defined by a pair of bitmaps to another bitmaph]h8Apply map defined by a pair of bitmaps to another bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` remapped result ``const unsigned long *src`` subset to be remapped ``const unsigned long *old`` defines domain of map ``const unsigned long *new`` defines range of map ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Let **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w. If either of the **old** and **new** bitmaps are empty, or if **src** and **dst** point to the same location, then this routine copies **src** to **dst**. The positions of unset bits in **old** are mapped to themselves (the identity map). Apply the above specified mapping to **src**, placing the result in **dst**, clearing any bits previously set in **dst**. For example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **src** comes into this routine with bits 1, 5 and 7 set, then **dst** should leave with bits 1, 13 and 15 set.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh](j)}(h'``unsigned long *dst`` remapped result h](j)}(h``unsigned long *dst``h]j)}(hjh]hunsigned long *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hremapped resulth]hremapped result}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``const unsigned long *src`` subset to be remapped h](j)}(h``const unsigned long *src``h]j)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(hsubset to be remappedh]hsubset to be remapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hj4h]hconst unsigned long *old}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj.ubj)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjmh]hconst unsigned long *new}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjgubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" is mapped to the n-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hjhhhNhNubj)}(h**new**h]hnew}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is less than the weight of }(hjhhhNhNubj)}(h**old**h]hold}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh*, map the position of the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( to the position of the m-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, where m == n % w.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hIf either of the **old** and **new** bitmaps are empty, or if **src** and **dst** point to the same location, then this routine copies **src** to **dst**.h](hIf either of the }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bitmaps are empty, or if }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 point to the same location, then this routine copies }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hj hhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh- are mapped to themselves (the identity map).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hyApply the above specified mapping to **src**, placing the result in **dst**, clearing any bits previously set in **dst**.h](h%Apply the above specified mapping to }(hj2 hhhNhNubj)}(h**src**h]hsrc}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubh, placing the result in }(hj2 hhhNhNubj)}(h**dst**h]hdst}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubh&, clearing any bits previously set in }(hj2 hhhNhNubj)}(h**dst**h]hdst}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubh.}(hj2 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hXZFor example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **src** comes into this routine with bits 1, 5 and 7 set, then **dst** should leave with bits 1, 13 and 15 set.h](hFor example, lets say that }(hjw hhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh has bits 4 through 7 set, and }(hjw hhhNhNubj)}(h**new**h]hnew}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say }(hjw hhhNhNubj)}(h**src**h]hsrc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh8 comes into this routine with bits 1, 5 and 7 set, then }(hjw hhhNhNubj)}(h**dst**h]hdst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubh) should leave with bits 1, 13 and 15 set.}(hjw hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_bitremap (C function)c.bitmap_bitremaphNtauh1hhj hhhNhNubh)}(hhh](j)}(h^int bitmap_bitremap (int oldbit, const unsigned long *old, const unsigned long *new, int bits)h]j)}(h]int bitmap_bitremap(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hMubjg)}(hbitmap_bitremaph]jm)}(hbitmap_bitremaph]hbitmap_bitremap}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj !ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(hJ(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j)}(h int oldbith](j )}(hinth]hint}(hj+!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'!ubj)}(h h]h }(hj9!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'!ubjm)}(holdbith]holdbit}(hjG!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#!ubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hj`!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\!ubj)}(h h]h }(hjm!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\!ubj )}(hunsignedh]hunsigned}(hj{!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\!ubj )}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\!ubjm)}(holdh]hold}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#!ubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj )}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj,"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hnewh]hnew}(hj9"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#!ubj)}(hint bitsh](j )}(hinth]hint}(hjR"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjN"ubj)}(h h]h }(hj`"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN"ubjm)}(hbitsh]hbits}(hjn"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjN"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#!ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]h)}(h6Apply map defined by a pair of bitmaps to a single bith]h6Apply map defined by a pair of bitmaps to a single bit}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhj hNhNubj)}(hXS**Parameters** ``int oldbit`` bit position to be mapped ``const unsigned long *old`` defines domain of map ``const unsigned long *new`` defines range of map ``int bits`` number of bits in each of these bitmaps **Description** Let **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w. The positions of unset bits in **old** are mapped to themselves (the identity map). Apply the above specified mapping to bit position **oldbit**, returning the new bit position. For example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **oldbit** is 5, then this routine returns 13.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"ubj)}(hhh](j)}(h)``int oldbit`` bit position to be mapped h](j)}(h``int oldbit``h]j)}(hj"h]h int oldbit}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"ubj)}(hhh]h)}(hbit position to be mappedh]hbit position to be mapped}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj"ubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hj#h]hconst unsigned long *old}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj #ubj)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hj+#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'#hMhj(#ubah}(h]h ]h"]h$]h&]uh1jhj #ubeh}(h]h ]h"]h$]h&]uh1jhj'#hMhj"ubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjK#h]hconst unsigned long *new}(hjM#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjE#ubj)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjd#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`#hMhja#ubah}(h]h ]h"]h$]h&]uh1jhjE#ubeh}(h]h ]h"]h$]h&]uh1jhj`#hMhj"ubj)}(h5``int bits`` number of bits in each of these bitmaps h](j)}(h ``int bits``h]j)}(hj#h]hint bits}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj~#ubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj~#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"ubh)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hj#hhhNhNubj)}(h**old**h]hold}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh and }(hj#hhhNhNubj)}(h**new**h]hnew}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hj#hhhNhNubj)}(h**old**h]hold}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh" is mapped to the n-th set bit in }(hj#hhhNhNubj)}(h**new**h]hnew}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hj#hhhNhNubj)}(h**new**h]hnew}(hj%$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh is less than the weight of }(hj#hhhNhNubj)}(h**old**h]hold}(hj7$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh*, map the position of the n-th set bit in }(hj#hhhNhNubj)}(h**old**h]hold}(hjI$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh( to the position of the m-th set bit in }(hj#hhhNhNubj)}(h**new**h]hnew}(hj[$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh, where m == n % w.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"ubh)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hjt$hhhNhNubj)}(h**old**h]hold}(hj|$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt$ubh- are mapped to themselves (the identity map).}(hjt$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"ubh)}(h]Apply the above specified mapping to bit position **oldbit**, returning the new bit position.h](h2Apply the above specified mapping to bit position }(hj$hhhNhNubj)}(h **oldbit**h]holdbit}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh!, returning the new bit position.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj"ubh)}(hXFor example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **oldbit** is 5, then this routine returns 13.h](hFor example, lets say that }(hj$hhhNhNubj)}(h**old**h]hold}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh has bits 4 through 7 set, and }(hj$hhhNhNubj)}(h**new**h]hnew}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say }(hj$hhhNhNubj)}(h **oldbit**h]holdbit}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh$ is 5, then this routine returns 13.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_arr32 (C function)c.bitmap_from_arr32hNtauh1hhj hhhNhNubh)}(hhh](j)}(hRvoid bitmap_from_arr32 (unsigned long *bitmap, const u32 *buf, unsigned int nbits)h]j)}(hQvoid bitmap_from_arr32(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj)}(h h]h }(hj*%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj)%hMubjg)}(hbitmap_from_arr32h]jm)}(hbitmap_from_arr32h]hbitmap_from_arr32}(hj<%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj)%hMubj)}(h;(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjX%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT%ubj)}(h h]h }(hjf%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT%ubj )}(hlongh]hlong}(hjt%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjT%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjT%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT%ubjm)}(hbitmaph]hbitmap}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjT%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(hconst u32 *bufh](j)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hu32h]hu32}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE j>%sbc.bitmap_from_arr32asbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hbufh]hbuf}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj(&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$&ubj)}(h h]h }(hj6&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$&ubj )}(hinth]hint}(hjD&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$&ubj)}(h h]h }(hjR&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$&ubjm)}(hnbitsh]hnbits}(hj`&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP%ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj)%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj)%hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj)%hMhj%hhubj)}(hhh]h)}(h0copy the contents of u32 array of bits to bitmaph]h0copy the contents of u32 array of bits to bitmap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj)%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhj hNhNubj)}(h**Parameters** ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap ``const u32 *buf`` array of u32 (in host byte order), the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj&ubj)}(hhh](j)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hj&h]hunsigned long *bitmap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj&ubj)}(hhh]h)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhj&ubj)}(hH``const u32 *buf`` array of u32 (in host byte order), the source bitmap h](j)}(h``const u32 *buf``h]j)}(hj'h]hconst u32 *buf}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj&ubj)}(hhh]h)}(h4array of u32 (in host byte order), the source bitmaph]h4array of u32 (in host byte order), the source bitmap}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj&ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj='h]hunsigned int nbits}(hj?'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj7'ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjV'hhhNhNubj)}(h **bitmap**h]hbitmap}(hj^'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV'ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjS'ubah}(h]h ]h"]h$]h&]uh1jhj7'ubeh}(h]h ]h"]h$]h&]uh1jhjR'hMhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr32 (C function)c.bitmap_to_arr32hNtauh1hhj hhhNhNubh)}(hhh](j)}(hPvoid bitmap_to_arr32 (u32 *buf, const unsigned long *bitmap, unsigned int nbits)h]j)}(hOvoid bitmap_to_arr32(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM,ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj'hM,ubjg)}(hbitmap_to_arr32h]jm)}(hbitmap_to_arr32h]hbitmap_to_arr32}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj'hM,ubj)}(h;(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu32 *bufh](h)}(hhh]jm)}(hu32h]hu32}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.bitmap_to_arr32asbuh1hhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hbufh]hbuf}(hj (hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hj9(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5(ubj)}(h h]h }(hjF(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5(ubj )}(hunsignedh]hunsigned}(hjT(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5(ubj)}(h h]h }(hjb(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5(ubj )}(hlongh]hlong}(hjp(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5(ubj)}(h h]h }(hj~(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5(ubjm)}(hbitmaph]hbitmap}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj )}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubjm)}(hnbitsh]hnbits}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhj'hhhj'hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj'hM,ubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hM,hj'hhubj)}(hhh]h)}(h2copy the contents of bitmap to a u32 array of bitsh]h2copy the contents of bitmap to a u32 array of bits}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM,hj)hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,)jj,)jjjuh1hhhhj hNhNubj)}(h**Parameters** ``u32 *buf`` array of u32 (in host byte order), the dest bitmap ``const unsigned long *bitmap`` array of unsigned longs, the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hj6)h]h Parameters}(hj8)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4)ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM0hj0)ubj)}(hhh](j)}(h@``u32 *buf`` array of u32 (in host byte order), the dest bitmap h](j)}(h ``u32 *buf``h]j)}(hjU)h]hu32 *buf}(hjW)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM-hjO)ubj)}(hhh]h)}(h2array of u32 (in host byte order), the dest bitmaph]h2array of u32 (in host byte order), the dest bitmap}(hjn)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj)hM-hjk)ubah}(h]h ]h"]h$]h&]uh1jhjO)ubeh}(h]h ]h"]h$]h&]uh1jhjj)hM-hjL)ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj)h]hconst unsigned long *bitmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM.hj)ubj)}(hhh]h)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM.hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM.hjL)ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj)h]hunsigned int nbits}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM0hj)ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj)hhhNhNubj)}(h **bitmap**h]hbitmap}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM/hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM0hjL)ubeh}(h]h ]h"]h$]h&]uh1jhj0)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_arr64 (C function)c.bitmap_from_arr64hNtauh1hhj hhhNhNubh)}(hhh](j)}(hRvoid bitmap_from_arr64 (unsigned long *bitmap, const u64 *buf, unsigned int nbits)h]j)}(hQvoid bitmap_from_arr64(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj/*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+*hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMEubj)}(h h]h }(hj>*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+*hhhj=*hMEubjg)}(hbitmap_from_arr64h]jm)}(hbitmap_from_arr64h]hbitmap_from_arr64}(hjP*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+*hhhj=*hMEubj)}(h;(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjl*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjh*ubj)}(h h]h }(hjz*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh*ubj )}(hlongh]hlong}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjh*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh*ubjm)}(hbitmaph]hbitmap}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd*ubj)}(hconst u64 *bufh](j)}(hjh]hconst}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(hu64h]hu64}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]jR )}jE jR*sbc.bitmap_from_arr64asbuh1hhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hbufh]hbuf}(hj#+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd*ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj<+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8+ubj)}(h h]h }(hjJ+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8+ubj )}(hinth]hint}(hjX+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8+ubj)}(h h]h }(hjf+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8+ubjm)}(hnbitsh]hnbits}(hjt+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd*ubeh}(h]h ]h"]h$]h&]jjuh1jhj+*hhhj=*hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'*hhhj=*hMEubah}(h]j"*ah ](jjeh"]h$]h&]jj)jhuh1hhj=*hMEhj$*hhubj)}(hhh]h)}(h0copy the contents of u64 array of bits to bitmaph]h0copy the contents of u64 array of bits to bitmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMEhj+hhubah}(h]h ]h"]h$]h&]uh1jhj$*hhhj=*hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhj hNhNubj)}(h**Parameters** ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap ``const u64 *buf`` array of u64 (in host byte order), the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMIhj+ubj)}(hhh](j)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hj+h]hunsigned long *bitmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMFhj+ubj)}(hhh]h)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMFhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMFhj+ubj)}(hH``const u64 *buf`` array of u64 (in host byte order), the source bitmap h](j)}(h``const u64 *buf``h]j)}(hj,h]hconst u64 *buf}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMGhj,ubj)}(hhh]h)}(h4array of u64 (in host byte order), the source bitmaph]h4array of u64 (in host byte order), the source bitmap}(hj1,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-,hMGhj.,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj-,hMGhj+ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hjQ,h]hunsigned int nbits}(hjS,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMIhjK,ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjj,hhhNhNubj)}(h **bitmap**h]hbitmap}(hjr,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj,ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMHhjg,ubah}(h]h ]h"]h$]h&]uh1jhjK,ubeh}(h]h ]h"]h$]h&]uh1jhjf,hMIhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_to_arr64 (C function)c.bitmap_to_arr64hNtauh1hhj hhhNhNubh)}(hhh](j)}(hPvoid bitmap_to_arr64 (u64 *buf, const unsigned long *bitmap, unsigned int nbits)h]j)}(hOvoid bitmap_to_arr64(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj,hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMcubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,hhhj,hMcubjg)}(hbitmap_to_arr64h]jm)}(hbitmap_to_arr64h]hbitmap_to_arr64}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj,hMcubj)}(h;(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu64 *bufh](h)}(hhh]jm)}(hu64h]hu64}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE j,sbc.bitmap_to_arr64asbuh1hhj,ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hj'-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hbufh]hbuf}(hj4-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hjM-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI-ubj)}(h h]h }(hjZ-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI-ubj )}(hunsignedh]hunsigned}(hjh-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI-ubj)}(h h]h }(hjv-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI-ubj )}(hlongh]hlong}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI-ubjm)}(hbitmaph]hbitmap}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj )}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubjm)}(hnbitsh]hnbits}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj,hMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hMcubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hMchj,hhubj)}(hhh]h)}(h2copy the contents of bitmap to a u64 array of bitsh]h2copy the contents of bitmap to a u64 array of bits}(hj(.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMchj%.hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@.jj@.jjjuh1hhhhj hNhNubj)}(h**Parameters** ``u64 *buf`` array of u64 (in host byte order), the dest bitmap ``const unsigned long *bitmap`` array of unsigned longs, the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hjJ.h]h Parameters}(hjL.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH.ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMghjD.ubj)}(hhh](j)}(h@``u64 *buf`` array of u64 (in host byte order), the dest bitmap h](j)}(h ``u64 *buf``h]j)}(hji.h]hu64 *buf}(hjk.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg.ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMdhjc.ubj)}(hhh]h)}(h2array of u64 (in host byte order), the dest bitmaph]h2array of u64 (in host byte order), the dest bitmap}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~.hMdhj.ubah}(h]h ]h"]h$]h&]uh1jhjc.ubeh}(h]h ]h"]h$]h&]uh1jhj~.hMdhj`.ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj.h]hconst unsigned long *bitmap}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMehj.ubj)}(hhh]h)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMehj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMehj`.ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj.h]hunsigned int nbits}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMghj.ubj)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj.hhhNhNubj)}(h **bitmap**h]hbitmap}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMfhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMghj`.ubeh}(h]h ]h"]h$]h&]uh1jhjD.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_pos_to_ord (C function)c.bitmap_pos_to_ordhNtauh1hhj hhhNhNubh)}(hhh](j)}(hVint bitmap_pos_to_ord (const unsigned long *buf, unsigned int pos, unsigned int nbits)h]j)}(hUint bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j )}(hinth]hint}(hjC/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?/hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj)}(h h]h }(hjR/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?/hhhjQ/hMubjg)}(hbitmap_pos_to_ordh]jm)}(hbitmap_pos_to_ordh]hbitmap_pos_to_ord}(hjd/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?/hhhjQ/hMubj)}(h@(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j)}(hconst unsigned long *bufh](j)}(hjh]hconst}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|/ubj )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|/ubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|/ubjm)}(hbufh]hbuf}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx/ubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj )}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj#0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(hposh]hpos}(hj10hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx/ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjJ0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjF0ubj)}(h h]h }(hjX0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjF0ubj )}(hinth]hint}(hjf0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjF0ubj)}(h h]h }(hjt0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjF0ubjm)}(hnbitsh]hnbits}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx/ubeh}(h]h ]h"]h$]h&]jjuh1jhj?/hhhjQ/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;/hhhjQ/hMubah}(h]j6/ah ](jjeh"]h$]h&]jj)jhuh1hhjQ/hMhj8/hhubj)}(hhh]h)}(h3find ordinal of set bit at given position in bitmaph]h3find ordinal of set bit at given position in bitmap}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj8/hhhjQ/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj hNhNubj)}(hX,**Parameters** ``const unsigned long *buf`` pointer to a bitmap ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) ``unsigned int nbits`` number of valid bit positions in **buf** **Description** Map the bit at position **pos** in **buf** (of length **nbits**) to the ordinal of which set bit it is. If it is not set or if **pos** is not a valid bit position, map to -1. If for example, just bits 4 through 7 are set in **buf**, then **pos** values 4 through 7 will get mapped to 0 through 3, respectively, and other **pos** values will get mapped to -1. When **pos** value 7 gets mapped to (returns) **ord** value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in **buf**. The bit positions 0 through **bits** are valid positions in **buf**.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubj)}(hhh](j)}(h1``const unsigned long *buf`` pointer to a bitmap h](j)}(h``const unsigned long *buf``h]j)}(hj0h]hconst unsigned long *buf}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubj)}(hhh]h)}(hpointer to a bitmaph]hpointer to a bitmap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubj)}(hJ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) h](j)}(h``unsigned int pos``h]j)}(hj&1h]hunsigned int pos}(hj(1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj 1ubj)}(hhh]h)}(h4a bit position in **buf** (0 <= **pos** < **nbits**)h](ha bit position in }(hj?1hhhNhNubj)}(h**buf**h]hbuf}(hjG1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?1ubh (0 <= }(hj?1hhhNhNubj)}(h**pos**h]hpos}(hjY1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?1ubh < }(hj?1hhhNhNubj)}(h **nbits**h]hnbits}(hjk1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?1ubh)}(hj?1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj;1hMhj<1ubah}(h]h ]h"]h$]h&]uh1jhj 1ubeh}(h]h ]h"]h$]h&]uh1jhj;1hMhj0ubj)}(h@``unsigned int nbits`` number of valid bit positions in **buf** h](j)}(h``unsigned int nbits``h]j)}(hj1h]hunsigned int nbits}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj1ubj)}(hhh]h)}(h(number of valid bit positions in **buf**h](h!number of valid bit positions in }(hj1hhhNhNubj)}(h**buf**h]hbuf}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubh)}(hMap the bit at position **pos** in **buf** (of length **nbits**) to the ordinal of which set bit it is. If it is not set or if **pos** is not a valid bit position, map to -1.h](hMap the bit at position }(hj1hhhNhNubj)}(h**pos**h]hpos}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh in }(hj1hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh (of length }(hj1hhhNhNubj)}(h **nbits**h]hnbits}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubhA) to the ordinal of which set bit it is. If it is not set or if }(hj1hhhNhNubj)}(h**pos**h]hpos}(hj22hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh( is not a valid bit position, map to -1.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubh)}(hXPIf for example, just bits 4 through 7 are set in **buf**, then **pos** values 4 through 7 will get mapped to 0 through 3, respectively, and other **pos** values will get mapped to -1. When **pos** value 7 gets mapped to (returns) **ord** value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in **buf**.h](h1If for example, just bits 4 through 7 are set in }(hjK2hhhNhNubj)}(h**buf**h]hbuf}(hjS2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh, then }(hjK2hhhNhNubj)}(h**pos**h]hpos}(hje2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubhL values 4 through 7 will get mapped to 0 through 3, respectively, and other }(hjK2hhhNhNubj)}(h**pos**h]hpos}(hjw2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh% values will get mapped to -1. When }(hjK2hhhNhNubj)}(h**pos**h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh" value 7 gets mapped to (returns) }(hjK2hhhNhNubj)}(h**ord**h]hord}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubhZ value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in }(hjK2hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK2ubh.}(hjK2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubh)}(hDThe bit positions 0 through **bits** are valid positions in **buf**.h](hThe bit positions 0 through }(hj2hhhNhNubj)}(h**bits**h]hbits}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh are valid positions in }(hj2hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_onto (C function) c.bitmap_ontohNtauh1hhj hhhNhNubh)}(hhh](j)}(hpvoid bitmap_onto (unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h]j)}(hovoid bitmap_onto(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM5ubj)}(h h]h }(hj(3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhj'3hM5ubjg)}(h bitmap_ontoh]jm)}(h bitmap_ontoh]h bitmap_onto}(hj:3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj63ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj'3hM5ubj)}(h_(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjV3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjR3ubj)}(h h]h }(hjd3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR3ubj )}(hlongh]hlong}(hjr3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjR3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR3ubjm)}(hdsth]hdst}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(horigh]horig}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubj)}(hconst unsigned long *relmaph](j)}(hjh]hconst}(hj-4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)4ubj)}(h h]h }(hj:4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)4ubj )}(hunsignedh]hunsigned}(hjH4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)4ubj)}(h h]h }(hjV4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)4ubj )}(hlongh]hlong}(hjd4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)4ubj)}(h h]h }(hjr4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)4ubjm)}(hrelmaph]hrelmap}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(hbitsh]hbits}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj'3hM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj'3hM5ubah}(h]j 3ah ](jjeh"]h$]h&]jj)jhuh1hhj'3hM5hj3hhubj)}(hhh]h)}(h(translate one bitmap relative to anotherh]h(translate one bitmap relative to another}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM5hj5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj'3hM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 5jj 5jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` resulting translated bitmap ``const unsigned long *orig`` original untranslated bitmap ``const unsigned long *relmap`` bitmap relative to which translated ``unsigned int bits`` number of bits in each of these bitmaps **Description** Set the n-th bit of **dst** iff there exists some m such that the n-th bit of **relmap** is set, the m-th bit of **orig** is set, and the n-th bit of **relmap** is also the m-th _set_ bit of **relmap**. (If you understood the previous sentence the first time your read it, you're overqualified for your current job.) In other words, **orig** is mapped onto (surjectively) **dst**, using the map { | the n-th bit of **relmap** is the m-th set bit of **relmap** }. Any set bits in **orig** above bit number W, where W is the weight of (number of set bits in) **relmap** are mapped nowhere. In particular, if for all bits m set in **orig**, m >= W, then **dst** will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the **orig** bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in **dst**, for each bit (m) set in **orig**. Example [1] for bitmap_onto(): Let's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set. When bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**. When bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**. Similarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set. When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**. Example [2] for bitmap_fold() + bitmap_onto(): Let's say **relmap** has these ten bits set:: 40 41 42 43 45 48 53 61 74 95 (for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.) Further lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result:: unsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits); Then this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**): =============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= .. [#f1] For these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty. If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty. If (as explained above) the only set bits in **orig** are in positions m where m >= W, (where W is the weight of **relmap**) then **dst** will once again be returned empty. All bits in **dst** not set by the above rule are cleared.h](h)}(h**Parameters**h]j)}(hj*5h]h Parameters}(hj,5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(5ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM9hj$5ubj)}(hhh](j)}(h3``unsigned long *dst`` resulting translated bitmap h](j)}(h``unsigned long *dst``h]j)}(hjI5h]hunsigned long *dst}(hjK5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM6hjC5ubj)}(hhh]h)}(hresulting translated bitmaph]hresulting translated bitmap}(hjb5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^5hM6hj_5ubah}(h]h ]h"]h$]h&]uh1jhjC5ubeh}(h]h ]h"]h$]h&]uh1jhj^5hM6hj@5ubj)}(h;``const unsigned long *orig`` original untranslated bitmap h](j)}(h``const unsigned long *orig``h]j)}(hj5h]hconst unsigned long *orig}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM7hj|5ubj)}(hhh]h)}(horiginal untranslated bitmaph]horiginal untranslated bitmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM7hj5ubah}(h]h ]h"]h$]h&]uh1jhj|5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM7hj@5ubj)}(hD``const unsigned long *relmap`` bitmap relative to which translated h](j)}(h``const unsigned long *relmap``h]j)}(hj5h]hconst unsigned long *relmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM8hj5ubj)}(hhh]h)}(h#bitmap relative to which translatedh]h#bitmap relative to which translated}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM8hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM8hj@5ubj)}(h>``unsigned int bits`` number of bits in each of these bitmaps h](j)}(h``unsigned int bits``h]j)}(hj5h]hunsigned int bits}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM9hj5ubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 6hM9hj 6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj 6hM9hj@5ubeh}(h]h ]h"]h$]h&]uh1jhj$5ubh)}(h**Description**h]j)}(hj/6h]h Description}(hj16hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-6ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM;hj$5ubh)}(hX<Set the n-th bit of **dst** iff there exists some m such that the n-th bit of **relmap** is set, the m-th bit of **orig** is set, and the n-th bit of **relmap** is also the m-th _set_ bit of **relmap**. (If you understood the previous sentence the first time your read it, you're overqualified for your current job.)h](hSet the n-th bit of }(hjE6hhhNhNubj)}(h**dst**h]hdst}(hjM6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh3 iff there exists some m such that the n-th bit of }(hjE6hhhNhNubj)}(h **relmap**h]hrelmap}(hj_6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh is set, the m-th bit of }(hjE6hhhNhNubj)}(h**orig**h]horig}(hjq6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh is set, and the n-th bit of }(hjE6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubh is also the m-th _set_ bit of }(hjE6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE6ubhu. (If you understood the previous sentence the first time your read it, you’re overqualified for your current job.)}(hjE6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM:hj$5ubh)}(hIn other words, **orig** is mapped onto (surjectively) **dst**, using the map { | the n-th bit of **relmap** is the m-th set bit of **relmap** }.h](hIn other words, }(hj6hhhNhNubj)}(h**orig**h]horig}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is mapped onto (surjectively) }(hj6hhhNhNubj)}(h**dst**h]hdst}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh+, using the map { | the n-th bit of }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is the m-th set bit of }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh }.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM@hj$5ubh)}(hX9Any set bits in **orig** above bit number W, where W is the weight of (number of set bits in) **relmap** are mapped nowhere. In particular, if for all bits m set in **orig**, m >= W, then **dst** will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the **orig** bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in **dst**, for each bit (m) set in **orig**.h](hAny set bits in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhF above bit number W, where W is the weight of (number of set bits in) }(hj7hhhNhNubj)}(h **relmap**h]hrelmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh= are mapped nowhere. In particular, if for all bits m set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj17hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, m >= W, then }(hj7hhhNhNubj)}(h**dst**h]hdst}(hjC7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the }(hj7hhhNhNubj)}(h**orig**h]horig}(hjU7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in }(hj7hhhNhNubj)}(h**dst**h]hdst}(hjg7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, for each bit (m) set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hjy7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMDhj$5ubj)}(hhh](j)}(hXExample [1] for bitmap_onto(): Let's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set. When bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**. When bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**. Similarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set. When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**. h](j)}(hExample [1] for bitmap_onto():h]hExample [1] for bitmap_onto():}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMghj7ubj)}(hhh](h)}(hLet's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set.h](h Let’s say }(hj7hhhNhNubj)}(h **relmap**h]hrelmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh has bits 30-39 set, and }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhG has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh* will have bits 31, 33, 35, 37 and 39 set.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMOhj7ubh)}(hWhen bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**.h](hWhen bit 0 is set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, it means turn on the bit in }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhJ corresponding to whatever is the first bit (if any) that is turned on in }(hj7hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhO. Since bit 0 was off in the above example, we leave off that bit (bit 30) in }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj.8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMShj7ubh)}(hXWhen bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**.h](hWhen bit 1 is set in }(hjG8hhhNhNubj)}(h**orig**h]horig}(hjO8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubh8 (as in the above example), it means turn on the bit in }(hjG8hhhNhNubj)}(h**dst**h]hdst}(hja8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubhB corresponding to whatever is the second bit that is turned on in }(hjG8hhhNhNubj)}(h **relmap**h]hrelmap}(hjs8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubh. The second bit in }(hjG8hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubhO that was turned on in the above example was bit 31, so we turned on bit 31 in }(hjG8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG8ubh.}(hjG8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMXhj7ubh)}(hSimilarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set.h](h2Similarly, we turned on bits 33, 35, 37 and 39 in }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh?, because they were the 4th, 6th, 8th and 10th set bits set in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh), and the 4th, 6th, 8th and 10th bits of }(hj8hhhNhNubj)}(h**orig**h]horig}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh) (i.e. bits 3, 5, 7 and 9) were also set.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM^hj7ubh)}(hX When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**.h](hWhen bit 11 is set in }(hj8hhhNhNubj)}(h**orig**h]horig}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, it means turn on the bit in }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhC corresponding to whatever is the twelfth bit that is turned on in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj!9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh?. In the above example, there were only ten bits turned on in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj39hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh% (30..39), so that bit 11 was set in }(hj8hhhNhNubj)}(h**orig**h]horig}(hjE9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh had no affect on }(hj8hhhNhNubj)}(h**dst**h]hdst}(hjW9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMchj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMghj7ubj)}(hXExample [2] for bitmap_fold() + bitmap_onto(): Let's say **relmap** has these ten bits set:: 40 41 42 43 45 48 53 61 74 95 (for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.) Further lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result:: unsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits); Then this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**): =============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= h](j)}(h.Example [2] for bitmap_fold() + bitmap_onto():h]h.Example [2] for bitmap_fold() + bitmap_onto():}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj|9ubj)}(hhh](h)}(h-Let's say **relmap** has these ten bits set::h](h Let’s say }(hj9hhhNhNubj)}(h **relmap**h]hrelmap}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh has these ten bits set:}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMjhj9ubj#C)}(h40 41 42 43 45 48 53 61 74 95h]h40 41 42 43 45 48 53 61 74 95}hj9sbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMlhj9ubh)}(hP(for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.)h]hR(for the curious, that’s 40 plus the first ten terms of the Fibonacci sequence.)}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMnhj9ubh)}(hFurther lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result::h](hFurther lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty }(hj9hhhNhNubj)}(h**dst**h]hdst}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh result:}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMqhj9ubj#C)}(hunsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits);h]hunsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits);}hj9sbah}(h]h ]h"]h$]h&]jjuh1j"ChP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMuhj9ubh)}(hXThen this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**):h](h-Then this table shows what various values of }(hj:hhhNhNubj)}(h**dst**h]hdst}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh would be, for various }(hj:hhhNhNubj)}(h**orig**h]horig}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh’s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the }(hj:hhhNhNubj)}(h**orig**h]horig}(hj-:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh" bitmap modulo ten (the weight of }(hj:hhhNhNubj)}(h **relmap**h]hrelmap}(hj?:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh):}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMzhj9ubj)}(hXF=============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= h]je)}(hhh]je)}(hhh](je)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj_:ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj_:ubje)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jehj_:ubjZf)}(hhh](je)}(hhh](je)}(hhh]h)}(h**orig**h]j)}(hj:h]horig}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(htmph]htmp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h**dst**h]j)}(hj:h]hdst}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h0h]h0}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(hj:h]h0}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh]h)}(h40h]h40}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h1h]h1}(hj8;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj5;ubah}(h]h ]h"]h$]h&]uh1jehj2;ubje)}(hhh]h)}(hj:;h]h1}(hjP;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF;hMhjM;ubah}(h]h ]h"]h$]h&]uh1jehj2;ubje)}(hhh]h)}(h41h]h41}(hjf;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF;hMhjc;ubah}(h]h ]h"]h$]h&]uh1jehj2;ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h9h]h9}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubje)}(hhh]h)}(hj;h]h9}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubje)}(hhh]h)}(h95h]h95}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h10h]h10}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubje)}(hhh]h)}(hj:h]h0}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubje)}(hhh]h)}(h 40 [#f1]_h](h40 }(hj<hhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hj <hhhNhNubah}(h]id1ah ]h"]h$]h&]autoKrefidf1docnamecore-api/kernel-apiuh1j <hj<resolvedKubeh}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jehj;ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hj9<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj6<ubah}(h]h ]h"]h$]h&]uh1jehj3<ubje)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hjQ<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG<hMhjN<ubah}(h]h ]h"]h$]h&]uh1jehj3<ubje)}(hhh]h)}(h 41 43 48 61h]h 41 43 48 61}(hjh<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG<hMhje<ubah}(h]h ]h"]h$]h&]uh1jehj3<ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubje)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubje)}(hhh]h)}(h40 41 42 43 45h]h40 41 42 43 45}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 0 9 18 27h]h 0 9 18 27}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubje)}(hhh]h)}(h0 9 8 7h]h0 9 8 7}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jehj<ubje)}(hhh]h)}(h 40 61 74 95h]h 40 61 74 95}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jehj<ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 0 10 20 30h]h 0 10 20 30}(hj&=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj#=ubah}(h]h ]h"]h$]h&]uh1jehj =ubje)}(hhh]h)}(hj:h]h0}(hj>=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4=hMhj;=ubah}(h]h ]h"]h$]h&]uh1jehj =ubje)}(hhh]h)}(h40h]h40}(hjT=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4=hMhjQ=ubah}(h]h ]h"]h$]h&]uh1jehj =ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 0 11 22 33h]h 0 11 22 33}(hjt=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjq=ubah}(h]h ]h"]h$]h&]uh1jehjn=ubje)}(hhh]h)}(h0 1 2 3h]h0 1 2 3}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jehjn=ubje)}(hhh]h)}(h 40 41 42 43h]h 40 41 42 43}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jehjn=ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 0 12 24 36h]h 0 12 24 36}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj=ubah}(h]h ]h"]h$]h&]uh1jehj=ubje)}(hhh]h)}(h0 2 4 6h]h0 2 4 6}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jehj=ubje)}(hhh]h)}(h 40 42 45 53h]h 40 42 45 53}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jehj=ubeh}(h]h ]h"]h$]h&]uh1jehj:ubje)}(hhh](je)}(hhh]h)}(h 78 102 211h]h 78 102 211}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubah}(h]h ]h"]h$]h&]uh1jehj >ubje)}(hhh]h)}(h1 2 8h]h1 2 8}(hj*>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj >hMhj'>ubah}(h]h ]h"]h$]h&]uh1jehj >ubje)}(hhh]h)}(h41 42 74 [#f1]_h](h 41 42 74 }(hjA>hhhNhNubj <)}(h[#f1]_h]h1}(hjI>hhhNhNubah}(h]id2ah ]h"]h$]h&]j<Kj<j<j<j<uh1j <hjA>j <Kubeh}(h]h ]h"]h$]h&]uh1hhj >hMhj>>ubah}(h]h ]h"]h$]h&]uh1jehj >ubeh}(h]h ]h"]h$]h&]uh1jehj:ubeh}(h]h ]h"]h$]h&]uh1jYfhj_:ubeh}(h]h ]h"]h$]h&]colsKuh1jehj\:ubah}(h]h ]h"]h$]h&]uh1jehjX:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj9ubeh}(h]h ]h"]h$]h&]uh1jhj|9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj$5ubhfootnote)}(hwFor these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty. h](hlabel)}(hhh]h1}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>hhhNhNubh)}(hvFor these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty.h](hSFor these marked lines, if we hadn’t first done bitmap_fold() into tmp, then the }(hj>hhhNhNubj)}(h**dst**h]hdst}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh result would have been empty.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubeh}(h]j<ah ]h"]f1ah$]h&](j<jS>ej<Kj<j<uh1j>hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj$5ubh)}(h`If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty.h](h If either of }(hj>hhhNhNubj)}(h**orig**h]horig}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh or }(hj>hhhNhNubj)}(h **relmap**h]hrelmap}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh is empty (no set bits), then }(hj>hhhNhNubj)}(h**dst**h]hdst}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh will be returned empty.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj$5ubh)}(hIf (as explained above) the only set bits in **orig** are in positions m where m >= W, (where W is the weight of **relmap**) then **dst** will once again be returned empty.h](h-If (as explained above) the only set bits in }(hj?hhhNhNubj)}(h**orig**h]horig}(hj!?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh< are in positions m where m >= W, (where W is the weight of }(hj?hhhNhNubj)}(h **relmap**h]hrelmap}(hj3?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh) then }(hj?hhhNhNubj)}(h**dst**h]hdst}(hjE?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh# will once again be returned empty.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj$5ubh)}(h:All bits in **dst** not set by the above rule are cleared.h](h All bits in }(hj^?hhhNhNubj)}(h**dst**h]hdst}(hjf?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^?ubh' not set by the above rule are cleared.}(hj^?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj$5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_fold (C function) c.bitmap_foldhNtauh1hhj hhhNhNubh)}(hhh](j)}(hevoid bitmap_fold (unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h]j)}(hdvoid bitmap_fold(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhj?hMubjg)}(h bitmap_foldh]jm)}(h bitmap_foldh]h bitmap_fold}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhj?hMubj)}(hT(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj?ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hdsth]hdst}(hj!@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj:@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6@ubj)}(h h]h }(hjG@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6@ubj )}(hunsignedh]hunsigned}(hjU@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6@ubj)}(h h]h }(hjc@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6@ubj )}(hlongh]hlong}(hjq@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6@ubjm)}(horigh]horig}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hunsigned int szh](j )}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj )}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubjm)}(hszh]hsz}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj )}(hinth]hint}(hj AhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hj.AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hnbitsh]hnbits}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjLDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(hstarth]hstart}(hjZDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkCubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjsDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoDubj )}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoDubjm)}(hnrh]hnr}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkCubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(h align_maskh]h align_mask}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkCubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhj(ChKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhj(ChKubah}(h]j Cah ](jjeh"]h$]h&]jj)jhuh1hhj(ChKhjChhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hj&EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhj#Ehhubah}(h]h ]h"]h$]h&]uh1jhjChhhj(ChKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>Ejj>Ejjjuh1hhhhj hNhNubj)}(hX%**Parameters** ``unsigned long *map`` The address to base the search on ``unsigned long size`` The bitmap size in bits ``unsigned long start`` The bitnumber to start searching at ``unsigned int nr`` The number of zeroed bits we're looking for ``unsigned long align_mask`` Alignment mask for zero area **Description** The **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required.h](h)}(h**Parameters**h]j)}(hjHEh]h Parameters}(hjJEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBEubj)}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjgEh]hunsigned long *map}(hjiEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjaEubj)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|EhKhj}Eubah}(h]h ]h"]h$]h&]uh1jhjaEubeh}(h]h ]h"]h$]h&]uh1jhj|EhKhj^Eubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjEh]hunsigned long size}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubj)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj^Eubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hjEh]hunsigned long start}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubj)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj^Eubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hjFh]hunsigned int nr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhj Fubj)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hj+FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'FhKhj(Fubah}(h]h ]h"]h$]h&]uh1jhj Fubeh}(h]h ]h"]h$]h&]uh1jhj'FhKhj^Eubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjKFh]hunsigned long align_mask}(hjMFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEFubj)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjdFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`FhKhjaFubah}(h]h ]h"]h$]h&]uh1jhjEFubeh}(h]h ]h"]h$]h&]uh1jhj`FhKhj^Eubeh}(h]h ]h"]h$]h&]uh1jhjBEubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBEubh)}(hThe **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required.h](hThe }(hjFhhhNhNubj)}(h**align_mask**h]h align_mask}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A }(hjFhhhNhNubj)}(h**align_mask**h]h align_mask}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh% of 0 means no alignment is required.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjBEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_or_equal (C function)c.bitmap_or_equalhNtauh1hhj hhhNhNubh)}(hhh](j)}(hzbool bitmap_or_equal (const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h]j)}(hybool bitmap_or_equal(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j )}(hj8h]hbool}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjFhMubjg)}(hbitmap_or_equalh]jm)}(hbitmap_or_equalh]hbitmap_or_equal}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Gubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhMubj)}(he(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j)}(hconst unsigned long *src1h](j)}(hjh]hconst}(hj+GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Gubj)}(h h]h }(hj8GhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Gubj )}(hunsignedh]hunsigned}(hjFGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'Gubj)}(h h]h }(hjTGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Gubj )}(hlongh]hlong}(hjbGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'Gubj)}(h h]h }(hjpGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'Gubj)}(hjh]h*}(hj~GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Gubjm)}(hsrc1h]hsrc1}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubj)}(hconst unsigned long *src2h](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj )}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hsrc2h]hsrc2}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubj)}(hconst unsigned long *src3h](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hj*HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hunsignedh]hunsigned}(hj8HhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjFHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hlongh]hlong}(hjTHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjbHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjpHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hsrc3h]hsrc3}(hj}HhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj )}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubjm)}(hnbitsh]hnbits}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#Gubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhjFhhubj)}(hhh]h)}(h7Check whether the or of two bitmaps is equal to a thirdh]h7Check whether the or of two bitmaps is equal to a third}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``const unsigned long *src1`` Pointer to bitmap 1 ``const unsigned long *src2`` Pointer to bitmap 2 will be or'ed with bitmap 1 ``const unsigned long *src3`` Pointer to bitmap 3. Compare to the result of ***src1** | ***src2** ``unsigned int nbits`` number of bits in each of these bitmaps **Return** True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj)}(hhh](j)}(h2``const unsigned long *src1`` Pointer to bitmap 1 h](j)}(h``const unsigned long *src1``h]j)}(hj9Ih]hconst unsigned long *src1}(hj;IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Iubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj3Iubj)}(hhh]h)}(hPointer to bitmap 1h]hPointer to bitmap 1}(hjRIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNIhMhjOIubah}(h]h ]h"]h$]h&]uh1jhj3Iubeh}(h]h ]h"]h$]h&]uh1jhjNIhMhj0Iubj)}(hN``const unsigned long *src2`` Pointer to bitmap 2 will be or'ed with bitmap 1 h](j)}(h``const unsigned long *src2``h]j)}(hjrIh]hconst unsigned long *src2}(hjtIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjlIubj)}(hhh]h)}(h/Pointer to bitmap 2 will be or'ed with bitmap 1h]h1Pointer to bitmap 2 will be or’ed with bitmap 1}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjlIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj0Iubj)}(hb``const unsigned long *src3`` Pointer to bitmap 3. Compare to the result of ***src1** | ***src2** h](j)}(h``const unsigned long *src3``h]j)}(hjIh]hconst unsigned long *src3}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj)}(hhh]h)}(hCPointer to bitmap 3. Compare to the result of ***src1** | ***src2**h](h.Pointer to bitmap 3. Compare to the result of }(hjIhhhNhNubj)}(h ***src1**h]h*src1}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh | }(hjIhhhNhNubj)}(h ***src2**h]h*src2}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj0Iubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjJh]hunsigned int nbits}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj0Iubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(h **Return**h]j)}(hj?Jh]hReturn}(hjAJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Jubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubh)}(h=True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h True if (}(hjUJhhhNhNubj)}(h ***src1**h]h*src1}(hj]JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUJubh | }(hjUJhhhNhNubj)}(h ***src2**h]h*src2}(hjoJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUJubh) == }(hjUJhhhNhNubj)}(h ***src3**h]h*src3}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUJubh, false otherwise}(hjUJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_scatter (C function)c.bitmap_scatterhNtauh1hhj hhhNhNubh)}(hhh](j)}(hqvoid bitmap_scatter (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]j)}(hpvoid bitmap_scatter(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM$ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhjJhM$ubjg)}(hbitmap_scatterh]jm)}(hbitmap_scatterh]hbitmap_scatter}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhjJhM$ubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj )}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJubj)}(h h]h }(hj!KhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hj/KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hdsth]hdst}(hj 0000000001011010 0001001100010011 0000001100000010}(hjdNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM.hjLubh)}(h@(Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12)h]h@(Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM2hjLubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM4hjLubj#C)}(hsrc: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010h]hsrc: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010}hjNsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM6hjLubh)}(hA relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation.h]hA relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the ‘reverse’ bitmap_scatter() operation.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMAhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_gather (C function)c.bitmap_gatherhNtauh1hhj hhhNhNubh)}(hhh](j)}(hpvoid bitmap_gather (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]j)}(hovoid bitmap_gather(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMTubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjOhMTubjg)}(h bitmap_gatherh]jm)}(h bitmap_gatherh]h bitmap_gather}(hj&OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"Oubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjOhMTubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjBOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>Oubj)}(h h]h }(hjPOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>Oubj )}(hlongh]hlong}(hj^OhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>Oubj)}(h h]h }(hjlOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>Oubj)}(hjh]h*}(hjzOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Oubjm)}(hdsth]hdst}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj )}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj )}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hsrch]hsrc}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hj&PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hunsignedh]hunsigned}(hj4PhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjBPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjPPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hj^PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjlPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hmaskh]hmask}(hjyPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hnbitsh]hnbits}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:Oubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjOhMTubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjOhMTubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjOhMThjNhhubj)}(hhh]h)}(h'Gather a bitmap according to given maskh]h'Gather a bitmap according to given mask}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMThjPhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjOhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Qjj Qjjjuh1hhhhj hNhNubj)}(hXV**Parameters** ``unsigned long *dst`` gathered bitmap ``const unsigned long *src`` scattered bitmap ``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Gathers bitmap with sparse bits according to the given **mask**. **Example** If **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a. Or in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010 (Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5) A more 'visual' description of the operation:: mask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010 A relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation. Suppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src. The result can be 'equivalent' because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMXhjQubj)}(hhh](j)}(h'``unsigned long *dst`` gathered bitmap h](j)}(h``unsigned long *dst``h]j)}(hj5Qh]hunsigned long *dst}(hj7QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Qubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMUhj/Qubj)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjNQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJQhMUhjKQubah}(h]h ]h"]h$]h&]uh1jhj/Qubeh}(h]h ]h"]h$]h&]uh1jhjJQhMUhj,Qubj)}(h.``const unsigned long *src`` scattered bitmap h](j)}(h``const unsigned long *src``h]j)}(hjnQh]hconst unsigned long *src}(hjpQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMVhjhQubj)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMVhjQubah}(h]h ]h"]h$]h&]uh1jhjhQubeh}(h]h ]h"]h$]h&]uh1jhjQhMVhj,Qubj)}(h]``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjQh]hconst unsigned long *mask}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWhjQubj)}(hhh]h)}(h>mask representing bits to extract from in the scattered bitmaph]h>mask representing bits to extract from in the scattered bitmap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMWhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMWhj,Qubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjQh]hunsigned int nbits}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMXhjQubj)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMXhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMXhj,Qubeh}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMZhjQubh)}(h@Gathers bitmap with sparse bits according to the given **mask**.h](h7Gathers bitmap with sparse bits according to the given }(hj1RhhhNhNubj)}(h**mask**h]hmask}(hj9RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Rubh.}(hj1RhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMYhjQubh)}(h **Example**h]j)}(hjTRh]hExample}(hjVRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM[hjQubh)}(hKIf **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a.h](hIf }(hjjRhhhNhNubj)}(h**src**h]hsrc}(hjrRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjRubh bitmap = 0x0302, with }(hjjRhhhNhNubj)}(h**mask**h]hmask}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjRubh = 0x1313, }(hjjRhhhNhNubj)}(h**dst**h]hdst}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjRubh will be 0x001a.}(hjjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM\hjQubh)}(hOr in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010h](hOr in binary form }(hjRhhhNhNubj)}(h**src**h]hsrc}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh }(hjRhhhNhNubj)}(h**mask**h]hmask}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh }(hjRhhhNhNubj)}(h**dst**h]hdst}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh> 0000001100000010 0001001100010011 0000000000011010}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM^hjQubh)}(h@(Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5)h]h@(Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMbhjQubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMdhjQubj#C)}(hmask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010h]hmask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010}hjSsbah}(h]h ]h"]h$]h&]jjuh1j"ChZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMfhjQubh)}(hA relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation.h]hA relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the ‘reverse’ bitmap_gather() operation.}(hj!ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMphjQubh)}(hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.h]hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.}(hj0ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMthjQubh)}(hXThe result can be 'equivalent' because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.h]hXThe result can be ‘equivalent’ because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.}(hj?ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMxhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"bitmap_release_region (C function)c.bitmap_release_regionhNtauh1hhj hhhNhNubh)}(hhh](j)}(hOvoid bitmap_release_region (unsigned long *bitmap, unsigned int pos, int order)h]j)}(hNvoid bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)h](j )}(hvoidh]hvoid}(hjnShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjShhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj}ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjShhhj|ShMubjg)}(hbitmap_release_regionh]jm)}(hbitmap_release_regionh]hbitmap_release_region}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjShhhj|ShMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj )}(hlongh]hlong}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hbitmaph]hbitmap}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj )}(hinth]hint}(hj%ThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjTubj)}(h h]h }(hj3ThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hposh]hpos}(hjAThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h int orderh](j )}(hinth]hint}(hjZThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVTubj)}(h h]h }(hjhThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVTubjm)}(horderh]horder}(hjvThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjjShhhj|ShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfShhhj|ShMubah}(h]jaSah ](jjeh"]h$]h&]jj)jhuh1hhj|ShMhjcShhubj)}(hhh]h)}(hrelease allocated bitmap regionh]hrelease allocated bitmap region}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jhjcShhhj|ShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhj hNhNubj)}(hXg**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int pos`` beginning of bit region to release ``int order`` region size (log base 2 of number of bits) to release **Description** This is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjTh]hunsigned long *bitmap}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubj)}(h8``unsigned int pos`` beginning of bit region to release h](j)}(h``unsigned int pos``h]j)}(hjUh]hunsigned int pos}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjUubj)}(hhh]h)}(h"beginning of bit region to releaseh]h"beginning of bit region to release}(hj3UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/UhMhj0Uubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhj/UhMhjTubj)}(hD``int order`` region size (log base 2 of number of bits) to release h](j)}(h ``int order``h]j)}(hjSUh]h int order}(hjUUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjMUubj)}(hhh]h)}(h5region size (log base 2 of number of bits) to releaseh]h5region size (log base 2 of number of bits) to release}(hjlUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhUhMhjiUubah}(h]h ]h"]h$]h&]uh1jhjMUubeh}(h]h ]h"]h$]h&]uh1jhjhUhMhjTubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]j)}(hjUh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(hsThis is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).h]hsThis is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#bitmap_allocate_region (C function)c.bitmap_allocate_regionhNtauh1hhj hhhNhNubh)}(hhh](j)}(hOint bitmap_allocate_region (unsigned long *bitmap, unsigned int pos, int order)h]j)}(hNint bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order)h](j )}(hinth]hint}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjUhMubjg)}(hbitmap_allocate_regionh]jm)}(hbitmap_allocate_regionh]hbitmap_allocate_region}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Vubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Vubj )}(hlongh]hlong}(hj,VhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj Vubj)}(h h]h }(hj:VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Vubj)}(hjh]h*}(hjHVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Vubjm)}(hbitmaph]hbitmap}(hjUVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hjnVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjVubj)}(h h]h }(hj|VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjVubj )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjVubjm)}(hposh]hpos}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h int orderh](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(horderh]horder}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhjUhhubj)}(hhh]h)}(hallocate bitmap regionh]hallocate bitmap region}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhj hNhNubj)}(hX**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int pos`` beginning of bit region to allocate ``int order`` region size (log base 2 of number of bits) to allocate **Description** Allocate (set bits in) a specified region of a bitmap. **Return** 0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h)}(h**Parameters**h]j)}(hj'Wh]h Parameters}(hj)WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Wubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjFWh]hunsigned long *bitmap}(hjHWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj@Wubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hj_WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[WhMhj\Wubah}(h]h ]h"]h$]h&]uh1jhj@Wubeh}(h]h ]h"]h$]h&]uh1jhj[WhMhj=Wubj)}(h9``unsigned int pos`` beginning of bit region to allocate h](j)}(h``unsigned int pos``h]j)}(hjWh]hunsigned int pos}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Wubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjyWubj)}(hhh]h)}(h#beginning of bit region to allocateh]h#beginning of bit region to allocate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjyWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj=Wubj)}(hE``int order`` region size (log base 2 of number of bits) to allocate h](j)}(h ``int order``h]j)}(hjWh]h int order}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjWubj)}(hhh]h)}(h6region size (log base 2 of number of bits) to allocateh]h6region size (log base 2 of number of bits) to allocate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj=Wubeh}(h]h ]h"]h$]h&]uh1jhj!Wubh)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubh)}(h6Allocate (set bits in) a specified region of a bitmap.h]h6Allocate (set bits in) a specified region of a bitmap.}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubh)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubh)}(hU0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h0 on success, or }(hj0XhhhNhNubj)}(h ``-EBUSY``h]h-EBUSY}(hj8XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Xubh< if specified region wasn’t free (not all bits were zero).}(hj0XhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bitmap_find_free_region (C function)c.bitmap_find_free_regionhNtauh1hhj hhhNhNubh)}(hhh](j)}(hQint bitmap_find_free_region (unsigned long *bitmap, unsigned int bits, int order)h]j)}(hPint bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order)h](j )}(hinth]hint}(hjqXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmXhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmXhhhjXhMubjg)}(hbitmap_find_free_regionh]jm)}(hbitmap_find_free_regionh]hbitmap_find_free_region}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmXhhhjXhMubj)}(h5(unsigned long *bitmap, unsigned int bits, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj )}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hbitmaph]hbitmap}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hinth]hint}(hj(YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hj6YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hbitsh]hbits}(hjDYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h int orderh](j )}(hinth]hint}(hj]YhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYYubj)}(h h]h }(hjkYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYYubjm)}(horderh]horder}(hjyYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjmXhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjiXhhhjXhMubah}(h]jdXah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhjfXhhubj)}(hhh]h)}(h$find a contiguous aligned mem regionh]h$find a contiguous aligned mem region}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjfXhhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhj hNhNubj)}(hX1**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int bits`` number of bits in the bitmap ``int order`` region size (log base 2 of number of bits) to find **Description** Find a region of free (zero) bits in a **bitmap** of **bits** bits and allocate them (set them to one). Only consider regions of length a power (**order**) of two, aligned to that power of two, which makes the search algorithm much faster. **Return** the bit offset in bitmap of the allocated region, or -errno on failure.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubj)}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjYh]hunsigned long *bitmap}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubj)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjYubj)}(h3``unsigned int bits`` number of bits in the bitmap h](j)}(h``unsigned int bits``h]j)}(hjZh]hunsigned int bits}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubj)}(hhh]h)}(hnumber of bits in the bitmaph]hnumber of bits in the bitmap}(hj6ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ZhMhj3Zubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj2ZhMhjYubj)}(hA``int order`` region size (log base 2 of number of bits) to find h](j)}(h ``int order``h]j)}(hjVZh]h int order}(hjXZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjPZubj)}(hhh]h)}(h2region size (log base 2 of number of bits) to findh]h2region size (log base 2 of number of bits) to find}(hjoZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkZhMhjlZubah}(h]h ]h"]h$]h&]uh1jhjPZubeh}(h]h ]h"]h$]h&]uh1jhjkZhMhjYubeh}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubh)}(hFind a region of free (zero) bits in a **bitmap** of **bits** bits and allocate them (set them to one). Only consider regions of length a power (**order**) of two, aligned to that power of two, which makes the search algorithm much faster.h](h'Find a region of free (zero) bits in a }(hjZhhhNhNubj)}(h **bitmap**h]hbitmap}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh of }(hjZhhhNhNubj)}(h**bits**h]hbits}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubhU bits and allocate them (set them to one). Only consider regions of length a power (}(hjZhhhNhNubj)}(h **order**h]horder}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubhU) of two, aligned to that power of two, which makes the search algorithm much faster.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubh)}(h **Return**h]j)}(hjZh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubh)}(hGthe bit offset in bitmap of the allocated region, or -errno on failure.h]hGthe bit offset in bitmap of the allocated region, or -errno on failure.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hBITMAP_FROM_U64 (C macro)c.BITMAP_FROM_U64hNtauh1hhj hhhNhNubh)}(hhh](j)}(hBITMAP_FROM_U64h]j)}(hBITMAP_FROM_U64h]jg)}(hBITMAP_FROM_U64h]jm)}(hj-[h]hBITMAP_FROM_U64}(hj7[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj/[hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj+[hhhjJ[hMubah}(h]j&[ah ](jjeh"]h$]h&]jj)jhuh1hhjJ[hMhj([hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj([hhhjJ[hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjc[jjc[jjjuh1hhhhj hNhNubh)}(h``BITMAP_FROM_U64 (n)``h]j)}(hji[h]hBITMAP_FROM_U64 (n)}(hjk[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj hhubj)}(h7Represent u64 value in the format suitable for bitmap. h]h)}(h6Represent u64 value in the format suitable for bitmap.h]h6Represent u64 value in the format suitable for bitmap.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[hMhj hhubj)}(hX**Parameters** ``n`` u64 value **Description** Linux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one. There are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32. On 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don't require any special handling. On 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually. With all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubj)}(hhh]j)}(h``n`` u64 value h](j)}(h``n``h]j)}(hj[h]hn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubj)}(hhh]h)}(h u64 valueh]h u64 value}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubh)}(hLinux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one.h]hLinux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubh)}(hjThere are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32.h]hjThere are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubh)}(h}On 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don't require any special handling.h]hOn 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don’t require any special handling.}(hj,\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubh)}(hXOn 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually.h]hXOn 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually.}(hj;\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubh)}(hWith all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.h]hWith all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.}(hjJ\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_from_u64 (C function)c.bitmap_from_u64hNtauh1hhj hhhNhNubh)}(hhh](j)}(h3void bitmap_from_u64 (unsigned long *dst, u64 mask)h]j)}(h2void bitmap_from_u64(unsigned long *dst, u64 mask)h](j )}(hvoidh]hvoid}(hjy\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hju\hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhju\hhhj\hMubjg)}(hbitmap_from_u64h]jm)}(hbitmap_from_u64h]hbitmap_from_u64}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhju\hhhj\hMubj)}(h(unsigned long *dst, u64 mask)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj )}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hdsth]hdst}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hu64 maskh](h)}(hhh]jm)}(hu64h]hu64}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jR )}jE j\sbc.bitmap_from_u64asbuh1hhj]ubj)}(h h]h }(hj7]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hmaskh]hmask}(hjE]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhju\hhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjq\hhhj\hMubah}(h]jl\ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMhjn\hhubj)}(hhh]h)}(h Check and swap words within u64.h]h Check and swap words within u64.}(hjo]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjl]hhubah}(h]h ]h"]h$]h&]uh1jhjn\hhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhj hNhNubj)}(hXE**Parameters** ``unsigned long *dst`` destination bitmap ``u64 mask`` source bitmap **Description** In 32-bit Big Endian kernel, when using ``(u32 *)(:c:type:`val`)[*]`` to read u64 mask, we will get the wrong word. That is ``(u32 *)(:c:type:`val`)[0]`` gets the upper 32 bits, but we expect the lower 32-bits of u64.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubj)}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hj]h]hunsigned long *dst}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubj)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubj)}(h``u64 mask`` source bitmap h](j)}(h ``u64 mask``h]j)}(hj]h]hu64 mask}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubj)}(hhh]h)}(h source bitmaph]h source bitmap}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]ubh)}(h**Description**h]j)}(hj$^h]h Description}(hj&^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubh)}(hIn 32-bit Big Endian kernel, when using ``(u32 *)(:c:type:`val`)[*]`` to read u64 mask, we will get the wrong word. That is ``(u32 *)(:c:type:`val`)[0]`` gets the upper 32 bits, but we expect the lower 32-bits of u64.h](h(In 32-bit Big Endian kernel, when using }(hj:^hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[*]``h]h(u32 *)(:c:type:`val`)[*]}(hjB^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:^ubh7 to read u64 mask, we will get the wrong word. That is }(hj:^hhhNhNubj)}(h``(u32 *)(:c:type:`val`)[0]``h]h(u32 *)(:c:type:`val`)[0]}(hjT^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:^ubh@ gets the upper 32 bits, but we expect the lower 32-bits of u64.}(hj:^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_read (C function) c.bitmap_readhNtauh1hhj hhhNhNubh)}(hhh](j)}(h^unsigned long bitmap_read (const unsigned long *map, unsigned long start, unsigned long nbits)h]j)}(h]unsigned long bitmap_read(const unsigned long *map, unsigned long start, unsigned long nbits)h](j )}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhj^hMubj )}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^hhhj^hMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^hhhj^hMubjg)}(h bitmap_readh]jm)}(h bitmap_readh]h bitmap_read}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj^hMubj)}(hD(const unsigned long *map, unsigned long start, unsigned long nbits)h](j)}(hconst unsigned long *maph](j)}(hjh]hconst}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj+_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hj9_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hmaph]hmap}(hjF_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hj__hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[_ubj)}(h h]h }(hjm_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[_ubj )}(hlongh]hlong}(hj{_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[_ubjm)}(hstarth]hstart}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubjm)}(hnbitsh]hnbits}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj^hMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMhj^hhubj)}(hhh]h)}(h-read a value of n-bits from the memory regionh]h-read a value of n-bits from the memory region}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*`jj*`jjjuh1hhhhj hNhNubj)}(hX**Parameters** ``const unsigned long *map`` address to the bitmap memory region ``unsigned long start`` bit offset of the n-bit value ``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG **Return** value of **nbits** bits located at the **start** bit offset within the **map** memory region. For **nbits** = 0 and **nbits** > BITS_PER_LONG the return value is undefined.h](h)}(h**Parameters**h]j)}(hj4`h]h Parameters}(hj6`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2`ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj.`ubj)}(hhh](j)}(hA``const unsigned long *map`` address to the bitmap memory region h](j)}(h``const unsigned long *map``h]j)}(hjS`h]hconst unsigned long *map}(hjU`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjM`ubj)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hjl`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh`hMhji`ubah}(h]h ]h"]h$]h&]uh1jhjM`ubeh}(h]h ]h"]h$]h&]uh1jhjh`hMhjJ`ubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hj`h]hunsigned long start}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjJ`ubj)}(hL``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG h](j)}(h``unsigned long nbits``h]j)}(hj`h]hunsigned long nbits}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj`ubj)}(hhh]h)}(h3size of value in bits, nonzero, up to BITS_PER_LONGh]h3size of value in bits, nonzero, up to BITS_PER_LONG}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjJ`ubeh}(h]h ]h"]h$]h&]uh1jhj.`ubh)}(h **Return**h]j)}(hjah]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM hj.`ubh)}(hvalue of **nbits** bits located at the **start** bit offset within the **map** memory region. For **nbits** = 0 and **nbits** > BITS_PER_LONG the return value is undefined.h](h value of }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh bits located at the }(hjahhhNhNubj)}(h **start**h]hstart}(hj0ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh bit offset within the }(hjahhhNhNubj)}(h**map**h]hmap}(hjBahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh memory region. For }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjTahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh = 0 and }(hjahhhNhNubj)}(h **nbits**h]hnbits}(hjfahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh/ > BITS_PER_LONG the return value is undefined.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM hj.`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbitmap_write (C function)c.bitmap_writehNtauh1hhj hhhNhNubh)}(hhh](j)}(hevoid bitmap_write (unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h]j)}(hdvoid bitmap_write(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j )}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjahhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM!ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjahhhjahM!ubjg)}(h bitmap_writeh]jm)}(h bitmap_writeh]h bitmap_write}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhhjahM!ubj)}(hS(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj )}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hmaph]hmap}(hj!bhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long valueh](j )}(hunsignedh]hunsigned}(hj:bhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6bubj)}(h h]h }(hjHbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6bubj )}(hlongh]hlong}(hjVbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6bubj)}(h h]h }(hjdbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6bubjm)}(hvalueh]hvalue}(hjrbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj )}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hstarth]hstart}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj )}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hnbitsh]hnbits}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjahM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjahM!ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahM!hjahhubj)}(hhh]h)}(h(write n-bit value within a memory regionh]h(write n-bit value within a memory region}(hj>chhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM!hj;chhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVcjjVcjjjuh1hhhhj hNhNubj)}(hXG**Parameters** ``unsigned long *map`` address to the bitmap memory region ``unsigned long value`` value to write, clamped to nbits ``unsigned long start`` bit offset of the n-bit value ``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. **Description** bitmap_write() behaves as-if implemented as **nbits** calls of __assign_bit(), i.e. bits beyond **nbits** are ignored: for (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); For **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](h)}(h**Parameters**h]j)}(hj`ch]h Parameters}(hjbchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^cubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM%hjZcubj)}(hhh](j)}(h;``unsigned long *map`` address to the bitmap memory region h](j)}(h``unsigned long *map``h]j)}(hjch]hunsigned long *map}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}cubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM"hjycubj)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM"hjcubah}(h]h ]h"]h$]h&]uh1jhjycubeh}(h]h ]h"]h$]h&]uh1jhjchM"hjvcubj)}(h9``unsigned long value`` value to write, clamped to nbits h](j)}(h``unsigned long value``h]j)}(hjch]hunsigned long value}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM#hjcubj)}(hhh]h)}(h value to write, clamped to nbitsh]h value to write, clamped to nbits}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM#hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM#hjvcubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hjch]hunsigned long start}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM$hjcubj)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM$hjdubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjdhM$hjvcubj)}(hM``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. h](j)}(h``unsigned long nbits``h]j)}(hj*dh]hunsigned long nbits}(hj,dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(dubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM%hj$dubj)}(hhh]h)}(h4size of value in bits, nonzero, up to BITS_PER_LONG.h]h4size of value in bits, nonzero, up to BITS_PER_LONG.}(hjCdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?dhM%hj@dubah}(h]h ]h"]h$]h&]uh1jhj$dubeh}(h]h ]h"]h$]h&]uh1jhj?dhM%hjvcubeh}(h]h ]h"]h$]h&]uh1jhjZcubh)}(h**Description**h]j)}(hjedh]h Description}(hjgdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM'hjZcubh)}(hvbitmap_write() behaves as-if implemented as **nbits** calls of __assign_bit(), i.e. bits beyond **nbits** are ignored:h](h,bitmap_write() behaves as-if implemented as }(hj{dhhhNhNubj)}(h **nbits**h]hnbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{dubh+ calls of __assign_bit(), i.e. bits beyond }(hj{dhhhNhNubj)}(h **nbits**h]hnbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{dubh are ignored:}(hj{dhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM&hjZcubj)}(h]for (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h]j)}(hhh]j)}(hUfor (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); h](j)}(h!for (bit = 0; bit < nbits; bit++)h]h!for (bit = 0; bit < nbits; bit++)}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM*hjdubj)}(hhh]h)}(h2__assign_bit(start + bit, bitmap, val & BIT(bit));h]h2__assign_bit(start + bit, bitmap, val & BIT(bit));}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM*hjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM*hjdubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM)hjZcubh)}(hIFor **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](hFor }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh == 0 and }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh) > BITS_PER_LONG no writes are performed.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM,hjZcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]bitmap-operationsah ]h"]bitmap operationsah$]h&]uh1hhjhhhhhK@ubh)}(hhh](h)}(hCommand-line Parsingh]hCommand-line Parsing}(hj7ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ehhhhhKXubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_option (C function) c.get_optionhNtauh1hhj4ehhhNhNubh)}(hhh](j)}(h&int get_option (char **str, int *pint)h]j)}(h%int get_option(char **str, int *pint)h](j )}(hinth]hint}(hj^ehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZehhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$ubj)}(h h]h }(hjmehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZehhhjlehK$ubjg)}(h get_optionh]jm)}(h get_optionh]h get_option}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{eubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZehhhjlehK$ubj)}(h(char **str, int *pint)h](j)}(h char **strh](j )}(hcharh]hchar}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hstrh]hstr}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h int *pinth](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hpinth]hpint}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjZehhhjlehK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVehhhjlehK$ubah}(h]jQeah ](jjeh"]h$]h&]jj)jhuh1hhjlehK$hjSehhubj)}(hhh]h)}(h#Parse integer from an option stringh]h#Parse integer from an option string}(hj=fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$hj:fhhubah}(h]h ]h"]h$]h&]uh1jhjSehhhjlehK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUfjjUfjjjuh1hhhhj4ehNhNubj)}(hXo**Parameters** ``char **str`` option string ``int *pint`` (optional output) integer value parsed from **str** **Description** Read an int from an option string; if available accept a subsequent comma as well. When **pint** is NULL the function can be used as a validator of the current option in the string. Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range Leading hyphen without integer is no integer case, but we consume it for the sake of simplification.h](h)}(h**Parameters**h]j)}(hj_fh]h Parameters}(hjafhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]fubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjYfubj)}(hhh](j)}(h``char **str`` option string h](j)}(h``char **str``h]j)}(hj~fh]h char **str}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|fubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK%hjxfubj)}(hhh]h)}(h option stringh]h option string}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhK%hjfubah}(h]h ]h"]h$]h&]uh1jhjxfubeh}(h]h ]h"]h$]h&]uh1jhjfhK%hjufubj)}(hB``int *pint`` (optional output) integer value parsed from **str** h](j)}(h ``int *pint``h]j)}(hjfh]h int *pint}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK&hjfubj)}(hhh]h)}(h3(optional output) integer value parsed from **str**h](h,(optional output) integer value parsed from }(hjfhhhNhNubj)}(h**str**h]hstr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1hhjfhK&hjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhK&hjufubeh}(h]h ]h"]h$]h&]uh1jhjYfubh)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjYfubj)}(hXRead an int from an option string; if available accept a subsequent comma as well. When **pint** is NULL the function can be used as a validator of the current option in the string. Return values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range Leading hyphen without integer is no integer case, but we consume it for the sake of simplification.h](h)}(hRRead an int from an option string; if available accept a subsequent comma as well.h]hRRead an int from an option string; if available accept a subsequent comma as well.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK'hjgubh)}(hbWhen **pint** is NULL the function can be used as a validator of the current option in the string.h](hWhen }(hj)ghhhNhNubj)}(h**pint**h]hpint}(hj1ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)gubhU is NULL the function can be used as a validator of the current option in the string.}(hj)ghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK*hjgubh)}(hReturn values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a rangeh]hReturn values: 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range}(hjJghhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK-hjgubh)}(hdLeading hyphen without integer is no integer case, but we consume it for the sake of simplification.h]hdLeading hyphen without integer is no integer case, but we consume it for the sake of simplification.}(hjYghhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK3hjgubeh}(h]h ]h"]h$]h&]uh1jhj(ghK'hjYfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4ehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_options (C function) c.get_optionshNtauh1hhj4ehhhNhNubh)}(hhh](j)}(h:char * get_options (const char *str, int nints, int *ints)h]j)}(h8char *get_options(const char *str, int nints, int *ints)h](j )}(hcharh]hchar}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKSubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghKSubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghKSubjg)}(h get_optionsh]jm)}(h get_optionsh]h get_options}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghKSubj)}(h'(const char *str, int nints, int *ints)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj )}(hcharh]hchar}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjgubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hstrh]hstr}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h int nintsh](j )}(hinth]hint}(hj5hhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hubj)}(h h]h }(hjChhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hubjm)}(hnintsh]hnints}(hjQhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h int *intsh](j )}(hinth]hint}(hjjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhubj)}(h h]h }(hjxhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhubjm)}(hintsh]hints}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghKSubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghKShjghhubj)}(hhh]h)}(h&Parse a string into a list of integersh]h&Parse a string into a list of integers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKShjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhj4ehNhNubj)}(hX**Parameters** ``const char *str`` String to be parsed ``int nints`` size of integer array ``int *ints`` integer array (must have room for at least one element) **Description** This function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string. When **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below. The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**. Return value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjhubj)}(hhh](j)}(h(``const char *str`` String to be parsed h](j)}(h``const char *str``h]j)}(hjhh]hconst char *str}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKThjhubj)}(hhh]h)}(hString to be parsedh]hString to be parsed}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKThjiubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjihKThjhubj)}(h$``int nints`` size of integer array h](j)}(h ``int nints``h]j)}(hj7ih]h int nints}(hj9ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5iubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKUhj1iubj)}(hhh]h)}(hsize of integer arrayh]hsize of integer array}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLihKUhjMiubah}(h]h ]h"]h$]h&]uh1jhj1iubeh}(h]h ]h"]h$]h&]uh1jhjLihKUhjhubj)}(hF``int *ints`` integer array (must have room for at least one element) h](j)}(h ``int *ints``h]j)}(hjpih]h int *ints}(hjrihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjniubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKVhjjiubj)}(hhh]h)}(h7integer array (must have room for at least one element)h]h7integer array (must have room for at least one element)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKVhjiubah}(h]h ]h"]h$]h&]uh1jhjjiubeh}(h]h ]h"]h$]h&]uh1jhjihKVhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKXhjhubj)}(hXThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string. When **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below. The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**. Return value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](h)}(hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.h]hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjiubh)}(hWhen **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below.h](hWhen }(hjihhhNhNubj)}(h **nints**h]hnints}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh- is 0, the function just validates the given }(hjihhhNhNubj)}(h**str**h]hstr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubhA and returns the amount of parseable integers as described below.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK]hjiubh)}(h{The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**.h](hsThe first element is filled by the number of collected integers in the range. The rest is what was parsed from the }(hjjhhhNhNubj)}(h**str**h]hstr}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKahjiubh)}(hReturn value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](hkReturn value is the character in the string which caused the parse to end (typically a null terminator, if }(hj(jhhhNhNubj)}(h**str**h]hstr}(hj0jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(jubh is completely parseable).}(hj(jhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKdhjiubeh}(h]h ]h"]h$]h&]uh1jhjihKWhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj4ehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmemparse (C function) c.memparsehNtauh1hhj4ehhhNhNubh)}(hhh](j)}(hhjYqubh)}(hThe error code within **ptr**.h](hThe error code within }(hjqhhhNhNubj)}(h**ptr**h]hptr}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK=hjYqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hIS_ERR (C function)c.IS_ERRhNtauh1hhjlhhhNhNubh)}(hhh](j)}(h%bool IS_ERR (__force const void *ptr)h]j)}(h$bool IS_ERR(__force const void *ptr)h](j )}(hj8h]hbool}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj rhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKHubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj rhhhjrhKHubjg)}(hIS_ERRh]jm)}(hIS_ERRh]hIS_ERR}(hj0rhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,rubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj rhhhjrhKHubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjHrhhhNhNubj)}(h h]h }(hjPrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHrubj)}(hjh]hconst}(hj^rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHrubj)}(h h]h }(hjkrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHrubj )}(hvoidh]hvoid}(hjyrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHrubjm)}(hptrh]hptr}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDrubah}(h]h ]h"]h$]h&]jjuh1jhj rhhhjrhKHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhKHubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhKHhjrhhubj)}(hhh]h)}(hDetect an error pointer.h]hDetect an error pointer.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKHhjrhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhjlhNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to check. **Return** true if **ptr** is an error pointer, false otherwise.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKLhjrubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hj sh]h__force const void *ptr}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj subah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKIhjsubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hj&shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"shKIhj#subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj"shKIhjsubah}(h]h ]h"]h$]h&]uh1jhjrubh)}(h **Return**h]j)}(hjHsh]hReturn}(hjJshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKKhjrubh)}(h5true if **ptr** is an error pointer, false otherwise.h](htrue if }(hj^shhhNhNubj)}(h**ptr**h]hptr}(hjfshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^subh& is an error pointer, false otherwise.}(hj^shhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKJhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hIS_ERR_OR_NULL (C function)c.IS_ERR_OR_NULLhNtauh1hhjlhhhNhNubh)}(hhh](j)}(h-bool IS_ERR_OR_NULL (__force const void *ptr)h]j)}(h,bool IS_ERR_OR_NULL(__force const void *ptr)h](j )}(hj8h]hbool}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjshhhjshKUubjg)}(hIS_ERR_OR_NULLh]jm)}(hIS_ERR_OR_NULLh]hIS_ERR_OR_NULL}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjshKUubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjshhhNhNubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]hconst}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjsubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjsubj)}(hjh]h*}(hj$thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjm)}(hptrh]hptr}(hj1thhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjshhhjshKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjshKUubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshKUhjshhubj)}(hhh]h)}(h*Detect an error pointer or a null pointer.h]h*Detect an error pointer or a null pointer.}(hj[thhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUhjXthhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjstjjstjjjuh1hhhhjlhNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to check. **Description** Like IS_ERR(), but also returns true for a null pointer.h](h)}(h**Parameters**h]j)}(hj}th]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{tubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKYhjwtubj)}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hjth]h__force const void *ptr}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKVhjtubj)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKVhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthKVhjtubah}(h]h ]h"]h$]h&]uh1jhjwtubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXhjwtubh)}(h8Like IS_ERR(), but also returns true for a null pointer.h]h8Like IS_ERR(), but also returns true for a null pointer.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKWhjwtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjlhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hERR_CAST (C function) c.ERR_CASThNtauh1hhjlhhhNhNubh)}(hhh](j)}(h)void * ERR_CAST (__force const void *ptr)h]j)}(h'void *ERR_CAST(__force const void *ptr)h](j )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`ubj)}(h h]h }(hj+uhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhj*uhK`ubj)}(hjh]h*}(hj9uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhj*uhK`ubjg)}(hERR_CASTh]jm)}(hERR_CASTh]hERR_CAST}(hjJuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhj*uhK`ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjbuhhhNhNubj)}(h h]h }(hjjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbuubj)}(hjh]hconst}(hjxuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbuubj )}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbuubjm)}(hptrh]hptr}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^uubah}(h]h ]h"]h$]h&]jjuh1jhjuhhhj*uhK`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhj*uhK`ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhj*uhK`hjuhhubj)}(hhh]h)}(h?Explicitly cast an error-valued pointer to another pointer typeh]h?Explicitly cast an error-valued pointer to another pointer type}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`hjuhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhj*uhK`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhjlhNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to cast. **Description** Explicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that's what's going on.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hj vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKdhjvubj)}(hhh]j)}(h1``__force const void *ptr`` The pointer to cast. h](j)}(h``__force const void *ptr``h]j)}(hj'vh]h__force const void *ptr}(hj)vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%vubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKahj!vubj)}(hhh]h)}(hThe pointer to cast.h]hThe pointer to cast.}(hj@vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hnumh]hnum}(hjLyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjjymodnameN classnameNjI jL )}jO ]j:yc.sort_rasbuh1hhjayubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjayubjm)}(hsizeh]hsize}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjayubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hcmp_r_func_t cmp_funch](h)}(hhh]jm)}(h cmp_r_func_th]h cmp_r_func_t}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j:yc.sort_rasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hcmp_funch]hcmp_func}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hswap_r_func_t swap_funch](h)}(hhh]jm)}(h swap_r_func_th]h swap_r_func_t}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j:yc.sort_rasbuh1hhjyubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(h swap_funch]h swap_func}(hj$zhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hconst void *privh](j)}(hjh]hconst}(hj=zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9zubj)}(h h]h }(hjJzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9zubj )}(hvoidh]hvoid}(hjXzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9zubj)}(h h]h }(hjfzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9zubj)}(hjh]h*}(hjtzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9zubjm)}(hprivh]hpriv}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj)}(hhh]h)}(hsort an array of elementsh]hsort an array of elements}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhjrxhNhNubj)}(hX`**Parameters** ``void *base`` pointer to data to sort ``size_t num`` number of elements ``size_t size`` size of each element ``cmp_r_func_t cmp_func`` pointer to comparison function ``swap_r_func_t swap_func`` pointer to swap function or NULL ``const void *priv`` third argument passed to comparison function **Description** This function does a heapsort on the given array. You may provide a swap_func function if you need to do something more than a memory copy (e.g. fix up pointers or auxiliary data), but the built-in swap avoids a slow retpoline and so is significantly faster. The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp_func(a, b) must return the opposite sign of cmp_func(b, a). - Transitivity: if cmp_func(a, b) <= 0 and cmp_func(b, c) <= 0, then cmp_func(a, c) <= 0. Sorting time is O(n log n) both on average and worst-case. While quicksort is slightly faster on average, it suffers from exploitable O(n*n) worst-case behavior and extra memory requirements that make it less suitable for kernel use.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzubj)}(hhh](j)}(h'``void *base`` pointer to data to sort h](j)}(h``void *base``h]j)}(hjzh]h void *base}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzubj)}(hhh]h)}(hpointer to data to sorth]hpointer to data to sort}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjzubj)}(h"``size_t num`` number of elements h](j)}(h``size_t num``h]j)}(hj%{h]h size_t num}(hj'{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#{ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj{ubj)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(hj>{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:{hMhj;{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj:{hMhjzubj)}(h%``size_t size`` size of each element h](j)}(h``size_t size``h]j)}(hj^{h]h size_t size}(hj`{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\{ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjX{ubj)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjw{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs{hMhjt{ubah}(h]h ]h"]h$]h&]uh1jhjX{ubeh}(h]h ]h"]h$]h&]uh1jhjs{hMhjzubj)}(h9``cmp_r_func_t cmp_func`` pointer to comparison function h](j)}(h``cmp_r_func_t cmp_func``h]j)}(hj{h]hcmp_r_func_t cmp_func}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj{ubj)}(hhh]h)}(hpointer to comparison functionh]hpointer to comparison function}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjzubj)}(h=``swap_r_func_t swap_func`` pointer to swap function or NULL h](j)}(h``swap_r_func_t swap_func``h]j)}(hj{h]hswap_r_func_t swap_func}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj{ubj)}(hhh]h)}(h pointer to swap function or NULLh]h pointer to swap function or NULL}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjzubj)}(hB``const void *priv`` third argument passed to comparison function h](j)}(h``const void *priv``h]j)}(hj |h]hconst void *priv}(hj |hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj|ubj)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hj"|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjD|h]h Description}(hjF|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB|ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzubh)}(hXThis function does a heapsort on the given array. You may provide a swap_func function if you need to do something more than a memory copy (e.g. fix up pointers or auxiliary data), but the built-in swap avoids a slow retpoline and so is significantly faster.h]hXThis function does a heapsort on the given array. You may provide a swap_func function if you need to do something more than a memory copy (e.g. fix up pointers or auxiliary data), but the built-in swap avoids a slow retpoline and so is significantly faster.}(hjZ|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjzubh)}(hXThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp_func(a, b) must return the opposite sign of cmp_func(b, a). - Transitivity: if cmp_func(a, b) <= 0 and cmp_func(b, c) <= 0, then cmp_func(a, c) <= 0.h]hXThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp_func(a, b) must return the opposite sign of cmp_func(b, a). - Transitivity: if cmp_func(a, b) <= 0 and cmp_func(b, c) <= 0, then cmp_func(a, c) <= 0.}(hji|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM"hjzubh)}(hSorting time is O(n log n) both on average and worst-case. While quicksort is slightly faster on average, it suffers from exploitable O(n*n) worst-case behavior and extra memory requirements that make it less suitable for kernel use.h]hSorting time is O(n log n) both on average and worst-case. While quicksort is slightly faster on average, it suffers from exploitable O(n*n) worst-case behavior and extra memory requirements that make it less suitable for kernel use.}(hjx|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM)hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsort_r_nonatomic (C function)c.sort_r_nonatomichNtauh1hhjrxhhhNhNubh)}(hhh](j)}(h}void sort_r_nonatomic (void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h]j)}(h|void sort_r_nonatomic(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM9ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhj|hM9ubjg)}(hsort_r_nonatomich]jm)}(hsort_r_nonatomich]hsort_r_nonatomic}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhj|hM9ubj)}(hg(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j)}(h void *baseh](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hbaseh]hbase}(hj }hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h size_t numh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj)}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+}modnameN classnameNjI jL )}jO ]jR )}jE j|sbc.sort_r_nonatomicasbuh1hhj"}ubj)}(h h]h }(hjI}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"}ubjm)}(hnumh]hnum}(hjW}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h size_t sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjs}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetju}modnameN classnameNjI jL )}jO ]jE}c.sort_r_nonatomicasbuh1hhjl}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjl}ubjm)}(hsizeh]hsize}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hcmp_r_func_t cmp_funch](h)}(hhh]jm)}(h cmp_r_func_th]h cmp_r_func_t}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jE}c.sort_r_nonatomicasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hcmp_funch]hcmp_func}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hswap_r_func_t swap_funch](h)}(hhh]jm)}(h swap_r_func_th]h swap_r_func_t}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jE}c.sort_r_nonatomicasbuh1hhj}ubj)}(h h]h }(hj!~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(h swap_funch]h swap_func}(hj/~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hconst void *privh](j)}(hjh]hconst}(hjH~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD~ubj)}(h h]h }(hjU~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjD~ubj )}(hvoidh]hvoid}(hjc~hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjD~ubj)}(h h]h }(hjq~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjD~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD~ubjm)}(hprivh]hpriv}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjD~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hM9ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hM9hj|hhubj)}(hhh]h)}(h,sort an array of elements, with cond_reschedh]h,sort an array of elements, with cond_resched}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM9hj~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjrxhNhNubj)}(hX**Parameters** ``void *base`` pointer to data to sort ``size_t num`` number of elements ``size_t size`` size of each element ``cmp_r_func_t cmp_func`` pointer to comparison function ``swap_r_func_t swap_func`` pointer to swap function or NULL ``const void *priv`` third argument passed to comparison function **Description** Same as sort_r, but preferred for larger arrays as it does a periodic cond_resched().h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM=hj~ubj)}(hhh](j)}(h'``void *base`` pointer to data to sort h](j)}(h``void *base``h]j)}(hj~h]h void *base}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM:hj~ubj)}(hhh]h)}(hpointer to data to sorth]hpointer to data to sort}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM:hj ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj hM:hj~ubj)}(h"``size_t num`` number of elements h](j)}(h``size_t num``h]j)}(hj0h]h size_t num}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM;hj*ubj)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM;hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM;hj~ubj)}(h%``size_t size`` size of each element h](j)}(h``size_t size``h]j)}(hjih]h size_t size}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM<hjcubj)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hM<hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM<hj~ubj)}(h9``cmp_r_func_t cmp_func`` pointer to comparison function h](j)}(h``cmp_r_func_t cmp_func``h]j)}(hjh]hcmp_r_func_t cmp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM=hjubj)}(hhh]h)}(hpointer to comparison functionh]hpointer to comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hj~ubj)}(h=``swap_r_func_t swap_func`` pointer to swap function or NULL h](j)}(h``swap_r_func_t swap_func``h]j)}(hjh]hswap_r_func_t swap_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM>hjubj)}(hhh]h)}(h pointer to swap function or NULLh]h pointer to swap function or NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hj~ubj)}(hB``const void *priv`` third argument passed to comparison function h](j)}(h``const void *priv``h]j)}(hjh]hconst void *priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM?hjubj)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM?hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM?hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMAhj~ubh)}(hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().h]hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM@hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrxhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_sort (C function) c.list_sorthNtauh1hhjrxhhhNhNubh)}(hhh](j)}(hHvoid list_sort (void *priv, struct list_head *head, list_cmp_func_t cmp)h]j)}(hGvoid list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKcubjg)}(h list_sorth]jm)}(h list_sorth]h list_sort}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKcubj)}(h9(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j)}(h void *privh](j )}(hvoidh]hvoid}(hjрhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj̀ubj)}(h h]h }(hj߀hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj̀ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̀ubjm)}(hprivh]hpriv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj̀ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɀubj)}(hstruct list_head *headh](j)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h list_headh]h list_head}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE jsb c.list_sortasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɀubj)}(hlist_cmp_func_t cmph](h)}(hhh]jm)}(hlist_cmp_func_th]hlist_cmp_func_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jN c.list_sortasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmph]hcmp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɀubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKchjhhubj)}(hhh]h)}(h sort a listh]h sort a list}(hj߁hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKchj܁hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjrxhNhNubj)}(hX**Parameters** ``void *priv`` private data, opaque to list_sort(), passed to **cmp** ``struct list_head *head`` the list to sort ``list_cmp_func_t cmp`` the elements comparison function **Description** The comparison function **cmp** must return > 0 if **a** should sort after **b** ("**a** > **b**" if you want an ascending sort), and <= 0 if **a** should sort before **b** *or* their original order should be preserved. It is always called with the element that came first in the input in **a**, and list_sort is a stable sort, so it is not necessary to distinguish the **a** < **b** and **a** == **b** cases. The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0. This is compatible with two styles of **cmp** function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c). A good way to write a multi-word comparison is:: if (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low; This mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements. Thus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1. The merging is controlled by "count", the number of elements in the pending lists. This is beautifully simple code, but rather subtle. Each time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1). This merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it's safe to merge away two lists of size 2^k. After this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending. The number of pending lists of size 2^k is determined by the state of bit k of "count" plus two extra pieces of information: - The state of bit k-1 (when k == 0, consider bit -1 always set), and - Whether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)). There are six states we distinguish. "x" represents some arbitrary bits, and "y" represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2) We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size. When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKghjubj)}(hhh](j)}(hF``void *priv`` private data, opaque to list_sort(), passed to **cmp** h](j)}(h``void *priv``h]j)}(hj h]h void *priv}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKdhjubj)}(hhh]h)}(h6private data, opaque to list_sort(), passed to **cmp**h](h/private data, opaque to list_sort(), passed to }(hj9hhhNhNubj)}(h**cmp**h]hcmp}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1hhj5hKdhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hKdhjubj)}(h,``struct list_head *head`` the list to sort h](j)}(h``struct list_head *head``h]j)}(hjgh]hstruct list_head *head}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKehjaubj)}(hhh]h)}(hthe list to sorth]hthe list to sort}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKehj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKehjubj)}(h9``list_cmp_func_t cmp`` the elements comparison function h](j)}(h``list_cmp_func_t cmp``h]j)}(hjh]hlist_cmp_func_t cmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKfhjubj)}(hhh]h)}(h the elements comparison functionh]h the elements comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjۂh]h Description}(hj݂hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjقubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhhjubh)}(hXThe comparison function **cmp** must return > 0 if **a** should sort after **b** ("**a** > **b**" if you want an ascending sort), and <= 0 if **a** should sort before **b** *or* their original order should be preserved. It is always called with the element that came first in the input in **a**, and list_sort is a stable sort, so it is not necessary to distinguish the **a** < **b** and **a** == **b** cases.h](hThe comparison function }(hjhhhNhNubj)}(h**cmp**h]hcmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must return > 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort after }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (”}(hjhhhNhNubj)}(h**a**h]ha}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh > }(hjhhhNhNubj)}(h**b**h]hb}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0” if you want an ascending sort), and <= 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort before }(hjhhhNhNubj)}(h**b**h]hb}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubhemphasis)}(h*or*h]hor}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubhq their original order should be preserved. It is always called with the element that came first in the input in }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL, and list_sort is a stable sort, so it is not necessary to distinguish the }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh < }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == }(hjhhhNhNubj)}(h**b**h]hb}(hjӃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKghjubh)}(hX&The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0.h](hThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh') must return the opposite sign of cmp(}(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**a**h]ha}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh). - Transitivity: if cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**b**h]hb}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0 and cmp(}(hjhhhNhNubj)}(h**b**h]hb}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**c**h]hc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0, then cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKnhjubh)}(hXThis is compatible with two styles of **cmp** function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).h](h&This is compatible with two styles of }(hjhhhNhNubj)}(h**cmp**h]hcmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKuhjubh)}(h0A good way to write a multi-word comparison is::h]h/A good way to write a multi-word comparison is:}(hjЄhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK{hjubj#C)}(hif (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low;h]hif (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low;}hj߄sbah}(h]h ]h"]h$]h&]jjuh1j"ChT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK}hjubh)}(hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.h]hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hThus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1.h]hThus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hThe merging is controlled by "count", the number of elements in the pending lists. This is beautifully simple code, but rather subtle.h]hThe merging is controlled by “count”, the number of elements in the pending lists. This is beautifully simple code, but rather subtle.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hEach time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).h]hEach time we increment “count”, we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it's safe to merge away two lists of size 2^k.h]hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it’s safe to merge away two lists of size 2^k.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.h]hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(h|The number of pending lists of size 2^k is determined by the state of bit k of "count" plus two extra pieces of information:h]hThe number of pending lists of size 2^k is determined by the state of bit k of “count” plus two extra pieces of information:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubj)}(hhh](j)}(hCThe state of bit k-1 (when k == 0, consider bit -1 always set), andh]h)}(hj\h]hCThe state of bit k-1 (when k == 0, consider bit -1 always set), and}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjZubah}(h]h ]h"]h$]h&]uh1jhjWubj)}(hOWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)). h]h)}(hNWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)).h]hNWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)).}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjrubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjkhKhjubh)}(hX-There are six states we distinguish. "x" represents some arbitrary bits, and "y" represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2)h]hX5There are six states we distinguish. “x” represents some arbitrary bits, and “y” represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hX8We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size.h]hX8We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).h]hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjrxhhhNhNubeh}(h]sortingah ]h"]sortingah$]h&]uh1hhjhhhhhKdubh)}(hhh](h)}(hText Searchingh]hText Searching}(hjЅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͅhhhhhKmubh)}(h INTRODUCTIONh]h INTRODUCTION}(hjޅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK hjͅhhubj)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user. h]h)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.h]hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjͅhhubh)}(h ARCHITECTUREh]h ARCHITECTURE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjͅhhubj#C)}(hX User +----------------+ | finish()|<--------------(6)-----------------+ |get_next_block()|<--------------(5)---------------+ | | | Algorithm | | | | +------------------------------+ | | | init() find() destroy() | | | +------------------------------+ | | Core API ^ ^ ^ | | +---------------+ (2) (4) (8) | (1)|----->| prepare() |---+ | | | (3)|----->| find()/next() |-----------+ | | (7)|----->| destroy() |----------------------+ +----------------+ +---------------+ (1) User configures a search by calling textsearch_prepare() specifying the search parameters such as the pattern and algorithm name. (2) Core requests the algorithm to allocate and initialize a search configuration according to the specified parameters. (3) User starts the search(es) by calling textsearch_find() or textsearch_next() to fetch subsequent occurrences. A state variable is provided to the algorithm to store persistent variables. (4) Core eventually resets the search offset and forwards the find() request to the algorithm. (5) Algorithm calls get_next_block() provided by the user continuously to fetch the data to be searched in block by block. (6) Algorithm invokes finish() after the last call to get_next_block to clean up any leftovers from get_next_block. (Optional) (7) User destroys the configuration by calling textsearch_destroy(). (8) Core notifies the algorithm to destroy algorithm specific allocations. (Optional)h]hX User +----------------+ | finish()|<--------------(6)-----------------+ |get_next_block()|<--------------(5)---------------+ | | | Algorithm | | | | +------------------------------+ | | | init() find() destroy() | | | +------------------------------+ | | Core API ^ ^ ^ | | +---------------+ (2) (4) (8) | (1)|----->| prepare() |---+ | | | (3)|----->| find()/next() |-----------+ | | (7)|----->| destroy() |----------------------+ +----------------+ +---------------+ (1) User configures a search by calling textsearch_prepare() specifying the search parameters such as the pattern and algorithm name. (2) Core requests the algorithm to allocate and initialize a search configuration according to the specified parameters. (3) User starts the search(es) by calling textsearch_find() or textsearch_next() to fetch subsequent occurrences. A state variable is provided to the algorithm to store persistent variables. (4) Core eventually resets the search offset and forwards the find() request to the algorithm. (5) Algorithm calls get_next_block() provided by the user continuously to fetch the data to be searched in block by block. (6) Algorithm invokes finish() after the last call to get_next_block to clean up any leftovers from get_next_block. (Optional) (7) User destroys the configuration by calling textsearch_destroy(). (8) Core notifies the algorithm to destroy algorithm specific allocations. (Optional)}hjsbah}(h]h ]h"]h$]h&]jjj%xj&xnonej'x}uh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjͅhhubh)}(hUSAGEh]hUSAGE}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK6hjͅhhubj)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance. The actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data. Once you're done using a configuration it must be given back via textsearch_destroy. h](h)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.h]hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK8hj5ubh)}(hXThe actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data.h]hXThe actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKAhj5ubh)}(hTOnce you're done using a configuration it must be given back via textsearch_destroy.h]hVOnce you’re done using a configuration it must be given back via textsearch_destroy.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKIhj5ubeh}(h]h ]h"]h$]h&]uh1jhjGhK8hjͅhhubh)}(h EXAMPLE::h]hEXAMPLE:}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKLhjͅhhubj#C)}(hXint pos; struct ts_config *conf; struct ts_state state; const char *pattern = "chicken"; const char *example = "We dance the funky chicken"; conf = textsearch_prepare("kmp", pattern, strlen(pattern), GFP_KERNEL, TS_AUTOLOAD); if (IS_ERR(conf)) { err = PTR_ERR(conf); goto errout; } pos = textsearch_find_continuous(conf, &state, example, strlen(example)); if (pos != UINT_MAX) panic("Oh my god, dancing chickens at %d\n", pos); textsearch_destroy(conf);h]hXint pos; struct ts_config *conf; struct ts_state state; const char *pattern = "chicken"; const char *example = "We dance the funky chicken"; conf = textsearch_prepare("kmp", pattern, strlen(pattern), GFP_KERNEL, TS_AUTOLOAD); if (IS_ERR(conf)) { err = PTR_ERR(conf); goto errout; } pos = textsearch_find_continuous(conf, &state, example, strlen(example)); if (pos != UINT_MAX) panic("Oh my god, dancing chickens at %d\n", pos); textsearch_destroy(conf);}hj{sbah}(h]h ]h"]h$]h&]jjuh1j"ChU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKNhjͅhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h textsearch_register (C function)c.textsearch_registerhNtauh1hhjͅhhhNhNubh)}(hhh](j)}(h,int textsearch_register (struct ts_ops *ops)h]j)}(h+int textsearch_register(struct ts_ops *ops)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(htextsearch_registerh]jm)}(htextsearch_registerh]htextsearch_register}(hjĆhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܆ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj܆ubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jƆsbc.textsearch_registerasbuh1hhj܆ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj܆ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܆ubjm)}(hopsh]hops}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj܆ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj؆ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hregister a textsearch moduleh]hregister a textsearch module}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhjͅhNhNubj)}(hX**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their presence. The specified &**ops** must have ``name`` set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented. Returns 0 or -EEXISTS if another module has already registered with same name.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hjh]hstruct ts_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj߇h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݇ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hThis function must be called by textsearch modules to announce their presence. The specified &**ops** must have ``name`` set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented.h](hpThis function must be called by textsearch modules to announce their presence. The specified &**ops** must have }(hjhhhNhNubj)}(h``name``h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhw set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hNReturns 0 or -EEXISTS if another module has already registered with same name.h]hNReturns 0 or -EEXISTS if another module has already registered with same name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"textsearch_unregister (C function)c.textsearch_unregisterhNtauh1hhjͅhhhNhNubh)}(hhh](j)}(h.int textsearch_unregister (struct ts_ops *ops)h]j)}(h-int textsearch_unregister(struct ts_ops *ops)h](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjShKubjg)}(htextsearch_unregisterh]jm)}(htextsearch_unregisterh]htextsearch_unregister}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjShKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.textsearch_unregisterasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjΈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjm)}(hopsh]hops}(hjۈhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubah}(h]h ]h"]h$]h&]jjuh1jhjAhhhjShKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhjShKubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShKhj:hhubj)}(hhh]h)}(hunregister a textsearch moduleh]hunregister a textsearch module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjShKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hXu**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration. Returns 0 on success or -ENOENT if no matching textsearch registration was found.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj!ubj)}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hjFh]hstruct ts_ops *ops}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj@ubj)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj!ubh)}(hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration.h](hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The }(hjhhhNhNubh)}(h :c:type:`ops`h]j)}(hjh]hops}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jL )}jO ]sb reftargetopsuh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh? parameter must be the same as the one during the registration.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjÉhKhj!ubh)}(hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.h]hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.}(hjΉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_find_continuous (C function)c.textsearch_find_continuoushNtauh1hhjͅhhhNhNubh)}(hhh](j)}(h|unsigned int textsearch_find_continuous (struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h]j)}(h{unsigned int textsearch_find_continuous(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj hKubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKubjg)}(htextsearch_find_continuoush]jm)}(htextsearch_find_continuoush]htextsearch_find_continuous}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKubj)}(hT(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE j<sbc.textsearch_find_continuousasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hstruct ts_state *stateh](j)}(hjh]hstruct}(hjȊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊubj)}(h h]h }(hjՊhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĊubh)}(hhh]jm)}(hts_stateh]hts_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.textsearch_find_continuousasbuh1hhjĊubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĊubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊubjm)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjĊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst void *datah](j)}(hjh]hconst}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj )}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hdatah]hdata}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hj͋hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjhhubj)}(hhh]h)}(h*search a pattern in continuous/linear datah]h*search a pattern in continuous/linear data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hX**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state ``const void *data`` data to search in ``unsigned int len`` length of data **Description** A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches. Returns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hj8h]hstruct ts_config *conf}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj2ubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjqh]hstruct ts_state *state}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjkubj)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubj)}(h'``const void *data`` data to search in h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(hdata to search inh]hdata to search in}(hjÌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubj)}(h$``unsigned int len`` length of data h](j)}(h``unsigned int len``h]j)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj݌ubj)}(hhh]h)}(hlength of datah]hlength of data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj݌ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(h|A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches.h]h|A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hcReturns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h;Returns the position of first occurrence of the pattern or }(hjChhhNhNubj)}(h ``UINT_MAX``h]hUINT_MAX}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh if no occurrence was found.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_prepare (C function)c.textsearch_preparehNtauh1hhjͅhhhNhNubh)}(hhh](j)}(hzstruct ts_config * textsearch_prepare (const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h]j)}(hxstruct ts_config *textsearch_prepare(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE textsearch_preparesbc.textsearch_prepareasbuh1hhjhhhjhKubj)}(h h]h }(hjčhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubj)}(hjh]h*}(hjҍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjg)}(htextsearch_prepareh]jm)}(hjh]htextsearch_prepare}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjߍubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(hT(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j)}(hconst char *algoh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(halgoh]halgo}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *patternh](j)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hpatternh]hpattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjƎhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjԎhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.textsearch_prepareasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubjm)}(hflagsh]hflags}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjyhhubj)}(hhh]h)}(hPrepare a searchh]hPrepare a search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hXZ**Parameters** ``const char *algo`` name of search algorithm ``const void *pattern`` pattern data ``unsigned int len`` length of pattern ``gfp_t gfp_mask`` allocation mask ``int flags`` search flags **Description** Looks up the search algorithm module and creates a new textsearch configuration for the specified pattern. **Note** The format of the pattern may not be compatible between the various search algorithms. Returns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh](j)}(h.``const char *algo`` name of search algorithm h](j)}(h``const char *algo``h]j)}(hj؏h]hconst char *algo}(hjڏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֏ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjҏubj)}(hhh]h)}(hname of search algorithmh]hname of search algorithm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjҏubeh}(h]h ]h"]h$]h&]uh1jhjhKhjϏubj)}(h%``const void *pattern`` pattern data h](j)}(h``const void *pattern``h]j)}(hjh]hconst void *pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj ubj)}(hhh]h)}(h pattern datah]h pattern data}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjϏubj)}(h'``unsigned int len`` length of pattern h](j)}(h``unsigned int len``h]j)}(hjJh]hunsigned int len}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjDubj)}(hhh]h)}(hlength of patternh]hlength of pattern}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjϏubj)}(h#``gfp_t gfp_mask`` allocation mask h](j)}(h``gfp_t gfp_mask``h]j)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj}ubj)}(hhh]h)}(hallocation maskh]hallocation mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjϏubj)}(h``int flags`` search flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]h)}(h search flagsh]h search flags}(hjՐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѐhKhjҐubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѐhKhjϏubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hjLooks up the search algorithm module and creates a new textsearch configuration for the specified pattern.h]hjLooks up the search algorithm module and creates a new textsearch configuration for the specified pattern.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(h**Note**h]j)}(hjh]hNote}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj)}(hhh]j)}(hWThe format of the pattern may not be compatible between the various search algorithms. h](j)}(h7The format of the pattern may not be compatible betweenh]h7The format of the pattern may not be compatible between}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhj7ubj)}(hhh]h)}(hthe various search algorithms.h]hthe various search algorithms.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hReturns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.h]hReturns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_destroy (C function)c.textsearch_destroyhNtauh1hhjͅhhhNhNubh)}(hhh](j)}(h0void textsearch_destroy (struct ts_config *conf)h]j)}(h/void textsearch_destroy(struct ts_config *conf)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM3ubjg)}(htextsearch_destroyh]jm)}(htextsearch_destroyh]htextsearch_destroy}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM3ubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjّhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՑubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՑubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_destroyasbuh1hhjՑubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjՑubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՑubjm)}(hconfh]hconf}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjՑubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjёubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM3hjhhubj)}(hhh]h)}(hdestroy a search configurationh]hdestroy a search configuration}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3hjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhjͅhNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration **Description** Releases all references of the configuration and frees up the memory.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM7hjxubj)}(hhh]j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM4hjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjؒh]h Description}(hjڒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֒ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM6hjxubh)}(hEReleases all references of the configuration and frees up the memory.h]hEReleases all references of the configuration and frees up the memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM5hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_next (C function)c.textsearch_nexthNtauh1hhjͅhhhNhNubh)}(hhh](j)}(hMunsigned int textsearch_next (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_next(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK^ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj+hK^ubj )}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj+hK^ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj+hK^ubjg)}(htextsearch_nexth]jm)}(htextsearch_nexth]htextsearch_next}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj+hK^ubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sbc.textsearch_nextasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hj“hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hconfh]hconf}(hjϓhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct ts_state *stateh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hts_stateh]hts_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.textsearch_nextasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hstateh]hstate}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hK^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj+hK^ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj+hK^hjhhubj)}(hhh]h)}(h continue searching for a patternh]h continue searching for a pattern}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK^hjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hK^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hXy**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Continues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state. Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKbhjubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_hjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjÔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK_hjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjh]hstruct ts_state *state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK`hjݔubj)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1jhjݔubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.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.}(hj4hhhNhNubah}(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.}(hjChhhNhNubah}(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&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](htextsearch_find (C function)c.textsearch_findhNtauh1hhjͅhhhNhNubh)}(hhh](j)}(hMunsigned int textsearch_find (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_find(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjhKuubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhhjhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjhKuubjg)}(htextsearch_findh]jm)}(htextsearch_findh]htextsearch_find}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjhKuubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(Chstruct ts_config *confh](j)}(hjh]hstruct}(hj˕hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǕubj)}(h h]h }(hjؕhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǕubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_findasbuh1hhjǕubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǕubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǕubjm)}(hconfh]hconf}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjǕubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjÕubj)}(hstruct ts_state *stateh](j)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubh)}(hhh]jm)}(hts_stateh]hts_state}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jc.textsearch_findasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjÕubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjhKuubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhKuhjghhubj)}(hhh]h)}(hstart searching for a patternh]hstart searching for a pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKuhjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjj֖jj֖jjjuh1hhhhjͅhNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Returns the position of first occurrence of the pattern or UINT_MAX if no match was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޖubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKyhjږubj)}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKvhjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hj8h]hstruct ts_state *state}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKwhj2ubj)}(hhh]h)}(h search stateh]h search state}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKwhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKwhjubeh}(h]h ]h"]h$]h&]uh1jhjږubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKyhjږubh)}(hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.h]hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKxhjږubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#textsearch_get_pattern (C function)c.textsearch_get_patternhNtauh1hhjͅhhhNhNubh)}(hhh](j)}(h6void * textsearch_get_pattern (struct ts_config *conf)h]j)}(h4void *textsearch_get_pattern(struct ts_config *conf)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hjǗhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjƗhKubj)}(hjh]h*}(hj՗hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjƗhKubjg)}(htextsearch_get_patternh]jm)}(htextsearch_get_patternh]htextsearch_get_pattern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjƗhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h ts_configh]h ts_config}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE jsbc.textsearch_get_patternasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hconfh]hconf}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjƗhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjƗhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjƗhKhjhhubj)}(hhh]h)}(hreturn head of the patternh]hreturn head of the pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjƗhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj)}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hjƘh]hstruct ts_config *conf}(hjȘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĘubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjߘhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjܘubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۘhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'textsearch_get_pattern_len (C function)c.textsearch_get_pattern_lenhNtauh1hhjͅhhhNhNubh)}(hhh](j)}(h@unsigned int textsearch_get_pattern_len (struct ts_config *conf)h]j)}(h?unsigned int textsearch_get_pattern_len(struct ts_config *conf)h](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj.hKubj )}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj.hKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj.hKubjg)}(htextsearch_get_pattern_lenh]jm)}(htextsearch_get_pattern_lenh]htextsearch_get_pattern_len}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj.hKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j_sbc.textsearch_get_pattern_lenasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjřhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hconfh]hconf}(hjҙhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj.hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj.hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj.hKhjhhubj)}(hhh]h)}(hreturn length of the patternh]hreturn length of the pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjͅhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj)}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hj=h]hstruct ts_config *conf}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhj7ubj)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjͅhhhNhNubeh}(h]text-searchingah ]h"]text searchingah$]h&]uh1hhjhhhhhKmubeh}(h]basic-kernel-library-functionsah ]h"]basic kernel library functionsah$]h&]uh1hhhhhhhhK/ubh)}(hhh](h)}(hCRC and Math Functions in Linuxh]hCRC and Math Functions in Linux}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKzubh)}(hhh](h)}(hArithmetic Overflow Checkingh]hArithmetic Overflow Checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_add_overflow (C macro)c.check_add_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_add_overflowh]j)}(hcheck_add_overflowh]jg)}(hcheck_add_overflowh]jm)}(hjÚh]hcheck_add_overflow}(hj͚hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɚubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjŚhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK9ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK9hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK9ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_add_overflow (a, b, d)``h]j)}(hjh]hcheck_add_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK;hjhhubj)}(h*Calculate addition with overflow checking h]h)}(h)Calculate addition with overflow checkingh]h)Calculate addition with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK9hjubah}(h]h ]h"]h$]h&]uh1jhj'hK9hjhhubj)}(h**Parameters** ``a`` first addend ``b`` second addend ``d`` pointer to store sum **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK=hj.ubj)}(hhh](j)}(h``a`` first addend h](j)}(h``a``h]j)}(hjSh]ha}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK:hjMubj)}(hhh]h)}(h first addendh]h first addend}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhK:hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhK:hjJubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjJubj)}(h``d`` pointer to store sum h](j)}(h``d``h]j)}(hjśh]hd}(hjǛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÛubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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.hhK=hj.ubh)}(h_***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubhY holds the results of the attempted addition, regardless of whether wrap-around occurred.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK?hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_add (C macro)c.wrapping_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_addh]j)}(h wrapping_addh]jg)}(h wrapping_addh]jm)}(hj\h]h wrapping_add}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjyhKGubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjyhKGhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjyhKGubeh}(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}(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)}(h**Parameters** ``type`` type for result of calculation ``a`` first addend ``b`` second addend **Description** Return the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hj͜h]h Parameters}(hjϜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˜ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKKhjǜubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKHhjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubj)}(h``a`` first addend h](j)}(h``a``h]j)}(hj%h]ha}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKIhjubj)}(hhh]h)}(h first addendh]h first addend}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKIhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKIhjubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hj^h]hb}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKJhjXubj)}(hhh]h)}(h second addendh]h second addend}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKJhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKJhjubeh}(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.hhKLhjǜubh)}(hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h]hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKKhjǜubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_assign_add (C macro)c.wrapping_assign_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(hwrapping_assign_addh]j)}(hwrapping_assign_addh]jg)}(hwrapping_assign_addh]jm)}(hj؝h]hwrapping_assign_add}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjޝubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjڝhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKWubah}(h]h ]h"]h$]h&]jjjuh1jjjhj֝hhhjhKWubah}(h]jѝah ](jjeh"]h$]h&]jj)jhuh1hhjhKWhjӝhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjӝhhhjhKWubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h%``wrapping_assign_add (var, offset)``h]j)}(hjh]h!wrapping_assign_add (var, offset)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKYhjhhubj)}(h6Intentionally perform a wrapping increment assignment h]h)}(h5Intentionally perform a wrapping increment assignmenth]h5Intentionally perform a wrapping increment assignment}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKWhj*ubah}(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)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK[hjCubj)}(hhh](j)}(h#``var`` variable to be incremented h](j)}(h``var``h]j)}(hjhh]hvar}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKXhjbubj)}(hhh]h)}(hvariable to be incrementedh]hvariable to be incremented}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKXhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKXhj_ubj)}(h``offset`` amount to add h](j)}(h ``offset``h]j)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKYhjubj)}(hhh]h)}(h amount to addh]h amount to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKYhj_ubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hjܞh]h Description}(hjޞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڞubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK[hjCubh)}(hIncrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Increments }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh by }(hjhhhNhNubj)}(h **offset**h]hoffset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 with wrap-around. Returns the resulting value of }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKZhjCubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hj7hhhNhNubj)}(h**var**h]hvar}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK]hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_sub_overflow (C macro)c.check_sub_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_sub_overflowh]j)}(hcheck_sub_overflowh]jg)}(hcheck_sub_overflowh]jm)}(hjrh]hcheck_sub_overflow}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKgubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhKgubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhKghjmhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjmhhhjhKgubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_sub_overflow (a, b, d)``h]j)}(hjh]hcheck_sub_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKihjhhubj)}(h-Calculate subtraction with overflow checking h]h)}(h,Calculate subtraction with overflow checkingh]h,Calculate subtraction with overflow checking}(hjȟhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKghjğubah}(h]h ]h"]h$]h&]uh1jhj֟hKghjhhubj)}(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.hhKkhjݟubj)}(hhh](j)}(h&``a`` minuend; value to subtract from h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhhjubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hj;h]hb}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKihj5ubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjThhhNhNubj)}(h**a**h]ha}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1hhjPhKihjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKihjubj)}(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.hhKjhj|ubj)}(hhh]h)}(hpointer to store differenceh]hpointer to store difference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKjhjubeh}(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.hhKlhjݟubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjӠhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKkhjݟubh)}(hb***d** holds the results of the attempted subtraction, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh\ holds the results of the attempted subtraction, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKmhjݟubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_sub (C macro)c.wrapping_subhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_subh]j)}(h wrapping_subh]jg)}(h wrapping_subh]jm)}(hjh]h wrapping_sub}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKuubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj6hKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hKuhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj6hKuubeh}(h]h ](jmacroeh"]h$]h&]jjjjOjjOjjjuh1hhhhjhNhNubh)}(h``wrapping_sub (type, a, b)``h]j)}(hjUh]hwrapping_sub (type, a, b)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKwhjhhubj)}(h-Intentionally perform a wrapping subtraction h]h)}(h,Intentionally perform a wrapping subtractionh]h,Intentionally perform a wrapping subtraction}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKuhjkubah}(h]h ]h"]h$]h&]uh1jhj}hKuhjhhubj)}(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)}(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.hhKvhjubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hj¡hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubj)}(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.hhKwhjܡubj)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjܡubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKxhjubj)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hj4hhhNhNubj)}(h**a**h]ha}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1hhj0hKxhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKxhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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.}(hjzhhhNhNubah}(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)}(hjh]hwrapping_assign_sub}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj٢jj٢jjjuh1hhhhjhNhNubh)}(h%``wrapping_assign_sub (var, offset)``h]j)}(hjߢh]h!wrapping_assign_sub (var, offset)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݢubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h2Intentionally perform a wrapping decrement assign h]h)}(h1Intentionally perform a wrapping decrement assignh]h1Intentionally perform a wrapping decrement assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``var`` variable to be decremented ``offset`` amount to subtract **Description** Decrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers. Returns the new value of **var**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h#``var`` variable to be decremented h](j)}(h``var``h]j)}(hj3h]hvar}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj-ubj)}(hhh]h)}(hvariable to be decrementedh]hvariable to be decremented}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhKhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKhj*ubj)}(h``offset`` amount to subtract h](j)}(h ``offset``h]j)}(hjlh]hoffset}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjfubj)}(hhh]h)}(hamount to subtracth]hamount to subtract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhj*ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hDecrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Decrements }(hjhhhNhNubj)}(h**var**h]hvar}(hjţhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh by }(hjhhhNhNubj)}(h **offset**h]hoffset}(hjףhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 with wrap-around. Returns the resulting value of }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hjhhhNhNubj)}(h**var**h]hvar}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_mul_overflow (C macro)c.check_mul_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_mul_overflowh]j)}(hcheck_mul_overflowh]jg)}(hcheck_mul_overflowh]jm)}(hj=h]hcheck_mul_overflow}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjZhKubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjZhKhj8hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj8hhhjZhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjsjjsjjjuh1hhhhjhNhNubh)}(h ``check_mul_overflow (a, b, d)``h]j)}(hjyh]hcheck_mul_overflow (a, b, d)}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Calculate multiplication with overflow checking h]h)}(h/Calculate multiplication with overflow checkingh]h/Calculate multiplication with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``a`` first factor ``b`` second factor ``d`` pointer to store product **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h``a`` first factor h](j)}(h``a``h]j)}(hjͤh]ha}(hjϤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjˤubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjǤubj)}(hhh]h)}(h first factorh]h first factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjǤubeh}(h]h ]h"]h$]h&]uh1jhjhKhjĤubj)}(h``b`` second factor h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjĤubj)}(h``d`` pointer to store product h](j)}(h``d``h]j)}(hj?h]hd}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj9ubj)}(hhh]h)}(hpointer to store producth]hpointer to store product}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKhjĤubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(he***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ holds the results of the attempted multiplication, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hwrapping_mul (C macro)c.wrapping_mulhNtauh1hhjhhhNhNubh)}(hhh](j)}(h wrapping_mulh]j)}(h wrapping_mulh]jg)}(h wrapping_mulh]jm)}(hj֥h]h wrapping_mul}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjܥubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjإhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjԥhhhjhKubah}(h]jϥah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjѥhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjѥhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubh)}(h``wrapping_mul (type, a, b)``h]j)}(hjh]hwrapping_mul (type, a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Intentionally perform a wrapping multiplication h]h)}(h/Intentionally perform a wrapping multiplicationh]h/Intentionally perform a wrapping multiplication}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj(ubah}(h]h ]h"]h$]h&]uh1jhj:hKhjhhubj)}(h**Parameters** ``type`` type for result of calculation ``a`` first factor ``b`` second factor **Description** Return the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjAubj)}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjfh]htype}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj`ubj)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKhj]ubj)}(h``a`` first factor h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(h first factorh]h first factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj]ubj)}(h``b`` second factor h](j)}(h``b``h]j)}(hjئh]hb}(hjڦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֦ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjҦubj)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjҦubeh}(h]h ]h"]h$]h&]uh1jhjhKhj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjAubh)}(huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.h]huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcheck_shl_overflow (C macro)c.check_shl_overflowhNtauh1hhjhhhNhNubh)}(hhh](j)}(hcheck_shl_overflowh]j)}(hcheck_shl_overflowh]jg)}(hcheck_shl_overflowh]jm)}(hjRh]hcheck_shl_overflow}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjohKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjohKhjMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjMhhhjohKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h ``check_shl_overflow (a, s, d)``h]j)}(hjh]hcheck_shl_overflow (a, s, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h2Calculate a left-shifted value and check overflow h]h)}(h1Calculate a left-shifted value and check overflowh]h1Calculate a left-shifted value and check overflow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``a`` Value to be shifted ``s`` How many bits left to shift ``d`` Pointer to where to store the result **Description** Computes ***d** = (**a** << **s**) Returns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions: - '**a** << **s**' causes bits to be lost when stored in ***d**. - '**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0. - '**a**' is negative. - '**a** << **s**' sets the sign bit, if any, in '***d**'. '***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h)}(h**Parameters**h]j)}(hjçh]h Parameters}(hjŧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h``a`` Value to be shifted h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjܧubj)}(hhh]h)}(hValue to be shiftedh]hValue to be shifted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjܧubeh}(h]h ]h"]h$]h&]uh1jhjhKhj٧ubj)}(h"``s`` How many bits left to shift h](j)}(h``s``h]j)}(hjh]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hHow many bits left to shifth]hHow many bits left to shift}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj٧ubj)}(h+``d`` Pointer to where to store the result h](j)}(h``d``h]j)}(hjTh]hd}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjNubj)}(hhh]h)}(h$Pointer to where to store the resulth]h$Pointer to where to store the result}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhj٧ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h"Computes ***d** = (**a** << **s**)h](h Computes }(hjhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh = (}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjѨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hpReturns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions:h](hReturns true if ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh&’ cannot hold the result or when ‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-’ doesn’t make sense. Example conditions:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h>'**a** << **s**' causes bits to be lost when stored in ***d**.h]h)}(hj4h](h‘}(hj6hhhNhNubj)}(h**a**h]ha}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh << }(hj6hhhNhNubj)}(h**s**h]hs}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh*’ causes bits to be lost when stored in }(hj6hhhNhNubj)}(h***d**h]h*d}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj2ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h]h)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h](h‘}(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhA’ is garbage (e.g. negative) or so large that the result of ‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’ is guaranteed to be 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h'**a**' is negative.h]h)}(hjѩh](h‘}(hjөhhhNhNubj)}(h**a**h]ha}(hjکhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjөubh’ is negative.}(hjөhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjϩubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h9'**a** << **s**' sets the sign bit, if any, in '***d**'. h]h)}(h8'**a** << **s**' sets the sign bit, if any, in '***d**'.h](h‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%’ sets the sign bit, if any, in ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjyhKhjubh)}(hp'***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h‘}(hjNhhhNhNubj)}(h***d**h]h*d}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubho’ will hold the results of the attempted shift, but is not considered “safe for use” if true is returned.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hoverflows_type (C macro)c.overflows_typehNtauh1hhjhhhNhNubh)}(hhh](j)}(hoverflows_typeh]j)}(hoverflows_typeh]jg)}(hoverflows_typeh]jm)}(hjh]hoverflows_type}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``overflows_type (n, T)``h]j)}(hjŪh]hoverflows_type (n, T)}(hjǪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjêubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(hIhelper for checking the overflows between value, variables, or data type h]h)}(hHhelper for checking the overflows between value, variables, or data typeh]hHhelper for checking the overflows between value, variables, or data type}(hjߪhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj۪ubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``n`` source constant value or variable to be checked ``T`` destination variable or data type proposed to store **x** **Description** Compares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression. **Return** true if overflow can occur, false otherwise.9h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h6``n`` source constant value or variable to be checked h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(h/source constant value or variable to be checkedh]h/source constant value or variable to be checked}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKhjubj)}(h@``T`` destination variable or data type proposed to store **x** h](j)}(h``T``h]j)}(hjRh]hT}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjLubj)}(hhh]h)}(h9destination variable or data type proposed to store **x**h](h4destination variable or data type proposed to store }(hjkhhhNhNubj)}(h**x**h]hx}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hCompares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression.h](h Compares the }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhO expression for whether or not it can safely fit in the storage of the type in }(hjhhhNhNubj)}(h**T**h]hT}(hj˫hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**x**h]hx}(hjݫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**T**h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can have different types. If }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK is a constant expression, this will also resolve to a constant expression.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h,true if overflow can occur, false otherwise.h]h,true if overflow can occur, false otherwise.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_overflows (C macro)c.range_overflowshNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_overflowsh]j)}(hrange_overflowsh]jg)}(hrange_overflowsh]jm)}(hj[h]hrange_overflows}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjxhKubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjxhKhjVhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjVhhhjxhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h&``range_overflows (start, size, max)``h]j)}(hjh]h"range_overflows (start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h"Check if a range is out of bounds h]h)}(h!Check if a range is out of boundsh]h!Check if a range is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** A strict check to determine if the range [**start**, **start** + **size**) is invalid with respect to the allowable range [0, **max**). Any range starting at or beyond **max** is considered an overflow, even if **size** is 0. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hj̬h]h Parameters}(hjάhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʬubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬubj)}(hhh](j)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hj$h]hsize}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hj]h]hmax}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjWubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjubeh}(h]h ]h"]h$]h&]uh1jhjƬubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬubh)}(hA strict check to determine if the range [**start**, **start** + **size**) is invalid with respect to the allowable range [0, **max**). Any range starting at or beyond **max** is considered an overflow, even if **size** is 0.h](h*A strict check to determine if the range [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **start**h]hstart}(hjȭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**size**h]hsize}(hjڭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5) is invalid with respect to the allowable range [0, }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh#). Any range starting at or beyond }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ is considered an overflow, even if }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬubh)}(h **Return**h]j)}(hj+h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjƬubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_overflows_t (C macro)c.range_overflows_thNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_overflows_th]j)}(hrange_overflows_th]jg)}(hrange_overflows_th]jm)}(hjjh]hrange_overflows_t}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjlhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjehhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h.``range_overflows_t (type, start, size, max)``h]j)}(hjh]h*range_overflows_t (type, start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjήhMhjhhubj)}(hX**Parameters** ``type`` Data type to use. ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Same as range_overflows() but forcing the parameters to **type**. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hjۮh]h Parameters}(hjݮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٮubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjծubj)}(hhh](j)}(h``type`` Data type to use. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hData type to use.h]hData type to use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hj3h]hstart}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hj-ubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM hjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjlh]hsize}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjfubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(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.}(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&]uh1jhjޯubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjծubh)}(hASame as range_overflows() but forcing the parameters to **type**.h](h8Same as range_overflows() but forcing the parameters to }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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:127: ./include/linux/overflow.hhMhjծubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjծubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_end_overflows (C macro)c.range_end_overflowshNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_end_overflowsh]j)}(hrange_end_overflowsh]jg)}(hrange_end_overflowsh]jm)}(hjXh]hrange_end_overflows}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjuhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjShhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjShhhjuhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h*``range_end_overflows (start, size, max)``h]j)}(hjh]h&range_end_overflows (start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h-Check if a range's endpoint is out of bounds h]h)}(h,Check if a range's endpoint is out of boundsh]h.Check if a range’s endpoint is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Checks only if the endpoint of a range (**start** + **size**) exceeds **max**. Unlike range_overflows(), a zero-sized range at the boundary (**start** == **max**) is not considered an overflow. Useful for iterator-style checks. **Return** true if the endpoint exceeds the boundary.h](h)}(h**Parameters**h]j)}(hjɰh]h Parameters}(hj˰hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǰubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubj)}(hhh](j)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj߰ubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hj!h]hsize}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj߰ubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjZh]hmax}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjTubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhj߰ubeh}(h]h ]h"]h$]h&]uh1jhjðubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubh)}(hChecks only if the endpoint of a range (**start** + **size**) exceeds **max**. Unlike range_overflows(), a zero-sized range at the boundary (**start** == **max**) is not considered an overflow. Useful for iterator-style checks.h](h(Checks only if the endpoint of a range (}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**size**h]hsize}(hjűhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ) exceeds }(hjhhhNhNubj)}(h**max**h]hmax}(hjױhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@. Unlike range_overflows(), a zero-sized range at the boundary (}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB) is not considered an overflow. Useful for iterator-style checks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubh)}(h*true if the endpoint exceeds the boundary.h]h*true if the endpoint exceeds the boundary.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjðubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrange_end_overflows_t (C macro)c.range_end_overflows_thNtauh1hhjhhhNhNubh)}(hhh](j)}(hrange_end_overflows_th]j)}(hrange_end_overflows_th]jg)}(hrange_end_overflows_th]jm)}(hjUh]hrange_end_overflows_t}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjrhM*ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjrhM*hjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhM*ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h2``range_end_overflows_t (type, start, size, max)``h]j)}(hjh]h.range_end_overflows_t (type, start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM,hjhhubj)}(h-Check if a range's endpoint is out of bounds h]h)}(h,Check if a range's endpoint is out of boundsh]h.Check if a range’s endpoint is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*hjubah}(h]h ]h"]h$]h&]uh1jhjhM*hjhhubj)}(hX!**Parameters** ``type`` Data type to use. ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Same as range_end_overflows() but forcing the parameters to **type**. **Return** true if the endpoint exceeds the boundary.h](h)}(h**Parameters**h]j)}(hjƲh]h Parameters}(hjȲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM.hjubj)}(hhh](j)}(h``type`` Data type to use. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM+hj߲ubj)}(hhh]h)}(hData type to use.h]hData type to use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhj߲ubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjܲubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM,hjubj)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM,hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM,hjܲubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjWh]hsize}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM-hjQubj)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM-hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM-hjܲubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjh]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM.hjubj)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjܲubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj˳h]h Description}(hjͳhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɳubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM0hjubh)}(hESame as range_end_overflows() but forcing the parameters to **type**.h](hhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj`hM8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1hhhhjhNhNubh)}(h``castable_to_type (n, T)``h]j)}(hjh]hcastable_to_type (n, T)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM:hjhhubj)}(h8like __same_type(), but also allows for casted literals h]h)}(h7like __same_type(), but also allows for casted literalsh]h7like __same_type(), but also allows for casted literals}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM8hjubah}(h]h ]h"]h$]h&]uh1jhjhM8hjhhubj)}(hXH**Parameters** ``n`` variable or constant value ``T`` variable or data type **Description** Unlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument's type, it returns true. Otherwise, this falls back to __same_type().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM<hjubj)}(hhh](j)}(h!``n`` variable or constant value h](j)}(h``n``h]j)}(hjӴh]hn}(hjմhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѴubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM:hjʹubj)}(hhh]h)}(hvariable or constant valueh]hvariable or constant value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjʹubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjʴubj)}(h``T`` variable or data type h](j)}(h``T``h]j)}(hj h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM;hjubj)}(hhh]h)}(hvariable or data typeh]hvariable or data type}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM;hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hM;hjʴubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM=hjubh)}(hUnlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument's type, it returns true. Otherwise, this falls back to __same_type().h]hUnlike the __same_type() macro, this allows a constant value as the first argument. If this value would not overflow into an assignment of the second argument’s type, it returns true. Otherwise, this falls back to __same_type().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsize_mul (C function) c.size_mulhNtauh1hhjhhhNhNubh)}(hhh](j)}(h0size_t size_mul (size_t factor1, size_t factor2)h]j)}(h/size_t size_mul(size_t factor1, size_t factor2)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE size_mulsb c.size_mulasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMHubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMHubjg)}(hsize_mulh]jm)}(hjh]hsize_mul}(hjõhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMHubj)}(h (size_t factor1, size_t factor2)h](j)}(hsize_t factor1h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj޵ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.size_mulasbuh1hhjڵubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjڵubjm)}(hfactor1h]hfactor1}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjڵubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjֵubj)}(hsize_t factor2h](h)}(hhh]jm)}(hsize_th]hsize_t}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]j c.size_mulasbuh1hhj"ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubjm)}(hfactor2h]hfactor2}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjֵubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMHhjhhubj)}(hhh]h)}(h;Calculate size_t multiplication with saturation at SIZE_MAXh]h;Calculate size_t multiplication with saturation at SIZE_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMHhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t factor1`` first factor ``size_t factor2`` second factor **Return** calculate **factor1** * **factor2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMLhjubj)}(hhh](j)}(h ``size_t factor1`` first factor h](j)}(h``size_t factor1``h]j)}(hjh]hsize_t factor1}(hj¶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMIhjubj)}(hhh]h)}(h first factorh]h first factor}(hjٶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjնhMIhjֶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjնhMIhjubj)}(h!``size_t factor2`` second factor h](j)}(h``size_t factor2``h]j)}(hjh]hsize_t factor2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMJhjubj)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMLhjubh)}(hcalculate **factor1** * **factor2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hjJhhhNhNubj)}(h **factor1**h]hfactor1}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh * }(hjJhhhNhNubj)}(h **factor2**h]hfactor2}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsize_add (C function) c.size_addhNtauh1hhjhhhNhNubh)}(hhh](j)}(h0size_t size_add (size_t addend1, size_t addend2)h]j)}(h/size_t size_add(size_t addend1, size_t addend2)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE size_addsb c.size_addasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM[ubj)}(h h]h }(hj·hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM[ubjg)}(hsize_addh]jm)}(hjh]hsize_add}(hjԷhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjзubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM[ubj)}(h (size_t addend1, size_t addend2)h](j)}(hsize_t addend1h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.size_addasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(haddend1h]haddend1}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t addend2h](h)}(hhh]jm)}(hsize_th]hsize_t}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]j c.size_addasbuh1hhj3ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(haddend2h]haddend2}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM[hjhhubj)}(hhh]h)}(h5Calculate size_t addition with saturation at SIZE_MAXh]h5Calculate size_t addition with saturation at SIZE_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM[hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t addend1`` first addend ``size_t addend2`` second addend **Return** calculate **addend1** + **addend2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM_hjubj)}(hhh](j)}(h ``size_t addend1`` first addend h](j)}(h``size_t addend1``h]j)}(hjѸh]hsize_t addend1}(hjӸhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϸubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM\hj˸ubj)}(hhh]h)}(h first addendh]h first addend}(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 addend2`` second addend h](j)}(h``size_t addend2``h]j)}(hj h]hsize_t addend2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM]hjubj)}(hhh]h)}(h second addendh]h second addend}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjȸubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM_hjubh)}(hcalculate **addend1** + **addend2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hj[hhhNhNubj)}(h **addend1**h]haddend1}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh + }(hj[hhhNhNubj)}(h **addend2**h]haddend2}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM_hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsize_sub (C function) c.size_subhNtauh1hhjhhhNhNubh)}(hhh](j)}(h3size_t size_sub (size_t minuend, size_t subtrahend)h]j)}(h2size_t size_sub(size_t minuend, size_t subtrahend)h](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE size_subsb c.size_subasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMnubj)}(h h]h }(hjӹhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjҹhMnubjg)}(hsize_subh]jm)}(hjϹh]hsize_sub}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjҹhMnubj)}(h#(size_t minuend, size_t subtrahend)h](j)}(hsize_t minuendh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j͹ c.size_subasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hminuendh]hminuend}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subtrahendh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]j͹ c.size_subasbuh1hhjDubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubjm)}(h subtrahendh]h subtrahend}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjҹhMnubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjҹhMnubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjҹhMnhjhhubj)}(hhh]h)}(h8Calculate size_t subtraction with saturation at SIZE_MAXh]h8Calculate size_t subtraction with saturation at SIZE_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMnhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjҹhMnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``size_t minuend`` value to subtract from ``size_t subtrahend`` value to subtract from **minuend** **Return** calculate **minuend** - **subtrahend**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.h](h)}(h**Parameters**h]j)}(hjúh]h Parameters}(hjźhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMrhjubj)}(hhh](j)}(h*``size_t minuend`` value to subtract from h](j)}(h``size_t minuend``h]j)}(hjh]hsize_t minuend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMohjܺubj)}(hhh]h)}(hvalue to subtract fromh]hvalue to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjܺubeh}(h]h ]h"]h$]h&]uh1jhjhMohjٺubj)}(h9``size_t subtrahend`` value to subtract from **minuend** h](j)}(h``size_t subtrahend``h]j)}(hjh]hsize_t subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMphjubj)}(hhh]h)}(h"value to subtract from **minuend**h](hvalue to subtract from }(hj4hhhNhNubj)}(h **minuend**h]hminuend}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1hhj0hMphj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMphjٺubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMrhjubh)}(hXAcalculate **minuend** - **subtrahend**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hjzhhhNhNubj)}(h **minuend**h]hminuend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh - }(hjzhhhNhNubj)}(h**subtrahend**h]h subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubhX, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](harray_size (C macro) c.array_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h array_sizeh]j)}(h array_sizeh]jg)}(h array_sizeh]jm)}(hjǻh]h array_size}(hjѻhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjͻubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjɻhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjŻhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj»hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj»hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``array_size (a, b)``h]j)}(hjh]harray_size (a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h'Calculate size of 2-dimensional array. h]h)}(h&Calculate size of 2-dimensional array.h]h&Calculate size of 2-dimensional array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj+hMhjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two **Description** Calculates size of 2-dimensional array: **a** * **b**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubj)}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjWh]ha}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjQubj)}(hhh]h)}(h dimension oneh]h dimension one}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h dimension twoh]h dimension two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj˼h]h Description}(hjͼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɼubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubh)}(h6Calculates size of 2-dimensional array: **a** * **b**.h](h(Calculates size of 2-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubh)}(hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.h]hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](harray3_size (C macro) c.array3_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h array3_sizeh]j)}(h array3_sizeh]jg)}(h array3_sizeh]jm)}(hjUh]h array3_size}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjrhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``array3_size (a, b, c)``h]j)}(hjh]harray3_size (a, b, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h'Calculate size of 3-dimensional array. h]h)}(h&Calculate size of 3-dimensional array.h]h&Calculate size of 3-dimensional array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two ``c`` dimension three **Description** Calculates size of 3-dimensional array: **a** * **b** * **c**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjƽh]h Parameters}(hjȽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĽubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj߽ubj)}(hhh]h)}(h dimension oneh]h dimension one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj߽ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjܽubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjh]hb}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h dimension twoh]h dimension two}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjܽubj)}(h``c`` dimension three h](j)}(h``c``h]j)}(hjWh]hc}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjQubj)}(hhh]h)}(hdimension threeh]hdimension three}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjܽubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h>Calculates size of 3-dimensional array: **a** * **b** * **c**.h](h(Calculates size of 3-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h**b**h]hb}(hj¾hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }hjsbj)}(h**c**h]hc}(hjԾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.h]hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hflex_array_size (C macro)c.flex_array_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(hflex_array_sizeh]j)}(hflex_array_sizeh]jg)}(hflex_array_sizeh]jm)}(hj.h]hflex_array_size}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjKhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj)hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj)hhhjKhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjdjjdjjjuh1hhhhjhNhNubh)}(h&``flex_array_size (p, member, count)``h]j)}(hjjh]h"flex_array_size (p, member, count)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hICalculate size of a flexible array member within an enclosing structure. h]h)}(hHCalculate size of a flexible array member within an enclosing structure.h]hHCalculate size of a flexible array member within an enclosing structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hXN**Parameters** ``p`` Pointer to the structure. ``member`` Name of the flexible array member. ``count`` Number of elements in the array. **Description** Calculates size of a flexible array of **count** number of **member** elements, at the end of structure **p**. **Return** number of bytes needed or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h ``p`` Pointer to the structure. h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hj׿hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӿhMhjԿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӿhMhjubj)}(h.``member`` Name of the flexible array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h"Name of the flexible array member.h]h"Name of the flexible array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hj0h]hcount}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj*ubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(hnCalculates size of a flexible array of **count** number of **member** elements, at the end of structure **p**.h](h'Calculates size of a flexible array of }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh number of }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# elements, at the end of structure }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_size (C macro) c.struct_sizehNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_sizeh]j)}(h struct_sizeh]jg)}(h struct_sizeh]jm)}(hjh]h struct_size}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj$hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj=jj=jjjuh1hhhhjhNhNubh)}(h"``struct_size (p, member, count)``h]j)}(hjCh]hstruct_size (p, member, count)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h:Calculate size of structure with trailing flexible array. h]h)}(h9Calculate size of structure with trailing flexible array.h]h9Calculate size of structure with trailing flexible array.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjYubah}(h]h ]h"]h$]h&]uh1jhjkhMhjhhubj)}(hXO**Parameters** ``p`` Pointer to the structure. ``member`` Name of the array member. ``count`` Number of elements in the array. **Description** Calculates size of memory needed for structure of **p** followed by an array of **count** number of **member** elements. **Return** number of bytes needed or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubj)}(hhh](j)}(h ``p`` Pointer to the structure. h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hj h]hcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjrubh)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubh)}(hxCalculates size of memory needed for structure of **p** followed by an array of **count** number of **member** elements.h](h2Calculates size of memory needed for structure of }(hjZhhhNhNubj)}(h**p**h]hp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh followed by an array of }(hjZhhhNhNubj)}(h **count**h]hcount}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh number of }(hjZhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh elements.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_size_t (C macro)c.struct_size_thNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_size_th]j)}(h struct_size_th]jg)}(h struct_size_th]jm)}(hjh]h struct_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h'``struct_size_t (type, member, count)``h]j)}(hjh]h#struct_size_t (type, member, count)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h9Calculate size of structure with trailing flexible array h]h)}(h8Calculate size of structure with trailing flexible arrayh]h8Calculate size of structure with trailing flexible array}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj2ubah}(h]h ]h"]h$]h&]uh1jhjDhMhjhhubj)}(hX**Parameters** ``type`` structure type name. ``member`` Name of the array member. ``count`` Number of elements in the array. **Description** Calculates size of memory needed for structure **type** followed by an array of **count** number of **member** elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type **type**. **Return** number of bytes needed or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubj)}(hhh](j)}(h``type`` structure type name. h](j)}(h``type``h]j)}(hjph]htype}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjjubj)}(hhh]h)}(hstructure type name.h]hstructure type name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubh)}(hCalculates size of memory needed for structure **type** followed by an array of **count** number of **member** elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type **type**.h](h/Calculates size of memory needed for structure }(hj3hhhNhNubj)}(h**type**h]htype}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh followed by an array of }(hj3hhhNhNubj)}(h **count**h]hcount}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh number of }(hj3hhhNhNubj)}(h **member**h]hmember}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type }(hj3hhhNhNubj)}(h**type**h]htype}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_offset (C macro)c.struct_offsethNtauh1hhjhhhNhNubh)}(hhh](j)}(h struct_offseth]j)}(h struct_offseth]jg)}(h struct_offseth]jm)}(hjh]h struct_offset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h``struct_offset (p, member)``h]j)}(hjh]hstruct_offset (p, member)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h1Calculate the offset of a member within a struct h]h)}(h0Calculate the offset of a member within a structh]h0Calculate the offset of a member within a struct}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj/hMhjhhubj)}(hX**Parameters** ``p`` Pointer to the struct ``member`` Name of the member to get the offset of **Description** Calculates the offset of a particular **member** of the structure pointed to by **p**. **Return** number of bytes to the location of **member**.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj6ubj)}(hhh](j)}(h``p`` Pointer to the struct h](j)}(h``p``h]j)}(hj[h]hp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjUubj)}(hhh]h)}(hPointer to the structh]hPointer to the struct}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubj)}(h3``member`` Name of the member to get the offset of h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h'Name of the member to get the offset ofh]h'Name of the member to get the offset of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj6ubh)}(hVCalculates the offset of a particular **member** of the structure pointed to by **p**.h](h&Calculates the offset of a particular }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of the structure pointed to by }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj6ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj6ubh)}(h.number of bytes to the location of **member**.h](h#number of bytes to the location of }(hj0hhhNhNubj)}(h **member**h]hmember}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__DEFINE_FLEX (C macro)c.__DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(h __DEFINE_FLEXh]j)}(h __DEFINE_FLEXh]jg)}(h __DEFINE_FLEXh]jm)}(hjkh]h __DEFINE_FLEX}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h9``__DEFINE_FLEX (type, name, member, count, trailer...)``h]j)}(hjh]h5__DEFINE_FLEX (type, name, member, count, trailer...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hchelper macro for DEFINE_FLEX() family. Enables caller macro to pass arbitrary trailing expressions h]h)}(hbhelper macro for DEFINE_FLEX() family. Enables caller macro to pass arbitrary trailing expressionsh]hbhelper macro for DEFINE_FLEX() family. Enables caller macro to pass arbitrary trailing expressions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX3**Parameters** ``type`` structure type name, including "struct" keyword. ``name`` Name for a variable to define. ``member`` Name of the array member. ``count`` Number of elements in the array; must be compile-time const. ``trailer...`` Trailing expressions for attributes and/or initializers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h:``type`` structure type name, including "struct" keyword. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hj4h]hname}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj.ubj)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjmh]hmember}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjgubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hmember**) to get compile-time size of **name** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjzubj)}(hhh](j)}(h:``type`` structure type name, including "struct" keyword. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj ubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubj)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hjJh]hcount}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjDubj)}(hhh]h)}(hmember**) to get compile-time size of **name** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h'Define a zeroed, on-stack, instance of }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD structure with a trailing flexible array member. Use __struct_size(}(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?) to get compile-time size of it afterwards. Use __member_size(}(hjhhhNhNubj)}(h**name->member**h]h name->member}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) to get compile-time size of }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2) to get compile-time number of elements in array }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_FLEX (C macro) c.DEFINE_FLEXhNtauh1hhjhhhNhNubh)}(hhh](j)}(h DEFINE_FLEXh]j)}(h DEFINE_FLEXh]jg)}(h DEFINE_FLEXh]jm)}(hjBh]h DEFINE_FLEX}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj_hM ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj_hM hj=hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj=hhhj_hM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjxjjxjjjuh1hhhhjhNhNubh)}(h4``DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)``h]j)}(hj~h]h0DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.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.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hjhhubj)}(hX**Parameters** ``TYPE`` structure type name, including "struct" keyword. ``NAME`` Name for a variable to define. ``MEMBER`` Name of the array member. ``COUNTER`` Name of the __counted_by member. ``COUNT`` Number of elements in the array; must be compile-time const. **Description** Define a zeroed, on-stack, instance of **TYPE** structure with a trailing flexible array member. Use __struct_size(**NAME**) to get compile-time size of it afterwards. Use __member_size(**NAME->member**) to get compile-time size of **NAME** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh](j)}(h:``TYPE`` structure type name, including "struct" keyword. h](j)}(h``TYPE``h]j)}(hjh]hTYPE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``NAME`` Name for a variable to define. h](j)}(h``NAME``h]j)}(hj h]hNAME}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(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)}(hjDh]hMEMBER}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj>ubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjubj)}(h-``COUNTER`` Name of the __counted_by member. h](j)}(h ``COUNTER``h]j)}(hj}h]hCOUNTER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjwubj)}(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&]uh1jhjwubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD structure with a trailing flexible array member. Use __struct_size(}(hjhhhNhNubj)}(h**NAME**h]hNAME}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?) to get compile-time size of it afterwards. Use __member_size(}(hjhhhNhNubj)}(h**NAME->member**h]h NAME->member}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) to get compile-time size of }(hjhhhNhNubj)}(h**NAME**h]hNAME}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjhhhNhNubj)}(h**name**h]hname}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **member**h]hmember}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2) to get compile-time number of elements in array }(hjhhhNhNubj)}(h **member**h]hmember}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hSTACK_FLEX_ARRAY_SIZE (C macro)c.STACK_FLEX_ARRAY_SIZEhNtauh1hhjhhhNhNubh)}(hhh](j)}(hSTACK_FLEX_ARRAY_SIZEh]j)}(hSTACK_FLEX_ARRAY_SIZEh]jg)}(hSTACK_FLEX_ARRAY_SIZEh]jm)}(hjh]hSTACK_FLEX_ARRAY_SIZE}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM!ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM!hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM!ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h'``STACK_FLEX_ARRAY_SIZE (name, array)``h]j)}(hjh]h#STACK_FLEX_ARRAY_SIZE (name, array)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM#hjhhubj)}(hThelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**. h]h)}(hShelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**.h](hIhelper macro for DEFINE_FLEX() family. Returns the number of elements in }(hjhhhNhNubj)}(h **array**h]harray}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM!hjubah}(h]h ]h"]h$]h&]uh1jhj$hM!hjhhubj)}(h**Parameters** ``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). ``array`` Name of the array member.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM%hj+ubj)}(hhh](j)}(hI``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). h](j)}(h``name``h]j)}(hjPh]hname}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM$hjJubj)}(hhh]h)}(h?Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX().h]h?Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM$hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM$hjGubj)}(h#``array`` Name of the array member.h](j)}(h ``array``h]j)}(hjh]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM&hjubj)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]arithmetic-overflow-checkingah ]h"]arithmetic overflow checkingah$]h&]uh1hhjhhhhhK}ubh)}(hhh](h)}(h CRC Functionsh]h CRC Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc4 (C function)c.crc4hNtauh1hhjhhhNhNubh)}(hhh](j)}(h.uint8_t crc4 (uint8_t c, uint64_t x, int bits)h]j)}(h-uint8_t crc4(uint8_t c, uint64_t x, int bits)h](h)}(hhh]jm)}(huint8_th]huint8_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc4sbc.crc4asbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKubjg)}(hcrc4h]jm)}(hjh]hcrc4}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKubj)}(h!(uint8_t c, uint64_t x, int bits)h](j)}(h uint8_t ch](h)}(hhh]jm)}(huint8_th]huint8_t}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jc.crc4asbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hjh]hc}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hxh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hint bitsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjhhubj)}(hhh]h)}(h#calculate the 4-bit crc of a value.h]h#calculate the 4-bit crc of a value.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhjhNhNubj)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj?ubj)}(hhh](j)}(h``uint8_t c`` starting crc4 h](j)}(h ``uint8_t c``h]j)}(hjdh]h uint8_t c}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj^ubj)}(hhh]h)}(h starting crc4h]h starting crc4}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj[ubj)}(h!``uint64_t x`` value to checksum h](j)}(h``uint64_t x``h]j)}(hjh]h uint64_t x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj)}(hhh]h)}(hvalue to checksumh]hvalue to checksum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj[ubj)}(h1``int bits`` number of bits in **x** to checksum h](j)}(h ``int bits``h]j)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj)}(hhh]h)}(h#number of bits in **x** to checksumh](hnumber of bits in }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to checksum}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj[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:133: ./lib/crc/crc4.chKhj?ubh)}(h:Returns the crc4 value of **x**, using polynomial 0b10111.h](hReturns the crc4 value of }(hj9hhhNhNubj)}(h**x**h]hx}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh, using polynomial 0b10111.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj?ubh)}(hhThe **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](hThe }(hjZhhhNhNubj)}(h**x**h]hx}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh2 value is treated as left-aligned, and bits above }(hjZhhhNhNubj)}(h**bits**h]hbits}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh% are ignored in the crc calculations.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc7_be (C function) c.crc7_behNtauh1hhjhhhNhNubh)}(hhh](j)}(h1u8 crc7_be (u8 crc, const u8 *buffer, size_t len)h]j)}(h0u8 crc7_be(u8 crc, const u8 *buffer, size_t len)h](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc7_besb c.crc7_beasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK5ubjg)}(hcrc7_beh]jm)}(hjh]hcrc7_be}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK5ubj)}(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 ]j c.crc7_beasbuh1hhjubj)}(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)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(hu8h]hu8}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]j c.crc7_beasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hbufferh]hbuffer}(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.crc7_beasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK5hjhhubj)}(hhh]h)}(h#update the CRC7 for the data bufferh]h#update the CRC7 for the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhjhNhNubj)}(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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hj,ubj)}(hhh](j)}(h``u8 crc`` previous CRC7 value h](j)}(h ``u8 crc``h]j)}(hjQh]hu8 crc}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK6hjKubj)}(hhh]h)}(hprevious CRC7 valueh]hprevious CRC7 value}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhK6hjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhK6hjHubj)}(h"``const u8 *buffer`` data pointer h](j)}(h``const u8 *buffer``h]j)}(hjh]hconst u8 *buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK7hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjHubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK8hjubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h **Context**h]j)}(hjh]hContext}(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:hj,ubh)}(hanyh]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hj,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:136: ./lib/crc/crc7.chK;hj,ubh)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_msb (C function)c.crc8_populate_msbhNtauh1hhjhhhNhNubh)}(hhh](j)}(hAvoid crc8_populate_msb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]j)}(h@void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j )}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhKubjg)}(hcrc8_populate_msbh]jm)}(hcrc8_populate_msbh]hcrc8_populate_msb}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjxhKubj)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.crc8_populate_msbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(h[h]h[}(hjhhhNhNubah}(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.crc8_populate_msbasbuh1hhjubj)}(h]h]h]}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]jm)}(hu8h]hu8}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jc.crc8_populate_msbasbuh1hhj*ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubjm)}(h polynomialh]h polynomial}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhKubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhKhj_hhubj)}(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&]uh1jhj_hhhjxhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``u8 table[CRC8_TABLE_SIZE]`` table to be filled. ``u8 polynomial`` polynomial for which table is to be filled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjubj)}(hhh](j)}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j)}(h``u8 table[CRC8_TABLE_SIZE]``h]j)}(hjh]hu8 table[CRC8_TABLE_SIZE]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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.chKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8_populate_lsb (C function)c.crc8_populate_lsbhNtauh1hhjhhhNhNubh)}(hhh](j)}(hAvoid crc8_populate_lsb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]j)}(h@void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j )}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK/ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhjihK/ubjg)}(hcrc8_populate_lsbh]jm)}(hcrc8_populate_lsbh]hcrc8_populate_lsb}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhjihK/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 j~sbc.crc8_populate_lsbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hjh]h[}(hjhhhNhNubah}(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.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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jc.crc8_populate_lsbasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h polynomialh]h polynomial}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjihK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjihK/ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjihK/hjPhhubj)}(hhh]h)}(h9fill crc table for given polynomial in regular bit order.h]h9fill crc table for given polynomial in regular bit order.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK/hjshhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjihK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``u8 table[CRC8_TABLE_SIZE]`` table to be filled. ``u8 polynomial`` polynomial for which table is to be filled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK3hjubj)}(hhh](j)}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j)}(h``u8 table[CRC8_TABLE_SIZE]``h]j)}(hjh]hu8 table[CRC8_TABLE_SIZE]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK1hjubj)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(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.chK3hjubj)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc8 (C function)c.crc8hNtauh1hhjhhhNhNubh)}(hhh](j)}(hQu8 crc8 (const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h]j)}(hPu8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](h)}(hhh]jm)}(hu8h]hu8}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE crc8sbc.crc8asbuh1hhjFhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKDubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjnhKDubjg)}(hcrc8h]jm)}(hjkh]hcrc8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjnhKDubj)}(hI(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](j)}(hconst u8 table[CRC8_TABLE_SIZE]h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jic.crc8asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(htableh]htable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hjh]h[}(hjhhhNhNubah}(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 ]jic.crc8asbuh1hhjubj)}(hjh]h]}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *pdatah](j)}(hjh]hconst}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(hu8h]hu8}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jic.crc8asbuh1hhj6ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hpdatah]hpdata}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t nbytesh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jic.crc8asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnbytesh]hnbytes}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu8 crch](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jic.crc8asbuh1hhjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjnhKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjnhKDubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjnhKDhj?hhubj)}(hhh]h)}(h+calculate a crc8 over the given input data.h]h+calculate a crc8 over the given input data.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKDhjHhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjnhKDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhjhNhNubj)}(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)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKHhjgubj)}(hhh](j)}(hD``const u8 table[CRC8_TABLE_SIZE]`` crc table used for calculation. h](j)}(h#``const u8 table[CRC8_TABLE_SIZE]``h]j)}(hjh]hconst u8 table[CRC8_TABLE_SIZE]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKFhjubj)}(hhh]h)}(hcrc table used for calculation.h]hcrc table used for calculation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubj)}(h,``const u8 *pdata`` pointer to data buffer. h](j)}(h``const u8 *pdata``h]j)}(hjh]hconst u8 *pdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKGhjubj)}(hhh]h)}(hpointer to data buffer.h]hpointer to data buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKHhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubj)}(h(``u8 crc`` previous returned crc8 value.h](j)}(h ``u8 crc``h]j)}(hj7h]hu8 crc}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKJhj1ubj)}(hhh]h)}(hprevious returned crc8 value.h]hprevious returned crc8 value.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKIhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhKJhjubeh}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc16 (C function)c.crc16hNtauh1hhjhhhNhNubh)}(hhh](j)}(h,u16 crc16 (u16 crc, const u8 *p, size_t len)h]j)}(h+u16 crc16(u16 crc, const u8 *p, size_t len)h](h)}(hhh]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc16sbc.crc16asbuh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK0ubjg)}(hcrc16h]jm)}(hjh]hcrc16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK0ubj)}(h"(u16 crc, const u8 *p, 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 ]jc.crc16asbuh1hhjubj)}(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 u8 *ph](j)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hu8h]hu8}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jc.crc16asbuh1hhj'ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hjh]hp}(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 ]jc.crc16asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK0hjhhubj)}(hhh]h)}(h&compute the CRC-16 for the data bufferh]h&compute the CRC-16 for the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK0hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(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)}(hj4h]hu16 crc}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK1hj.ubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhK1hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhK1hj+ubj)}(h``const u8 *p`` data pointer h](j)}(h``const u8 *p``h]j)}(hjmh]h const u8 *p}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK2hjgubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhK2hj+ubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK3hjubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hj+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:142: ./lib/crc/crc16.chK5hjubh)}(hReturns the updated CRC value.h]hReturns the updated CRC value.}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_ccitt (C function) c.crc_ccitthNtauh1hhjhhhNhNubh)}(hhh](j)}(h5u16 crc_ccitt (u16 crc, u8 const *buffer, size_t len)h]j)}(h4u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len)h](h)}(hhh]jm)}(hu16h]hu16}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE crc_ccittsb c.crc_ccittasbuh1hhj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK3ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"hhhjJhK3ubjg)}(h crc_ccitth]jm)}(hjGh]h crc_ccitt}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj"hhhjJhK3ubj)}(h'(u16 crc, u8 const *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jE c.crc_ccittasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hu8 const *bufferh](h)}(hhh]jm)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jE c.crc_ccittasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jE c.crc_ccittasbuh1hhj,ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubjm)}(hlenh]hlen}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhjJhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjJhK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjJhK3hjhhubj)}(hhh]h)}(h9recompute the CRC (CRC-CCITT variant) for the data bufferh]h9recompute the CRC (CRC-CCITT variant) for the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjJhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``u16 crc`` previous CRC value ``u8 const *buffer`` data pointer ``size_t len`` number of bytes in the bufferh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK7hjubj)}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjh]hu16 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK5hjubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubj)}(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.chK6hjubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjubj)}(h,``size_t len`` number of bytes in the bufferh](j)}(h``size_t len``h]j)}(hj<h]h size_t len}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK8hj6ubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK7hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc_itu_t (C function) c.crc_itu_thNtauh1hhjhhhNhNubh)}(hhh](j)}(h5u16 crc_itu_t (u16 crc, const u8 *buffer, size_t len)h]j)}(h4u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len)h](h)}(hhh]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc_itu_tsb c.crc_itu_tasbuh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK2ubjg)}(h crc_itu_th]jm)}(hjh]h crc_itu_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK2ubj)}(h'(u16 crc, const u8 *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]jm)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc_itu_tasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(hu8h]hu8}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]j c.crc_itu_tasbuh1hhj,ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hjzhhhNhNubah}(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_itu_tasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK2ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK2hjhhubj)}(hhh]h)}(h)Compute the CRC-ITU-T for the data bufferh]h)Compute the CRC-ITU-T for the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hj:h]hu16 crc}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK4hj4ubj)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhK4hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhK4hj1ubj)}(h"``const u8 *buffer`` data pointer h](j)}(h``const u8 *buffer``h]j)}(hjsh]hconst u8 *buffer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK5hjmubj)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhK5hj1ubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hjubj)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hj1ubeh}(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:148: ./lib/crc/crc-itu-t.chK8hjubh)}(hReturns the updated CRC valueh]hReturns the updated CRC value}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_le (C function) c.crc32_lehNtauh1hhjhhhNhNubh)}(hhh](j)}(h1u32 crc32_le (u32 crc, const void *p, size_t len)h]j)}(h0u32 crc32_le(u32 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu32h]hu32}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE crc32_lesb c.crc32_leasbuh1hhj(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_leh]jm)}(hjMh]hcrc32_le}(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_leasbuh1hhjzubj)}(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_leasbuh1hhjubj)}(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 least-significant-bit-first IEEE CRC-32h]h/Compute least-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&]jjjjjjjjjuh1hhhhjhNhNubj)}(hXx**Parameters** ``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. ``const void *p`` Pointer to the data buffer ``size_t len`` Length of data in bytes **Description** This implements the CRC variant that is often known as the IEEE CRC-32, or simply CRC-32, and is widely used in Ethernet and other applications: - Polynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0 - Bit order: Least-significant-bit-first - Polynomial in integer form: 0xedb88320 This does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended. For new applications, prefer to use CRC-32C instead. See crc32c(). **Context** Any context **Return** The new CRC valueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjubj)}(hhh](j)}(h``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. h](j)}(h ``u32 crc``h]j)}(hjh]hu32 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjubj)}(hhh]h)}(hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.h]hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(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.hhKhjubh)}(hThis implements the CRC variant that is often known as the IEEE CRC-32, or simply CRC-32, and is widely used in Ethernet and other applications:h]hThis implements the CRC variant that is often known as the IEEE CRC-32, or simply CRC-32, and is widely used in Ethernet and other applications:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubj)}(hhh](j)}(hwPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]j)}(hhh]j)}(hkPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h](j)}(hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +h]hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubj)}(hhh]h)}(h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjh]h&Bit order: Least-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Polynomial in integer form: 0xedb88320 h]h)}(h&Polynomial in integer form: 0xedb88320h]h&Polynomial in integer form: 0xedb88320}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubh)}(hThis does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.h](h This does }(hj hhhNhNubjx)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj ubh invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(hCFor new applications, prefer to use CRC-32C instead. See crc32c().h]hCFor new applications, prefer to use CRC-32C instead. See crc32c().}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(h **Context**h]j)}(hj?h]hContext}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(h Any contexth]h Any context}(hjUhhhNhNubah}(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)}(hjfh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(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.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32_be (C function) c.crc32_behNtauh1hhjhhhNhNubh)}(hhh](j)}(h1u32 crc32_be (u32 crc, const void *p, size_t len)h]j)}(h0u32 crc32_be(u32 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc32_besb c.crc32_beasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK(ubjg)}(hcrc32_beh]jm)}(hjh]hcrc32_be}(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_beasbuh1hhjubj)}(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)}(h const void *ph](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)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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_beasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]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 most-significant-bit-first IEEE CRC-32h]h.Compute most-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&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hj;h]hu32 crc}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK*hj5ubj)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK)hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhK*hj2ubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjuh]h const void *p}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK+hjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhK+hj2ubj)}(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,hj2ubeh}(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.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 }(hjhhhNhNubjx)}(h*most-significant-bit-first*h]hmost-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubh 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 +}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK2hj*ubj)}(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}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK3hj=ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj<hK2hj'ubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h%Bit order: Most-significant-bit-firsth]h)}(hjih]h%Bit order: Most-significant-bit-first}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK4hjgubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h'Polynomial in integer form: 0x04c11db7 h]h)}(h&Polynomial in integer form: 0x04c11db7h]h&Polynomial in integer form: 0x04c11db7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK5hjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj<hK2hjubh)}(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.hhK7hjubh)}(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.hhK8hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK:hjubh)}(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.hhK9hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc32c (C function)c.crc32chNtauh1hhjhhhNhNubh)}(hhh](j)}(h/u32 crc32c (u32 crc, const void *p, size_t len)h]j)}(h.u32 crc32c(u32 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(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 }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj0hK>ubjg)}(hcrc32ch]jm)}(hj-h]hcrc32c}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj0hK>ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]jm)}(hu32h]hu32}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]j+c.crc32casbuh1hhjZubj)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(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.crc32casbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlenh]hlen}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj0hK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hK>hjhhubj)}(hhh]h)}(hCompute CRC-32Ch]hCompute CRC-32C}(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&]uh1jhjhhhj0hK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjhNhNubj)}(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)}(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:151: ./include/linux/crc32.hhKBhjwubj)}(hhh](j)}(h``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. h](j)}(h ``u32 crc``h]j)}(hjh]hu32 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK@hjubj)}(hhh]h)}(hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.h]hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKAhjubj)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKBhj ubj)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKBhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKBhjubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(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.hhKDhjwubh)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKChjwubj)}(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 +}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKFhjyubj)}(hhh]h)}(h8x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0h]h8x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKGhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjvubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhjoubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjh]h&Bit order: Least-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKHhjubah}(h]h ]h"]h$]h&]uh1jhjoubj)}(h'Polynomial in integer form: 0x82f63b78 h]h)}(h&Polynomial in integer form: 0x82f63b78h]h&Polynomial in integer form: 0x82f63b78}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKIhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhjhKFhjwubh)}(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 }(hjhhhNhNubjx)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubh 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.hhKKhjwubh)}(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.hhKNhjwubh)}(h Any contexth]h Any context}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKOhjwubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKQhjwubh)}(hThe new CRC valueh]hThe new CRC value}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKPhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_be (C function) c.crc64_behNtauh1hhjhhhNhNubh)}(hhh](j)}(h1u64 crc64_be (u64 crc, const void *p, size_t len)h]j)}(h0u64 crc64_be(u64 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc64_besb c.crc64_beasbuh1hhjxhhhZ/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&]uh1jhjxhhhjhKubjg)}(hcrc64_beh]jm)}(hjh]hcrc64_be}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjhKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.crc64_beasbuh1hhjubj)}(h h]h }(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 }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]j c.crc64_beasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubjm)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhKubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjqhhubj)}(hhh]h)}(h+Calculate bitwise big-endian ECMA-182 CRC64h]h+Calculate bitwise big-endian ECMA-182 CRC64}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.hhK hjubj)}(hhh](j)}(h``u64 crc`` seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally. h](j)}(h ``u64 crc``h]j)}(hj h]hu64 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK 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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hK hjubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hjFh]h const void *p}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hj@ubj)}(hhh]h)}(h)pointer to buffer over which CRC64 is runh]h)pointer to buffer over which CRC64 is run}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hK hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hK 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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjyubj)}(hhh]h)}(hlength of buffer **p**h](hlength of buffer }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcrc64_nvme (C function) c.crc64_nvmehNtauh1hhjhhhNhNubh)}(hhh](j)}(h3u64 crc64_nvme (u64 crc, const void *p, size_t len)h]j)}(h2u64 crc64_nvme(u64 crc, const void *p, size_t len)h](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE crc64_nvmesb c.crc64_nvmeasbuh1hhjhhhZ/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)}(h crc64_nvmeh]jm)}(hjh]h crc64_nvme}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(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}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]j c.crc64_nvmeasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hcrch]hcrc}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h const void *ph](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}(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)}(hjh]hp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(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 ]j c.crc64_nvmeasbuh1hhjubj)}(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&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjhhubj)}(hhh]h)}(hCalculate CRC64-NVMEh]hCalculate CRC64-NVME}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1hhhhjhNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjRubj)}(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)}(hjwh]hu64 crc}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjqubj)}(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&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubj)}(hhh]h)}(h)pointer to buffer over which CRC64 is runh]h)pointer to buffer over which CRC64 is run}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(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.hhKhjubj)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjRubh)}(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, }(hjIhhhNhNubjx)}(h:*including the bitwise inversion at the beginning and end*h]h8including the bitwise inversion at the beginning and end}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjIubh.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] crc-functionsah ]h"] crc functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hBase 2 log and power Functionsh]hBase 2 log and power Functions}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](his_power_of_2 (C function)c.is_power_of_2hNtauh1hhjyhhhNhNubh)}(hhh](j)}(h$bool is_power_of_2 (unsigned long n)h]j)}(h#bool is_power_of_2(unsigned long n)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK%ubjg)}(h is_power_of_2h]jm)}(h is_power_of_2h]h is_power_of_2}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK%ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(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)}(hjyh]hn}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK%hjhhubj)}(hhh]h)}(h"check if a value is a power of twoh]h"check if a value is a power of two}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%hj=hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1hhhhjyhNhNubj)}(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)}(hjbh]h Parameters}(hjdhhhNhNubah}(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)hj\ubj)}(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&hj{ubj)}(hhh]h)}(hthe value to checkh]hthe value to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjxubah}(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:158: ./include/linux/log2.hhK(hj\ubh)}(h^Determine whether some value is a power of two, where zero is *not* considered a power of two.h](h>Determine whether some value is a power of two, where zero is }(hjhhhNhNubjx)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubh considered a power of two.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK'hj\ubh)}(h **Return**h]j)}(hjh]hReturn}(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*hj\ubh)}(h/true if **n** is a power of 2, otherwise false.h](htrue if }(hj hhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh" is a power of 2, otherwise false.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK*hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!__roundup_pow_of_two (C function)c.__roundup_pow_of_twohNtauh1hhjyhhhNhNubh)}(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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHhhhjZhK3ubj )}(hlongh]hlong}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjHhhhjZhK3ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHhhhjZhK3ubjg)}(h__roundup_pow_of_twoh]jm)}(h__roundup_pow_of_twoh]h__roundup_pow_of_two}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjHhhhjZhK3ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjHhhhjZhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjZhK3ubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjZhK3hjAhhubj)}(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&]uh1jhjAhhhjZhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](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:158: ./include/linux/log2.hhK7hj"ubj)}(hhh]j)}(h%``unsigned long n`` value to round uph](j)}(h``unsigned long n``h]j)}(hjGh]hunsigned long n}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK9hjAubj)}(hhh]h)}(hvalue to round uph]hvalue to round up}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK4hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hK9hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__rounddown_pow_of_two (C function)c.__rounddown_pow_of_twohNtauh1hhjyhhhNhNubh)}(hhh](j)}(h6unsigned long __rounddown_pow_of_two (unsigned long n)h]j)}(h5unsigned long __rounddown_pow_of_two(unsigned long n)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK=ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK=ubjg)}(h__rounddown_pow_of_twoh]jm)}(h__rounddown_pow_of_twoh]h__rounddown_pow_of_two}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK=ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(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)}(hjyh]hn}(hj2hhhNhNubah}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK=hjhhubj)}(hhh]h)}(h"round down to nearest power of twoh]h"round down to nearest power of two}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK=hjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjyhNhNubj)}(h9**Parameters** ``unsigned long n`` value to round downh](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKAhjwubj)}(hhh]j)}(h'``unsigned long n`` value to round downh](j)}(h``unsigned long n``h]j)}(hjh]hunsigned long n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKChjubj)}(hhh]h)}(hvalue to round downh]hvalue to round down}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hconst_ilog2 (C macro) c.const_ilog2hNtauh1hhjyhhhNhNubh)}(hhh](j)}(h const_ilog2h]j)}(h const_ilog2h]jg)}(h const_ilog2h]jm)}(hjh]h const_ilog2}(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.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hKGubeh}(h]h ](jmacroeh"]h$]h&]jjjj&jj&jjjuh1hhhhjyhNhNubh)}(h``const_ilog2 (n)``h]j)}(hj,h]hconst_ilog2 (n)}(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.hhKIhjyhhubj)}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGhjBubah}(h]h ]h"]h$]h&]uh1jhjThKGhjyhhubj)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(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.hhKKhj[ubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKHhjzubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjwubah}(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:158: ./include/linux/log2.hhKJhj[ubh)}(hQUse this where sparse expects a true constant expression, e.g. for array indices.h]hQUse this where sparse expects a true constant expression, e.g. for array indices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKIhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hilog2 (C macro)c.ilog2hNtauh1hhjyhhhNhNubh)}(hhh](j)}(hilog2h]j)}(hilog2h]jg)}(hilog2h]jm)}(hjh]hilog2}(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&]jjjj0jj0jjjuh1hhhhjyhNhNubh)}(h ``ilog2 (n)``h]j)}(hj6h]h ilog2 (n)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjyhhubj)}(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}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjLubah}(h]h ]h"]h$]h&]uh1jhj^hKhjyhhubj)}(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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjeubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjeubh)}(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.hhKhjeubh)}(hconstant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator constructionh]hconstant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator construction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjeubh)}(hHselects the appropriately-sized optimised version depending on sizeof(n)h]hHselects the appropriately-sized optimised version depending on sizeof(n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hroundup_pow_of_two (C macro)c.roundup_pow_of_twohNtauh1hhjyhhhNhNubh)}(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&]jjjuh1jjjhjhhhj0hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj0hKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj0hKubeh}(h]h ](jmacroeh"]h$]h&]jjjjIjjIjjjuh1hhhhjyhNhNubh)}(h``roundup_pow_of_two (n)``h]j)}(hjOh]hroundup_pow_of_two (n)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjyhhubj)}(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}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjeubah}(h]h ]h"]h$]h&]uh1jhjwhKhjyhhubj)}(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.hhKhj~ubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]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:158: ./include/linux/log2.hhKhj~ubh)}(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}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrounddown_pow_of_two (C macro)c.rounddown_pow_of_twohNtauh1hhjyhhhNhNubh)}(hhh](j)}(hrounddown_pow_of_twoh]j)}(hrounddown_pow_of_twoh]jg)}(hrounddown_pow_of_twoh]jm)}(hjh]hrounddown_pow_of_two}(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:158: ./include/linux/log2.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&]jjjjSjjSjjjuh1hhhhjyhNhNubh)}(h``rounddown_pow_of_two (n)``h]j)}(hjYh]hrounddown_pow_of_two (n)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjyhhubj)}(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}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjoubah}(h]h ]h"]h$]h&]uh1jhjhKhjyhhubj)}(h**Parameters** ``n`` parameter **Description** round the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(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:158: ./include/linux/log2.hhKhjubh)}(hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah]hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](horder_base_2 (C macro)c.order_base_2hNtauh1hhjyhhhNhNubh)}(hhh](j)}(h order_base_2h]j)}(h order_base_2h]jg)}(h order_base_2h]jm)}(hj'h]h order_base_2}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhjDhKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhjDhKhj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhjDhKubeh}(h]h ](jmacroeh"]h$]h&]jjjj]jj]jjjuh1hhhhjyhNhNubh)}(h``order_base_2 (n)``h]j)}(hjch]horder_base_2 (n)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjyhhubj)}(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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjyubah}(h]h ]h"]h$]h&]uh1jhjhKhjyhhubj)}(h**Parameters** ``n`` parameter **Description** The first few values calculated by this routine: ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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.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.hhKhj ubj)}(hhh]h)}(hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h]hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbits_per (C macro) c.bits_perhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hbits_perh]j)}(hbits_perh]jg)}(hbits_perh]jm)}(hj\h]hbits_per}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(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&]jjjuh1jjjhjZhhhjyhKubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjyhKhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjyhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubh)}(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.hhKhjyhhubj)}(h7calculate the number of bits required for the argument h]h)}(h6calculate the number of bits required for the argumenth]h6calculate the number of bits required for the argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjyhhubj)}(hX**Parameters** ``n`` parameter **Description** This is constant-capable and can be used for compile time initializations, e.g bitfields. The first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.h]hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hqThe first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.h]hqThe first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.}(hjLhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"max_pow_of_two_factor (C function)c.max_pow_of_two_factorhNtauh1hhjyhhhNhNubh)}(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}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjhMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjhMubjg)}(hmax_pow_of_two_factorh]jm)}(hmax_pow_of_two_factorh]hmax_pow_of_two_factor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjhMubj)}(h(unsigned int n)h]j)}(hunsigned int nh](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)}(hjyh]hn}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjphhubj)}(hhh]h)}(h return highest power-of-2 factorh]h return highest power-of-2 factor}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhjyhNhNubj)}(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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjQubj)}(hhh]j)}(h``unsigned int n`` parameter h](j)}(h``unsigned int n``h]j)}(hjvh]hunsigned int n}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjpubj)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjQubh)}(hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.h]hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog2 (C function) c.intlog2hNtauh1hhjhhhNhNubh)}(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 hj hhh\/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&]uh1jhj hhhjhKubj )}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhjhKubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhKubjg)}(hintlog2h]jm)}(hintlog2h]hintlog2}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhKubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]jm)}(hu32h]hu32}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jR )}jE jNsb c.intlog2asbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog2(value) = intlog2(value * 2^x) - x * 2^24 Some usecase examples: intlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 **Return** log2(value) * 2^24h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubj)}(hhh]j)}(h'``u32 value`` The value (must be != 0) h](j)}(h ``u32 value``h]j)}(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&]uh1jhjhKhjubah}(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:164: ./include/linux/int_log.hhKhjubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubj)}(h1intlog2(value) = intlog2(value * 2^x) - x * 2^24 h]h)}(h0intlog2(value) = intlog2(value * 2^x) - x * 2^24h]h0intlog2(value) = intlog2(value * 2^x) - x * 2^24}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjdubah}(h]h ]h"]h$]h&]uh1jhjvhKhjubh)}(hSome usecase examples:h]hSome usecase examples:}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubj)}(hintlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 h](h)}(h'intlog2(8) will give 3 << 24 = 3 * 2^24h]h'intlog2(8) will give 3 << 24 = 3 * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubh)}(h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24h]h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubh)}(h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24h]h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubh)}(hlog2(value) * 2^24h]hlog2(value) * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hintlog10 (C function) c.intlog10hNtauh1hhjhhhNhNubh)}(hhh](j)}(h!unsigned int intlog10 (u32 value)h]j)}(h unsigned int intlog10(u32 value)h](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(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}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhK$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK$ubjg)}(hintlog10h]jm)}(hintlog10h]hintlog10}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK$ubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]jm)}(hu32h]hu32}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE jIsb c.intlog10asbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubjm)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK$ubah}(h]jah ](jjeh"]h$]h&]jj)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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK(hjubj)}(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.hhK&hjubj)}(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&]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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK(hjubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK'hjubj)}(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}(hjchhhNhNubah}(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&]uh1jhjqhK)hjubh)}(hAn usecase example:h]hAn usecase example:}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK+hjubj)}(hw intlog10(1000) will give 3 << 24 = 3 * 2^24 due to the implementation intlog10(1000) might be not exactly 3 * 2^24 h](j)}(h,intlog10(1000) will give 3 << 24 = 3 * 2^24 h]h)}(h+intlog10(1000) will give 3 << 24 = 3 * 2^24h]h+intlog10(1000) will give 3 << 24 = 3 * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK-hjubah}(h]h ]h"]h$]h&]uh1jhjhK-hjubh)}(hFdue to the implementation intlog10(1000) might be not exactly 3 * 2^24h]hFdue to the implementation intlog10(1000) might be not exactly 3 * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK/hjubeh}(h]h ]h"]h$]h&]uh1jhjhK-hjubh)}(h$look at intlog2 for similar examplesh]h$look at intlog2 for similar examples}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK1hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK3hjubh)}(hlog10(value) * 2^24h]hlog10(value) * 2^24}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_pow (C function) c.int_powhNtauh1hhjhhhNhNubh)}(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_powasbuh1hhj hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj3hK ubjg)}(hint_powh]jm)}(hj0h]hint_pow}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj3hK ubj)}(h(u64 base, unsigned int exp)h](j)}(hu64 baseh](h)}(hhh]jm)}(hu64h]hu64}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]j. c.int_powasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubjm)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hunsigned int exph](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hexph]hexp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj3hK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj3hK ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hK hjhhubj)}(hhh]h)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hj hhhNhNubah}(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&]uh1jhjhhhj3hK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjhNhNubj)}(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)}(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:166: ./lib/math/int_pow.chKhj'ubj)}(hhh](j)}(h:``u64 base`` base which will be raised to the given power h](j)}(h ``u64 base``h]j)}(hjLh]hu64 base}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjFubj)}(hhh]h)}(h,base which will be raised to the given powerh]h,base which will be raised to the given power}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahKhjCubj)}(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&]uh1jhjhKhjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj'ubh)}(hCComputes: pow(base, exp), i.e. **base** raised to the **exp** powerh](hComputes: pow(base, exp), i.e. }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh raised to the }(hjhhhNhNubj)}(h**exp**h]hexp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh power}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt (C function) c.int_sqrthNtauh1hhjhhhNhNubh)}(hhh](j)}(h(unsigned long int_sqrt (unsigned long x)h]j)}(h'unsigned long int_sqrt(unsigned long x)h](j )}(hunsignedh]hunsigned}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hKubj )}(hlongh]hlong}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhj7hKubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hKubjg)}(hint_sqrth]jm)}(hint_sqrth]hint_sqrt}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hKubj)}(h(unsigned long x)h]j)}(hunsigned long xh](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~ubjm)}(hjh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubah}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hKhjhhubj)}(hhh]h)}(h computes the integer square rooth]h computes the integer square root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(hj$h]hunsigned long x}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjubj)}(hhh]h)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(hj=hhhNhNubah}(h]h ]h"]h$]h&]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&]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))}(hjuhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hint_sqrt64 (C function) c.int_sqrt64hNtauh1hhjhhhNhNubh)}(hhh](j)}(hu32 int_sqrt64 (u64 x)h]j)}(hu32 int_sqrt64(u64 x)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 int_sqrt64sb c.int_sqrt64asbuh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK-ubjg)}(h int_sqrt64h]jm)}(hjh]h int_sqrt64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK-ubj)}(h(u64 x)h]j)}(hu64 xh](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_sqrt64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]hx}(hj%hhhNhNubah}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK-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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-hjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhjhNhNubj)}(hH**Parameters** ``u64 x`` 64bit integer of which to calculate the sqrth](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK1hjjubj)}(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.chK3hjubj)}(hhh]h)}(h,64bit integer of which to calculate the sqrth]h,64bit integer of which to calculate the sqrt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]integer-log-and-power-functionsah ]h"]integer log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hDivision Functionsh]hDivision Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdo_div (C macro)c.do_divhNtauh1hhjhhhNhNubh)}(hhh](j)}(hdo_divh]j)}(hdo_divh]jg)}(hdo_divh]jm)}(hjh]hdo_div}(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:175: ./include/asm-generic/div64.hhK ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hK ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hK hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hK ubeh}(h]h ](jmacroeh"]h$]h&]jjjj2 jj2 jjjuh1hhhhjhNhNubh)}(h``do_div (n, base)``h]j)}(hj8 h]hdo_div (n, base)}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6 ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK"hjhhubj)}(h>returns 2 values: calculate remainder and update new dividend h]h)}(h=returns 2 values: calculate remainder and update new dividendh]h=returns 2 values: calculate remainder and update new dividend}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK hjN ubah}(h]h ]h"]h$]h&]uh1jhj` hK hjhhubj)}(hX**Parameters** ``n`` uint64_t dividend (will be updated) ``base`` uint32_t divisor **Description** Summary: ``uint32_t remainder = n % base;`` ``n = n / base;`` **Return** (uint32_t)remainder **NOTE** macro parameter **n** is evaluated multiple times, beware of side effects!h](h)}(h**Parameters**h]j)}(hjm h]h Parameters}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK$hjg ubj)}(hhh](j)}(h*``n`` uint64_t dividend (will be updated) h](j)}(h``n``h]j)}(hj h]hn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK!hj ubj)}(hhh]h)}(h#uint64_t dividend (will be updated)h]h#uint64_t dividend (will be updated)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK!hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK!hj ubj)}(h``base`` uint32_t divisor h](j)}(h``base``h]j)}(hj h]hbase}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK"hj ubj)}(hhh]h)}(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"hj ubeh}(h]h ]h"]h$]h&]uh1jhjg 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:175: ./include/asm-generic/div64.hhK$hjg ubh)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hj hhhNhNubj)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh }(hj hhhNhNubj)}(h``n = n / base;``h]h n = n / base;}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK#hjg ubh)}(h **Return**h]j)}(hjG h]hReturn}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK'hjg ubh)}(h(uint32_t)remainderh]h(uint32_t)remainder}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK(hjg ubh)}(h**NOTE**h]j)}(hjn h]hNOTE}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjg ubh)}(hJmacro parameter **n** is evaluated multiple times, beware of side effects!h](hmacro parameter }(hj hhhNhNubj)}(h**n**h]hn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh5 is evaluated multiple times, beware of side effects!}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjg ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64_rem (C function) c.div_u64_remhNtauh1hhjhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE div_u64_remsb c.div_u64_remasbuh1hhj hhh[/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&]uh1jhj hhhj hKubjg)}(h div_u64_remh]jm)}(hj h]h div_u64_rem}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hKubj)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j)}(h u64 dividendh](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j  c.div_u64_remasbuh1hhj ubj)}(h h]h }(hj8 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hdividendh]hdividend}(hjF hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h u32 divisorh](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.div_u64_remasbuh1hhj[ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ ubjm)}(hdivisorh]hdivisor}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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 ]j  c.div_u64_remasbuh1hhj 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)}(h remainderh]h remainder}(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)}(h7unsigned 64bit divide with 32bit divisor with remainderh]h7unsigned 64bit divide with 32bit divisor with remainder}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj% jj% jjjuh1hhhhjhNhNubj)}(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)}(hj/ h]h Parameters}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj- ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj) ubj)}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjN h]h u64 dividend}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjH ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc hKhjd ubah}(h]h ]h"]h$]h&]uh1jhjH ubeh}(h]h ]h"]h$]h&]uh1jhjc hKhjE ubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hj h]h u32 divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj ubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjE ubj)}(h7``u32 *remainder`` pointer to unsigned 32bit remainder h](j)}(h``u32 *remainder``h]j)}(hj h]hu32 *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.hhKhj ubj)}(hhh]h)}(h#pointer to unsigned 32bit remainderh]h#pointer to unsigned 32bit remainder}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjE ubeh}(h]h ]h"]h$]h&]uh1jhj) ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj) ubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hj hhhNhNubj)}(h``*remainder``h]h *remainder}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh!, then returns dividend / divisor}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj) ubh)}(h**Description**h]j)}(hj4 h]h Description}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj) ubh)}(hNThis is commonly provided by 32bit archs to provide an optimized 64bit divide.h]hNThis is commonly provided by 32bit archs to provide an optimized 64bit divide.}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj) ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64_rem (C function) c.div_s64_remhNtauh1hhjhhhNhNubh)}(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}(hj| hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjy ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~ modnameN classnameNjI jL )}jO ]jR )}jE div_s64_remsb c.div_s64_remasbuh1hhju hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhju hhhj hK!ubjg)}(h div_s64_remh]jm)}(hj h]h div_s64_rem}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhju hhhj hK!ubj)}(h+(s64 dividend, s32 divisor, s32 *remainder)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j  c.div_s64_remasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hdividendh]hdividend}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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 }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hs32 *remainderh](h)}(hhh]jm)}(hs32h]hs32}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`modnameN classnameNjI jL )}jO ]j  c.div_s64_remasbuh1hhjWubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(h remainderh]h remainder}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhju hhhj hK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjq hhhj hK!ubah}(h]jl ah ](jjeh"]h$]h&]jj)jhuh1hhj hK!hjn hhubj)}(hhh]h)}(h5signed 64bit divide with 32bit divisor with remainderh]h5signed 64bit divide with 32bit divisor with remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!hjhhubah}(h]h ]h"]h$]h&]uh1jhjn hhhj hK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor ``s32 *remainder`` pointer to signed 32bit remainder **Return** sets ``*remainder``, then returns dividend / divisorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK%hjubj)}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjh]h s64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK"hjubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK#hj5ubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhK#hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhK#hjubj)}(h5``s32 *remainder`` pointer to signed 32bit remainder h](j)}(h``s32 *remainder``h]j)}(hjth]hs32 *remainder}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK$hjnubj)}(hhh]h)}(h!pointer to signed 32bit remainderh]h!pointer to signed 32bit remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK&hjubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjhhhNhNubj)}(h``*remainder``h]h *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!, then returns dividend / divisor}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK&hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_u64_rem (C function)c.div64_u64_remhNtauh1hhjhhhNhNubh)}(hhh](j)}(h=u64 div64_u64_rem (u64 dividend, u64 divisor, u64 *remainder)h]j)}(hhhhNhNubah}(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.hhK4hjjubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjRhhhNhNubj)}(h``*remainder``h]h *remainder}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh!, then returns dividend / divisor}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK4hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_u64 (C function) c.div64_u64hNtauh1hhjhhhNhNubh)}(hhh](j)}(h)u64 div64_u64 (u64 dividend, u64 divisor)h]j)}(h(u64 div64_u64(u64 dividend, u64 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 div64_u64sb c.div64_u64asbuh1hhjhhh[/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 div64_u64h]jm)}(hjh]h div64_u64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK=ubj)}(h(u64 dividend, u64 divisor)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 ]j c.div64_u64asbuh1hhjubj)}(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 u64 divisorh](h)}(hhh]jm)}(hu64h]hu64}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]j c.div64_u64asbuh1hhj)ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubjm)}(hdivisorh]hdivisor}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK=hjhhubj)}(hhh]h)}(h(unsigned 64bit divide with 64bit divisorh]h(unsigned 64bit divide with 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK=hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u64 divisor`` unsigned 64bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKAhjubj)}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjh]h u64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK>hjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjubj)}(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?hjubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(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 **Return**h]j)}(hj;h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKAhjubh)}(hdividend / divisorh]hdividend / divisor}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv64_s64 (C function) c.div64_s64hNtauh1hhjhhhNhNubh)}(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_s64asbuh1hhj|hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKIubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|hhhjhKIubjg)}(h div64_s64h]jm)}(hjh]h div64_s64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj|hhhjhKIubj)}(h(s64 dividend, s64 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.div64_s64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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 }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhKIubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhKIhjuhhubj)}(hhh]h)}(h&signed 64bit divide with 64bit divisorh]h&signed 64bit divide with 64bit divisor}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKIhjphhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s64 divisor`` signed 64bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhjubj)}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjh]h s64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKJhjubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubj)}(h%``s64 divisor`` signed 64bit divisor h](j)}(h``s64 divisor``h]j)}(hjh]h s64 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKKhjubj)}(hhh]h)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKKhjubeh}(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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhjubh)}(hdividend / divisorh]hdividend / divisor}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_u64 (C function) c.div_u64hNtauh1hhjhhhNhNubh)}(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}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE div_u64sb c.div_u64asbuh1hhjihhh[/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&]uh1jhjihhhjhKtubjg)}(hdiv_u64h]jm)}(hjh]hdiv_u64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhjhKtubj)}(h(u64 dividend, u32 divisor)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 ]j c.div_u64asbuh1hhjubj)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.div_u64asbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhjhKtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjhKtubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhjhKthjbhhubj)}(hhh]h)}(h(unsigned 64bit divide with 32bit divisorh]h(unsigned 64bit divide with 32bit divisor}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKthj]hhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjhKtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhjhNhNubj)}(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.hhKxhj|ubj)}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjh]h u64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKuhjubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKuhjubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hjh]h u32 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKvhjubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubeh}(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.hhKxhj|ubh)}(hThis is the most common 64bit divide and should be used if possible, as many 32bit archs can optimize this variant better than a full 64bit divide.h]hThis is the most common 64bit divide and should be used if possible, as many 32bit archs can optimize this variant better than a full 64bit divide.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKwhj|ubh)}(h **Return**h]j)}(hj<h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK{hj|ubh)}(hdividend / divisorh]hdividend / divisor}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK|hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdiv_s64 (C function) c.div_s64hNtauh1hhjhhhNhNubh)}(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_s64asbuh1hhj}hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}hhhjhKubjg)}(hdiv_s64h]jm)}(hjh]hdiv_s64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj}hhhjhKubj)}(h(s64 dividend, s32 divisor)h](j)}(h s64 dividendh](h)}(hhh]jm)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j c.div_s64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s32 divisorh](h)}(hhh]jm)}(hs32h]hs32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]j c.div_s64asbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdivisorh]hdivisor}(hjJhhhNhNubah}(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)}(h&signed 64bit divide with 32bit divisorh]h&signed 64bit divide with 32bit divisor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjqhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjh]h s64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hjh]h s32 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(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 **Return**h]j)}(hj)h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubh)}(hdividend / divisorh]hdividend / divisor}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$mul_u64_add_u64_div_u64 (C function)c.mul_u64_add_u64_div_u64hNtauh1hhjhhhNhNubh)}(hhh](j)}(h8u64 mul_u64_add_u64_div_u64 (u64 a, u64 b, u64 c, u64 d)h]j)}(h7u64 mul_u64_add_u64_div_u64(u64 a, u64 b, u64 c, u64 d)h](h)}(hhh]jm)}(hu64h]hu64}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE mul_u64_add_u64_div_u64sbc.mul_u64_add_u64_div_u64asbuh1hhjjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM)ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjhM)ubjg)}(hmul_u64_add_u64_div_u64h]jm)}(hjh]hmul_u64_add_u64_div_u64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjhM)ubj)}(h(u64 a, u64 b, u64 c, u64 d)h](j)}(hu64 ah](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjh]ha}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 bh](h)}(hhh]jm)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjGh]hb}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 ch](h)}(hhh]jm)}(hu64h]hu64}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubjm)}(hjh]hc}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 dh](h)}(hhh]jm)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.mul_u64_add_u64_div_u64asbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdh]hd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjhM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhjhM)ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjhM)hjchhubj)}(hhh]h)}(h(unsigned 64bit multiply, add, and divideh]h(unsigned 64bit multiply, add, and divide}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM)hjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``u64 a`` first unsigned 64bit multiplicand ``u64 b`` second unsigned 64bit multiplicand ``u64 c`` unsigned 64bit addend ``u64 d`` unsigned 64bit divisor **Description** Multiply two 64bit values together to generate a 128bit product add a third value and then divide by a fourth. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow. **Return** (**a** * **b** + **c**) / **d**h](h)}(h**Parameters**h]j)}(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.hhM-hj ubj)}(hhh](j)}(h,``u64 a`` first unsigned 64bit multiplicand h](j)}(h ``u64 a``h]j)}(hj/h]hu64 a}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM*hj)ubj)}(hhh]h)}(h!first unsigned 64bit multiplicandh]h!first unsigned 64bit multiplicand}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM*hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM*hj&ubj)}(h-``u64 b`` second unsigned 64bit multiplicand h](j)}(h ``u64 b``h]j)}(hjhh]hu64 b}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM+hjbubj)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second unsigned 64bit multiplicand}(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 ``u64 c`` unsigned 64bit addend h](j)}(h ``u64 c``h]j)}(hjh]hu64 c}(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 addendh]hunsigned 64bit addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hj&ubj)}(h!``u64 d`` unsigned 64bit divisor h](j)}(h ``u64 d``h]j)}(hjh]hu64 d}(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-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&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM/hj ubh)}(hMultiply two 64bit values together to generate a 128bit product add a third value and then divide by a fourth. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.h](hMultiply two 64bit values together to generate a 128bit product add a third value and then divide by a fourth. The Generic code divides by 0 if }(hj+hhhNhNubj)}(h**d**h]hd}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM.hj ubh)}(h **Return**h]j)}(hjNh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM3hj ubh)}(h(**a** * **b** + **c**) / **d**h](h(}(hjdhhhNhNubj)}(h**a**h]ha}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh * }(hjdhhhNhNubj)}(h**b**h]hb}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh + }(hjdhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh) / }(hjdhhhNhNubj)}(h**d**h]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM4hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmul_u64_u64_div_u64 (C macro)c.mul_u64_u64_div_u64hNtauh1hhjhhhNhNubh)}(hhh](j)}(hmul_u64_u64_div_u64h]j)}(hmul_u64_u64_div_u64h]jg)}(hmul_u64_u64_div_u64h]jm)}(hjh]hmul_u64_u64_div_u64}(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.hhM9ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM9hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM9ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h!``mul_u64_u64_div_u64 (a, b, d)``h]j)}(hj h]hmul_u64_u64_div_u64 (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM;hjhhubj)}(h#unsigned 64bit multiply and divide h]h)}(h"unsigned 64bit multiply and divideh]h"unsigned 64bit multiply and divide}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM9hj#ubah}(h]h ]h"]h$]h&]uh1jhj5hM9hjhhubj)}(hX**Parameters** ``a`` first unsigned 64bit multiplicand ``b`` second unsigned 64bit multiplicand ``d`` unsigned 64bit divisor **Description** Multiply two 64bit values together to generate a 128bit product and then divide by a third value. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow. **Return** **a** * **b** / **d**h](h)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM=hj<ubj)}(hhh](j)}(h(``a`` first unsigned 64bit multiplicand h](j)}(h``a``h]j)}(hjah]ha}(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.hhM:hj[ubj)}(hhh]h)}(h!first unsigned 64bit multiplicandh]h!first unsigned 64bit multiplicand}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM:hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM:hjXubj)}(h)``b`` second unsigned 64bit multiplicand 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:178: ./include/linux/math64.hhM;hjubj)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second unsigned 64bit multiplicand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjXubj)}(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<hjXubeh}(h]h ]h"]h$]h&]uh1jhj<ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM>hj<ubh)}(hMultiply two 64bit values together to generate a 128bit product and then divide by a third value. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.h](hMultiply two 64bit values together to generate a 128bit product and then divide by a third value. The Generic code divides by 0 if }(hj$hhhNhNubj)}(h**d**h]hd}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM=hj<ubh)}(h **Return**h]j)}(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:178: ./include/linux/math64.hhMBhj<ubh)}(h**a** * **b** / **d**h](j)}(h**a**h]ha}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh * }(hj]hhhNhNubj)}(h**b**h]hb}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh / }(hj]hhhNhNubj)}(h**d**h]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMChj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%mul_u64_u64_div_u64_roundup (C macro)c.mul_u64_u64_div_u64_rounduphNtauh1hhjhhhNhNubh)}(hhh](j)}(hmul_u64_u64_div_u64_rounduph]j)}(hmul_u64_u64_div_u64_rounduph]jg)}(hmul_u64_u64_div_u64_rounduph]jm)}(hjh]hmul_u64_u64_div_u64_roundup}(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.hhMHubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMHhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMHubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubh)}(h)``mul_u64_u64_div_u64_roundup (a, b, d)``h]j)}(hjh]h%mul_u64_u64_div_u64_roundup (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:178: ./include/linux/math64.hhMJhjhhubj)}(h.unsigned 64bit multiply and divide rounded up h]h)}(h-unsigned 64bit multiply and divide rounded uph]h-unsigned 64bit multiply and divide rounded up}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMHhj ubah}(h]h ]h"]h$]h&]uh1jhj hMHhjhhubj)}(hX**Parameters** ``a`` first unsigned 64bit multiplicand ``b`` second unsigned 64bit multiplicand ``d`` unsigned 64bit divisor **Description** Multiply two 64bit values together to generate a 128bit product and then divide and round up. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow. **Return** (**a** * **b** + **d** - 1) / **d**h](h)}(h**Parameters**h]j)}(hj% h]h Parameters}(hj' hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj# ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMLhj ubj)}(hhh](j)}(h(``a`` first unsigned 64bit multiplicand h](j)}(h``a``h]j)}(hjD h]ha}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMIhj> ubj)}(hhh]h)}(h!first unsigned 64bit multiplicandh]h!first unsigned 64bit multiplicand}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY hMIhjZ ubah}(h]h ]h"]h$]h&]uh1jhj> ubeh}(h]h ]h"]h$]h&]uh1jhjY hMIhj; ubj)}(h)``b`` second unsigned 64bit multiplicand h](j)}(h``b``h]j)}(hj} h]hb}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMJhjw ubj)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second unsigned 64bit multiplicand}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMJhj ubah}(h]h ]h"]h$]h&]uh1jhjw ubeh}(h]h ]h"]h$]h&]uh1jhj hMJhj; ubj)}(h``d`` unsigned 64bit divisor h](j)}(h``d``h]j)}(hj h]hd}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMKhj ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMKhj; ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMMhj ubh)}(hMultiply two 64bit values together to generate a 128bit product and then divide and round up. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.h](hMultiply two 64bit values together to generate a 128bit product and then divide and round up. The Generic code divides by 0 if }(hj!hhhNhNubj)}(h**d**h]hd}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMLhj ubh)}(h **Return**h]j)}(hj*!h]hReturn}(hj,!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(!ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMQhj ubh)}(h#(**a** * **b** + **d** - 1) / **d**h](h(}(hj@!hhhNhNubj)}(h**a**h]ha}(hjH!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@!ubh * }(hj@!hhhNhNubj)}(h**b**h]hb}(hjZ!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@!ubh + }(hj@!hhhNhNubj)}(h**d**h]hd}(hjl!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@!ubh - 1) / }(hj@!hhhNhNubj)}(h**d**h]hd}(hj~!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@!ubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMRhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV64_U64_ROUND_UP (C macro)c.DIV64_U64_ROUND_UPhNtauh1hhjhhhNhNubh)}(hhh](j)}(hDIV64_U64_ROUND_UPh]j)}(hDIV64_U64_ROUND_UPh]jg)}(hDIV64_U64_ROUND_UPh]jm)}(hj!h]hDIV64_U64_ROUND_UP}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMYubah}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj!hMYubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hMYhj!hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMYubeh}(h]h ](jmacroeh"]h$]h&]jjjj!jj!jjjuh1hhhhjhNhNubh)}(h``DIV64_U64_ROUND_UP (ll, d)``h]j)}(hj!h]hDIV64_U64_ROUND_UP (ll, d)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM[hjhhubj)}(h4unsigned 64bit divide with 64bit divisor rounded up h]h)}(h3unsigned 64bit divide with 64bit divisor rounded uph]h3unsigned 64bit divide with 64bit divisor rounded up}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMYhj!ubah}(h]h ]h"]h$]h&]uh1jhj"hMYhjhhubj)}(h**Parameters** ``ll`` unsigned 64bit dividend ``d`` unsigned 64bit divisor **Description** Divide unsigned 64bit dividend by unsigned 64bit divisor and round up. **Return** dividend / divisor rounded uph](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM]hj"ubj)}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hj="h]hll}(hj?"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMZhj7"ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjV"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR"hMZhjS"ubah}(h]h ]h"]h$]h&]uh1jhj7"ubeh}(h]h ]h"]h$]h&]uh1jhjR"hMZhj4"ubj)}(h``d`` unsigned 64bit divisor h](j)}(h``d``h]j)}(hjv"h]hd}(hjx"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM[hjp"ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(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[hj4"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM]hj"ubh)}(hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM\hj"ubh)}(h **Return**h]j)}(hj"h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM_hj"ubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM`hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_UP (C macro)c.DIV_U64_ROUND_UPhNtauh1hhjhhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_UPh]j)}(hDIV_U64_ROUND_UPh]jg)}(hDIV_U64_ROUND_UPh]jm)}(hj#h]hDIV_U64_ROUND_UP}(hj!#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMfubah}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj4#hMfubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj4#hMfhj#hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj#hhhj4#hMfubeh}(h]h ](jmacroeh"]h$]h&]jjjjM#jjM#jjjuh1hhhhjhNhNubh)}(h``DIV_U64_ROUND_UP (ll, d)``h]j)}(hjS#h]hDIV_U64_ROUND_UP (ll, d)}(hjU#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ#ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhhjhhubj)}(h4unsigned 64bit divide with 32bit divisor rounded up h]h)}(h3unsigned 64bit divide with 32bit divisor rounded uph]h3unsigned 64bit divide with 32bit divisor rounded up}(hjm#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMfhji#ubah}(h]h ]h"]h$]h&]uh1jhj{#hMfhjhhubj)}(h**Parameters** ``ll`` unsigned 64bit dividend ``d`` unsigned 32bit divisor **Description** Divide unsigned 64bit dividend by unsigned 32bit divisor and round up. **Return** dividend / divisor rounded uph](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMjhj#ubj)}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hj#h]hll}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMghj#ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMghj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMghj#ubj)}(h``d`` unsigned 32bit divisor h](j)}(h``d``h]j)}(hj#h]hd}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhhj#ubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]j)}(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.hhMjhj#ubh)}(hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.}(hj1$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMihj#ubh)}(h **Return**h]j)}(hjB$h]hReturn}(hjD$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@$ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMlhj#ubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hjX$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMmhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!DIV64_U64_ROUND_CLOSEST (C macro)c.DIV64_U64_ROUND_CLOSESThNtauh1hhjhhhNhNubh)}(hhh](j)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hDIV64_U64_ROUND_CLOSESTh]jg)}(hDIV64_U64_ROUND_CLOSESTh]jm)}(hj$h]hDIV64_U64_ROUND_CLOSEST}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj$hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMsubah}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj$hMsubah}(h]jz$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMshj|$hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj|$hhhj$hMsubeh}(h]h ](jmacroeh"]h$]h&]jjjj$jj$jjjuh1hhhhjhNhNubh)}(h/``DIV64_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj$h]h+DIV64_U64_ROUND_CLOSEST (dividend, divisor)}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMuhjhhubj)}(hDunsigned 64bit divide with 64bit divisor rounded to nearest integer h]h)}(hCunsigned 64bit divide with 64bit divisor rounded to nearest integerh]hCunsigned 64bit divide with 64bit divisor rounded to nearest integer}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMshj$ubah}(h]h ]h"]h$]h&]uh1jhj$hMshjhhubj)}(hX**Parameters** ``dividend`` unsigned 64bit dividend ``divisor`` unsigned 64bit divisor **Description** Divide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMwhj$ubj)}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hj%h]hdividend}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMthj %ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj*%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&%hMthj'%ubah}(h]h ]h"]h$]h&]uh1jhj %ubeh}(h]h ]h"]h$]h&]uh1jhj&%hMthj%ubj)}(h#``divisor`` unsigned 64bit divisor h](j)}(h ``divisor``h]j)}(hjJ%h]hdivisor}(hjL%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH%ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMuhjD%ubj)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjc%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_%hMuhj`%ubah}(h]h ]h"]h$]h&]uh1jhjD%ubeh}(h]h ]h"]h$]h&]uh1jhj_%hMuhj%ubeh}(h]h ]h"]h$]h&]uh1jhj$ubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMwhj$ubh)}(hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMvhj$ubh)}(h **Return**h]j)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMyhj$ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMzhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_U64_ROUND_CLOSEST (C macro)c.DIV_U64_ROUND_CLOSESThNtauh1hhjhhhNhNubh)}(hhh](j)}(hDIV_U64_ROUND_CLOSESTh]j)}(hDIV_U64_ROUND_CLOSESTh]jg)}(hDIV_U64_ROUND_CLOSESTh]jm)}(hj%h]hDIV_U64_ROUND_CLOSEST}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj&hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj&hMhj%hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%hhhj&hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj!&jj!&jjjuh1hhhhjhNhNubh)}(h-``DIV_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj'&h]h)DIV_U64_ROUND_CLOSEST (dividend, divisor)}(hj)&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%&ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjhhubj)}(hDunsigned 64bit divide with 32bit divisor rounded to nearest integer h]h)}(hCunsigned 64bit divide with 32bit divisor rounded to nearest integerh]hCunsigned 64bit divide with 32bit divisor rounded to nearest integer}(hjA&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj=&ubah}(h]h ]h"]h$]h&]uh1jhjO&hMhjhhubj)}(hX**Parameters** ``dividend`` unsigned 64bit dividend ``divisor`` unsigned 32bit divisor **Description** Divide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hj\&h]h Parameters}(hj^&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ&ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjV&ubj)}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hj{&h]hdividend}(hj}&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy&ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhju&ubj)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhju&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjr&ubj)}(h#``divisor`` unsigned 32bit divisor h](j)}(h ``divisor``h]j)}(hj&h]hdivisor}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj&ubj)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjr&ubeh}(h]h ]h"]h$]h&]uh1jhjV&ubh)}(h**Description**h]j)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjV&ubh)}(hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjV&ubh)}(h **Return**h]j)}(hj'h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjV&ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hj,'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjV&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDIV_S64_ROUND_CLOSEST (C macro)c.DIV_S64_ROUND_CLOSESThNtauh1hhjhhhNhNubh)}(hhh](j)}(hDIV_S64_ROUND_CLOSESTh]j)}(hDIV_S64_ROUND_CLOSESTh]jg)}(hDIV_S64_ROUND_CLOSESTh]jm)}(hjU'h]hDIV_S64_ROUND_CLOSEST}(hj_'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj['ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjW'hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjS'hhhjr'hMubah}(h]jN'ah ](jjeh"]h$]h&]jj)jhuh1hhjr'hMhjP'hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjP'hhhjr'hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj'jj'jjjuh1hhhhjhNhNubh)}(h-``DIV_S64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj'h]h)DIV_S64_ROUND_CLOSEST (dividend, divisor)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjhhubj)}(hBsigned 64bit divide with 32bit divisor rounded to nearest integer h]h)}(hAsigned 64bit divide with 32bit divisor rounded to nearest integerh]hAsigned 64bit divide with 32bit divisor rounded to nearest integer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'hMhjhhubj)}(h**Parameters** ``dividend`` signed 64bit dividend ``divisor`` signed 32bit divisor **Description** Divide signed 64bit dividend by signed 32bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj'ubj)}(hhh](j)}(h#``dividend`` signed 64bit dividend h](j)}(h ``dividend``h]j)}(hj'h]hdividend}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj'ubj)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj'ubj)}(h!``divisor`` signed 32bit divisor h](j)}(h ``divisor``h]j)}(hj(h]hdivisor}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj(ubj)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hj7(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3(hMhj4(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj3(hMhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hjY(h]h Description}(hj[(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW(ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj'ubh)}(hRDivide signed 64bit dividend by signed 32bit divisor and round to closest integer.h]hRDivide signed 64bit dividend by signed 32bit divisor and round to closest integer.}(hjo(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj'ubh)}(h **Return**h]j)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~(ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj'ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hroundup_u64 (C function) c.roundup_u64hNtauh1hhjhhhNhNubh)}(hhh](j)}(hu64 roundup_u64 (u64 x, u32 y)h]j)}(hu64 roundup_u64(u64 x, u32 y)h](h)}(hhh]jm)}(hu64h]hu64}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE roundup_u64sb c.roundup_u64asbuh1hhj(hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(hhhj(hMubjg)}(h roundup_u64h]jm)}(hj(h]h roundup_u64}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj(hMubj)}(h(u64 x, u32 y)h](j)}(hu64 xh](h)}(hhh]jm)}(hu64h]hu64}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]j( c.roundup_u64asbuh1hhj)ubj)}(h h]h }(hj8)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubjm)}(hjh]hx}(hjF)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(hu32 yh](h)}(hhh]jm)}(hu32h]hu32}(hja)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjc)modnameN classnameNjI jL )}jO ]j( c.roundup_u64asbuh1hhjZ)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZ)ubjm)}(hyh]hy}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZ)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;Round up a 64bit value to the next specified 32bit multipleh]h;Round up a 64bit value to the next specified 32bit multiple}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``u64 x`` the value to up ``u32 y`` 32bit multiple to round up to **Description** Rounds **x** to the next multiple of **y**. For 32bit **x** values, see roundup and the faster round_up() for powers of 2. **Return** rounded up value.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj)ubj)}(hhh](j)}(h``u64 x`` the value to up h](j)}(h ``u64 x``h]j)}(hj)h]hu64 x}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj)ubj)}(hhh]h)}(hthe value to uph]hthe value to up}(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(``u32 y`` 32bit multiple to round up to h](j)}(h ``u32 y``h]j)}(hj1*h]hu32 y}(hj3*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj+*ubj)}(hhh]h)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hjJ*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF*hMhjG*ubah}(h]h ]h"]h$]h&]uh1jhj+*ubeh}(h]h ]h"]h$]h&]uh1jhjF*hMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hjl*h]h Description}(hjn*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj)ubh)}(hzRounds **x** to the next multiple of **y**. For 32bit **x** values, see roundup and the faster round_up() for powers of 2.h](hRounds }(hj*hhhNhNubj)}(h**x**h]hx}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh to the next multiple of }(hj*hhhNhNubj)}(h**y**h]hy}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh . For 32bit }(hj*hhhNhNubj)}(h**x**h]hx}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh? values, see roundup and the faster round_up() for powers of 2.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj)ubh)}(h **Return**h]j)}(hj*h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj)ubh)}(hrounded up value.h]hrounded up value.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hgcd (C function)c.gcdhNtauh1hhjhhhNhNubh)}(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}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj +hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj +hhhj+hK.ubj )}(hlongh]hlong}(hj++hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj +hhhj+hK.ubj)}(h h]h }(hj9+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj +hhhj+hK.ubjg)}(hgcdh]jm)}(hgcdh]hgcd}(hjK+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj +hhhj+hK.ubj)}(h"(unsigned long a, unsigned long b)h](j)}(hunsigned long ah](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 )}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjc+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc+ubjm)}(hjh]ha}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_+ubj)}(hunsigned long bh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj+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)}(hjGh]hb}(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)}(hDcalculate and return the greatest common divisor of 2 unsigned longsh]hDcalculate and return the greatest common divisor of 2 unsigned longs}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.hj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0,jj0,jjjuh1hhhhjhNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](h)}(h**Parameters**h]j)}(hj:,h]h Parameters}(hj<,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8,ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK2hj4,ubj)}(hhh](j)}(h ``unsigned long a`` first value h](j)}(h``unsigned long a``h]j)}(hjY,h]hunsigned long a}(hj[,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW,ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK/hjS,ubj)}(hhh]h)}(h first valueh]h first value}(hjr,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn,hK/hjo,ubah}(h]h ]h"]h$]h&]uh1jhjS,ubeh}(h]h ]h"]h$]h&]uh1jhjn,hK/hjP,ubj)}(h ``unsigned long b`` second valueh](j)}(h``unsigned long b``h]j)}(hj,h]hunsigned long b}(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:181: ./lib/math/gcd.chK1hj,ubj)}(hhh]h)}(h second valueh]h second value}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK0hj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hK1hjP,ubeh}(h]h ]h"]h$]h&]uh1jhj4,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(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}(hj-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 }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj-hKubjg)}(hgenerate_random_uuidh]jm)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hj&-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj-hKubj)}(h(unsigned char uuid[16])h]j)}(hunsigned char uuid[16]h](j )}(hunsignedh]hunsigned}(hjB-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>-ubj)}(h h]h }(hjP-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>-ubj )}(hcharh]hchar}(hj^-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>-ubj)}(h h]h }(hjl-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>-ubjm)}(huuidh]huuid}(hjz-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>-ubj)}(hjh]h[}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>-ubhdesc_sig_literal_number)}(h16h]h16}(hj-hhhNhNubah}(h]h ]mah"]h$]h&]uh1j-hj>-ubj)}(hjh]h]}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:-ubah}(h]h ]h"]h$]h&]jjuh1jhj-hhhj-hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj-hKubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj-hKhj,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&]uh1jhj,hhhj-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)}(hj.h]hunsigned char uuid[16]}(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.chKhj .ubj)}(hhh]h)}(hwhere to put the generated UUIDh]hwhere to put the generated UUID}(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)}(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:187: ./lib/uuid.chKhj-ubh)}(hRandom UUID interfaceh]hRandom UUID interface}(hja.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.}(hjp.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}(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)}(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}(hjI/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKMhjF/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hKMubeh}(h]h ](jfunctioneh"]h$]h&]jjjja/jja/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)}(hjk/h]h Parameters}(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:187: ./lib/uuid.chKQhje/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&]uh1jhje/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.chKPhje/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}(hj/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&]uh1jhje/ubh)}(hwhere x is a hex digit.h]hwhere x is a hex digit.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKShje/ubh)}(h **Return**h]j)}(hj%0h]hReturn}(hj'0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#0ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKUhje/ubh)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hj;0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKVhje/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}(hjd0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja0hhhhhKubh)}(hhh](h)}(h IPC utilitiesh]h IPC utilities}(hju0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr0hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init (C function) c.ipc_inithNtauh1hhjr0hhhNhNubh)}(hhh](j)}(hint ipc_init (void)h]j)}(hint ipc_init(void)h](j )}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhj0hKQubjg)}(hipc_inith]jm)}(hipc_inith]hipc_init}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhj0hKQubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hKQubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hKQhj0hhubj)}(hhh]h)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQhj1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhjr0hNhNubj)}(hXX**Parameters** ``void`` no arguments **Description** The various sysv ipc resources (semaphores, messages and shared memory) are initialised. A callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.h](h)}(h**Parameters**h]j)}(hj%1h]h Parameters}(hj'1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#1ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhj1ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjD1h]hvoid}(hjF1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB1ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj>1ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj]1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY1hKhjZ1ubah}(h]h ]h"]h$]h&]uh1jhj>1ubeh}(h]h ]h"]h$]h&]uh1jhjY1hKhj;1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}1ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj1ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKRhj1ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_init_ids (C function)c.ipc_init_idshNtauh1hhjr0hhhNhNubh)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj1hKmubjg)}(h ipc_init_idsh]jm)}(h ipc_init_idsh]h ipc_init_ids}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj1hKmubj)}(h(struct ipc_ids *ids)h]j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 2ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj.2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj02modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.ipc_init_idsasbuh1hhj 2ubj)}(h h]h }(hjN2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 2ubj)}(hjh]h*}(hj\2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 2ubjm)}(hidsh]hids}(hji2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hKmubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hKmhj1hhubj)}(hhh]h)}(hinitialise ipc identifiersh]hinitialise ipc identifiers}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmhj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhjr0hNhNubj)}(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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKqhj2ubj)}(hhh]j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj2h]hstruct ipc_ids *ids}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKnhj2ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKnhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKnhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 3ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKphj2ubh)}(hSet up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.h]hSet up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.}(hj%3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKohj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$ipc_init_proc_interface (C function)c.ipc_init_proc_interfacehNtauh1hhjr0hhhNhNubh)}(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}(hjT3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjP3hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKubj)}(h h]h }(hjc3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP3hhhjb3hKubjg)}(hipc_init_proc_interfaceh]jm)}(hipc_init_proc_interfaceh]hipc_init_proc_interface}(hju3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjP3hhhjb3hKubj)}(hU(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j)}(hconst char *pathh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hcharh]hchar}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hpathh]hpath}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hconst char *headerh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hcharh]hchar}(hj 4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj%4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hheaderh]hheader}(hj24hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hint idsh](j )}(hinth]hint}(hjK4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjG4ubj)}(h h]h }(hjY4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG4ubjm)}(hidsh]hids}(hjg4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(h$int (*show)(struct seq_file*, void*)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|4ubj)}(h(h]h(}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubjm)}(hshowh]hshow}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|4ubj)}(h)h]h)}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(hj4h]h(}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|4ubh)}(hhh]jm)}(hseq_fileh]hseq_file}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE jw3sbc.ipc_init_proc_interfaceasbuh1hhj|4ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(h,h]h,}(hj+5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(h h]h }(hj95hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|4ubj )}(hvoidh]hvoid}(hjG5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj|4ubj)}(hjh]h*}(hjU5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubj)}(hj4h]h)}(hjb5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhjP3hhhjb3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjL3hhhjb3hKubah}(h]jG3ah ](jjeh"]h$]h&]jj)jhuh1hhjb3hKhjI3hhubj)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj5hhubah}(h]h ]h"]h$]h&]uh1jhjI3hhhjb3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhjr0hNhNubj)}(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)}(hj5h]h Parameters}(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.chKhj5ubj)}(hhh](j)}(h$``const char *path`` Path in procfs h](j)}(h``const char *path``h]j)}(hj5h]hconst char *path}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj5ubj)}(hhh]h)}(hPath in procfsh]hPath in procfs}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hKhj5ubj)}(hJ``const char *header`` Banner to be printed at the beginning of the file. h](j)}(h``const char *header``h]j)}(hj6h]hconst char *header}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj5ubj)}(hhh]h)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj5ubj)}(h%``int ids`` ipc id table to iterate. h](j)}(h ``int ids``h]j)}(hj>6h]hint ids}(hj@6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<6ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj86ubj)}(hhh]h)}(hipc id table to iterate.h]hipc id table to iterate.}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS6hKhjT6ubah}(h]h ]h"]h$]h&]uh1jhj86ubeh}(h]h ]h"]h$]h&]uh1jhjS6hKhj5ubj)}(h8``int (*show)(struct seq_file *, void *)`` show routine.h](j)}(h*``int (*show)(struct seq_file *, void *)``h]j)}(hjw6h]h&int (*show)(struct seq_file *, void *)}(hjy6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju6ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjq6ubj)}(hhh]h)}(h show routine.h]h show routine.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj6ubah}(h]h ]h"]h$]h&]uh1jhjq6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_findkey (C function) c.ipc_findkeyhNtauh1hhjr0hhhNhNubh)}(hhh](j)}(hCstruct kern_ipc_perm * ipc_findkey (struct ipc_ids *ids, key_t key)h]j)}(hAstruct kern_ipc_perm *ipc_findkey(struct ipc_ids *ids, key_t key)h](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj6hKubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]jR )}jE ipc_findkeysb c.ipc_findkeyasbuh1hhj6hhhj6hKubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj6hKubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hKubjg)}(h ipc_findkeyh]jm)}(hj7h]h ipc_findkey}(hj07hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj6hKubj)}(h (struct ipc_ids *ids, key_t key)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjK7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG7ubj)}(h h]h }(hjX7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG7ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hji7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjf7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjk7modnameN classnameNjI jL )}jO ]j 7 c.ipc_findkeyasbuh1hhjG7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjG7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG7ubjm)}(hidsh]hids}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC7ubj)}(h key_t keyh](h)}(hhh]jm)}(hkey_th]hkey_t}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]j 7 c.ipc_findkeyasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubjm)}(hkeyh]hkey}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC7ubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhj6hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj6hKubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hKhj6hhubj)}(hhh]h)}(h#find a key in an ipc identifier seth]h#find a key in an ipc identifier set}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj8hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,8jj,8jjjuh1hhhhjr0hNhNubj)}(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)}(hj68h]h Parameters}(hj88hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj48ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj08ubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjU8h]hstruct ipc_ids *ids}(hjW8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS8ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjO8ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjn8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj8hKhjk8ubah}(h]h ]h"]h$]h&]uh1jhjO8ubeh}(h]h ]h"]h$]h&]uh1jhjj8hKhjL8ubj)}(h``key_t key`` key to find h](j)}(h ``key_t key``h]j)}(hj8h]h key_t key}(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.chKhj8ubj)}(hhh]h)}(h key to findh]h key to find}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhjL8ubeh}(h]h ]h"]h$]h&]uh1jhj08ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj08ubh)}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj08ubh)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj08ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_addid (C function) c.ipc_addidhNtauh1hhjr0hhhNhNubh)}(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}(hj9hhhNhNubah}(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,9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhj+9hMubjg)}(h ipc_addidh]jm)}(h ipc_addidh]h ipc_addid}(hj>9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhj+9hMubj)}(h;(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjZ9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV9ubj)}(h h]h }(hjg9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV9ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjx9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhju9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjz9modnameN classnameNjI jL )}jO ]jR )}jE j@9sb c.ipc_addidasbuh1hhjV9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjV9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV9ubjm)}(hidsh]hids}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjV9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjR9ubj)}(hstruct kern_ipc_perm *newh](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]j9 c.ipc_addidasbuh1hhj9ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hnewh]hnew}(hj#:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjR9ubj)}(h int limith](j )}(hinth]hint}(hj<:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8:ubj)}(h h]h }(hjJ:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8:ubjm)}(hlimith]hlimit}(hjX:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjR9ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj+9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj+9hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj+9hMhj9hhubj)}(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&]uh1jhj9hhhj+9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhjr0hNhNubj)}(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)}(hj:h]hstruct kern_ipc_perm *new}(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)}(hnew ipc permission seth]hnew ipc permission 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)}(h/``int limit`` limit for the number of used ids h](j)}(h ``int limit``h]j)}(hj5;h]h int limit}(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:196: ./ipc/util.chM hj/;ubj)}(hhh]h)}(h limit for the number of used idsh]h limit for the number of used ids}(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&]uh1jhj:ubh)}(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: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&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_new (C function) c.ipcget_newhNtauh1hhjr0hhhNhNubh)}(hhh](j)}(htint ipcget_new (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]j)}(hsint ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j )}(hinth]hint}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhj;hMJubjg)}(h ipcget_newh]jm)}(h ipcget_newh]h ipcget_new}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]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)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj <ubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hj.<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0<modnameN classnameNjI jL )}jO ]jR )}jE j;sb c.ipcget_newasbuh1hhj <ubj)}(h h]h }(hjN<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj <ubj)}(hjh]h*}(hj\<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubjm)}(hnsh]hns}(hji<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj <ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~<ubj)}(h h]h }(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 ]jJ< c.ipcget_newasbuh1hhj~<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)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubj)}(hjh]hstruct}(hj =hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj+=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-=modnameN classnameNjI jL )}jO ]jJ< c.ipcget_newasbuh1hhj<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)}(hopsh]hops}(hjd=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hj}=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy=ubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jJ< c.ipcget_newasbuh1hhjy=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjy=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy=ubjm)}(hparamsh]hparams}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjy=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhj;hMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj;hMJubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMJhj;hhubj)}(hhh]h)}(hcreate a new ipc objecth]hcreate a new ipc object}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJhj=hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhjr0hNhNubj)}(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 >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.chMNhj>ubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj?>h]hstruct ipc_namespace *ns}(hjA>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.chMKhj9>ubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjX>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT>hMKhjU>ubah}(h]h ]h"]h$]h&]uh1jhj9>ubeh}(h]h ]h"]h$]h&]uh1jhjT>hMKhj6>ubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjx>h]hstruct ipc_ids *ids}(hjz>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv>ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMLhjr>ubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMLhj>ubah}(h]h ]h"]h$]h&]uh1jhjr>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMLhj6>ubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hj>h]hconst struct ipc_ops *ops}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMMhj>ubj)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMMhj6>ubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj>h]hstruct ipc_params *params}(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.chMNhj>ubj)}(hhh]h)}(hits parametersh]hits parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMNhj?ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMNhj6>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.chMPhj>ubh)}(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.}(hj;?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMOhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_check_perms (C function)c.ipc_check_permshNtauh1hhjr0hhhNhNubh)}(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}(hjj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjf?hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_ubj)}(h h]h }(hjy?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjf?hhhjx?hM_ubjg)}(hipc_check_permsh]jm)}(hipc_check_permsh]hipc_check_perms}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjf?hhhjx?hM_ubj)}(hl(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]jR )}jE j?sbc.ipc_check_permsasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjm)}(hnsh]hns}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj&@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj7@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9@modnameN classnameNjI jL )}jO ]j?c.ipc_check_permsasbuh1hhj@ubj)}(h h]h }(hjU@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hjc@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hipcph]hipcp}(hjp@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]j?c.ipc_check_permsasbuh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hopsh]hops}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hj!AhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj2AhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/Aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4AmodnameN classnameNjI jL )}jO ]j?c.ipc_check_permsasbuh1hhjAubj)}(h h]h }(hjPAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hj^AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hparamsh]hparams}(hjkAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhjf?hhhjx?hM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjb?hhhjx?hM_ubah}(h]j]?ah ](jjeh"]h$]h&]jj)jhuh1hhjx?hM_hj_?hhubj)}(hhh]h)}(h0check security and permissions for an ipc objecth]h0check security and permissions for an ipc object}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_hjAhhubah}(h]h ]h"]h$]h&]uh1jhj_?hhhjx?hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhjr0hNhNubj)}(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)}(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.chMchjAubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjAh]hstruct ipc_namespace *ns}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM`hjAubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM`hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM`hjAubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set 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.chMahj Bubj)}(hhh]h)}(hipc permission seth]hipc permission set}(hj(BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$BhMahj%Bubah}(h]h ]h"]h$]h&]uh1jhj Bubeh}(h]h ]h"]h$]h&]uh1jhj$BhMahjAubj)}(hB``const struct ipc_ops *ops`` the actual security routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjHBh]hconst struct ipc_ops *ops}(hjJBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFBubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMbhjBBubj)}(hhh]h)}(h#the actual security routine to callh]h#the actual security routine to call}(hjaBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]BhMbhj^Bubah}(h]h ]h"]h$]h&]uh1jhjBBubeh}(h]h ]h"]h$]h&]uh1jhj]BhMbhjAubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hjBh]hstruct ipc_params *params}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMchj{Bubj)}(hhh]h)}(hits parametersh]hits parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMchjBubah}(h]h ]h"]h$]h&]uh1jhj{Bubeh}(h]h ]h"]h$]h&]uh1jhjBhMchjAubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMehjAubh)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMdhjAubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhhjAubh)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget_public (C function)c.ipcget_publichNtauh1hhjr0hhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjChhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hj.ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjChhhj-ChMubjg)}(h ipcget_publich]jm)}(h ipcget_publich]h ipcget_public}(hj@ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Dubj)}(h h]h }(hjKDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:Dubj)}(hjh]hstruct}(hjYDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Dubj)}(h h]h }(hjfDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:Dubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hjwDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjyDmodnameN classnameNjI jL )}jO ]jCc.ipcget_publicasbuh1hhj:Dubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Dubjm)}(hopsh]hops}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTCubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jCc.ipcget_publicasbuh1hhjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hparamsh]hparams}(hj EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTCubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhj-ChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhj-ChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj-ChMhjChhubj)}(hhh]h)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(hjJEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjGEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj-ChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbEjjbEjjjuh1hhhhjr0hNhNubj)}(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)}(hjlEh]h Parameters}(hjnEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjEubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjfEubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjEh]hstruct ipc_namespace *ns}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjEubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjEh]hstruct ipc_ids *ids}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjEubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjEh]hconst struct ipc_ops *ops}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjEubj)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjEubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hj6Fh]hstruct ipc_params *params}(hj8FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Fubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj0Fubj)}(hhh]h)}(hits parametersh]hits parameters}(hjOFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKFhMhjLFubah}(h]h ]h"]h$]h&]uh1jhj0Fubeh}(h]h ]h"]h$]h&]uh1jhjKFhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjfEubh)}(h**Description**h]j)}(hjqFh]h Description}(hjsFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoFubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjfEubh)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjfEubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjfEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhjr0hhhNhNubh)}(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}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjFhMubjg)}(hipc_kht_removeh]jm)}(hipc_kht_removeh]hipc_kht_remove}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjFhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj GhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"GmodnameN classnameNjI jL )}jO ]jR )}jE jFsbc.ipc_kht_removeasbuh1hhjFubj)}(h h]h }(hj@GhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjNGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hidsh]hids}(hj[GhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hjtGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpGubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jmax_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)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjJubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj%Jh]hstruct ipc_ids *ids}(hj'JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Jubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjJubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj>JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:JhMhj;Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj:JhMhjJubj)}(h;``int limit`` known upper limit for highest assigned index h](j)}(h ``int limit``h]j)}(hj^Jh]h int limit}(hj`JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Jubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjXJubj)}(hhh]h)}(h,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hjwJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsJhMhjtJubah}(h]h ]h"]h$]h&]uh1jhjXJubeh}(h]h ]h"]h$]h&]uh1jhjsJhMhjJubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjJubh)}(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 }(hjJhhhNhNubj)}(h**ids**h]hids}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh. 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.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjJubh)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_rmid (C function) c.ipc_rmidhNtauh1hhjr0hhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj KhMubjg)}(hipc_rmidh]jm)}(hipc_rmidh]hipc_rmid}(hj KhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhj KhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjLPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hipcph]hipcp}(hjYPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h short flagh](j )}(hshorth]hshort}(hjrPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnPubjm)}(hflagh]hflag}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjOOhhhjaOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKOhhhjaOhMubah}(h]jFOah ](jjeh"]h$]h&]jj)jhuh1hhjaOhMhjHOhhubj)}(hhh]h)}(hcheck ipc permissionsh]hcheck ipc permissions}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjHOhhhjaOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhjr0hNhNubj)}(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)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hjPubj)}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjPh]hstruct ipc_namespace *ns}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjPubj)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjPubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj2Qh]hstruct kern_ipc_perm *ipcp}(hj4QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Qubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM!hj,Qubj)}(hhh]h)}(hipc permission seth]hipc permission set}(hjKQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGQhM!hjHQubah}(h]h ]h"]h$]h&]uh1jhj,Qubeh}(h]h ]h"]h$]h&]uh1jhjGQhM!hjPubj)}(h&``short flag`` desired permission set h](j)}(h``short flag``h]j)}(hjkQh]h short flag}(hjmQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiQubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM"hjeQubj)}(hhh]h)}(hdesired permission seth]hdesired permission set}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM"hjQubah}(h]h ]h"]h$]h&]uh1jhjeQubeh}(h]h ]h"]h$]h&]uh1jhjQhM"hjPubeh}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM$hjPubh)}(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}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hjPubh)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh will most probably be 0 or }(hjQhhhNhNubj)}(h ``S_...UGO``h]hS_...UGO}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh from }(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM&hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!kernel_to_ipc64_perm (C function)c.kernel_to_ipc64_permhNtauh1hhjr0hhhNhNubh)}(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}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDubj)}(h h]h }(hj)RhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhj(RhMDubjg)}(hkernel_to_ipc64_permh]jm)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hj;RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7Rubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhj(RhMDubj)}(h2(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j)}(hstruct kern_ipc_perm *inh](j)}(hjh]hstruct}(hjWRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSRubj)}(h h]h }(hjdRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSRubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjuRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwRmodnameN classnameNjI jL )}jO ]jR )}jE j=Rsbc.kernel_to_ipc64_permasbuh1hhjSRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSRubjm)}(hinh]hin}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjORubj)}(hstruct ipc64_perm *outh](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jRc.kernel_to_ipc64_permasbuh1hhjRubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(houth]hout}(hj ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjORubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhj(RhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhj(RhMDubah}(h]j Rah ](jjeh"]h$]h&]jj)jhuh1hhj(RhMDhjRhhubj)}(hhh]h)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hjJShhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDhjGShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhj(RhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbSjjbSjjjuh1hhhhjr0hNhNubj)}(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)}(hjlSh]h Parameters}(hjnShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjSubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjfSubj)}(hhh](j)}(h0``struct kern_ipc_perm *in`` kernel permissions h](j)}(h``struct kern_ipc_perm *in``h]j)}(hjSh]hstruct kern_ipc_perm *in}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMEhjSubj)}(hhh]h)}(hkernel permissionsh]hkernel permissions}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMEhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMEhjSubj)}(h5``struct ipc64_perm *out`` new style ipc permissions h](j)}(h``struct ipc64_perm *out``h]j)}(hjSh]hstruct ipc64_perm *out}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMFhjSubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMFhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMFhjSubeh}(h]h ]h"]h$]h&]uh1jhjfSubh)}(h**Description**h]j)}(hjSh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhjfSubh)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hjThhhNhNubj)}(h**in**h]hin}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubhD into a set of permissions descriptions for returning to userspace (}(hjThhhNhNubj)}(h**out**h]hout}(hj/ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh).}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMGhjfSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#ipc64_perm_to_ipc_perm (C function)c.ipc64_perm_to_ipc_permhNtauh1hhjr0hhhNhNubh)}(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}(hjhThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdThhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWubj)}(h h]h }(hjwThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdThhhjvThMWubjg)}(hipc64_perm_to_ipc_permh]jm)}(hipc64_perm_to_ipc_permh]hipc64_perm_to_ipc_perm}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdThhhjvThMWubj)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(h ipc64_permh]h ipc64_perm}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jR )}jE jTsbc.ipc64_perm_to_ipc_permasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hinh]hin}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hstruct ipc_perm *outh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj$UhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hipc_permh]hipc_perm}(hj5UhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2Uubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7UmodnameN classnameNjI jL )}jO ]jTc.ipc64_perm_to_ipc_permasbuh1hhjUubj)}(h h]h }(hjSUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjaUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(houth]hout}(hjnUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjdThhhjvThMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`ThhhjvThMWubah}(h]j[Tah ](jjeh"]h$]h&]jj)jhuh1hhjvThMWhj]Thhubj)}(hhh]h)}(h"convert new ipc permissions to oldh]h"convert new ipc permissions to old}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWhjUhhubah}(h]h ]h"]h$]h&]uh1jhj]ThhhjvThMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhjr0hNhNubj)}(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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hjUubj)}(hhh](j)}(h4``struct ipc64_perm *in`` new style ipc permissions h](j)}(h``struct ipc64_perm *in``h]j)}(hjUh]hstruct ipc64_perm *in}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMXhjUubj)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMXhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMXhjUubj)}(h3``struct ipc_perm *out`` old style ipc permissions h](j)}(h``struct ipc_perm *out``h]j)}(hjVh]hstruct ipc_perm *out}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMYhj Vubj)}(hhh]h)}(hold style ipc permissionsh]hold style ipc permissions}(hj+VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'VhMYhj(Vubah}(h]h ]h"]h$]h&]uh1jhj Vubeh}(h]h ]h"]h$]h&]uh1jhj'VhMYhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]j)}(hjMVh]h Description}(hjOVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKVubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hjUubh)}(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 }(hjcVhhhNhNubj)}(h**in**h]hin}(hjkVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcVubh3 into a compatibility object and store it into the }(hjcVhhhNhNubj)}(h**out**h]hout}(hj}VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcVubh pointer.}(hjcVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMZhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"ipc_obtain_object_idr (C function)c.ipc_obtain_object_idrhNtauh1hhjr0hhhNhNubh)}(hhh](j)}(hJstruct kern_ipc_perm * ipc_obtain_object_idr (struct ipc_ids *ids, int id)h]j)}(hHstruct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id)h](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjVhMjubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jR )}jE ipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhjVhhhjVhMjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjVhMjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMjubjg)}(hipc_obtain_object_idrh]jm)}(hjVh]hipc_obtain_object_idr}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjVhMjubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hj0WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Wubj)}(h h]h }(hj=WhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Wubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjNWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPWmodnameN classnameNjI jL )}jO ]jVc.ipc_obtain_object_idrasbuh1hhj,Wubj)}(h h]h }(hjlWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,Wubj)}(hjh]h*}(hjzWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Wubjm)}(hidsh]hids}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Wubj)}(hint idh](j )}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubjm)}(hidh]hid}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Wubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjVhMjubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhMjhjVhhubj)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhjr0hNhNubj)}(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)}(hjXh]h Parameters}(hj XhhhNhNubah}(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.chMnhjXubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj'Xh]hstruct ipc_ids *ids}(hj)XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Xubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMlhj!Xubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj@XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjcZh]hstruct ipc_ids *ids}(hjeZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaZubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj]Zubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj|ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxZhMhjyZubah}(h]h ]h"]h$]h&]uh1jhj]Zubeh}(h]h ]h"]h$]h&]uh1jhjxZhMhjZZubj)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hjZh]hint id}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjZubj)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZZubeh}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj>Zubh)}(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 }(hjZhhhNhNubjx)}(h*not*h]hnot}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjZubh locked on exit.}(hjZhhhNhNubeh}(h]h ]h"]Sh$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj>Zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipcget (C function)c.ipcgethNtauh1hhjr0hhhNhNubh)}(hhh](j)}(hpint ipcget (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]j)}(hoint ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j )}(hinth]hint}(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*[hhhj<[hMubjg)}(hipcgeth]jm)}(hipcgeth]hipcget}(hjO[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*[hhhj<[hMubj)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hjh]hstruct}(hjk[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg[ubj)}(h h]h }(hjx[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg[ubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jR )}jE jQ[sbc.ipcgetasbuh1hhjg[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)}(hnsh]hns}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc[ubj)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]j[c.ipcgetasbuh1hhj[ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hj'\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hidsh]hids}(hj4\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc[ubj)}(hconst struct ipc_ops *opsh](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)}(hjh]hstruct}(hjh\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI\ubj)}(h h]h }(hju\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI\ubh)}(hhh]jm)}(hipc_opsh]hipc_ops}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]j[c.ipcgetasbuh1hhjI\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)}(hopsh]hops}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc[ubj)}(hstruct ipc_params *paramsh](j)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(h ipc_paramsh]h ipc_params}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]j[c.ipcgetasbuh1hhj\ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hj"]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hparamsh]hparams}(hj/]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjc[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)}(hCommon sys_*get() codeh]hCommon sys_*get() code}(hjY]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjV]hhubah}(h]h ]h"]h$]h&]uh1jhj#[hhhj<[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjq]jjq]jjjuh1hhhhjr0hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` operations to be called on ipc object creation, permission checks and further checks ``struct ipc_params *params`` the parameters needed by the previous operations. **Description** Common routine called by sys_msgget(), sys_semget() and sys_shmget().h](h)}(h**Parameters**h]j)}(hj{]h]h Parameters}(hj}]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy]ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhju]ubj)}(hhh](j)}(h'``struct ipc_namespace *ns`` namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj]h]hstruct ipc_namespace *ns}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj]ubj)}(hhh]h)}(h namespaceh]h namespace}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubj)}(h+``struct 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)}(hs``const struct ipc_ops *ops`` operations to be called on ipc object creation, permission checks and further checks h](j)}(h``const struct ipc_ops *ops``h]j)}(hj ^h]hconst struct ipc_ops *ops}(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)}(hToperations to be called on ipc object creation, permission checks and further checksh]hToperations to be called on ipc object creation, permission checks and further checks}(hj%^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj"^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj!^hMhj]ubj)}(hP``struct ipc_params *params`` the parameters needed by the previous operations. h](j)}(h``struct ipc_params *params``h]j)}(hjF^h]hstruct ipc_params *params}(hjH^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD^ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj@^ubj)}(hhh]h)}(h1the parameters needed by the previous operations.h]h1the parameters needed by the previous operations.}(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)}(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.chMhju]ubh)}(hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().h]hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhju]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_update_perm (C function)c.ipc_update_permhNtauh1hhjr0hhhNhNubh)}(hhh](j)}(hFint ipc_update_perm (struct ipc64_perm *in, struct kern_ipc_perm *out)h]j)}(hEint ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j )}(hinth]hint}(hj^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^hhhj^hMubjg)}(hipc_update_permh]jm)}(hipc_update_permh]hipc_update_perm}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj^hMubj)}(h2(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(h ipc64_permh]h ipc64_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.ipc_update_permasbuh1hhj^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)}(hinh]hin}(hj\_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hstruct kern_ipc_perm *outh](j)}(hjh]hstruct}(hju_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq_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_update_permasbuh1hhjq_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)}(houth]hout}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq_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'update the permissions of an ipc objecth]h'update the permissions of an ipc object}(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^hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhjr0hNhNubj)}(h**Parameters** ``struct ipc64_perm *in`` the permission given as input. ``struct kern_ipc_perm *out`` the permission of the ipc to set.h](h)}(h**Parameters**h]j)}(hj`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)}(h9``struct ipc64_perm *in`` the permission given as input. h](j)}(h``struct ipc64_perm *in``h]j)}(hj7`h]hstruct ipc64_perm *in}(hj9`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5`ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj1`ubj)}(hhh]h)}(hthe permission given as input.h]hthe permission given as input.}(hjP`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL`hMhjM`ubah}(h]h ]h"]h$]h&]uh1jhj1`ubeh}(h]h ]h"]h$]h&]uh1jhjL`hMhj.`ubj)}(h?``struct kern_ipc_perm *out`` the permission of the ipc to set.h](j)}(h``struct kern_ipc_perm *out``h]j)}(hjp`h]hstruct kern_ipc_perm *out}(hjr`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn`ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjj`ubj)}(hhh]h)}(h!the permission of the ipc to set.h]h!the permission of the ipc to set.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj`ubah}(h]h ]h"]h$]h&]uh1jhjj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj.`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h ipcctl_obtain_check (C function)c.ipcctl_obtain_checkhNtauh1hhjr0hhhNhNubh)}(hhh](j)}(hstruct kern_ipc_perm * ipcctl_obtain_check (struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h]j)}(hstruct kern_ipc_perm *ipcctl_obtain_check(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`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`hhhj`hMubh)}(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 ipcctl_obtain_checksbc.ipcctl_obtain_checkasbuh1hhj`hhhj`hMubj)}(h h]h }(hj ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`hhhj`hMubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMubjg)}(hipcctl_obtain_checkh]jm)}(hjah]hipcctl_obtain_check}(hj)ahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%aubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhj`hMubj)}(hi(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h](j)}(hstruct ipc_namespace *nsh](j)}(hjh]hstruct}(hjDahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@aubj)}(h h]h }(hjQahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@aubh)}(hhh]jm)}(h ipc_namespaceh]h ipc_namespace}(hjbahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_aubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdamodnameN classnameNjI jL )}jO ]jac.ipcctl_obtain_checkasbuh1hhj@aubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@aubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@aubjm)}(hnsh]hns}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj``int extra_perm`` one extra permission parameter used by msq h](j)}(h``int extra_perm``h]j)}(hjdh]hint extra_perm}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjdubj)}(hhh]h)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhj|cubeh}(h]h ]h"]h$]h&]uh1jhj`cubh)}(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.chMhj`cubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj`cubj)}(hhh]j)}(hIt: - retrieves the ipc object with the given id in the given table. - performs some audit and permission check, depending on the given cmd - returns a pointer to the ipc object or otherwise, the corresponding error. h](j)}(hIt:h]hIt:}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjeubj)}(hhh]j)}(hhh](j)}(h>retrieves the ipc object with the given id in the given table.h]h)}(hj eh]h>retrieves the ipc object with the given id in the given table.}(hj"ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(hDperforms some audit and permission check, depending on the given cmdh]h)}(hj8eh]hDperforms some audit and permission check, depending on the given cmd}(hj:ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj6eubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(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.}(hjRehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjNeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj/ehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhj`cubh)}(h6Call holding the both the rwsem and the rcu read lock.h]h6Call holding the both the rwsem and the rcu read lock.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj`cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hipc_parse_version (C function)c.ipc_parse_versionhNtauh1hhjr0hhhNhNubh)}(hhh](j)}(h int ipc_parse_version (int *cmd)h]j)}(hint ipc_parse_version(int *cmd)h](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjehMubjg)}(hipc_parse_versionh]jm)}(hipc_parse_versionh]hipc_parse_version}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjehMubj)}(h (int *cmd)h]j)}(hint *cmdh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hcmdh]hcmd}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehMhjehhubj)}(hhh]h)}(hipc call versionh]hipc call version}(hj>fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj;fhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVfjjVfjjjuh1hhhhjr0hNhNubj)}(h**Parameters** ``int *cmd`` pointer to command **Description** Return IPC_64 for new style IPC and IPC_OLD for old style IPC. The **cmd** value is turned from an encoding command and version into just the command code.h](h)}(h**Parameters**h]j)}(hj`fh]h Parameters}(hjbfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^fubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjZfubj)}(hhh]j)}(h ``int *cmd`` pointer to command h](j)}(h ``int *cmd``h]j)}(hjfh]hint *cmd}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}fubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjyfubj)}(hhh]h)}(hpointer to commandh]hpointer to command}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjyfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjvfubah}(h]h ]h"]h$]h&]uh1jhjZfubh)}(h**Description**h]j)}(hjfh]h Description}(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.chMhjZfubh)}(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 }(hjfhhhNhNubj)}(h**cmd**h]hcmd}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhQ value is turned from an encoding command and version into just the command code.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjZfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhjr0hhhNhNubh)}(hhh](j)}(hJstruct kern_ipc_perm * sysvipc_find_ipc (struct ipc_ids *ids, loff_t *pos)h]j)}(hHstruct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t *pos)h](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ghhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ghhhjghMubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj0ghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-gubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2gmodnameN classnameNjI jL )}jO ]jR )}jE sysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhj ghhhjghMubj)}(h h]h }(hjQghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ghhhjghMubj)}(hjh]h*}(hj_ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ghhhjghMubjg)}(hsysvipc_find_ipch]jm)}(hjNgh]hsysvipc_find_ipc}(hjpghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj ghhhjghMubj)}(h"(struct ipc_ids *ids, loff_t *pos)h](j)}(hstruct ipc_ids *idsh](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(hipc_idsh]hipc_ids}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jLgc.sysvipc_find_ipcasbuh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hidsh]hids}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h loff_t *posh](h)}(hhh]jm)}(hloff_th]hloff_t}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jLgc.sysvipc_find_ipcasbuh1hhjgubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hj*hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hposh]hpos}(hj7hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj ghhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj ghhhjghMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjghhubj)}(hhh]h)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(hjahhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj^hhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyhjjyhjjjuh1hhhhjr0hNhNubj)}(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)}(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.chMhj}hubj)}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjhh]hstruct ipc_ids *ids}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhubj)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubj)}(h"``loff_t *pos`` expected position h](j)}(h``loff_t *pos``h]j)}(hjhh]h loff_t *pos}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhubj)}(hhh]h)}(hexpected positionh]hexpected position}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubeh}(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&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj}hubh)}(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 }(hj,ihhhNhNubj)}(h**pos**h]hpos}(hj4ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,iubh+. If there is no ipc structure at position }(hj,ihhhNhNubj)}(h**pos**h]hpos}(hjFihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,iubh, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and }(hj,ihhhNhNubj)}(h**pos**h]hpos}(hjXihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,iubhb is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), }(hj,ihhhNhNubj)}(h**pos**h]hpos}(hjjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,iubh is not modified.}(hj,ihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj}hubh)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj}hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjr0hhhNhNubeh}(h] ipc-utilitiesah ]h"] ipc utilitiesah$]h&]uh1hhja0hhhhhKubeh}(h]kernel-ipc-facilitiesah ]h"]kernel ipc facilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h FIFO Bufferh]h FIFO Buffer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhjihhhNhNubh)}(hhh](j)}(hDECLARE_KFIFO_PTRh]j)}(hDECLARE_KFIFO_PTRh]jg)}(hDECLARE_KFIFO_PTRh]jm)}(hjih]hDECLARE_KFIFO_PTR}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihKoubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihKohjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjihKoubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjjjuh1hhhhjihNhNubh)}(h"``DECLARE_KFIFO_PTR (fifo, type)``h]j)}(hjjh]hDECLARE_KFIFO_PTR (fifo, type)}(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.hhKqhjihhubj)}(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}(hj4jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKohj0jubah}(h]h ]h"]h$]h&]uh1jhjBjhKohjihhubj)}(hZ**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elementsh](h)}(h**Parameters**h]j)}(hjOjh]h Parameters}(hjQjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKshjIjubj)}(hhh](j)}(h#``fifo`` name of the declared fifo h](j)}(h``fifo``h]j)}(hjnjh]hfifo}(hjpjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjljubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKphjhjubj)}(hhh]h)}(hname of the declared fifoh]hname of the declared fifo}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKphjjubah}(h]h ]h"]h$]h&]uh1jhjhjubeh}(h]h ]h"]h$]h&]uh1jhjjhKphjejubj)}(h"``type`` type of the fifo elementsh](j)}(h``type``h]j)}(hjjh]htype}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKrhjjubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhKrhjejubeh}(h]h ]h"]h$]h&]uh1jhjIjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDECLARE_KFIFO (C macro)c.DECLARE_KFIFOhNtauh1hhjihhhNhNubh)}(hhh](j)}(h DECLARE_KFIFOh]j)}(h DECLARE_KFIFOh]jg)}(h DECLARE_KFIFOh]jm)}(hjjh]h DECLARE_KFIFO}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKvubah}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjkhKvubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjkhKvhjjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjkhKvubeh}(h]h ](jmacroeh"]h$]h&]jjjj1kjj1kjjjuh1hhhhjihNhNubh)}(h$``DECLARE_KFIFO (fifo, type, size)``h]j)}(hj7kh]h DECLARE_KFIFO (fifo, type, size)}(hj9khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5kubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKxhjihhubj)}(hmacro to declare a fifo object h]h)}(hmacro to declare a fifo objecth]hmacro to declare a fifo object}(hjQkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKvhjMkubah}(h]h ]h"]h$]h&]uh1jhj_khKvhjihhubj)}(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)}(hjlkh]h Parameters}(hjnkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKzhjfkubj)}(hhh](j)}(h#``fifo`` name of the declared fifo h](j)}(h``fifo``h]j)}(hjkh]hfifo}(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.hhKwhjkubj)}(hhh]h)}(hname of the declared fifoh]hname of the declared fifo}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKwhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhKwhjkubj)}(h#``type`` type of the fifo elements h](j)}(h``type``h]j)}(hjkh]htype}(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.hhKxhjkubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKxhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhKxhjkubj)}(hF``size`` the number of elements in the fifo, this must be a power of 2h](j)}(h``size``h]j)}(hjkh]hsize}(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.hhKzhjkubj)}(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}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKyhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjlhKzhjkubeh}(h]h ]h"]h$]h&]uh1jhjfkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hINIT_KFIFO (C macro) c.INIT_KFIFOhNtauh1hhjihhhNhNubh)}(hhh](j)}(h INIT_KFIFOh]j)}(h INIT_KFIFOh]jg)}(h INIT_KFIFOh]jm)}(hjQlh]h INIT_KFIFO}(hj[lhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWlubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjSlhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhK~ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjOlhhhjnlhK~ubah}(h]jJlah ](jjeh"]h$]h&]jj)jhuh1hhjnlhK~hjLlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjLlhhhjnlhK~ubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1hhhhjihNhNubh)}(h``INIT_KFIFO (fifo)``h]j)}(hjlh]hINIT_KFIFO (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.hhKhjihhubj)}(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}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhK~hjlubah}(h]h ]h"]h$]h&]uh1jhjlhK~hjihhubj)}(h=**Parameters** ``fifo`` name of the declared fifo datatypeh](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(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.hhKhjlubj)}(hhh]j)}(h+``fifo`` name of the declared fifo datatypeh](j)}(h``fifo``h]j)}(hjlh]hfifo}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjlubj)}(hhh]h)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEFINE_KFIFO (C macro)c.DEFINE_KFIFOhNtauh1hhjihhhNhNubh)}(hhh](j)}(h DEFINE_KFIFOh]j)}(h DEFINE_KFIFOh]jg)}(h DEFINE_KFIFOh]jm)}(hj5mh]h DEFINE_KFIFO}(hj?mhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;mubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7mhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj3mhhhjRmhKubah}(h]j.mah ](jjeh"]h$]h&]jj)jhuh1hhjRmhKhj0mhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj0mhhhjRmhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjkmjjkmjjjuh1hhhhjihNhNubh)}(h#``DEFINE_KFIFO (fifo, type, size)``h]j)}(hjqmh]hDEFINE_KFIFO (fifo, type, size)}(hjsmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjomubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjihhubj)}(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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjmubah}(h]h ]h"]h$]h&]uh1jhjmhKhjihhubj)}(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)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjmubj)}(hhh](j)}(h,``fifo`` name of the declared fifo datatype h](j)}(h``fifo``h]j)}(hjmh]hfifo}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjmubj)}(hhh]h)}(h"name of the declared fifo datatypeh]h"name of the declared fifo datatype}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjmubj)}(h#``type`` type of the fifo elements h](j)}(h``type``h]j)}(hjmh]htype}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjmubj)}(hhh]h)}(htype of the fifo elementsh]htype of the fifo elements}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjnubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjmubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hj7nh]hsize}(hj9nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5nubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj1nubj)}(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}(hjPnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLnhKhjMnubah}(h]h ]h"]h$]h&]uh1jhj1nubeh}(h]h ]h"]h$]h&]uh1jhjLnhKhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Note**h]j)}(hjrnh]hNote}(hjtnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjmubh)}(hDthe macro can be used for global and local fifo data type variables.h]hDthe macro can be used for global and local fifo data type variables.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_initialized (C macro)c.kfifo_initializedhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_initializedh]j)}(hkfifo_initializedh]jg)}(hkfifo_initializedh]jm)}(hjnh]hkfifo_initialized}(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.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjnhKubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjnhKhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjnhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1hhhhjihNhNubh)}(h``kfifo_initialized (fifo)``h]j)}(hjnh]hkfifo_initialized (fifo)}(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.hhKhjihhubj)}(h!Check if the fifo is initialized h]h)}(h Check if the fifo is initializedh]h Check if the fifo is initialized}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjoubah}(h]h ]h"]h$]h&]uh1jhjohKhjihhubj)}(h**Parameters** ``fifo`` address of the fifo to check **Description** Return ``true`` if fifo is initialized, otherwise ``false``. Assumes the fifo was 0 before.h](h)}(h**Parameters**h]j)}(hj"oh]h Parameters}(hj$ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjoubj)}(hhh]j)}(h&``fifo`` address of the fifo to check h](j)}(h``fifo``h]j)}(hjAoh]hfifo}(hjCohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?oubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj;oubj)}(hhh]h)}(haddress of the fifo to checkh]haddress of the fifo to check}(hjZohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVohKhjWoubah}(h]h ]h"]h$]h&]uh1jhj;oubeh}(h]h ]h"]h$]h&]uh1jhjVohKhj8oubah}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]j)}(hj|oh]h Description}(hj~ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjoubh)}(h[Return ``true`` if fifo is initialized, otherwise ``false``. Assumes the fifo was 0 before.h](hReturn }(hjohhhNhNubj)}(h``true``h]htrue}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh# if fifo is initialized, otherwise }(hjohhhNhNubj)}(h ``false``h]hfalse}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh . Assumes the fifo was 0 before.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_esize (C macro) c.kfifo_esizehNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_esizeh]j)}(h kfifo_esizeh]jg)}(h kfifo_esizeh]jm)}(hjoh]h kfifo_esize}(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.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohKubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohKhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjohKubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhjihNhNubh)}(h``kfifo_esize (fifo)``h]j)}(hjph]hkfifo_esize (fifo)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjihhubj)}(h4returns the size of the element managed by the fifo h]h)}(h3returns the size of the element managed by the fifoh]h3returns the size of the element managed by the fifo}(hj5phhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj1pubah}(h]h ]h"]h$]h&]uh1jhjCphKhjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjPph]h Parameters}(hjRphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNpubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjJpubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjoph]hfifo}(hjqphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjipubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjpubah}(h]h ]h"]h$]h&]uh1jhjipubeh}(h]h ]h"]h$]h&]uh1jhjphKhjfpubah}(h]h ]h"]h$]h&]uh1jhjJpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_recsize (C macro)c.kfifo_recsizehNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_recsizeh]j)}(h kfifo_recsizeh]jg)}(h kfifo_recsizeh]jm)}(hjph]h kfifo_recsize}(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.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphKubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphKhjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjphKubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1hhhhjihNhNubh)}(h``kfifo_recsize (fifo)``h]j)}(hjph]hkfifo_recsize (fifo)}(hjqhhhNhNubah}(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.hhKhjihhubj)}(h,returns the size of the record length field h]h)}(h+returns the size of the record length fieldh]h+returns the size of the record length field}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjqubah}(h]h ]h"]h$]h&]uh1jhj'qhKhjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj4qh]h Parameters}(hj6qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2qubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj.qubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjSqh]hfifo}(hjUqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjMqubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjlqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjiqubah}(h]h ]h"]h$]h&]uh1jhjMqubeh}(h]h ]h"]h$]h&]uh1jhjhqhKhjJqubah}(h]h ]h"]h$]h&]uh1jhj.qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_size (C macro) c.kfifo_sizehNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_sizeh]j)}(h kfifo_sizeh]jg)}(h kfifo_sizeh]jm)}(hjqh]h kfifo_size}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjqhKubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjqhKhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjqhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjqjjqjjjuh1hhhhjihNhNubh)}(h``kfifo_size (fifo)``h]j)}(hjqh]hkfifo_size (fifo)}(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.hhKhjihhubj)}(h)returns the size of the fifo in elements h]h)}(h(returns the size of the fifo in elementsh]h(returns the size of the fifo in elements}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjqubah}(h]h ]h"]h$]h&]uh1jhj rhKhjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](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.hhKhjrubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hj7rh]hfifo}(hj9rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5rubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj1rubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjPrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjMrubah}(h]h ]h"]h$]h&]uh1jhj1rubeh}(h]h ]h"]h$]h&]uh1jhjLrhKhj.rubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_reset (C macro) c.kfifo_resethNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_reseth]j)}(h kfifo_reseth]jg)}(h kfifo_reseth]jm)}(hjrh]h kfifo_reset}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhKubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhKhjrhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjrhhhjrhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjrjjrjjjuh1hhhhjihNhNubh)}(h``kfifo_reset (fifo)``h]j)}(hjrh]hkfifo_reset (fifo)}(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.hhKhjihhubj)}(h removes the entire fifo content h]h)}(hremoves the entire fifo contenth]hremoves the entire fifo content}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjrubah}(h]h ]h"]h$]h&]uh1jhjrhKhjihhubj)}(h**Parameters** ``fifo`` address of the fifo to be used **Note** usage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.h](h)}(h**Parameters**h]j)}(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.hhKhjrubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjsh]hfifo}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjsubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj4shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0shKhj1subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj0shKhjsubah}(h]h ]h"]h$]h&]uh1jhjrubh)}(h**Note**h]j)}(hjVsh]hNote}(hjXshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTsubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjrubh)}(husage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.h]husage of kfifo_reset() is dangerous. It should be only called when the fifo is exclusived locked or when it is secured that no other thread is accessing the fifo.}(hjlshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_reset_out (C macro)c.kfifo_reset_outhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_reset_outh]j)}(hkfifo_reset_outh]jg)}(hkfifo_reset_outh]jm)}(hjsh]hkfifo_reset_out}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjshKubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshKhjshhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjshhhjshKubeh}(h]h ](jmacroeh"]h$]h&]jjjjsjjsjjjuh1hhhhjihNhNubh)}(h``kfifo_reset_out (fifo)``h]j)}(hjsh]hkfifo_reset_out (fifo)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjihhubj)}(hskip fifo content h]h)}(hskip fifo contenth]hskip fifo content}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjsubah}(h]h ]h"]h$]h&]uh1jhjshKhjihhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used **Note** The usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().h](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjtubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj%th]hfifo}(hj'thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#tubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjtubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj>thhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:thKhj;tubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhj:thKhjtubah}(h]h ]h"]h$]h&]uh1jhjtubh)}(h**Note**h]j)}(hj`th]hNote}(hjbthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^tubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjtubh)}(hThe usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().h]hThe usage of kfifo_reset_out() is safe until it will be only called from the reader thread and there is only one concurrent reader. Otherwise it is dangerous and must be handled in the same way as kfifo_reset().}(hjvthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_len (C macro) c.kfifo_lenhNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_lenh]j)}(h kfifo_lenh]jg)}(h kfifo_lenh]jm)}(hjth]h kfifo_len}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjthhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthKubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjthKhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjthKubeh}(h]h ](jmacroeh"]h$]h&]jjjjtjjtjjjuh1hhhhjihNhNubh)}(h``kfifo_len (fifo)``h]j)}(hjth]hkfifo_len (fifo)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjihhubj)}(h0returns the number of used elements in the fifo h]h)}(h/returns the number of used elements in the fifoh]h/returns the number of used elements in the fifo}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjtubah}(h]h ]h"]h$]h&]uh1jhjuhKhjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj uubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hj/uh]hfifo}(hj1uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-uubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj)uubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjHuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjEuubah}(h]h ]h"]h$]h&]uh1jhj)uubeh}(h]h ]h"]h$]h&]uh1jhjDuhKhj&uubah}(h]h ]h"]h$]h&]uh1jhj uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_is_empty (C macro)c.kfifo_is_emptyhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_is_emptyh]j)}(hkfifo_is_emptyh]jg)}(hkfifo_is_emptyh]jm)}(hjuh]hkfifo_is_empty}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjuhKubah}(h]j|uah ](jjeh"]h$]h&]jj)jhuh1hhjuhKhj~uhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj~uhhhjuhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjujjujjjuh1hhhhjihNhNubh)}(h``kfifo_is_empty (fifo)``h]j)}(hjuh]hkfifo_is_empty (fifo)}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjihhubj)}(h"returns true if the fifo is empty h]h)}(h!returns true if the fifo is emptyh]h!returns true if the fifo is empty}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjuubah}(h]h ]h"]h$]h&]uh1jhjuhKhjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjuubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjvh]hfifo}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj vubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj,vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhj)vubah}(h]h ]h"]h$]h&]uh1jhj vubeh}(h]h ]h"]h$]h&]uh1jhj(vhKhj vubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#kfifo_is_empty_spinlocked (C macro)c.kfifo_is_empty_spinlockedhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_is_empty_spinlockedh]j)}(hkfifo_is_empty_spinlockedh]jg)}(hkfifo_is_empty_spinlockedh]jm)}(hjgvh]hkfifo_is_empty_spinlocked}(hjqvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjivhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjevhhhjvhKubah}(h]j`vah ](jjeh"]h$]h&]jj)jhuh1hhjvhKhjbvhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjbvhhhjvhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1hhhhjihNhNubh)}(h*``kfifo_is_empty_spinlocked (fifo, lock)``h]j)}(hjvh]h&kfifo_is_empty_spinlocked (fifo, lock)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(h?returns true if the fifo is empty using a spinlock for locking h]h)}(h>returns true if the fifo is empty using a spinlock for lockingh]h>returns true if the fifo is empty using a spinlock for locking}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjvubah}(h]h ]h"]h$]h&]uh1jhjvhKhjihhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](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:205: ./include/linux/kfifo.hhMhjvubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjvh]hfifo}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjvubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj whMhj wubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj whMhjvubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hj0wh]hlock}(hj2whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.wubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj*wubj)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjIwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjFwubah}(h]h ]h"]h$]h&]uh1jhj*wubeh}(h]h ]h"]h$]h&]uh1jhjEwhMhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhjihhhNhNubh)}(hhh](j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jg)}(h#kfifo_is_empty_spinlocked_noirqsaveh]jm)}(hjwh]h#kfifo_is_empty_spinlocked_noirqsave}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhMubah}(h]j}wah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjwjjwjjjuh1hhhhjihNhNubh)}(h4``kfifo_is_empty_spinlocked_noirqsave (fifo, lock)``h]j)}(hjwh]h0kfifo_is_empty_spinlocked_noirqsave (fifo, lock)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwhMhjihhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjwubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjxh]hfifo}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjxubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj-xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)xhMhj*xubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj)xhMhj xubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjMxh]hlock}(hjOxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjGxubj)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjfxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjcxubah}(h]h ]h"]h$]h&]uh1jhjGxubeh}(h]h ]h"]h$]h&]uh1jhjbxhMhj xubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_is_full (C macro)c.kfifo_is_fullhNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_is_fullh]j)}(h kfifo_is_fullh]jg)}(h kfifo_is_fullh]jm)}(hjxh]h kfifo_is_full}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjxjjxjjjuh1hhhhjihNhNubh)}(h``kfifo_is_full (fifo)``h]j)}(hjxh]hkfifo_is_full (fifo)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjihhubj)}(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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjxubah}(h]h ]h"]h$]h&]uh1jhjyhMhjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hj yubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hj1yh]hfifo}(hj3yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/yubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM$hj+yubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjJyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjGyubah}(h]h ]h"]h$]h&]uh1jhj+yubeh}(h]h ]h"]h$]h&]uh1jhjFyhM$hj(yubah}(h]h ]h"]h$]h&]uh1jhj yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_avail (C macro) c.kfifo_availhNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_availh]j)}(h kfifo_availh]jg)}(h kfifo_availh]jm)}(hjyh]h kfifo_avail}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhM(ubah}(h]j~yah ](jjeh"]h$]h&]jj)jhuh1hhjyhM(hjyhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhjyhM(ubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1hhhhjihNhNubh)}(h``kfifo_avail (fifo)``h]j)}(hjyh]hkfifo_avail (fifo)}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM*hjihhubj)}(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}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(hjyubah}(h]h ]h"]h$]h&]uh1jhjyhM(hjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM,hjyubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjzh]hfifo}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM.hjzubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj.zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM)hj+zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj*zhM.hj zubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_skip_count (C macro)c.kfifo_skip_counthNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_skip_counth]j)}(hkfifo_skip_counth]jg)}(hkfifo_skip_counth]jm)}(hjizh]hkfifo_skip_count}(hjszhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjozubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkzhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjgzhhhjzhM8ubah}(h]jbzah ](jjeh"]h$]h&]jj)jhuh1hhjzhM8hjdzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdzhhhjzhM8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjzjjzjjjuh1hhhhjihNhNubh)}(h"``kfifo_skip_count (fifo, count)``h]j)}(hjzh]hkfifo_skip_count (fifo, count)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjihhubj)}(hskip output data h]h)}(hskip output datah]hskip output data}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hjzubah}(h]h ]h"]h$]h&]uh1jhjzhM8hjihhubj)}(h\**Parameters** ``fifo`` address of the fifo to be used ``count`` count of data to skiph](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:205: ./include/linux/kfifo.hhM<hjzubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjzh]hfifo}(hjzhhhNhNubah}(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.hhM9hjzubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM9hj{ubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj{hM9hjzubj)}(h``count`` count of data to skiph](j)}(h ``count``h]j)}(hj2{h]hcount}(hj4{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0{ubah}(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)}(hcount of data to skiph]hcount of data to skip}(hjK{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjH{ubah}(h]h ]h"]h$]h&]uh1jhj,{ubeh}(h]h ]h"]h$]h&]uh1jhjG{hM;hjzubeh}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_skip (C macro) c.kfifo_skiphNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_skiph]j)}(h kfifo_skiph]jg)}(h kfifo_skiph]jm)}(hj{h]h kfifo_skip}(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.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhj{hMGubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMGhj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMGubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1hhhhjihNhNubh)}(h``kfifo_skip (fifo)``h]j)}(hj{h]hkfifo_skip (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.hhMIhjihhubj)}(hskip output data h]h)}(hskip output datah]hskip output data}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMGhj{ubah}(h]h ]h"]h$]h&]uh1jhj{hMGhjihhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKhj{ubj)}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hj|h]hfifo}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhj|ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj/|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMHhj,|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj+|hMMhj |ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_peek_lenh]j)}(hkfifo_peek_lenh]jg)}(hkfifo_peek_lenh]jm)}(hjj|h]hkfifo_peek_len}(hjt|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjl|hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjh|hhhj|hMMubah}(h]jc|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hMMhje|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhje|hhhj|hMMubeh}(h]h ](jmacroeh"]h$]h&]jjjj|jj|jjjuh1hhhhjihNhNubh)}(h``kfifo_peek_len (fifo)``h]j)}(hj|h]hkfifo_peek_len (fifo)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjihhubj)}(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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|hMMhjihhubj)}(h**Parameters** ``fifo`` address of the fifo to be used **Description** This function returns the size of the next fifo record in number of bytes.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhj|ubj)}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj|h]hfifo}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhj|ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMNhj}ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj}hMNhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubh)}(h**Description**h]j)}(hj5}h]h Description}(hj7}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3}ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhj|ubh)}(hJThis function returns the size of the next fifo record in number of bytes.h]hJThis function returns the size of the next fifo record in number of bytes.}(hjK}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_alloc (C macro) c.kfifo_allochNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_alloch]j)}(h kfifo_alloch]jg)}(h kfifo_alloch]jm)}(hjt}h]h kfifo_alloc}(hj~}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjv}hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM^ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjr}hhhj}hM^ubah}(h]jm}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hM^hjo}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjo}hhhj}hM^ubeh}(h]h ](jmacroeh"]h$]h&]jjjj}jj}jjjuh1hhhhjihNhNubh)}(h&``kfifo_alloc (fifo, size, gfp_mask)``h]j)}(hj}h]h"kfifo_alloc (fifo, size, gfp_mask)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hjihhubj)}(h(dynamically allocates a new fifo buffer h]h)}(h'dynamically allocates a new fifo bufferh]h'dynamically allocates a new fifo buffer}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM^hj}ubah}(h]h ]h"]h$]h&]uh1jhj}hM^hjihhubj)}(hX**Parameters** ``fifo`` pointer to the fifo ``size`` the number of elements in the fifo, this must be a power of 2 ``gfp_mask`` get_free_pages mask, passed to kmalloc() **Description** This macro dynamically allocates a new fifo buffer. The number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMbhj}ubj)}(hhh](j)}(h``fifo`` pointer to the fifo h](j)}(h``fifo``h]j)}(hj~h]hfifo}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM_hj}ubj)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(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)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hj=~h]hsize}(hj?~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;~ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hj7~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}(hjV~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR~hM`hjS~ubah}(h]h ]h"]h$]h&]uh1jhj7~ubeh}(h]h ]h"]h$]h&]uh1jhjR~hM`hj}ubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hjv~h]hgfp_mask}(hjx~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt~ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMahjp~ubj)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMahj~ubah}(h]h ]h"]h$]h&]uh1jhjp~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMahj}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.hhMchj}ubh)}(h3This macro dynamically allocates a new fifo buffer.h]h3This macro dynamically allocates a new fifo buffer.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMbhj}ubh)}(hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h]hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMdhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_alloc_node (C macro)c.kfifo_alloc_nodehNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_alloc_nodeh]j)}(hkfifo_alloc_nodeh]jg)}(hkfifo_alloc_nodeh]jm)}(hj~h]hkfifo_alloc_node}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuubah}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhMuubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMuhj~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj~hhhjhMuubeh}(h]h ](jmacroeh"]h$]h&]jjjj5jj5jjjuh1hhhhjihNhNubh)}(h1``kfifo_alloc_node (fifo, size, gfp_mask, node)``h]j)}(hj;h]h-kfifo_alloc_node (fifo, size, gfp_mask, node)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMwhjihhubj)}(h7dynamically allocates a new fifo buffer on a NUMA node h]h)}(h6dynamically allocates a new fifo buffer on a NUMA nodeh]h6dynamically allocates a new fifo buffer on a NUMA node}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuhjQubah}(h]h ]h"]h$]h&]uh1jhjchMuhjihhubj)}(hX**Parameters** ``fifo`` pointer to the fifo ``size`` the number of elements in the fifo, this must be a power of 2 ``gfp_mask`` get_free_pages mask, passed to kmalloc() ``node`` NUMA node to allocate memory on **Description** This macro dynamically allocates a new fifo buffer with NUMA node awareness. The number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhjjubj)}(hhh](j)}(h``fifo`` pointer to the fifo 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.hhMvhjubj)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMwhjubj)}(hhh]h)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hjh]hgfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMxhjubj)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubj)}(h)``node`` NUMA node to allocate memory on h](j)}(h``node``h]j)}(hj:h]hnode}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhj4ubj)}(hhh]h)}(hNUMA node to allocate memory onh]hNUMA node to allocate memory on}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMyhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMyhjubeh}(h]h ]h"]h$]h&]uh1jhjjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM{hjjubh)}(hLThis macro dynamically allocates a new fifo buffer with NUMA node awareness.h]hLThis macro dynamically allocates a new fifo buffer with NUMA node awareness.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMzhjjubh)}(hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h]hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM|hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_free (C macro) c.kfifo_freehNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_freeh]j)}(h kfifo_freeh]jg)}(h kfifo_freeh]jm)}(hjÀh]h kfifo_free}(hj̀hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɀubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjŀhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjihNhNubh)}(h``kfifo_free (fifo)``h]j)}(hjh]hkfifo_free (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(hfrees the fifo h]h)}(hfrees the fifoh]hfrees the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj'hMhjihhubj)}(h/**Parameters** ``fifo`` the fifo to be freedh](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj.ubj)}(hhh]j)}(h``fifo`` the fifo to be freedh](j)}(h``fifo``h]j)}(hjSh]hfifo}(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)}(hthe fifo to be freedh]hthe fifo to be freed}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_init (C macro) c.kfifo_inithNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_inith]j)}(h kfifo_inith]jg)}(h kfifo_inith]jm)}(hjh]h kfifo_init}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjāhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjāhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjāhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj݁jj݁jjjuh1hhhhjihNhNubh)}(h#``kfifo_init (fifo, buffer, size)``h]j)}(hjh]hkfifo_init (fifo, buffer, size)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(h.initialize a fifo using a preallocated buffer h]h)}(h-initialize a fifo using a preallocated bufferh]h-initialize a fifo using a preallocated buffer}(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 hMhjihhubj)}(hXk**Parameters** ``fifo`` the fifo to assign the buffer ``buffer`` the preallocated buffer to be used ``size`` the size of the internal buffer, this have to be a power of 2 **Description** This macro initializes a fifo using a preallocated buffer. The number of elements will be rounded-up to a power of 2. Return 0 if no error, otherwise an error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh](j)}(h'``fifo`` the fifo to assign the buffer h](j)}(h``fifo``h]j)}(hj7h]hfifo}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj1ubj)}(hhh]h)}(hthe fifo to assign the bufferh]hthe fifo to assign the buffer}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubj)}(h.``buffer`` the preallocated buffer to be used h](j)}(h ``buffer``h]j)}(hjph]hbuffer}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjjubj)}(hhh]h)}(h"the preallocated buffer to be usedh]h"the preallocated buffer to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubj)}(hG``size`` the size of the internal buffer, this have to be a power of 2 h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(h=the size of the internal buffer, this have to be a power of 2h]h=the size of the internal buffer, this have to be a power of 2}(hj‚hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(h:This macro initializes a fifo using a preallocated buffer.h]h:This macro initializes a fifo using a preallocated buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(hiThe number of elements will be rounded-up to a power of 2. Return 0 if no error, otherwise an error code.h]hiThe number of elements will be rounded-up to a power of 2. Return 0 if no error, otherwise an error code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_put (C macro) c.kfifo_puthNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_puth]j)}(h kfifo_puth]jg)}(h kfifo_puth]jm)}(hj2h]h kfifo_put}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjOhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-hhhjOhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjhjjhjjjuh1hhhhjihNhNubh)}(h``kfifo_put (fifo, val)``h]j)}(hjnh]hkfifo_put (fifo, val)}(hjphhhNhNubah}(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.hhMhjihhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjihhubj)}(hXj**Parameters** ``fifo`` address of the fifo to be used ``val`` the data to be added **Description** This macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjƒh]hfifo}(hjăhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjۃhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj׃hMhj؃ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj׃hMhjubj)}(h``val`` the data to be added h](j)}(h``val``h]j)}(hjh]hval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(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)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(hThis macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements.h]hThis macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_get (C macro) c.kfifo_gethNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_geth]j)}(h kfifo_geth]jg)}(h kfifo_geth]jm)}(hjh]h kfifo_get}(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]j}ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjihNhNubh)}(h``kfifo_get (fifo, val)``h]j)}(hjh]hkfifo_get (fifo, val)}(hj„hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(hget data from the fifo h]h)}(hget data from the fifoh]hget data from the fifo}(hjڄhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjքubah}(h]h ]h"]h$]h&]uh1jhjhMhjihhubj)}(hXn**Parameters** ``fifo`` address of the fifo to be used ``val`` address where to store the data **Description** This macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubj)}(h(``val`` address where to store the data h](j)}(h``val``h]j)}(hjMh]hval}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjGubj)}(hhh]h)}(haddress where to store the datah]haddress where to store the data}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.h]hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_peek (C macro) c.kfifo_peekhNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_peekh]j)}(h kfifo_peekh]jg)}(h kfifo_peekh]jm)}(hjօh]h kfifo_peek}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj܅ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj؅hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjԅhhhjhMubah}(h]jυah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjхhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjхhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1hhhhjihNhNubh)}(h``kfifo_peek (fifo, val)``h]j)}(hjh]hkfifo_peek (fifo, val)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(h(get data from the fifo without removing h]h)}(h'get data from the fifo without removingh]h'get data from the fifo without removing}(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:hMhjihhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``val`` address where to store the data **Description** This reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjAubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjfh]hfifo}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj`ubj)}(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&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubj)}(h(``val`` address where to store the data h](j)}(h``val``h]j)}(hjh]hval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(haddress where to store the datah]haddress where to store the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjAubh)}(hThis reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.h]hThis reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjAubh)}(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.hhMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_in (C macro) c.kfifo_inhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_inh]j)}(hkfifo_inh]jg)}(hkfifo_inh]jm)}(hj(h]hkfifo_in}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj&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^jjjuh1hhhhjihNhNubh)}(h``kfifo_in (fifo, buf, n)``h]j)}(hjdh]hkfifo_in (fifo, buf, n)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM!hjihhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjzubah}(h]h ]h"]h$]h&]uh1jhjhMhjihhubj)}(hXf**Parameters** ``fifo`` address of the fifo to be used ``buf`` the data to be added ``n`` number of elements to be added **Description** This macro copies the given buffer into the fifo and returns the number of copied elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM#hjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjчhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj͇hM hj·ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͇hM hjubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM!hjubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjubj)}(h%``n`` number of elements to be added 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.hhM"hj$ubj)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjChhhNhNubah}(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)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM$hjubh)}(h[This macro copies the given buffer into the fifo and returns the number of copied elements.h]h[This macro copies the given buffer into the fifo and returns the number of copied elements.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM#hjubh)}(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&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_in_spinlocked (C macro)c.kfifo_in_spinlockedhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_in_spinlockedh]j)}(hkfifo_in_spinlockedh]jg)}(hkfifo_in_spinlockedh]jm)}(hjh]hkfifo_in_spinlocked}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjЈhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjЈhM7hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjЈhM7ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjihNhNubh)}(h,``kfifo_in_spinlocked (fifo, buf, n, lock)``h]j)}(hjh]h(kfifo_in_spinlocked (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM9hjihhubj)}(h4put data into the fifo using a spinlock for locking h]h)}(h3put data into the fifo using a spinlock for lockingh]h3put data into the fifo using a spinlock for locking}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7hjubah}(h]h ]h"]h$]h&]uh1jhjhM7hjihhubj)}(hX-**Parameters** ``fifo`` address of the fifo to be used ``buf`` the data to be added ``n`` number of elements to be added ``lock`` pointer to the spinlock to use for locking **Description** This macro copies the given values buffer into the fifo and returns the number of copied elements.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjCh]hfifo}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hj=ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM8hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhM8hj:ubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hj|h]hbuf}(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.hhM9hjvubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhM9hj:ubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjubj)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(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)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM=hjubh)}(hbThis macro copies the given values buffer into the fifo and returns the number of copied elements.h]hbThis macro copies the given values buffer into the fifo and returns the number of copied elements.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'kfifo_in_spinlocked_noirqsave (C macro)c.kfifo_in_spinlocked_noirqsavehNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hkfifo_in_spinlocked_noirqsaveh]jg)}(hkfifo_in_spinlocked_noirqsaveh]jm)}(hjhh]hkfifo_in_spinlocked_noirqsave}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhjhMKubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhjchhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjchhhjhMKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjihNhNubh)}(h6``kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hjh]h2kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjihhubj)}(hJput data into fifo using a spinlock for locking, don't disable interrupts h]h)}(hIput data into fifo using a spinlock for locking, don't disable interruptsh]hKput data into fifo using a spinlock for locking, don’t disable interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKhjubah}(h]h ]h"]h$]h&]uh1jhj̊hMKhjihhubj)}(hX=**Parameters** ``fifo`` address of the fifo to be used ``buf`` the data to be added ``n`` number of elements to be added ``lock`` pointer to the spinlock to use for locking **Description** This is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn't disable interrupts.h](h)}(h**Parameters**h]j)}(hjيh]h Parameters}(hjۊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׊ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjӊubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMMhjubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hj1h]hbuf}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhj+ubj)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMNhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMNhjubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjjh]hn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjdubj)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMRhjӊubh)}(hrThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn't disable interrupts.h]htThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjӊubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out (C macro) c.kfifo_outhNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_outh]j)}(h kfifo_outh]jg)}(h kfifo_outh]jm)}(hjh]h kfifo_out}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMcubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj:hMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj:hMchjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj:hMcubeh}(h]h ](jmacroeh"]h$]h&]jjjjSjjSjjjuh1hhhhjihNhNubh)}(h``kfifo_out (fifo, buf, n)``h]j)}(hjYh]hkfifo_out (fifo, buf, n)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMehjihhubj)}(hget data from the fifo h]h)}(hget data from the fifoh]hget data from the fifo}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMchjoubah}(h]h ]h"]h$]h&]uh1jhjhMchjihhubj)}(hXg**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get **Description** This macro gets some data from the fifo and returns the numbers of elements copied. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(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.hhMghjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMdhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjƌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŒhMdhjÌubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŒhMdhjubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(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.hhMehjubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjh]hn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfhjubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMfhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMfhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhhjubh)}(hSThis macro gets some data from the fifo and returns the numbers of elements copied.h]hSThis macro gets some data from the fifo and returns the numbers of elements copied.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]jg)}(hkfifo_out_spinlockedh]jm)}(hjh]hkfifo_out_spinlocked}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM}ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjōhM}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjōhM}hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjōhM}ubeh}(h]h ](jmacroeh"]h$]h&]jjjjލjjލjjjuh1hhhhjihNhNubh)}(h-``kfifo_out_spinlocked (fifo, buf, n, lock)``h]j)}(hjh]h)kfifo_out_spinlocked (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM}hjubah}(h]h ]h"]h$]h&]uh1jhj hM}hjihhubj)}(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.hhMhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj8h]hfifo}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM~hj2ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM~hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM~hj/ubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjqh]hbuf}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjkubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/ubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjÎhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/ubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(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}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(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.}(hj4hhhNhNubah}(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&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(kfifo_out_spinlocked_noirqsave (C macro) c.kfifo_out_spinlocked_noirqsavehNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hkfifo_out_spinlocked_noirqsaveh]jg)}(hkfifo_out_spinlocked_noirqsaveh]jm)}(hj]h]hkfifo_out_spinlocked_noirqsave}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjzhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjXhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjXhhhjzhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjihNhNubh)}(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.hhMhjihhubj)}(hNget data from the fifo using a spinlock for locking, don't disable interrupts h]h)}(hMget data from the fifo using a spinlock for locking, don't disable interruptsh]hOget data from the fifo using a spinlock for locking, don’t disable interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjihhubj)}(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)}(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&``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.hhMhj ubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hj_h]hn}(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.hhMhjYubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubj)}(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.hhMhjubj)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjȏubh)}(h**Description**h]j)}(hjӐh]h Description}(hjՐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѐubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjȏubh)}(huThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn't disable interrupts.h]hwThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjȏubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhjihhhNhNubh)}(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&]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&]jjjjHjjHjjjuh1hhhhjihNhNubh)}(h-``kfifo_from_user (fifo, from, len, copied)``h]j)}(hjNh]h)kfifo_from_user (fifo, from, len, copied)}(hjPhhhNhNubah}(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.hhMhjihhubj)}(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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjdubah}(h]h ]h"]h$]h&]uh1jhjvhMhjihhubj)}(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.hhMhj}ubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``from`` pointer to the data to be added h](j)}(h``from``h]j)}(hjۑh]hfrom}(hjݑhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjّubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjՑubj)}(hhh]h)}(hpointer to the data to be addedh]hpointer to the data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjՑubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjubj)}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j)}(h ``copied``h]j)}(hjMh]hcopied}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjGubj)}(hhh]h)}(h>pointer to output variable to store the number of copied bytesh]h>pointer to output variable to store the number of copied bytes}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj}ubh)}(hThis macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0.h](hThis macro copies at most }(hjhhhNhNubj)}(h**len**h]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh bytes from the }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhG into the fifo, depending of the available space and returns -EFAULT/0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj}ubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(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&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhjihhhNhNubh)}(hhh](j)}(h kfifo_to_userh]j)}(h kfifo_to_userh]jg)}(h kfifo_to_userh]jm)}(hjh]h kfifo_to_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&]jjjj0jj0jjjuh1hhhhjihNhNubh)}(h)``kfifo_to_user (fifo, to, len, copied)``h]j)}(hj6h]h%kfifo_to_user (fifo, to, len, copied)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(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}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjLubah}(h]h ]h"]h$]h&]uh1jhj^hMhjihhubj)}(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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjeubj)}(hhh](j)}(h(``fifo`` 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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hwhere the data must be copiedh]hwhere the data must be copied}(hjܓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjؓhMhjٓubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjؓhMhjubj)}(h+``len`` the size of the destination buffer 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 size of the destination bufferh]h"the size of the destination buffer}(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)}(hj5h]hcopied}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj/ubj)}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubeh}(h]h ]h"]h$]h&]uh1jhjeubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjeubh)}(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.hhMhjeubh)}(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.hhMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_dma_in_prepare_mappedh]j)}(hkfifo_dma_in_prepare_mappedh]jg)}(hkfifo_dma_in_prepare_mappedh]jm)}(hjh]hkfifo_dma_in_prepare_mapped}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j۔ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjݔhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjݔhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjihNhNubh)}(h<``kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjh]h8kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(h"setup a scatterlist for DMA input h]h)}(h!setup a scatterlist for DMA inputh]h!setup a scatterlist for DMA input}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj4ubah}(h]h ]h"]h$]h&]uh1jhjFhMhjihhubj)}(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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjMubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjrh]hfifo}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjlubj)}(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&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhjiubj)}(h)``sgl`` pointer to the scatterlist array h](j)}(h``sgl``h]j)}(hjh]hsgl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjĕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjiubj)}(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.hhMhjޕubj)}(hhh]h)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjޕubeh}(h]h ]h"]h$]h&]uh1jhjhMhjiubj)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjiubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hjVh]hdma}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjPubj)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hjohhhNhNubj)}(h**sgl**h]hsgl}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjiubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjMubh)}(heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.h]heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjMubh)}(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.hhMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]jg)}(hkfifo_dma_in_finishh]jm)}(hjh]hkfifo_dma_in_finish}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj#jj#jjjuh1hhhhjihNhNubh)}(h#``kfifo_dma_in_finish (fifo, len)``h]j)}(hj)h]hkfifo_dma_in_finish (fifo, len)}(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.hhMhjihhubj)}(hfinish a DMA IN operation h]h)}(hfinish a DMA IN operationh]hfinish a DMA IN operation}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj?ubah}(h]h ]h"]h$]h&]uh1jhjQhMhjihhubj)}(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.hhMhjXubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj}h]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjwubj)}(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&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhjtubj)}(h$``len`` number of bytes to received h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(hnumber of bytes to receivedh]hnumber of bytes to received}(hjϗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˗hMhj̗ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˗hMhjtubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjXubh)}(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.hhMhjXubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_dma_out_prepare_mappedh]j)}(hkfifo_dma_out_prepare_mappedh]jg)}(hkfifo_dma_out_prepare_mappedh]jm)}(hj?h]hkfifo_dma_out_prepare_mapped}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj\hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMhj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj\hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjujjujjjuh1hhhhjihNhNubh)}(h=``kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hj{h]h9kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(h#setup a scatterlist for DMA output h]h)}(h"setup a scatterlist for DMA outputh]h"setup a scatterlist for DMA output}(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&]uh1jhjhMhjihhubj)}(hX_**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA output which at most **len** bytes to transfer. It returns the number entries in the scatterlist array. A zero means there is no space available and the scatterlist is not filled. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjϘh]hfifo}(hjјhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͘ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjɘubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjɘubeh}(h]h ]h"]h$]h&]uh1jhjhMhjƘubj)}(h)``sgl`` pointer to the scatterlist array h](j)}(h``sgl``h]j)}(hjh]hsgl}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjƘubj)}(h5``nents`` number of entries in the scatterlist array h](j)}(h ``nents``h]j)}(hjAh]hnents}(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.hhMhj;ubj)}(hhh]h)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjƘubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjzh]hlen}(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.hhMhjtubj)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjƘubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hjh]hdma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjubj)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hj̙hhhNhNubj)}(h**sgl**h]hsgl}(hjԙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̙ubeh}(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**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hjubh)}(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](hhjihhubj)}(hfinish a DMA OUT operation h]h)}(hfinish a DMA OUT operationh]hfinish a DMA OUT operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjubah}(h]h ]h"]h$]h&]uh1jhjhM<hjihhubj)}(hXi**Parameters** ``fifo`` address of the fifo to be used ``len`` number of bytes transferred **Description** This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hj͚h]h Parameters}(hjϚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˚ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM@hjǚubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM=hjubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubj)}(h$``len`` number of bytes transferred h](j)}(h``len``h]j)}(hj%h]hlen}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM>hjubj)}(hhh]h)}(hnumber of bytes transferredh]hnumber of bytes transferred}(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)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM@hjǚubh)}(h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.h]h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM?hjǚ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.hhMBhjǚubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_peek (C macro)c.kfifo_out_peekhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_out_peekh]j)}(hkfifo_out_peekh]jg)}(hkfifo_out_peekh]jm)}(hjh]hkfifo_out_peek}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMLubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj˛hMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj˛hMLhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj˛hMLubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhjihNhNubh)}(h!``kfifo_out_peek (fifo, buf, n)``h]j)}(hjh]hkfifo_out_peek (fifo, buf, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjihhubj)}(hgets some data from the fifo h]h)}(hgets some data from the fifoh]hgets some data from the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMLhjubah}(h]h ]h"]h$]h&]uh1jhjhMLhjihhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get **Description** This macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj>h]hfifo}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhj8ubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMMhj5ubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjwh]hbuf}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjqubj)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMNhj5ubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjubj)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjɜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŜhMOhjƜubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŜhMOhj5ubeh}(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.hhMQhjubh)}(hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.h]hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear (C macro)c.kfifo_out_linearhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_out_linearh]j)}(hkfifo_out_linearh]jg)}(hkfifo_out_linearh]jm)}(hj9h]hkfifo_out_linear}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfubah}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjVhMfubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMfhj4hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj4hhhjVhMfubeh}(h]h ](jmacroeh"]h$]h&]jjjjojjojjjuh1hhhhjihNhNubh)}(h$``kfifo_out_linear (fifo, tail, n)``h]j)}(hjuh]h kfifo_out_linear (fifo, tail, n)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhhjihhubj)}(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.hhMfhjubah}(h]h ]h"]h$]h&]uh1jhjhMfhjihhubj)}(hXw**Parameters** ``fifo`` address of the fifo to be used ``tail`` pointer to an unsigned int to store the value of tail ``n`` max. number of elements to point at **Description** This macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(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.hhMghjÝubj)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjޝhMghjߝubah}(h]h ]h"]h$]h&]uh1jhjÝubeh}(h]h ]h"]h$]h&]uh1jhjޝhMghjubj)}(h?``tail`` pointer to an unsigned int to store the value of tail h](j)}(h``tail``h]j)}(hjh]htail}(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.hhMhhjubj)}(hhh]h)}(h5pointer to an unsigned int to store the value of tailh]h5pointer to an unsigned int to store the value of tail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hj;h]hn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMihj5ubj)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMihjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMihjubeh}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMkhjubh)}(hXEThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned).h](hXThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (}(hjhhhNhNubj)}(h**fifo->data**h]h fifo->data}(hjhhhNhNubah}(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.hhMjhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMqhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhjihhhNhNubh)}(hhh](j)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]jg)}(hkfifo_out_linear_ptrh]jm)}(hjh]hkfifo_out_linear_ptr}(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&]jjjjjjjjjuh1hhhhjihNhNubh)}(h'``kfifo_out_linear_ptr (fifo, ptr, n)``h]j)}(hj$h]h#kfifo_out_linear_ptr (fifo, ptr, n)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjihhubj)}(h%gets a pointer to the available data h]h)}(h$gets a pointer to the available datah]h$gets a pointer to the available data}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj:ubah}(h]h ]h"]h$]h&]uh1jhjLhMhjihhubj)}(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)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjSubj)}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjxh]hfifo}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjrubj)}(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&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubj)}(h5``ptr`` pointer to data to store the pointer to tail h](j)}(h``ptr``h]j)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj)}(hhh]h)}(h,pointer to data to store the pointer to tailh]h,pointer to data to store the pointer to tail}(hjʟhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƟhMhjǟubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƟhMhjoubj)}(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.hhMhjubj)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(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.hhMhjSubh)}(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 }(hj;hhhNhNubj)}(h**ptr**h]hptr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh with count returned).}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjSubh)}(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.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjihhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhjihhhhhKubeh}(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.}(hjhhhNhNubah}(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}(hjˠhhhNhNubah}(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 }(hjڠhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjǠhhhj٠hKubjg)}(hrelay_buf_fullh]jm)}(hrelay_buf_fullh]hrelay_buf_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjǠhhhj٠hKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE jsbc.relay_buf_fullasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjǠhhhj٠hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjàhhhj٠hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj٠hKhjhhubj)}(hhh]h)}(h$boolean, is the channel buffer full?h]h$boolean, is the channel buffer full?}(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&]uh1jhjhhhj٠hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Returns 1 if the buffer is full, 0 otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjubj)}(hhh]j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hj̡h]hstruct rchan_buf *buf}(hjΡhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʡubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjơubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(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&]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.}(hj!hhhNhNubah}(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&]uh1jhj.hKhjubeh}(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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM<ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQhhhjchM<ubjg)}(h relay_reseth]jm)}(h relay_reseth]h relay_reset}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjchM<ubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jxsb c.relay_resetasbuh1hhjubj)}(h h]h }(hjТhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjޢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjQhhhjchM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjchM<ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjchM<hjJhhubj)}(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&]uh1jhjJhhhjchM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjhNhNubj)}(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)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM@hj1ubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjVh]hstruct rchan *chan}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM=hjPubj)}(hhh]h)}(h the channelh]h the channel}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM=hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM=hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM?hj1ubj)}(hXThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect. NOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h](h)}(hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.h]hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM>hjubh)}(hiNOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h]hkNOTE. Care should be taken that the channel isn’t actually being used by anything when this call is made.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMBhjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_open (C function) c.relay_openhNtauh1hhjhhhNhNubh)}(hhh](j)}(hstruct rchan * relay_open (const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h]j)}(hstruct rchan *relay_open(const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE relay_opensb c.relay_openasbuh1hhjhhhjhMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(h relay_openh]jm)}(hj,h]h relay_open}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(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}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(h base_filenameh]h base_filename}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct dentry *parenth](j)}(hjh]hstruct}(hjƤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¤ubj)}(h h]h }(hjӤhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¤ubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN 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)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj¤ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hsize_t subbuf_sizeh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]j* c.relay_openasbuh1hhj2ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubjm)}(h subbuf_sizeh]h subbuf_size}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hsize_t n_subbufsh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j* c.relay_openasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzubjm)}(h n_subbufsh]h n_subbufs}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(h const struct rchan_callbacks *cbh](j)}(hjh]hconst}(hjƥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¥ubj)}(h h]h }(hjӥhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¥ubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¥ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¥ubh)}(hhh]jm)}(hrchan_callbacksh]hrchan_callbacks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j* c.relay_openasbuh1hhj¥ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¥ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¥ubjm)}(hcbh]hcb}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj¥ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hvoid *private_datah](j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(h private_datah]h private_data}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``const char *base_filename`` base name of files to create ``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer ``size_t subbuf_size`` size of sub-buffers ``size_t n_subbufs`` number of sub-buffers ``const struct rchan_callbacks *cb`` client callback functions ``void *private_data`` user-defined data **Description** Returns channel pointer if successful, ``NULL`` otherwise. Creates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](h)}(h**Parameters**h]j)}(hjƦh]h Parameters}(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.chMhjubj)}(hhh](j)}(h;``const char *base_filename`` base name of files to create h](j)}(h``const char *base_filename``h]j)}(hjh]hconst char *base_filename}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjߦubj)}(hhh]h)}(hbase name of files to createh]hbase name of files to create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjߦubeh}(h]h ]h"]h$]h&]uh1jhjhMhjܦubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hj7hhhNhNubj)}(h``NULL``h]hNULL}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh for root directory or buffer}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjܦubj)}(h+``size_t subbuf_size`` size of sub-buffers h](j)}(h``size_t subbuf_size``h]j)}(hjih]hsize_t subbuf_size}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjcubj)}(hhh]h)}(hsize of sub-buffersh]hsize of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhjܦubj)}(h+``size_t n_subbufs`` number of sub-buffers h](j)}(h``size_t n_subbufs``h]j)}(hjh]hsize_t n_subbufs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hhh]h)}(hnumber of sub-buffersh]hnumber of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjܦubj)}(h?``const struct rchan_callbacks *cb`` client callback functions h](j)}(h$``const struct rchan_callbacks *cb``h]j)}(hjۧh]h const struct rchan_callbacks *cb}(hjݧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٧ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjէubj)}(hhh]h)}(hclient callback functionsh]hclient callback functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjէubeh}(h]h ]h"]h$]h&]uh1jhjhMhjܦubj)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjܦubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hXReturns channel pointer if successful, ``NULL`` otherwise. Creates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](h)}(h:Returns channel pointer if successful, ``NULL`` otherwise.h](h'Returns channel pointer if successful, }(hjihhhNhNubj)}(h``NULL``h]hNULL}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh otherwise.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjeubh)}(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}(hjhhhNhNubah}(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.chMhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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}(hjԨhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjѨubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj֨modnameN classnameNjI jL )}jO ]jR )}jE relay_switch_subbufsbc.relay_switch_subbufasbuh1hhjͨhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjͨhhhjhM#ubjg)}(hrelay_switch_subbufh]jm)}(hjh]hrelay_switch_subbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjͨhhhjhM#ubj)}(h&(struct rchan_buf *buf, size_t length)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jc.relay_switch_subbufasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjzhhhNhNubah}(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&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_switch_subbufasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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&]jjuh1jhjͨhhhjhM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjɨhhhjhM#ubah}(h]jĨah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hjƨhhubj)}(hhh]h)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jhjƨhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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&]uh1jhj ubah}(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)}(hj-h]hstruct rchan_buf *buf}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM$hj'ubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM$hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM$hj$ubj)}(h(``size_t length`` size of current event h](j)}(h``size_t length``h]j)}(hjfh]h size_t length}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM%hj`ubj)}(hhh]h)}(hsize of current eventh]hsize of current event}(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$ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM&hjubh)}(hmPerforms sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.h]hmPerforms sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.}(hjʪhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM(hjubeh}(h]h ]h"]h$]h&]uh1jhjɪhM&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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMeubjg)}(hrelay_subbufs_consumedh]jm)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMeubj)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hrchanh]hrchan}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]jR )}jE j"sbc.relay_subbufs_consumedasbuh1hhj8ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(hunsigned int cpuh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjʫhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjثhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(hsize_t subbufs_consumedh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jvc.relay_subbufs_consumedasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsubbufs_consumedh]hsubbufs_consumed}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMehjhhubj)}(hhh]h)}(h.update the buffer's sub-buffers-consumed counth]h0update the buffer’s sub-buffers-consumed count}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMehjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhjhNhNubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMihjtubj)}(hhh](j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]Lh$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMfhjubj)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(hJ``unsigned int cpu`` the cpu associated with the channel buffer to update h](j)}(h``unsigned int cpu``h]j)}(hjҬh]hunsigned int cpu}(hjԬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЬubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMghj̬ubj)}(hhh]h)}(h4the cpu associated with the channel buffer to updateh]h4the cpu associated with the channel buffer to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1jhj̬ubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubj)}(hP``size_t subbufs_consumed`` number of sub-buffers to add to current buf's count h](j)}(h``size_t subbufs_consumed``h]j)}(hj h]hsize_t subbufs_consumed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhhjubj)}(hhh]h)}(h3number of sub-buffers to add to current buf's counth]h5number of sub-buffers to add to current buf’s count}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhhjubeh}(h]h ]h"]h$]h&]uh1jhjtubh)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMjhjtubj)}(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.chMihj\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’.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMmhj\ubeh}(h]h ]h"]h$]h&]uh1jhjnhMihjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_close (C function) c.relay_closehNtauh1hhjhhhNhNubh)}(hhh](j)}(h%void relay_close (struct rchan *chan)h]j)}(h$void relay_close(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(h relay_closeh]jm)}(h relay_closeh]h relay_close}(hjŭhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(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_closeasbuh1hhjݭubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjݭubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݭubjm)}(hchanh]hchan}(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}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjhNhNubj)}(h}**Parameters** ``struct rchan *chan`` the channel **Description** Closes all channel buffers and frees the channel.h](h)}(h**Parameters**h]j)}(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&]uh1jhjޮubah}(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)}(hjh]h1Closes all channel buffers and frees the channel.}(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&]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}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhS/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&]uh1jhj*hhhj<hMubjg)}(h relay_flushh]jm)}(h relay_flushh]h relay_flush}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj<hMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubh)}(hhh]jm)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jQsb c.relay_flushasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjm)}(hchanh]hchan}(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)}(hclose the channelh]hclose the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chMhj ubj)}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hj/h]hstruct rchan *chan}(hj1hhhNhNubah}(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)}(h the channelh]h the channel}(hjHhhhNhNubah}(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)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj ubj)}(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&]uh1jhjhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#relay_mmap_prepare_buf (C function)c.relay_mmap_prepare_bufhNtauh1hhjhhhNhNubh)}(hhh](j)}(hMint relay_mmap_prepare_buf (struct rchan_buf *buf, struct vm_area_desc *desc)h]j)}(hLint relay_mmap_prepare_buf(struct rchan_buf *buf, struct vm_area_desc *desc)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKKubj)}(h h]h }(hjǰhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjưhKKubjg)}(hrelay_mmap_prepare_bufh]jm)}(hrelay_mmap_prepare_bufh]hrelay_mmap_prepare_buf}(hjٰhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjհubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjưhKKubj)}(h2(struct rchan_buf *buf, struct vm_area_desc *desc)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j۰sbc.relay_mmap_prepare_bufasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vm_area_desc *desch](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(h vm_area_desch]h vm_area_desc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j/c.relay_mmap_prepare_bufasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjưhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjưhKKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjưhKKhjhhubj)}(hhh]j)}(hhh]j)}(h,mmap channel buffer to process address spaceh]h)}(hjh]h,mmap channel buffer to process address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjưhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` the relay channel buffer ``struct vm_area_desc *desc`` describing what to map **Description** Returns 0 if ok, negative on error Caller should already have grabbed mmap_lock.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKOhjubj)}(hhh](j)}(h3``struct rchan_buf *buf`` the relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hj;h]hstruct rchan_buf *buf}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKLhj5ubj)}(hhh]h)}(hthe relay channel bufferh]hthe relay channel buffer}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKLhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKLhj2ubj)}(h5``struct vm_area_desc *desc`` describing what to map h](j)}(h``struct vm_area_desc *desc``h]j)}(hjth]hstruct vm_area_desc *desc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKMhjnubj)}(hhh]h)}(hdescribing what to maph]hdescribing what to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKMhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.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}(hjɲhhhNhNubah}(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.}(hjزhhhNhNubah}(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&]uh1jhjײhKNhjubeh}(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)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hkrefh]hkref}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jR )}jE j$sbc.relay_remove_bufasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hkrefh]hkref}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hremove a channel bufferh]hremove a channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjٺjjٺjjjuh1hhhhjhNhNubj)}(hX **Parameters** ``struct kref *kref`` target kernel reference that contains the relay buffer **Description** Removes the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjݺubj)}(hhh]j)}(hM``struct kref *kref`` target kernel reference that contains the relay buffer h](j)}(h``struct kref *kref``h]j)}(hjh]hstruct kref *kref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj)}(hhh]h)}(h6target kernel reference that contains the relay bufferh]h6target kernel reference that contains the relay buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjݺubj)}(hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h]h)}(hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h]hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjSubah}(h]h ]h"]h$]h&]uh1jhjehKhjݺubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelay_buf_empty (C function)c.relay_buf_emptyhNtauh1hhjhhhNhNubh)}(hhh](j)}(h+int relay_buf_empty (struct rchan_buf *buf)h]j)}(h*int relay_buf_empty(struct rchan_buf *buf)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hrelay_buf_emptyh]jm)}(hrelay_buf_emptyh]hrelay_buf_empty}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjɻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŻubj)}(h h]h }(hjֻhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjŻubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.relay_buf_emptyasbuh1hhjŻubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjŻubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŻubjm)}(hbufh]hbuf}(hj"hhhNhNubah}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(h%boolean, is the channel buffer empty?h]h%boolean, is the channel buffer empty?}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Returns 1 if the buffer is empty, 0 otherwise.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjhubj)}(hhh]j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj)}(hhh]h)}(hchannel bufferh]hchannel buffer}(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)}(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.chKhjhubj)}(h.Returns 1 if the buffer is empty, 0 otherwise.h]h)}(hjh]h.Returns 1 if the buffer is empty, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj޼ubah}(h]h ]h"]h$]h&]uh1jhjhKhjhubeh}(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 }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj$hM ubjg)}(hwakeup_readersh]jm)}(hwakeup_readersh]hwakeup_readers}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$hM ubj)}(h(struct irq_work *work)h]j)}(hstruct irq_work *workh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hirq_workh]hirq_work}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE j9sbc.wakeup_readersasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hworkh]hwork}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubah}(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$wake up readers waiting on a channelh]h$wake up readers waiting on a channel}(hjֽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjӽhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct irq_work *work`` contains the channel buffer **Description** This is the function used to defer reader wakingh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]j)}(h6``struct irq_work *work`` contains the channel buffer h](j)}(h``struct irq_work *work``h]j)}(hjh]hstruct irq_work *work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjubj)}(hhh]h)}(hcontains the channel bufferh]hcontains the channel buffer}(hj0hhhNhNubah}(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)}(hjRh]h Description}(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.chMhjubj)}(h0This is the function used to defer reader wakingh]h)}(hjjh]h0This is the function used to defer reader waking}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhubah}(h]h ]h"]h$]h&]uh1jhjyhMhjubeh}(h]h ] kernelindentah"]h$]h&]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__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&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE relay_file_pollsbc.relay_file_pollasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj+hMubjg)}(hrelay_file_pollh]jm)}(hj(h]hrelay_file_poll}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj+hMubj)}(h%(struct file *filp, poll_table *wait)h](j)}(hstruct file *filph](j)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hfileh]hfile}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j&c.relay_file_pollasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(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 ]j&c.relay_file_pollasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hwaith]hwait}(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)}(hpoll file op for relay filesh]hpoll file op for relay files}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhjhNhNubj)}(h}**Parameters** ``struct file *filp`` the file ``poll_table *wait`` poll table **Description** Poll implemention.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjKubj)}(hhh](j)}(h``struct file *filp`` the file h](j)}(h``struct file *filp``h]j)}(hjph]hstruct file *filp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(h ``poll_table *wait`` poll table h](j)}(h``poll_table *wait``h]j)}(hjh]hpoll_table *wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(h poll tableh]h poll table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjKubj)}(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 hMhjKubeh}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hMubjg)}(hrelay_file_releaseh]jm)}(hrelay_file_releaseh]hrelay_file_release}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.relay_file_releaseasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hstruct file *filph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_file_releaseasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfilph]hfilp}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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)}(hrelease file op for relay filesh]hrelease file op for relay files}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj_hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhjhNhNubj)}(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.chMhj~ubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct file *filp`` the file h](j)}(h``struct file *filp``h]j)}(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&]uh1jhj~ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj~ubj)}(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.}(hj1hhhNhNubah}(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?hMhj~ubeh}(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}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_subbuf_availsbc.relay_file_read_subbuf_availasbuh1hhjbhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjhMrubjg)}(hrelay_file_read_subbuf_availh]jm)}(hjh]hrelay_file_read_subbuf_avail}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjhMrubj)}(h((size_t read_pos, struct rchan_buf *buf)h](j)}(hsize_t read_posh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_file_read_subbuf_availasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hread_posh]hread_pos}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.relay_file_read_subbuf_availasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbufh]hbuf}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjhMrubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjhMrubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjhMrhj[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.chMrhj~hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjhMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hj**Parameters** ``size_t read_pos`` file read position ``struct rchan_buf *buf`` relay channel bufferh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMvhjubj)}(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.chMshjubj)}(hhh]h)}(hfile read positionh]hfile read position}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(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.chMuhjubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubeh}(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}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jR )}jE relay_file_read_start_possbc.relay_file_read_start_posasbuh1hhjQhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQhhhjyhMubjg)}(hrelay_file_read_start_posh]jm)}(hjvh]hrelay_file_read_start_pos}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQhhhjyhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jtc.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&]jjuh1jhjQhhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjyhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjJhhubj)}(hhh]h)}(h%find the first available byte to readh]h%find the first available byte to read}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1hhhhjhNhNubj)}(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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjDubj)}(hhh]j)}(h/``struct rchan_buf *buf`` relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjih]hstruct rchan_buf *buf}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjcubj)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubah}(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&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjDubj)}(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&]uh1jhjhMhjDubeh}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrelay_file_read_end_posh]jm)}(hjh]hrelay_file_read_end_pos}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h6(struct rchan_buf *buf, size_t read_pos, size_t count)h](j)}(hstruct rchan_buf *bufh](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(h rchan_bufh]h rchan_buf}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jc.relay_file_read_end_posasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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 ]jc.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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.relay_file_read_end_posasbuh1hhjubj)}(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&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hreturn the new read positionh]hreturn the new read position}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhjhNhNubj)}(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)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjrubj)}(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}(hjhhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hhh]h)}(hnumber of bytes to be readh]hnumber of bytes to be read}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjrubeh}(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&]uh1hhjZhhhhhKubh)}(hhh](h)}(hKernel module auto-loadingh]hKernel module auto-loading}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__request_module (C function)c.__request_modulehNtauh1hhjkhhhNhNubh)}(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}(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)}(hfmth]hfmt}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h...h]j)}(hjh]h...}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(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&]jjjjjjjjjuh1hhhhjkhNhNubj)}(hX**Parameters** ``bool wait`` wait (or not) for the operation to complete ``const char *fmt`` printf style format string for the name of the module ``...`` arguments as specified in the format string **Description** Load a module using the user mode module loader. The function returns zero on success or a negative errno code or positive exit code from "modprobe" on failure. Note that a successful module load does not mean the module did not then unload and exit on an error of its own. Callers must check that the service they requested is now available not blindly invoke it. If module auto-loading support is disabled then this function simply returns -ENOENT.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.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)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKvhjubj)}(hhh]h)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hj?h]h...}(hjAhhhNhNubah}(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.chKwhj9ubj)}(hhh]h)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKwhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKwhjubeh}(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&]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&]uh1jhjkhhhNhNubeh}(h]kernel-module-auto-loadingah ]h"]kernel module auto-loadingah$]h&]uh1hhjZhhhhhKubh)}(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.}(hjhhhNhNubah}(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.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK)hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiH loweralphajkHhjlHj4uh1jGhjubah}(h]h ]h"]h$]h&]uh1jhjhK#hjhhubh)}(hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.h]hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.}(hjJhhhNhNubah}(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.}(hjYhhhNhNubah}(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.}(hjhhhhNhNubah}(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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhhhhhKubh)}(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@hjwhhubj)}(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&]jiHjjHjkHhjlHj4uh1jGhjubah}(h]h ]h"]h$]h&]uh1jhjhKFhjwhhubh)}(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.chKKhjwhhubh)}(hX&To help with this the dup_failed_modules allows us to track modules which failed to load due to the fact that a module was already loaded or being processed. There are only two points at which we can fail such calls, we list them below along with the number of virtual memory allocation calls:h]hX&To help with this the dup_failed_modules allows us to track modules which failed to load due to the fact that a module was already loaded or being processed. There are only two points at which we can fail such calls, we list them below along with the number of virtual memory allocation calls:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKPhjwhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKVhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls h]h)}(hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation callsh]hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKZhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiHjCjkHhjlHj4uh1jGhjubah}(h]h ]h"]h$]h&]uh1jhj*hKVhjwhhubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chK^hjwhhubeh}(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}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhhhhhKubh)}(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:}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKghjmhhubj)}(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&]j'juh1jhjhKjhjubah}(h]h ]h"]h$]h&]uh1jhjhKjhjmhhubh)}(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.chKohjmhhubj)}(hX * total_mod_size: total bytes ever used by all modules we've dealt with on this system * total_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this system * invalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure. * invalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure. * invalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: * module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present * invalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. * modcount: how many modules we've loaded in our kernel life time * failed_kreads: how many modules failed due to failed kernel_read_file_from_fd() * failed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken. * failed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it. * failed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system. h](j)}(hX * total_mod_size: total bytes ever used by all modules we've dealt with on this system * total_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this system * invalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure. * invalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure. * invalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: * module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present * invalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. h](j)}(hhh](j)}(hTtotal_mod_size: total bytes ever used by all modules we've dealt with on this systemh]h)}(hTtotal_mod_size: total bytes ever used by all modules we've dealt with on this systemh]hVtotal_mod_size: total bytes ever used by all modules we’ve dealt with on this system}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKrhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hjtotal_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this systemh]h)}(hjtotal_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this systemh]hltotal_text_size: total bytes of the .text and .init.text ELF section sizes we’ve dealt with on this system}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKthj,ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]h)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKvhjEubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.h]h)}(hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.h]hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKzhj^ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: h]h)}(hXinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because:h](hinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our }(hj{hhhNhNubj)}(h **modules**h]hmodules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubhX 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 }(hj{hhhNhNubh)}(h:c:type:`modules`h]j)}(hjh]hmodules}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjmodulesuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chK~hj{ubhX 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:}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK~hjwubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj%hKrhj 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)}(hjh]h5elf_validity_cache_copy() - some ELF validation issue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hearly_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present h](h)}(hearly_mod_check():h]hearly_mod_check():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubj)}(hhh](j)}(h blacklistingh]h)}(hjh]h blacklisting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h!failed to rewrite section headersh]h)}(hj2h]h!failed to rewrite section headers}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj0ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h version magich]h)}(hjJh]h version magic}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjHubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h(live patch requirements didn't check outh]h)}(hjbh]h*live patch requirements didn’t check out}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj`ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h1the module was detected as being already present h]h)}(h0the module was detected as being already presenth]h0the module was detected as being already present}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjxubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj)hKhjubeh}(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&]uh1jhj%hKrhjubj)}(hhh](j)}(h?modcount: how many modules we've loaded in our kernel life timeh]h)}(hjh]hAmodcount: how many modules we’ve loaded in our kernel life time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()h]h)}(hjh]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfailed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken.h]h)}(hfailed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken.h]hfailed_decompress: how many failed module decompression attempts we’ve had. These really should not happen unless your compression / decompression might be broken.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.h]h)}(hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.h]hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXfailed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system. h]h)}(hXfailed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.h]hXfailed_load_modules: how many modules failed once we’ve allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhj%hKrhjmhhubeh}(h]"module-statistics-debugfs-countersah ]h"]"module statistics debugfs countersah$]h&]uh1hhjhhhhhKubeh}(h]module-debuggingah ]h"]module debuggingah$]h&]uh1hhjZhhhhhKubh)}(hhh](h)}(hInter Module supporth]hInter Module support}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhhhhhKubh)}(h:Refer to the files in kernel/module/ for more information.h]h:Refer to the files in kernel/module/ for more information.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjkhhubeh}(h]inter-module-supportah ]h"]inter module supportah$]h&]uh1hhjZhhhhhKubeh}(h]module-supportah ]h"]module supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hHardware Interfacesh]hHardware Interfaces}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h DMA Channelsh]h DMA Channels}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrequest_dma (C function) c.request_dmahNtauh1hhjhhhNhNubh)}(hhh](j)}(hmodnameN classnameNjI jL )}jO ]jc.reallocate_resourceasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(holdh]hold}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t newsizeh](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.reallocate_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnewsizeh]hnewsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h&struct resource_constraint *constrainth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresource_constrainth]hresource_constraint}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.reallocate_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h constrainth]h constraint}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhj}hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj}hMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjdhhubj)}(hhh]h)}(hallocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.h]hallocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjhNhNubj)}(hX-**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *old`` resource descriptor desired by caller ``resource_size_t newsize`` new size of the resource descriptor ``struct resource_constraint *constraint`` the memory range and alignment constraints to be met.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjsubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.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)}(h?``struct resource *old`` resource descriptor desired by caller h](j)}(h``struct resource *old``h]j)}(hjh]hstruct resource *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``resource_size_t newsize`` new size of the resource descriptor h](j)}(h``resource_size_t newsize``h]j)}(hj h]hresource_size_t newsize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]h)}(h#new size of the resource descriptorh]h#new size of the resource descriptor}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h```struct resource_constraint *constraint`` the memory range and alignment constraints to be met.h](j)}(h*``struct resource_constraint *constraint``h]j)}(hjCh]h&struct resource_constraint *constraint}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj=ubj)}(hhh]h)}(h5the memory range and alignment constraints to be met.h]h5the memory range and alignment constraints to be met.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubeh}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlookup_resource (C function)c.lookup_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(hPstruct resource * lookup_resource (struct resource *root, resource_size_t start)h]j)}(hNstruct resource *lookup_resource(struct resource *root, resource_size_t start)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMSubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE lookup_resourcesbc.lookup_resourceasbuh1hhjhhhjhMSubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMSubjg)}(hlookup_resourceh]jm)}(hjh]hlookup_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMSubj)}(h.(struct resource *root, resource_size_t start)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jc.lookup_resourceasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.lookup_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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMSubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMShjhhubj)}(hhh]h)}(h5find an existing resource by a resource start addressh]h5find an existing resource by a resource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMShjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *root`` root resource descriptor ``resource_size_t start`` resource start address **Description** Returns a pointer to the resource if found, NULL otherwiseh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMWhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMThjubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMThj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMThjubj)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjZh]hresource_size_t start}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMUhjTubj)}(hhh]h)}(hresource start addressh]hresource start address}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMUhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMUhjubeh}(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:268: ./kernel/resource.chMWhjubh)}(h:Returns a pointer to the resource if found, NULL otherwiseh]h:Returns a pointer to the resource if found, NULL otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%insert_resource_conflict (C function)c.insert_resource_conflicthNtauh1hhjhhhNhNubh)}(hhh](j)}(hZstruct resource * insert_resource_conflict (struct resource *parent, struct resource *new)h]j)}(hXstruct resource *insert_resource_conflict(struct resource *parent, struct resource *new)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.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 insert_resource_conflictsbc.insert_resource_conflictasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hinsert_resource_conflicth]jm)}(hjh]hinsert_resource_conflict}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(hresourceh]hresource}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jc.insert_resource_conflictasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.insert_resource_conflictasbuh1hhjubj)}(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&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h%Inserts resource in the resource treeh]h%Inserts resource in the resource tree}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhjhNhNubj)}(hXT**Parameters** ``struct resource *parent`` parent of the new resource ``struct resource *new`` new resource to insert **Description** Returns 0 on success, conflict resource if the resource can't be inserted. This function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource. This function is intended for producers of resources, such as FW modules and bus drivers.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjaubj)}(hhh](j)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hjh]hstruct resource *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.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&]uh1jhjhMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjaubh)}(hJReturns 0 on success, conflict resource if the resource can't be inserted.h]hLReturns 0 on success, conflict resource if the resource can’t be inserted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjaubh)}(hXThis function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource.h]hXThis function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjaubh)}(hYThis function is intended for producers of resources, such as FW modules and bus drivers.h]hYThis function is intended for producers of resources, such as FW modules and bus drivers.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hresource_alignment (C function)c.resource_alignmenthNtauh1hhjhhhNhNubh)}(hhh](j)}(h9resource_size_t resource_alignment (struct resource *res)h]j)}(h8resource_size_t resource_alignment(struct resource *res)h](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE resource_alignmentsbc.resource_alignmentasbuh1hhjYhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYhhhjhMubjg)}(hresource_alignmenth]jm)}(hj~h]hresource_alignment}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYhhhjhMubj)}(h(struct resource *res)h]j)}(hstruct resource *resh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j|c.resource_alignmentasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hresh]hres}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjRhhubj)}(hhh]h)}(hcalculate resource's alignmenth]h calculate resource’s alignment}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *res`` resource pointer **Description** Returns alignment on success, 0 (invalid alignment) on failure.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:268: ./kernel/resource.chMhjLubj)}(hhh]j)}(h*``struct resource *res`` resource pointer h](j)}(h``struct resource *res``h]j)}(hjqh]hstruct resource *res}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjkubj)}(hhh]h)}(hresource pointerh]hresource pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjLubh)}(h?Returns alignment on success, 0 (invalid alignment) on failure.h]h?Returns alignment on success, 0 (invalid alignment) on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*release_mem_region_adjustable (C function)c.release_mem_region_adjustablehNtauh1hhjhhhNhNubh)}(hhh](j)}(hPvoid release_mem_region_adjustable (resource_size_t start, resource_size_t size)h]j)}(hOvoid release_mem_region_adjustable(resource_size_t start, resource_size_t size)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrelease_mem_region_adjustableh]jm)}(hrelease_mem_region_adjustableh]hrelease_mem_region_adjustable}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h-(resource_size_t start, resource_size_t size)h](j)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE jsbc.release_mem_region_adjustableasbuh1hhj*ubj)}(h h]h }(hjQhhhNhNubah}(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)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}modnameN classnameNjI jL )}jO ]jMc.release_mem_region_adjustableasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubjm)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(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+release a previously reserved memory regionh]h+release a previously reserved memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``resource_size_t start`` resource start address ``resource_size_t size`` resource region size **Description** This interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly. **Note** - Additional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases. - When a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh](j)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj ubj)}(hhh]h)}(hresource start addressh]hresource start address}(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.``resource_size_t size`` resource region size h](j)}(h``resource_size_t size``h]j)}(hjKh]hresource_size_t size}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjEubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj 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:268: ./kernel/resource.chMhjubh)}(hXThis interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly.h]hXThis interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly.}(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)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]h)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hWhen a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.h]h)}(hWhen a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.h]hWhen a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&merge_system_ram_resource (C function)c.merge_system_ram_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(h5void merge_system_ram_resource (struct resource *res)h]j)}(h4void merge_system_ram_resource(struct resource *res)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj,hMubjg)}(hmerge_system_ram_resourceh]jm)}(hmerge_system_ram_resourceh]hmerge_system_ram_resource}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj,hMubj)}(h(struct resource *res)h]j)}(hstruct resource *resh](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(hresourceh]hresource}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]jR )}jE jAsbc.merge_system_ram_resourceasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hresh]hres}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubah}(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]mark the System RAM resource mergeable and try to merge it with adjacent, mergeable resourcesh]h]mark the System RAM resource mergeable and try to merge it with adjacent, mergeable resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct resource *res`` resource descriptor **Description** This interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don't have any children are considered. All mergeable resources must be immutable during the request. **Note** - The caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale! - release_mem_region_adjustable() will split on demand on memory hotunplugh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]j)}(h-``struct resource *res`` resource descriptor h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj)}(hhh]h)}(hresource descriptorh]hresource descriptor}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjphhhNhNubah}(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.chM"hjubj)}(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.chM#hjubah}(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.chM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhM#hjubeh}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrequest_resourceh]jm)}(hrequest_resourceh]hrequest_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(hresourceh]hresource}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.request_resourceasbuh1hhj*ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jhc.request_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhjhNhNubj)}(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)}(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:271: ./kernel/resource.chM"hj=ubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjbh]hstruct resource *root}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj\ubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubj)}(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 hjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM"hj=ubh)}(h4Returns 0 for success, negative error code on error.h]h4Returns 0 for success, negative error code on error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM!hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrelease_resource (C function)c.release_resourcehNtauh1hhjhhhNhNubh)}(hhh](j)}(h+int release_resource (struct resource *old)h]j)}(h*int release_resource(struct resource *old)h](j )}(hinth]hint}(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 }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj)hM/ubjg)}(hrelease_resourceh]jm)}(hrelease_resourceh]hrelease_resource}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj)hM/ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(hresourceh]hresource}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jR )}jE j>sbc.release_resourceasbuh1hhjTubj)}(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&]noemphjjuh1jhjPubah}(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&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&]uh1jhjhhhj)hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(h;**Parameters** ``struct resource *old`` resource pointerh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM3hjubj)}(hhh]j)}(h)``struct resource *old`` resource pointerh](j)}(h``struct resource *old``h]j)}(hjh]hstruct resource *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hjubj)}(hhh]h)}(hresource pointerh]hresource pointer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM0hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h walk_iomem_res_desc (C function)c.walk_iomem_res_deschNtauh1hhjhhhNhNubh)}(hhh](j)}(hint walk_iomem_res_desc (unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource *, void *))h]j)}(hint walk_iomem_res_desc(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](j )}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhjhMubjg)}(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&]jjuh1jfhjrhhhjhMubj)}(hn(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](j)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(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&]noemphjjuh1jhjubj)}(h u64 starth](h)}(hhh]jm)}(hu64h]hu64}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.walk_iomem_res_descasbuh1hhjQubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(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 ]jtc.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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hargh]harg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h$int (*func)(struct resource*, void*)h](j )}(hinth]hint}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hj4h]h(}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hfunch]hfunc}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubj)}(hj4h]h)}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hj4h]h(}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jtc.walk_iomem_res_descasbuh1hhj%ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hj-5h]h,}(hjhhhNhNubah}(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)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hj4h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjkhhubj)}(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. *}(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&]uh1jhjkhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhjhNhNubj)}(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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjKubj)}(hhh](j)}(h\``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. h](j)}(h``unsigned long desc``h]j)}(hjph]hunsigned long desc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjjubj)}(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&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(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&]uh1jhjhMhjgubj)}(h``u64 start`` start addr h](j)}(h ``u64 start``h]j)}(hjh]h u64 start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.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 hMhjgubj)}(h``u64 end`` end addr h](j)}(h ``u64 end``h]j)}(hj-h]hu64 end}(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)}(hend addrh]hend addr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjgubj)}(h:``void *arg`` function argument for the callback **func** h](j)}(h ``void *arg``h]j)}(hjfh]h void *arg}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj`ubj)}(hhh]h)}(h+function argument for the callback **func**h](h#function argument for the callback }(hjhhhNhNubj)}(h**func**h]hfunc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjgubj)}(hn``int (*func)(struct resource *, void *)`` callback function that is called for each qualifying resource area h](j)}(h*``int (*func)(struct resource *, void *)``h]j)}(hjh]h&int (*func)(struct resource *, void *)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.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&]uh1jhjhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjKubh)}(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.chMhjKubh)}(h**NOTE**h]j)}(hjh]hNOTE}(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.chMhjKubh)}(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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjKubeh}(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}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMsubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjbhMsubjg)}(hregion_intersectsh]jm)}(hregion_intersectsh]hregion_intersects}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhMsubj)}(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 jwsbc.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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjthhhNhNubah}(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&]uh1jhjpubjm)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhMsubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMshjIhhubj)}(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.chMshjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMsubeh}(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.chMwhjubj)}(hhh](j)}(h/``resource_size_t start`` region start address h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMthjubj)}(hhh]h)}(hregion start addressh]hregion start address}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMthj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMthjubj)}(h``size_t size`` size of region h](j)}(h``size_t size``h]j)}(hjPh]h size_t size}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMuhjJubj)}(hhh]h)}(hsize of regionh]hsize of region}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMuhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMuhjubj)}(h>``unsigned long flags`` flags of resource (in iomem_resource) h](j)}(h``unsigned long flags``h]j)}(hjh]h@unsigned 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.chMvhjubj)}(hhh]h)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(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.chMwhjubj)}(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&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubeh}(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.chMyhjubh)}(hXCheck if the specified region partially overlaps or fully eclipses a resource identified by **flags** and **desc** (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap **flags**/**desc**, return REGION_MIXED if the region overlaps **flags**/**desc** and another resource, and return REGION_INTERSECTS if the region overlaps **flags**/**desc** and no other defined resource. Note that REGION_INTERSECTS is also returned in the case when the specified region overlaps RAM and undefined memory holes.h](h\Check if the specified region partially overlaps or fully eclipses a resource identified by }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**desc**h]hdesc}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap }(hjhhhNhNubj)}(h **flags**h]hflags}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}(hjhhhNhNubj)}(h**desc**h]hdesc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-, return REGION_MIXED if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and no other defined resource. Note that REGION_INTERSECTS is also returned in the case when the specified region overlaps RAM and undefined memory holes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMxhjubh)}(hregion_intersect() is used by memory remapping functions to ensure the user is not remapping RAM and is a vast speed up over walking through the resource table page by page.h]hregion_intersect() is used by memory remapping functions to ensure the user is not remapping RAM and is a vast speed up over walking through the resource table page by page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h find_resource_space (C function)c.find_resource_spacehNtauh1hhjhhhNhNubh)}(hhh](j)}(hint find_resource_space (struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h]j)}(hint find_resource_space(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hfind_resource_spaceh]jm)}(hfind_resource_spaceh]hfind_resource_space}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hk(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsbc.find_resource_spaceasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jXc.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&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jXc.find_resource_spaceasbuh1hhjubj)}(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&]noemphjjuh1jhjubj)}(h&struct resource_constraint *constrainth](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hresource_constrainth]hresource_constraint}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jXc.find_resource_spaceasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(h constrainth]h constraint}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h%Find empty space in the resource treeh]h%Find empty space in the resource tree}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(hX<**Parameters** ``struct resource *root`` Root resource descriptor ``struct resource *new`` Resource descriptor awaiting an empty resource space ``resource_size_t size`` The minimum size of the empty space ``struct resource_constraint *constraint`` The range and alignment constraints to be met **Description** Finds an empty space under **root** in the resource tree satisfying range and alignment **constraints**. **Return** * ``0`` - if successful, **new** members start, end, and flags are altered. * ``-EBUSY`` - if no empty space was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(h3``struct resource *root`` Root resource descriptor h](j)}(h``struct resource *root``h]j)}(hj h]hstruct resource *root}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(hRoot resource descriptorh]hRoot resource descriptor}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hN``struct resource *new`` Resource descriptor awaiting an empty resource space h](j)}(h``struct resource *new``h]j)}(hjCh]hstruct resource *new}(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.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&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubj)}(h=``resource_size_t size`` The minimum size of the empty space h](j)}(h``resource_size_t size``h]j)}(hj|h]hresource_size_t size}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjvubj)}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hY``struct resource_constraint *constraint`` The range and alignment constraints to be met h](j)}(h*``struct resource_constraint *constraint``h]j)}(hjh]h&struct resource_constraint *constraint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh]h)}(h-The range and alignment constraints to be meth]h-The range and alignment constraints to be met}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hhFinds an empty space under **root** in the resource tree satisfying range and alignment **constraints**.h](hFinds an empty space under }(hjhhhNhNubj)}(h**root**h]hroot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 in the resource tree satisfying range and alignment }(hjhhhNhNubj)}(h**constraints**h]h constraints}(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.chMhjubh)}(h **Return**h]j)}(hj;h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj)}(hhh](j)}(hQ``0`` - if successful, **new** members start, end, and flags are altered.h]h)}(hjVh](j)}(h``0``h]h0}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh - if successful, }(hjXhhhNhNubj)}(h**new**h]hnew}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh+ members start, end, and flags are altered.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjTubah}(h]h ]h"]h$]h&]uh1jhjQubj)}(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&]uh1jhjQubeh}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE jsbc.allocate_resourceasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrooth]hroot}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jOc.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 ]jOc.allocate_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hresource_size_t minh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jOc.allocate_resourceasbuh1hhj;ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubjm)}(hminh]hmin}(hjnhhhNhNubah}(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 ]jOc.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 ]jOc.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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jOc.allocate_resourceasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(halignfh]halignf}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hvoid *alignf_datah](j )}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(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&]uh1hhjhM*hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hj,h]hstruct resource *new}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM+hj&ubj)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM+hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM+hjubj)}(h8``resource_size_t size`` requested resource region size h](j)}(h``resource_size_t size``h]j)}(hjeh]hresource_size_t size}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM,hj_ubj)}(hhh]h)}(hrequested resource region sizeh]hrequested resource region size}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM,hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM,hjubj)}(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-hjubj)}(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&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(h8``resource_size_t align`` alignment requested, in bytes h](j)}(h``resource_size_t align``h]j)}(hjh]hresource_size_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM/hj ubj)}(hhh]h)}(halignment requested, in bytesh]halignment requested, in bytes}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM/hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM/hjubj)}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j)}(h``resource_alignf alignf``h]j)}(hjIh]hresource_alignf alignf}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM0hjCubj)}(hhh]h)}(h0alignment function, optional, called if not NULLh]h0alignment function, optional, called if not NULL}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM0hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM0hjubj)}(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.chM2hj|ubj)}(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.chM1hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubeh}(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 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)}(hinsert_resourceh]jm)}(hinsert_resourceh]hinsert_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hresourceh]hresource}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.insert_resourceasbuh1hhj'ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jec.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&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(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}(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&]jjjj6jj6jjjuh1hhhhjhNhNubj)}(hX(**Parameters** ``struct resource *parent`` parent of the new resource ``struct resource *new`` new resource to insert **Description** Returns 0 on success, -EBUSY if the resource can't be inserted. This function is intended for producers of resources, such as FW modules and bus drivers.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(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)}(hj_h]hstruct resource *parent}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjYubj)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(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&]uh1jhjhMhjVubeh}(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.}(hjhhhNhNubah}(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}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj5hMubjg)}(hinsert_resource_expand_to_fith]jm)}(hinsert_resource_expand_to_fith]hinsert_resource_expand_to_fit}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.insert_resource_expand_to_fitasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.insert_resource_expand_to_fitasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hj- hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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(Insert a resource into the resource treeh]h(Insert a resource into the resource tree}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjT hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo jjo jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` new resource to insert **Description** Insert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.h](h)}(h**Parameters**h]j)}(hjy h]h Parameters}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjs ubj)}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hj h]hstruct resource *root}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(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)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hj h]hstruct resource *new}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjs ubh)}(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.}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjs ubeh}(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}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjM hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj)}(h h]h }(hj` hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjM hhhj_ hMubjg)}(hremove_resourceh]jm)}(hremove_resourceh]hremove_resource}(hjr hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjM hhhj_ hMubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hresourceh]hresource}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jt sbc.remove_resourceasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(holdh]hold}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjM hhhj_ hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjI hhhj_ hMubah}(h]jD ah ](jjeh"]h$]h&]jj)jhuh1hhj_ hMhjF hhubj)}(hhh]h)}(h&Remove a resource in the resource treeh]h&Remove 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&]uh1jhjF hhhj_ hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj) jj) jjjuh1hhhhjhNhNubj)}(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)}(hj3 h]h Parameters}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1 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 resource *old`` resource to remove h](j)}(h``struct resource *old``h]j)}(hjR h]hstruct resource *old}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjL ubj)}(hhh]h)}(hresource to removeh]hresource to remove}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg hMhjh ubah}(h]h ]h"]h$]h&]uh1jhjL ubeh}(h]h ]h"]h$]h&]uh1jhjg hMhjI 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj- ubh)}(h;Returns 0 on success, -EINVAL if the resource is not valid.h]h;Returns 0 on success, -EINVAL if the resource is not valid.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj- ubh)}(hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.h]hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj- ubh)}(hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.h]hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj- ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM2ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhj hM2ubjg)}(hadjust_resourceh]jm)}(hadjust_resourceh]hadjust_resource}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM2ubj)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j)}(hstruct resource *resh](j)}(hjh]hstruct}(hj- hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj) ubj)}(h h]h }(hj: hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj) ubh)}(hhh]jm)}(hresourceh]hresource}(hjK hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjM modnameN classnameNjI jL )}jO ]jR )}jE j sbc.adjust_resourceasbuh1hhj) 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)}(hresh]hres}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj) ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj% ubj)}(hresource_size_t starth](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 ]jg c.adjust_resourceasbuh1hhj 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)}(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 ]jg c.adjust_resourceasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj% ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM2ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM2hj hhubj)}(hhh]h)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM2hj= hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjX jjX jjjuh1hhhhjhNhNubj)}(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)}(hjb h]h Parameters}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj` ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM6hj\ ubj)}(hhh](j)}(h,``struct resource *res`` resource to modify h](j)}(h``struct resource *res``h]j)}(hj h]hstruct resource *res}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM3hj{ ubj)}(hhh]h)}(hresource to modifyh]hresource to modify}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM3hj ubah}(h]h ]h"]h$]h&]uh1jhj{ ubeh}(h]h ]h"]h$]h&]uh1jhj hM3hjx ubj)}(h*``resource_size_t start`` new start value 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.chM4hj ubj)}(hhh]h)}(hnew start valueh]hnew start value}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM4hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM4hjx ubj)}(h"``resource_size_t size`` new size h](j)}(h``resource_size_t size``h]j)}(hj h]hresource_size_t size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hj ubj)}(hhh]h)}(hnew sizeh]hnew size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjx ubeh}(h]h ]h"]h$]h&]uh1jhj\ ubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM7hj\ 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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM6hj\ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__request_region (C function)c.__request_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hstruct resource * __request_region (struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h]j)}(hstruct resource *__request_region(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhV/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&]uh1jhjohhhjhM&ubh)}(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_regionasbuh1hhjohhhjhM&ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjhM&ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhM&ubjg)}(h__request_regionh]jm)}(hjh]h__request_region}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjhM&ubj)}(h`(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hstruct resource *parenth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hparenth]hparent}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhjYubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubjm)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t nh](h)}(hhh]jm)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__request_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hflagsh]hflags}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhM&ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhM&hjhhhubj)}(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.chM&hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhM&ubeh}(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.chM'hjubj)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hjubj)}(hhh]h)}(hresource start addressh]hresource start address}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hjBh]hresource_size_t n}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM)hj<ubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM)hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM)hjubj)}(h2``const char *name`` reserving caller's ID string h](j)}(h``const char *name``h]j)}(hj{h]hconst char *name}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*hjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(h``int flags`` IO resource flagsh](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM,hjubj)}(hhh]h)}(hIO resource flagsh]hIO resource flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__release_region (C function)c.__release_regionhNtauh1hhjhhhNhNubh)}(hhh](j)}(hYvoid __release_region (struct resource *parent, resource_size_t start, resource_size_t n)h]j)}(hXvoid __release_region(struct resource *parent, resource_size_t start, resource_size_t n)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMHubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMHubjg)}(h__release_regionh]jm)}(h__release_regionh]h__release_region}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhMHubj)}(hC(struct resource *parent, resource_size_t start, resource_size_t n)h](j)}(hstruct resource *parenth](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hresourceh]hresource}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.__release_regionasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(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 reftargetj modnameN classnameNjI jL )}jO ]jc.__release_regionasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMHhjhhubj)}(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.chMHhjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhjhNhNubj)}(h**Parameters** ``struct resource *parent`` parent resource descriptor ``resource_size_t start`` resource start address ``resource_size_t n`` resource region size **Description** The described resource region must match a currently busy region.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMLhjyubj)}(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.chMIhjubj)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubj)}(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.chMJhjubj)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hjh]hresource_size_t n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMKhj ubj)}(hhh]h)}(hresource region sizeh]hresource region size}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMKhjubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(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:271: ./kernel/resource.chMMhjyubh)}(hAThe described resource region must match a currently busy region.h]hAThe described resource region must match a currently busy region.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMLhjyubeh}(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.chMTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMTubjg)}(hdevm_request_resourceh]jm)}(hdevm_request_resourceh]hdevm_request_resource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMTubj)}(hA(struct device *dev, struct resource *root, struct resource *new)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.devm_request_resourceasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(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)}(hstruct resource *rooth](j)}(hjh]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 ]jc.devm_request_resourceasbuh1hhj;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&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.devm_request_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMTubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMThjhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMThj-hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhjhNhNubj)}(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)}(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.chMXhjLubj)}(hhh](j)}(h@``struct device *dev`` device for which to request the resource h](j)}(h``struct device *dev``h]j)}(hjqh]hstruct device *dev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMUhjkubj)}(hhh]h)}(h(device for which to request the resourceh]h(device for which to request the resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMUhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjhubj)}(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.chMVhjubj)}(hhh]h)}(h%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj $hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjY%jjY%jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``void **dest`` the destination for the blob ``size_t size`` the size of the blob ``gfp_t gfp`` allocation type **Description** Allocate a blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(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.chKhj]%ubj)}(hhh](j)}(h-``void **dest`` the destination for the blob h](j)}(h``void **dest``h]j)}(hj%h]h void **dest}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj|%ubj)}(hhh]h)}(hthe destination for the blobh]hthe destination for the blob}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj|%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjy%ubj)}(h%``size_t size`` the size of the blob h](j)}(h``size_t size``h]j)}(hj%h]h size_t size}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj%ubj)}(hhh]h)}(hthe size of the blobh]hthe size of the blob}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjy%ubj)}(h``gfp_t gfp`` allocation type h](j)}(h ``gfp_t gfp``h]j)}(hj%h]h gfp_t gfp}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj%ubj)}(hhh]h)}(hallocation typeh]hallocation type}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj &hKhj &ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj &hKhjy%ubeh}(h]h ]h"]h$]h&]uh1jhj]%ubh)}(h**Description**h]j)}(hj/&h]h Description}(hj1&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj]%ubh)}(h#Allocate a blob for all the modulesh]h#Allocate a blob for all the modules}(hjE&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj]%ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjT&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj]%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_cred_alloc (C function)c.lsm_cred_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h1int lsm_cred_alloc (struct cred *cred, gfp_t gfp)h]j)}(h0int lsm_cred_alloc(struct cred *cred, gfp_t gfp)h](j )}(hinth]hint}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhj&hKubjg)}(hlsm_cred_alloch]jm)}(hlsm_cred_alloch]hlsm_cred_alloc}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj&hKubj)}(h(struct cred *cred, gfp_t gfp)h](j)}(hstruct cred *credh](j)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubh)}(hhh]jm)}(hcredh]hcred}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&modnameN classnameNjI jL )}jO ]jR )}jE j&sbc.lsm_cred_allocasbuh1hhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj)}(hjh]h*}(hj 'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjm)}(hcredh]hcred}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj5'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7'modnameN classnameNjI jL )}jO ]j&c.lsm_cred_allocasbuh1hhj.'ubj)}(h h]h }(hjS'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.'ubjm)}(hgfph]hgfp}(hja'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]jv&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hKhjx&hhubj)}(hhh]h)}(hallocate a composite cred blobh]hallocate a composite cred blob}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'hhubah}(h]h ]h"]h$]h&]uh1jhjx&hhhj&hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct cred *cred`` the cred that needs a blob ``gfp_t gfp`` allocation type **Description** Allocate the cred blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubj)}(hhh](j)}(h1``struct cred *cred`` the cred that needs a blob h](j)}(h``struct cred *cred``h]j)}(hj'h]hstruct cred *cred}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubj)}(hhh]h)}(hthe cred that needs a blobh]hthe cred that needs a blob}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhj'ubj)}(h``gfp_t gfp`` allocation type h](j)}(h ``gfp_t gfp``h]j)}(hj(h]h gfp_t gfp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubj)}(hhh]h)}(hallocation typeh]hallocation type}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKhj(ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hj@(h]h Description}(hjB(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubh)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjV(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hje(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4int lsm_inode_alloc (struct inode *inode, gfp_t gfp)h]j)}(h3int lsm_inode_alloc(struct inode *inode, gfp_t gfp)h](j )}(hinth]hint}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj(hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(hhhj(hKubjg)}(hlsm_inode_alloch]jm)}(hlsm_inode_alloch]hlsm_inode_alloc}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj(hhhj(hKubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(hinodeh]hinode}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE j(sbc.lsm_inode_allocasbuh1hhj(ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjm)}(hinodeh]hinode}(hj*)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjF)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjC)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjH)modnameN classnameNjI jL )}jO ]j )c.lsm_inode_allocasbuh1hhj?)ubj)}(h h]h }(hjd)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?)ubjm)}(hgfph]hgfp}(hjr)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)}(hallocate a composite inode blobh]hallocate a composite inode blob}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct inode *inode`` the inode that needs a blob ``gfp_t gfp`` allocation flags **Description** Allocate the inode blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj)ubj)}(hhh](j)}(h4``struct inode *inode`` the inode that needs a blob h](j)}(h``struct inode *inode``h]j)}(hj)h]hstruct inode *inode}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj)ubj)}(hhh]h)}(hthe inode that needs a blobh]hthe inode that needs a blob}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj)ubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj*h]h gfp_t gfp}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj*ubj)}(hhh]h)}(hallocation flagsh]hallocation flags}(hj/*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+*hKhj,*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+*hKhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hjQ*h]h Description}(hjS*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO*ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj)ubh)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode blob for all the modules}(hjg*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj)ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjv*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_task_alloc (C function)c.lsm_task_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h-int lsm_task_alloc (struct task_struct *task)h]j)}(h,int lsm_task_alloc(struct task_struct *task)h](j )}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhj*hKubjg)}(hlsm_task_alloch]jm)}(hlsm_task_alloch]hlsm_task_alloc}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj*hKubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+modnameN classnameNjI jL )}jO ]jR )}jE j*sbc.lsm_task_allocasbuh1hhj*ubj)}(h h]h }(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&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhj*hhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hKubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhj*hKhj*hhubj)}(hhh]h)}(hallocate a composite task blobh]hallocate a composite task blob}(hje+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjb+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}+jj}+jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *task`` the task that needs a blob **Description** Allocate the task blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj+ubj)}(hhh]j)}(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.chKhj+ubj)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hKhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hKhj+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.chKhj+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.chKhj+ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h-int lsm_ipc_alloc (struct kern_ipc_perm *kip)h]j)}(h,int lsm_ipc_alloc(struct kern_ipc_perm *kip)h](j )}(hinth]hint}(hj5,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1,hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj)}(h h]h }(hjD,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1,hhhjC,hKubjg)}(h lsm_ipc_alloch]jm)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hjV,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1,hhhjC,hKubj)}(h(struct kern_ipc_perm *kip)h]j)}(hstruct kern_ipc_perm *kiph](j)}(hjh]hstruct}(hjr,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjn,ubh)}(hhh]jm)}(h 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 jX,sbc.lsm_ipc_allocasbuh1hhjn,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjn,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn,ubjm)}(hkiph]hkip}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjj,ubah}(h]h ]h"]h$]h&]jjuh1jhj1,hhhjC,hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-,hhhjC,hKubah}(h]j(,ah ](jjeh"]h$]h&]jj)jhuh1hhjC,hKhj*,hhubj)}(hhh]h)}(hallocate a composite ipc blobh]hallocate a composite ipc blob}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj,hhubah}(h]h ]h"]h$]h&]uh1jhj*,hhhjC,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj -jj -jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *kip`` the ipc that needs a blob **Description** Allocate the ipc blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj-ubj)}(hhh]j)}(h8``struct kern_ipc_perm *kip`` the ipc that needs a blob h](j)}(h``struct kern_ipc_perm *kip``h]j)}(hj6-h]hstruct kern_ipc_perm *kip}(hj8-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj0-ubj)}(hhh]h)}(hthe ipc that needs a blobh]hthe ipc that needs a blob}(hjO-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK-hKhjL-ubah}(h]h ]h"]h$]h&]uh1jhj0-ubeh}(h]h ]h"]h$]h&]uh1jhjK-hKhj--ubah}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h**Description**h]j)}(hjq-h]h Description}(hjs-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj-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.chKhj-ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_key_alloc (C function)c.lsm_key_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h#int lsm_key_alloc (struct key *key)h]j)}(h"int lsm_key_alloc(struct key *key)h](j )}(hinth]hint}(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)}(h lsm_key_alloch]jm)}(h lsm_key_alloch]h lsm_key_alloc}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj-hMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hkeyh]hkey}(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_key_allocasbuh1hhj-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)}(hkeyh]hkey}(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)}(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&]uh1jhj-hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct key *key`` the key that needs a blob **Description** Allocate the key blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.ubj)}(hhh]j)}(h.``struct key *key`` the key that needs a blob h](j)}(h``struct key *key``h]j)}(hj.h]hstruct key *key}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj.ubj)}(hhh]h)}(hthe key that needs a blobh]hthe key 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.chM hj.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.chM hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h*int lsm_msg_msg_alloc (struct msg_msg *mp)h]j)}(h)int lsm_msg_msg_alloc(struct msg_msg *mp)h](j )}(hinth]hint}(hjU/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQ/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjd/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ/hhhjc/hMubjg)}(hlsm_msg_msg_alloch]jm)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hjv/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQ/hhhjc/hMubj)}(h(struct msg_msg *mp)h]j)}(hstruct msg_msg *mph](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(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 jx/sbc.lsm_msg_msg_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)}(hmph]hmp}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(h]h ]h"]h$]h&]jjuh1jhjQ/hhhjc/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM/hhhjc/hMubah}(h]jH/ah ](jjeh"]h$]h&]jj)jhuh1hhjc/hMhjJ/hhubj)}(hhh]h)}(h!allocate a composite msg_msg blobh]h!allocate a composite msg_msg blob}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjJ/hhhjc/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-0jj-0jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct msg_msg *mp`` the msg_msg that needs a blob **Description** Allocate the ipc blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj70h]h Parameters}(hj90hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj50ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj10ubj)}(hhh]j)}(h5``struct msg_msg *mp`` the msg_msg that needs a blob h](j)}(h``struct msg_msg *mp``h]j)}(hjV0h]hstruct msg_msg *mp}(hjX0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjP0ubj)}(hhh]h)}(hthe msg_msg that needs a blobh]hthe msg_msg that needs a blob}(hjo0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk0hMhjl0ubah}(h]h ]h"]h$]h&]uh1jhjP0ubeh}(h]h ]h"]h$]h&]uh1jhjk0hMhjM0ubah}(h]h ]h"]h$]h&]uh1jhj10ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj10ubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj10ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj10ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.int lsm_bdev_alloc (struct block_device *bdev)h]j)}(h-int lsm_bdev_alloc(struct block_device *bdev)h](j )}(hinth]hint}(hj0hhhNhNubah}(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 }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhj0hM"ubjg)}(hlsm_bdev_alloch]jm)}(hlsm_bdev_alloch]hlsm_bdev_alloc}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhj0hM"ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hj"1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj/1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj@1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjB1modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.lsm_bdev_allocasbuh1hhj1ubj)}(h h]h }(hj`1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjn1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hbdevh]hbdev}(hj{1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hM"ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hM"hj0hhubj)}(hhh]h)}(h&allocate a composite block_device blobh]h&allocate a composite block_device blob}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct block_device *bdev`` the block_device that needs a blob **Description** Allocate the block_device blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hj1ubj)}(hhh]j)}(hA``struct block_device *bdev`` the block_device that needs a blob h](j)}(h``struct block_device *bdev``h]j)}(hj1h]hstruct block_device *bdev}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hj1ubj)}(hhh]h)}(h"the block_device that needs a blobh]h"the block_device that needs a blob}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM#hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM#hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hj!2h]h Description}(hj#2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hj1ubh)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device blob for all the modules}(hj72hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hj1ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjF2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bpf_map_alloc (C function)c.lsm_bpf_map_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h+int lsm_bpf_map_alloc (struct bpf_map *map)h]j)}(h*int lsm_bpf_map_alloc(struct bpf_map *map)h](j )}(hinth]hint}(hju2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjq2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjq2hhhj2hM1ubjg)}(hlsm_bpf_map_alloch]jm)}(hlsm_bpf_map_alloch]hlsm_bpf_map_alloc}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjq2hhhj2hM1ubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE j2sbc.lsm_bpf_map_allocasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hmaph]hmap}(hj 3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubah}(h]h ]h"]h$]h&]jjuh1jhjq2hhhj2hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjm2hhhj2hM1ubah}(h]jh2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hM1hjj2hhubj)}(hhh]h)}(h!allocate a composite bpf_map blobh]h!allocate a composite bpf_map blob}(hj53hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hj23hhubah}(h]h ]h"]h$]h&]uh1jhjj2hhhj2hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM3jjM3jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct bpf_map *map`` the bpf_map that needs a blob **Description** Allocate the bpf_map blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjW3h]h Parameters}(hjY3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hjQ3ubj)}(hhh]j)}(h6``struct bpf_map *map`` the bpf_map that needs a blob h](j)}(h``struct bpf_map *map``h]j)}(hjv3h]hstruct bpf_map *map}(hjx3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjp3ubj)}(hhh]h)}(hthe bpf_map that needs a blobh]hthe bpf_map that needs a blob}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM2hj3ubah}(h]h ]h"]h$]h&]uh1jhjp3ubeh}(h]h ]h"]h$]h&]uh1jhj3hM2hjm3ubah}(h]h ]h"]h$]h&]uh1jhjQ3ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjQ3ubh)}(h-Allocate the bpf_map blob for all the modulesh]h-Allocate the bpf_map blob for all the modules}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hjQ3ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hjQ3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_bpf_prog_alloc (C function)c.lsm_bpf_prog_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.int lsm_bpf_prog_alloc (struct bpf_prog *prog)h]j)}(h-int lsm_bpf_prog_alloc(struct bpf_prog *prog)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhj4hM>ubjg)}(hlsm_bpf_prog_alloch]jm)}(hlsm_bpf_prog_alloch]hlsm_bpf_prog_alloc}(hj&4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhj4hM>ubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjB4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>4ubj)}(h h]h }(hjO4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>4ubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hj`4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjb4modnameN classnameNjI jL )}jO ]jR )}jE j(4sbc.lsm_bpf_prog_allocasbuh1hhj>4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>4ubjm)}(hprogh]hprog}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:4ubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhj4hM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj4hM>ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj4hM>hj3hhubj)}(hhh]h)}(h"allocate a composite bpf_prog blobh]h"allocate a composite bpf_prog blob}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hj4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj4hM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` the bpf_prog that needs a blob **Description** Allocate the bpf_prog blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(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.chMBhj4ubj)}(hhh]j)}(h9``struct bpf_prog *prog`` the bpf_prog that needs a blob h](j)}(h``struct bpf_prog *prog``h]j)}(hj5h]hstruct bpf_prog *prog}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hj5ubj)}(hhh]h)}(hthe bpf_prog that needs a blobh]hthe bpf_prog that needs a blob}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM?hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM?hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hjA5h]h Description}(hjC5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhj4ubh)}(h.Allocate the bpf_prog blob for all the modulesh]h.Allocate the bpf_prog blob for all the modules}(hjW5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj4ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjf5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h lsm_bpf_token_alloc (C function)c.lsm_bpf_token_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h1int lsm_bpf_token_alloc (struct bpf_token *token)h]j)}(h0int lsm_bpf_token_alloc(struct bpf_token *token)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hMKubjg)}(hlsm_bpf_token_alloch]jm)}(hlsm_bpf_token_alloch]hlsm_bpf_token_alloc}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hMKubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE j5sbc.lsm_bpf_token_allocasbuh1hhj5ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(htokenh]htoken}(hj+6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hMKubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMKhj5hhubj)}(hhh]h)}(h#allocate a composite bpf_token blobh]h#allocate a composite bpf_token blob}(hjU6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjR6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjm6jjm6jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct bpf_token *token`` the bpf_token that needs a blob **Description** Allocate the bpf_token blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjw6h]h Parameters}(hjy6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjq6ubj)}(hhh]j)}(h<``struct bpf_token *token`` the bpf_token that needs a blob h](j)}(h``struct bpf_token *token``h]j)}(hj6h]hstruct bpf_token *token}(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.chMLhj6ubj)}(hhh]h)}(hthe bpf_token that needs a blobh]hthe bpf_token that needs a blob}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMLhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMLhj6ubah}(h]h ]h"]h$]h&]uh1jhjq6ubh)}(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.chMNhjq6ubh)}(h/Allocate the bpf_token blob for all the modulesh]h/Allocate the bpf_token blob for all the modules}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjq6ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjq6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h1int lsm_superblock_alloc (struct super_block *sb)h]j)}(h0int lsm_superblock_alloc(struct super_block *sb)h](j )}(hinth]hint}(hj%7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYubj)}(h h]h }(hj47hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!7hhhj37hMYubjg)}(hlsm_superblock_alloch]jm)}(hlsm_superblock_alloch]hlsm_superblock_alloc}(hjF7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!7hhhj37hMYubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hjb7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^7ubj)}(h h]h }(hjo7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^7ubh)}(hhh]jm)}(h super_blockh]h super_block}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jH7sbc.lsm_superblock_allocasbuh1hhj^7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^7ubjm)}(hsbh]hsb}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZ7ubah}(h]h ]h"]h$]h&]jjuh1jhj!7hhhj37hMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj37hMYubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj37hMYhj7hhubj)}(hhh]h)}(h$allocate a composite superblock blobh]h$allocate a composite superblock blob}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj7hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj37hMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct super_block *sb`` the superblock that needs a blob **Description** Allocate the superblock blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj8ubj)}(hhh]j)}(h<``struct super_block *sb`` the superblock that needs a blob h](j)}(h``struct super_block *sb``h]j)}(hj&8h]hstruct super_block *sb}(hj(8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhj 8ubj)}(hhh]h)}(h the superblock that needs a blobh]h the superblock that needs a blob}(hj?8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;8hMZhj<8ubah}(h]h ]h"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]uh1jhj;8hMZhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hja8h]h Description}(hjc8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj8ubh)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock blob for all the modules}(hjw8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj8ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hpint lsm_fill_user_ctx (struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h]j)}(hoint lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMgubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhj8hMgubjg)}(hlsm_fill_user_ctxh]jm)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj8hMgubj)}(hZ(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](j)}(hstruct lsm_ctx __user *uctxh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hlsm_ctxh]hlsm_ctx}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE j8sbc.lsm_fill_user_ctxasbuh1hhj8ubj)}(h h]h }(hj09hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh__user}(hj8hhhNhNubj)}(h h]h }(hjB9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjP9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(huctxh]huctx}(hj]9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(h u32 *uctx_lenh](h)}(hhh]jm)}(hu32h]hu32}(hjy9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjv9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{9modnameN classnameNjI jL )}jO ]j,9c.lsm_fill_user_ctxasbuh1hhjr9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr9ubjm)}(huctx_lenh]huctx_len}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(h void *valh](j )}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hvalh]hval}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hsize_t val_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj :ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]j,9c.lsm_fill_user_ctxasbuh1hhj :ubj)}(h h]h }(hj.:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj :ubjm)}(hval_lenh]hval_len}(hj<:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj :ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hu64 idh](h)}(hhh]jm)}(hu64h]hu64}(hjX:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjU:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZ:modnameN classnameNjI jL )}jO ]j,9c.lsm_fill_user_ctxasbuh1hhjQ:ubj)}(h h]h }(hjv:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ:ubjm)}(hidh]hid}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQ:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(h u64 flagsh](h)}(hhh]jm)}(hu64h]hu64}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj:modnameN classnameNjI jL )}jO ]j,9c.lsm_fill_user_ctxasbuh1hhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubjm)}(hflagsh]hflags}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hMgubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMghj8hhubj)}(hhh]h)}(h#Fill a user space lsm_ctx structureh]h#Fill a user space lsm_ctx structure}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghj:hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhjX"hNhNubj)}(hXy**Parameters** ``struct lsm_ctx __user *uctx`` a userspace LSM context to be filled ``u32 *uctx_len`` available uctx size (input), used uctx size (output) ``void *val`` the new LSM context value ``size_t val_len`` the size of the new LSM context value ``u64 id`` LSM id ``u64 flags`` LSM defined flags **Description** Fill all of the fields in a userspace lsm_ctx structure. If **uctx** is NULL simply calculate the required size to output via **utc_len** and return success. Returns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj;ubj)}(hhh](j)}(hE``struct lsm_ctx __user *uctx`` a userspace LSM context to be filled h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hj7;h]hstruct lsm_ctx __user *uctx}(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.chMhhj1;ubj)}(hhh]h)}(h$a userspace LSM context to be filledh]h$a userspace LSM context to be filled}(hjP;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL;hMhhjM;ubah}(h]h ]h"]h$]h&]uh1jhj1;ubeh}(h]h ]h"]h$]h&]uh1jhjL;hMhhj.;ubj)}(hG``u32 *uctx_len`` available uctx size (input), used uctx size (output) h](j)}(h``u32 *uctx_len``h]j)}(hjp;h]h u32 *uctx_len}(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.chMihjj;ubj)}(hhh]h)}(h4available uctx size (input), used uctx size (output)h]h4available uctx size (input), used uctx size (output)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMihj;ubah}(h]h ]h"]h$]h&]uh1jhjj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMihj.;ubj)}(h(``void *val`` the new LSM context value h](j)}(h ``void *val``h]j)}(hj;h]h void *val}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhj;ubj)}(hhh]h)}(hthe new LSM context valueh]hthe new LSM context value}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMjhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMjhj.;ubj)}(h9``size_t val_len`` the size of the new LSM context value h](j)}(h``size_t val_len``h]j)}(hj;h]hsize_t val_len}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj;ubj)}(hhh]h)}(h%the size of the new LSM context valueh]h%the size of the new LSM context value}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMkhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMkhj.;ubj)}(h``u64 id`` LSM id h](j)}(h ``u64 id``h]j)}(hj<h]hu64 id}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhj<ubj)}(hhh]h)}(hLSM idh]hLSM id}(hj4<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0<hMlhj1<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj0<hMlhj.;ubj)}(h ``u64 flags`` LSM defined flags h](j)}(h ``u64 flags``h]j)}(hjT<h]h u64 flags}(hjV<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjN<ubj)}(hhh]h)}(hLSM defined flagsh]hLSM defined flags}(hjm<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji<hMmhjj<ubah}(h]h ]h"]h$]h&]uh1jhjN<ubeh}(h]h ]h"]h$]h&]uh1jhji<hMmhj.;ubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]j)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohj;ubh)}(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 }(hj<hhhNhNubj)}(h**uctx**h]huctx}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh: is NULL simply calculate the required size to output via }(hj<hhhNhNubj)}(h **utc_len**h]hutc_len}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh and return success.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj;ubh)}(hReturns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can't be allocated.h]hReturns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can’t be allocated.}(hj<hhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_binder_set_context_mgr (C function)!c.security_binder_set_context_mgrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hh]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=ubj)}(hhh]j)}(hF``const struct cred *mgr`` task credentials of current binder process h](j)}(h``const struct cred *mgr``h]j)}(hj#>h]hconst struct cred *mgr}(hj%>hhhNhNubah}(h]h ]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*task credentials of current binder processh]h*task credentials of current binder process}(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)}(hBCheck whether **mgr** is allowed to be the binder context manager.h](hCheck whether }(hjt>hhhNhNubj)}(h**mgr**h]hmgr}(hj|>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt>ubh- is allowed to be the binder context manager.}(hjt>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.chMhj=ubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_binder_transaction (C function)c.security_binder_transactionhNtauh1hhjX"hhhNhNubh)}(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}(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_transactionh]jm)}(hsecurity_binder_transactionh]hsecurity_binder_transaction}(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)}(hjh]hstruct}(hj4?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjA?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(hcredh]hcred}(hjR?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjT?modnameN classnameNjI jL )}jO ]jR )}jE j>sbc.security_binder_transactionasbuh1hhj?ubj)}(h h]h }(hjr?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)}(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)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(hcredh]hcred}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?modnameN classnameNjI jL )}jO ]jn?c.security_binder_transactionasbuh1hhj?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)}(htoh]hto}(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(Check if a binder transaction is allowedh]h(Check if a binder transaction is allowed}(hjB@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&]jjjjZ@jjZ@jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process **Description** Check whether **from** is allowed to invoke a binder transaction call to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chMhj^@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.chMhj}@ubj)}(hhh]h)}(hsending processh]hsending process}(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)}(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.chMhj@ubj)}(hhh]h)}(hreceiving processh]hreceiving process}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^@ubh)}(hPCheck whether **from** is allowed to invoke a binder transaction call to **to**.h](hCheck whether }(hj AhhhNhNubj)}(h**from**h]hfrom}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubh3 is allowed to invoke a binder transaction call to }(hj AhhhNhNubj)}(h**to**h]hto}(hj'AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubh.}(hj AhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^@ubh)}(h **Return**h]j)}(hjBAh]hReturn}(hjDAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Aubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^@ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjXAhhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_binder_transfer_binder (C function)!c.security_binder_transfer_binderhNtauh1hhjX"hhhNhNubh)}(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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjAhMubjg)}(hsecurity_binder_transfer_binderh]jm)}(hsecurity_binder_transfer_binderh]hsecurity_binder_transfer_binder}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjAhMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(hcredh]hcred}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjAmodnameN classnameNjI jL )}jO ]jR )}jE jAsb!c.security_binder_transfer_binderasbuh1hhjAubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hj+BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hfromh]hfrom}(hj8BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjQBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMBubj)}(h h]h }(hj^BhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMBubj)}(hjh]hstruct}(hjlBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMBubj)}(h h]h }(hjyBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMBubh)}(hhh]jm)}(hcredh]hcred}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jB!c.security_binder_transfer_binderasbuh1hhjMBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMBubjm)}(htoh]hto}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhMubah}(h]jzAah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj|Ahhubj)}(hhh]h)}(h%Check if a binder transfer is allowedh]h%Check if a binder transfer is allowed}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj|AhhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process **Description** Check whether **from** is allowed to transfer a binder reference to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(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.chMhj Cubj)}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hj.Ch]hconst struct cred *from}(hj0ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Cubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj(Cubj)}(hhh]h)}(hsending processh]hsending process}(hjGChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCChMhjDCubah}(h]h ]h"]h$]h&]uh1jhj(Cubeh}(h]h ]h"]h$]h&]uh1jhjCChMhj%Cubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hjgCh]hconst struct cred *to}(hjiChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjaCubj)}(hhh]h)}(hreceiving processh]hreceiving process}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ChMhj}Cubah}(h]h ]h"]h$]h&]uh1jhjaCubeh}(h]h ]h"]h$]h&]uh1jhj|ChMhj%Cubeh}(h]h ]h"]h$]h&]uh1jhj Cubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj Cubh)}(hKCheck whether **from** is allowed to transfer a binder reference to **to**.h](hCheck whether }(hjChhhNhNubj)}(h**from**h]hfrom}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh. is allowed to transfer a binder reference to }(hjChhhNhNubj)}(h**to**h]hto}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj Cubh)}(h **Return**h]j)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj Cubh)}(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 Cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_binder_transfer_file (C function)c.security_binder_transfer_filehNtauh1hhjX"hhhNhNubh)}(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}(hj2DhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj.DhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjADhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.Dhhhj@DhM ubjg)}(hsecurity_binder_transfer_fileh]jm)}(hsecurity_binder_transfer_fileh]hsecurity_binder_transfer_file}(hjSDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjODubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.Dhhhj@DhM ubj)}(hI(const struct cred *from, const struct cred *to, const struct file *file)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hjoDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkDubj)}(h h]h }(hj|DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkDubj)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkDubh)}(hhh]jm)}(hcredh]hcred}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jR )}jE jUDsbc.security_binder_transfer_fileasbuh1hhjkDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkDubjm)}(hfromh]hfrom}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgDubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hj EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hj$EhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hcredh]hcred}(hj5EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2Eubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7EmodnameN classnameNjI jL )}jO ]jDc.security_binder_transfer_fileasbuh1hhjDubj)}(h h]h }(hjSEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjaEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(htoh]hto}(hjnEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgDubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(hhh]jm)}(hfileh]hfile}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jDc.security_binder_transfer_fileasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hfileh]hfile}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgDubeh}(h]h ]h"]h$]h&]jjuh1jhj.Dhhhj@DhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*Dhhhj@DhM ubah}(h]j%Dah ](jjeh"]h$]h&]jj)jhuh1hhj@DhM hj'Dhhubj)}(hhh]h)}(h&Check if a binder file xfer is allowedh]h&Check if a binder file xfer is allowed}(hj#FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj Fhhubah}(h]h ]h"]h$]h&]uh1jhj'Dhhhj@DhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;Fjj;Fjjjuh1hhhhjX"hNhNubj)}(hX'**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process ``const struct file *file`` file being transferred **Description** Check whether **from** is allowed to transfer **file** to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjEFh]h Parameters}(hjGFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?Fubj)}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjdFh]hconst struct cred *from}(hjfFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^Fubj)}(hhh]h)}(hsending processh]hsending process}(hj}FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyFhM hjzFubah}(h]h ]h"]h$]h&]uh1jhj^Fubeh}(h]h ]h"]h$]h&]uh1jhjyFhM hj[Fubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hjFh]hconst struct cred *to}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubj)}(hhh]h)}(hreceiving processh]hreceiving process}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhM hj[Fubj)}(h3``const struct file *file`` file being transferred h](j)}(h``const struct file *file``h]j)}(hjFh]hconst struct file *file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFubj)}(hhh]h)}(hfile being transferredh]hfile being transferred}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj[Fubeh}(h]h ]h"]h$]h&]uh1jhj?Fubh)}(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.chMhj?Fubh)}(hACheck whether **from** is allowed to transfer **file** to **to**.h](hCheck whether }(hj'GhhhNhNubj)}(h**from**h]hfrom}(hj/GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Gubh is allowed to transfer }(hj'GhhhNhNubj)}(h**file**h]hfile}(hjAGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Gubh to }(hj'GhhhNhNubj)}(h**to**h]hto}(hjSGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Gubh.}(hj'GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?Fubh)}(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.chMhj?Fubh)}(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.chMhj?Fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_ptrace_access_check (C function)c.security_ptrace_access_checkhNtauh1hhjX"hhhNhNubh)}(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}(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_ptrace_access_checkh]jm)}(hsecurity_ptrace_access_checkh]hsecurity_ptrace_access_check}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjGhMubj)}(h.(struct task_struct *child, unsigned int mode)h](j)}(hstruct task_struct *childh](j)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(h task_structh]h task_struct}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.security_ptrace_access_checkasbuh1hhjGubj)}(h h]h }(hj.HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjIh]hunsigned int mode}(hj@IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhjMubj)}(hhh]h)}(htarget processh]htarget process}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM>hjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhM>hjMubj)}(h5``kernel_cap_t *effective`` effective capability set h](j)}(h``kernel_cap_t *effective``h]j)}(hjNh]hkernel_cap_t *effective}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjNubj)}(hhh]h)}(heffective capability seth]heffective capability set}(hj0NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,NhM?hj-Nubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhj,NhM?hjMubj)}(h9``kernel_cap_t *inheritable`` inheritable capability set h](j)}(h``kernel_cap_t *inheritable``h]j)}(hjPNh]hkernel_cap_t *inheritable}(hjRNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjJNubj)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(hjiNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeNhM@hjfNubah}(h]h ]h"]h$]h&]uh1jhjJNubeh}(h]h ]h"]h$]h&]uh1jhjeNhM@hjMubj)}(h5``kernel_cap_t *permitted`` permitted capability set h](j)}(h``kernel_cap_t *permitted``h]j)}(hjNh]hkernel_cap_t *permitted}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjNubj)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMAhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMAhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubh)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjMubh)}(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 }(hjNhhhNhNubj)}(h **effective**h]h effective}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh, }(hjNhhhNhNubj)}(h**inheritable**h]h inheritable}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh, and }(hjNhhhNhNubj)}(h **permitted**h]h permitted}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh capability sets for the }(hjNhhhNhNubj)}(h **target**h]htarget}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hjNhhhNhNubj)}(h **target**h]htarget}(hj*OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh process.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjMubh)}(h **Return**h]j)}(hjEOh]hReturn}(hjGOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjMubh)}(h. **opts** contains options for the capable check . **Return** Returns 0 if the capability is granted.h](h)}(h**Parameters**h]j)}(hj,Vh]h Parameters}(hj.VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Vubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhj&Vubj)}(hhh](j)}(h3``const struct cred *cred`` credentials to examine h](j)}(h``const struct cred *cred``h]j)}(hjKVh]hconst struct cred *cred}(hjMVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhjEVubj)}(hhh]h)}(hcredentials to examineh]hcredentials to examine}(hjdVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`VhMjhjaVubah}(h]h ]h"]h$]h&]uh1jhjEVubeh}(h]h ]h"]h$]h&]uh1jhj`VhMjhjBVubj)}(h-``struct user_namespace *ns`` user namespace h](j)}(h``struct user_namespace *ns``h]j)}(hjVh]hstruct user_namespace *ns}(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.chMkhj~Vubj)}(hhh]h)}(huser namespaceh]huser namespace}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMkhjVubah}(h]h ]h"]h$]h&]uh1jhj~Vubeh}(h]h ]h"]h$]h&]uh1jhjVhMkhjBVubj)}(h!``int cap`` capability requested h](j)}(h ``int cap``h]j)}(hjVh]hint cap}(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.chMlhjVubj)}(hhh]h)}(hcapability requestedh]hcapability requested}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMlhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMlhjBVubj)}(h/``unsigned int opts`` capability check options h](j)}(h``unsigned int opts``h]j)}(hjVh]hunsigned int opts}(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.chMmhjVubj)}(hhh]h)}(hcapability check optionsh]hcapability check options}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj WhMmhj Wubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj WhMmhjBVubeh}(h]h ]h"]h$]h&]uh1jhj&Vubh)}(h**Description**h]j)}(hj1Wh]h Description}(hj3WhhhNhNubah}(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.chMohj&Vubh)}(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 }(hjGWhhhNhNubj)}(h**tsk**h]htsk}(hjOWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGWubh process has the }(hjGWhhhNhNubj)}(h**cap**h]hcap}(hjaWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGWubh+ capability in the indicated credentials. }(hjGWhhhNhNubj)}(h**cap**h]hcap}(hjsWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGWubh7 contains the capability . }(hjGWhhhNhNubj)}(h**opts**h]hopts}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGWubhC contains options for the capable check .}(hjGWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj&Vubh)}(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.chMrhj&Vubh)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshj&Vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quotactl (C function)c.security_quotactlhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hPint security_quotactl (int cmds, int type, int id, const struct super_block *sb)h]j)}(hOint security_quotactl(int cmds, int type, int id, const struct super_block *sb)h](j )}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhjWhM~ubjg)}(hsecurity_quotactlh]jm)}(hsecurity_quotactlh]hsecurity_quotactl}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhjWhM~ubj)}(h:(int cmds, int type, int id, const struct super_block *sb)h](j)}(hint cmdsh](j )}(hinth]hint}(hj"XhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hj0XhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(hcmdsh]hcmds}(hj>XhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hint typeh](j )}(hinth]hint}(hjWXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSXubj)}(h h]h }(hjeXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSXubjm)}(htypeh]htype}(hjsXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hint idh](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(hidh]hid}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubh)}(hhh]jm)}(h super_blockh]h super_block}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jR )}jE jXsbc.security_quotactlasbuh1hhjXubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hj(YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hsbh]hsb}(hj5YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjWhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjWhM~ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjWhM~hjWhhubj)}(hhh]h)}(h4Check if a quotactl() syscall is allowed for this fsh]h4Check if a quotactl() syscall is allowed for this fs}(hj_YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hj\Yhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwYjjwYjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``int cmds`` commands ``int type`` type ``int id`` id ``const struct super_block *sb`` filesystem **Description** Check whether the quotactl syscall is allowed for this **sb**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{Yubj)}(hhh](j)}(h``int cmds`` commands h](j)}(h ``int cmds``h]j)}(hjYh]hint cmds}(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)}(hcommandsh]hcommands}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjYubj)}(h``int type`` type h](j)}(h ``int type``h]j)}(hjYh]hint type}(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)}(htypeh]htype}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjYubj)}(h``int id`` id h](j)}(h ``int id``h]j)}(hjZh]hint id}(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.chMhj Zubj)}(hhh]h)}(hidh]hid}(hj+ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ZhMhj(Zubah}(h]h ]h"]h$]h&]uh1jhj Zubeh}(h]h ]h"]h$]h&]uh1jhj'ZhMhjYubj)}(h,``const struct super_block *sb`` filesystem h](j)}(h ``const struct super_block *sb``h]j)}(hjKZh]hconst struct super_block *sb}(hjMZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEZubj)}(hhh]h)}(h filesystemh]h filesystem}(hjdZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`ZhMhjaZubah}(h]h ]h"]h$]h&]uh1jhjEZubeh}(h]h ]h"]h$]h&]uh1jhj`ZhMhjYubeh}(h]h ]h"]h$]h&]uh1jhj{Yubh)}(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{Yubh)}(h>Check whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hjZhhhNhNubj)}(h**sb**h]hsb}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{Yubh)}(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.chMhj{Yubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{Yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_quota_on (C function)c.security_quota_onhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h-int security_quota_on (struct dentry *dentry)h]j)}(h,int security_quota_on(struct dentry *dentry)h](j )}(hinth]hint}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhj[hMubjg)}(hsecurity_quota_onh]jm)}(hsecurity_quota_onh]hsecurity_quota_on}(hj%[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj![ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhj[hMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjA[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=[ubj)}(h h]h }(hjN[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=[ubh)}(hhh]jm)}(hdentryh]hdentry}(hj_[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetja[modnameN classnameNjI jL )}jO ]jR )}jE j'[sbc.security_quota_onasbuh1hhj=[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)}(hdentryh]hdentry}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9[ubah}(h]h ]h"]h$]h&]jjuh1jhj[hhhj[hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhj[hMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj[hMhjZhhubj)}(hhh]h)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct dentry *dentry`` dentry **Description** Check whether QUOTAON is allowed for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj[ubj)}(hhh]j)}(h!``struct dentry *dentry`` dentry h](j)}(h``struct dentry *dentry``h]j)}(hj\h]hstruct dentry *dentry}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj[ubj)}(hhh]h)}(hdentryh]hdentry}(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}(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[ubh)}(h0Check whether QUOTAON is allowed for **dentry**.h](h%Check whether QUOTAON is allowed for }(hjV\hhhNhNubj)}(h **dentry**h]hdentry}(hj^\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV\ubh.}(hjV\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)}(hjy\h]hReturn}(hj{\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj[ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_syslog (C function)c.security_sysloghNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hint security_syslog (int type)h]j)}(hint security_syslog(int type)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_syslogh]jm)}(hsecurity_syslogh]hsecurity_syslog}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\hhhj\hMubj)}(h (int type)h]j)}(hint typeh](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)}(htypeh]htype}(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)}(h5Check if accessing the kernel message ring is allowedh]h5Check if accessing the kernel message ring is allowed}(hjA]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&]jjjjY]jjY]jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``int type`` SYSLOG_ACTION_* type **Description** Check permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the **type** values. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chMhj]]ubj)}(hhh]j)}(h"``int type`` SYSLOG_ACTION_* 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)}(hSYSLOG_ACTION_* typeh]hSYSLOG_ACTION_* type}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj|]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjy]ubah}(h]h ]h"]h$]h&]uh1jhj]]ubh)}(h**Description**h]j)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]]ubh)}(hCheck permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the **type** values.h](hCheck permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the }(hj]hhhNhNubj)}(h**type**h]htype}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh values.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]]ubh)}(h **Return**h]j)}(hj]h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]]ubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj ^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_settime64 (C function)c.security_settime64hNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hOint security_settime64 (const struct timespec64 *ts, const struct timezone *tz)h]j)}(hNint security_settime64(const struct timespec64 *ts, const struct timezone *tz)h](j )}(hinth]hint}(hj;^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7^hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjJ^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7^hhhjI^hMubjg)}(hsecurity_settime64h]jm)}(hsecurity_settime64h]hsecurity_settime64}(hj\^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjX^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7^hhhjI^hMubj)}(h8(const struct timespec64 *ts, const struct timezone *tz)h](j)}(hconst struct timespec64 *tsh](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)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjt^ubh)}(hhh]jm)}(h timespec64h]h timespec64}(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_settime64asbuh1hhjt^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)}(htsh]hts}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjt^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjp^ubj)}(hconst struct timezone *tzh](j)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj)}(hjh]hstruct}(hj _hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj-_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(htimezoneh]htimezone}(hj>_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@_modnameN classnameNjI jL )}jO ]j^c.security_settime64asbuh1hhj_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)}(htzh]htz}(hjw_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)}(h,Check if changing the system time is allowedh]h,Check if changing the system time 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&]uh1jhj0^hhhjI^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhjX"hNhNubj)}(hX?**Parameters** ``const struct timespec64 *ts`` new time ``const struct timezone *tz`` timezone **Description** Check permission to change the system time, struct timespec64 is defined in and timezone is defined in . **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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 timespec64 *ts`` new time h](j)}(h``const struct timespec64 *ts``h]j)}(hj_h]hconst struct timespec64 *ts}(hj_hhhNhNubah}(h]h ]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 timeh]hnew time}(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 timezone *tz`` timezone h](j)}(h``const struct timezone *tz``h]j)}(hj`h]hconst struct timezone *tz}(hj`hhhNhNubah}(h]h ]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)}(htimezoneh]htimezone}(hj4`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0`hMhj1`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj0`hMhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubh)}(h**Description**h]j)}(hjV`h]h Description}(hjX`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubh)}(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 .}(hjl`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubh)}(h **Return**h]j)}(hj}`h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hCint security_vm_enough_memory_mm (struct mm_struct *mm, long pages)h]j)}(hBint security_vm_enough_memory_mm(struct mm_struct *mm, long pages)h](j )}(hinth]hint}(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_vm_enough_memory_mmh]jm)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhj`hMubj)}(h"(struct mm_struct *mm, long pages)h](j)}(hstruct mm_struct *mmh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(h mm_structh]h mm_struct}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjamodnameN classnameNjI jL )}jO ]jR )}jE j`sbc.security_vm_enough_memory_mmasbuh1hhj`ubj)}(h h]h }(hj=ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubj)}(hjh]h*}(hjKahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjm)}(hmmh]hmm}(hjXahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(h long pagesh](j )}(hlongh]hlong}(hjqahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmaubjm)}(hpagesh]hpages}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmaubeh}(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,Check if allocating a new mem map is allowedh]h,Check if allocating a new mem map is allowed}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct mm_struct *mm`` mm struct ``long pages`` number of pages **Description** Check permissions for allocating a new virtual mapping. If all LSMs return a positive value, __vm_enough_memory() will be called with cap_sys_admin set. If at least one LSM returns 0 or negative, __vm_enough_memory() will be called with cap_sys_admin cleared. **Return** Returns 0 if permission is granted by the LSM infrastructure to the caller.h](h)}(h**Parameters**h]j)}(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.chMhjaubj)}(hhh](j)}(h#``struct mm_struct *mm`` mm struct h](j)}(h``struct mm_struct *mm``h]j)}(hjah]hstruct mm_struct *mm}(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.chMhjaubj)}(hhh]h)}(h mm structh]h mm struct}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj bhMhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj bhMhjaubj)}(h``long pages`` number of pages h](j)}(h``long pages``h]j)}(hj1bh]h long pages}(hj3bhhhNhNubah}(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.chMhj+bubj)}(hhh]h)}(hnumber of pagesh]hnumber of pages}(hjJbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFbhMhjGbubah}(h]h ]h"]h$]h&]uh1jhj+bubeh}(h]h ]h"]h$]h&]uh1jhjFbhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubh)}(h**Description**h]j)}(hjlbh]h Description}(hjnbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjaubh)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjaubh)}(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.chMhjaubh)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hcred->security** properly for executing **bprm->file**, update the LSM's portion of **bprm->cred->security** to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. **bprm** contains the linux_binprm structure. If execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and **bprm** will always be dropped. This hook must not change current->cred, only **bprm->cred**. **Return** Returns 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(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.chMhjcubj)}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjch]hstruct 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.chMhjcubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(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.chMhjcubh)}(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*dhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hj2dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*dubh properly for executing }(hj*dhhhNhNubj)}(h**bprm->file**h]h bprm->file}(hjDdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*dubh , update the LSM’s portion of }(hj*dhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjVdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*dubh 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*dhhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjhdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*dubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hj*dhhhNhNubj)}(h**bprm**h]hbprm}(hjzdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*dubh% contains the linux_binprm structure.}(hj*dhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubh)}(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 }(hjdhhhNhNubj)}(h**bprm**h]hbprm}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh will always be dropped.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubh)}(h=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hjdhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubh)}(h **Return**h]j)}(hjdh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hVint security_bprm_creds_from_file (struct linux_binprm *bprm, const struct file *file)h]j)}(hUint security_bprm_creds_from_file(struct linux_binprm *bprm, const struct file *file)h](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj+ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhj*ehMubjg)}(hsecurity_bprm_creds_from_fileh]jm)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hj=ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9eubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhj*ehMubj)}(h4(struct linux_binprm *bprm, const struct file *file)h](j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjYehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUeubj)}(h h]h }(hjfehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUeubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjwehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjteubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjyemodnameN classnameNjI jL )}jO ]jR )}jE j?esbc.security_bprm_creds_from_fileasbuh1hhjUeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUeubjm)}(hbprmh]hbprm}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQeubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(hfileh]hfile}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN classnameNjI jL )}jO ]jec.security_bprm_creds_from_fileasbuh1hhjeubj)}(h h]h }(hj"fhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hj0fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hfileh]hfile}(hj=fhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQeubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhj*ehMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj*ehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhj*ehMhjehhubj)}(hhh]h)}(h'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hjgfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj*ehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct linux_binprm *bprm`` binary program information ``const struct file *file`` associated file **Description** If **file** is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update **bprm->cred** to reflect that change. This is called after finding the binary that will be executed without an interpreter. This ensures that the credentials will not be derived from a script that the binary will need to reopen, which when reopend may end up being a completely different file. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to **bprm->per_clear** any personality flags that should be cleared from current->personality. **bprm** contains the linux_binprm structure. **Return** Returns 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj)}(hhh](j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjfh]hstruct linux_binprm *bprm}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubj)}(h,``const struct file *file`` associated file h](j)}(h``const struct file *file``h]j)}(hjfh]hconst struct file *file}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj)}(hhh]h)}(hassociated fileh]hassociated file}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubeh}(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.chMhjfubh)}(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 }(hj2ghhhNhNubj)}(h**file**h]hfile}(hj:ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2gubhR is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update }(hj2ghhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjLghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2gubhX 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 }(hj2ghhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hj^ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2gubh[ to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to }(hj2ghhhNhNubj)}(h**bprm->per_clear**h]hbprm->per_clear}(hjpghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2gubhJ any personality flags that should be cleared from current->personality. }(hj2ghhhNhNubj)}(h**bprm**h]hbprm}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2gubh% contains the linux_binprm structure.}(hj2ghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h **Return**h]j)}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_bprm_check (C function)c.security_bprm_checkhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h3int security_bprm_check (struct linux_binprm *bprm)h]j)}(h2int security_bprm_check(struct linux_binprm *bprm)h](j )}(hinth]hint}(hjghhhNhNubah}(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 }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghM ubjg)}(hsecurity_bprm_checkh]jm)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghM ubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hj,hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hj=hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj?hmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.security_bprm_checkasbuh1hhjhubj)}(h h]h }(hj]hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjkhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hbprmh]hbprm}(hjxhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubah}(h]h ]h"]h$]h&]jjuh1jhjghhhjghM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghM ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghM hjghhubj)}(hhh]h)}(hMediate binary handler searchh]hMediate binary handler search}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct linux_binprm *bprm`` binary program information **Description** This hook mediates the point when a search for a binary handler will begin. It allows a check against the **bprm->cred->security** value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in **bprm**. This hook may be called multiple times during a single execve. **bprm** contains the linux_binprm structure. **Return** Returns 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubj)}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjhh]hstruct linux_binprm *bprm}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]j)}(hjih]h Description}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(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 }(hj4ihhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjReturns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hEvoid security_bprm_committing_creds (const struct linux_binprm *bprm)h]j)}(hDvoid security_bprm_committing_creds(const struct linux_binprm *bprm)h](j )}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjihhhjihMubjg)}(hsecurity_bprm_committing_credsh]jm)}(hsecurity_bprm_committing_credsh]hsecurity_bprm_committing_creds}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhjihMubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj jhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj%jhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hj6jhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3jubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8jmodnameN classnameNjI jL )}jO ]jR )}jE jisb c.security_bprm_committing_credsasbuh1hhjiubj)}(h h]h }(hjVjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjdjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hbprmh]hbprm}(hjqjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(h]h ]h"]h$]h&]jjuh1jhjihhhjihMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjihhubj)}(hhh]h)}(h)Install creds for a process during exec()h]h)Install creds for a process during exec()}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhjX"hNhNubj)}(hXg**Parameters** ``const struct linux_binprm *bprm`` binary program information **Description** Prepare to install the new security attributes of a process being transformed by an execve operation, based on the old credentials pointed to by **current->cred** and the information set in **bprm->cred** by the bprm_creds_for_exec hook. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as closing open file descriptors to which access will no longer be granted when the attributes are changed. This is called immediately before commit_creds().h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hjjubj)}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjjh]hconst struct linux_binprm *bprm}(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.chMhjjubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubh)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hjjubh)}(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-khhhNhNubj)}(h**current->cred**h]h current->cred}(hj5khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-kubh and the information set in }(hj-khhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjGkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-kubh# by the bprm_creds_for_exec hook. }(hj-khhhNhNubj)}(h**bprm**h]hbprm}(hjYkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-kubhX  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-khhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hDvoid security_bprm_committed_creds (const struct linux_binprm *bprm)h]j)}(hCvoid security_bprm_committed_creds(const struct linux_binprm *bprm)h](j )}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkhhhjkhM/ubjg)}(hsecurity_bprm_committed_credsh]jm)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkhhhjkhM/ubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(h linux_binprmh]h linux_binprm}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj lmodnameN classnameNjI jL )}jO ]jR )}jE jksbc.security_bprm_committed_credsasbuh1hhjkubj)}(h h]h }(hj(lhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hj6lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(hbprmh]hbprm}(hjClhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubah}(h]h ]h"]h$]h&]jjuh1jhjkhhhjkhM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjkhM/ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjkhM/hjkhhubj)}(hhh]h)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hjmlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjjlhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjkhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``const struct linux_binprm *bprm`` binary program information **Description** Tidy up after the installation of the new security attributes of a process being transformed by an execve operation. The new credentials have, by this point, been set to **current->cred**. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as clearing out non-inheritable signal state. This is called immediately after commit_creds().h](h)}(h**Parameters**h]j)}(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.chM3hjlubj)}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjlh]hconst struct linux_binprm *bprm}(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.chM0hjlubj)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM0hjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM0hjlubah}(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.chM2hjlubh)}(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 }(hjlhhhNhNubj)}(h**current->cred**h]h current->cred}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh. }(hjlhhhNhNubj)}(h**bprm**h]hbprm}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh 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().}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hWint security_fs_context_submount (struct fs_context *fc, struct super_block *reference)h]j)}(hVint security_fs_context_submount(struct fs_context *fc, struct super_block *reference)h](j )}(hinth]hint}(hjRmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?ubj)}(h h]h }(hjamhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNmhhhj`mhM?ubjg)}(hsecurity_fs_context_submounth]jm)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hjsmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjomubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNmhhhj`mhM?ubj)}(h6(struct fs_context *fc, struct super_block *reference)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmmodnameN classnameNjI jL )}jO ]jR )}jE jumsbc.security_fs_context_submountasbuh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(hfch]hfc}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hstruct super_block *referenceh](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(h super_blockh]h super_block}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!nmodnameN classnameNjI jL )}jO ]jmc.security_fs_context_submountasbuh1hhjmubj)}(h h]h }(hj=nhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjKnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(h referenceh]h reference}(hjXnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhjNmhhhj`mhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJmhhhj`mhM?ubah}(h]jEmah ](jjeh"]h$]h&]jj)jhuh1hhj`mhM?hjGmhhubj)}(hhh]h)}(hInitialise fc->securityh]hInitialise fc->security}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjnhhubah}(h]h ]h"]h$]h&]uh1jhjGmhhhj`mhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` new filesystem context ``struct super_block *reference`` dentry reference for submount/remount **Description** Fill out the ->security field for a new fs_context. **Return** Returns 0 on success or negative error code on failure.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjnubj)}(hhh](j)}(h1``struct fs_context *fc`` new filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjnh]hstruct fs_context *fc}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjnubj)}(hhh]h)}(hnew filesystem contexth]hnew filesystem context}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM@hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM@hjnubj)}(hH``struct super_block *reference`` dentry reference for submount/remount h](j)}(h!``struct super_block *reference``h]j)}(hjnh]hstruct super_block *reference}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjnubj)}(hhh]h)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMAhjoubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjohMAhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]j)}(hj7oh]h Description}(hj9ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5oubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjnubh)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(hjMohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjnubh)}(h **Return**h]j)}(hj^oh]hReturn}(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.chMDhjnubh)}(h7Returns 0 on success or negative error code on failure.h]h7Returns 0 on success or negative error code on failure.}(hjtohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hNint security_fs_context_dup (struct fs_context *fc, struct fs_context *src_fc)h]j)}(hMint security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc)h](j )}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjohMMubjg)}(hsecurity_fs_context_duph]jm)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjohMMubj)}(h2(struct fs_context *fc, struct fs_context *src_fc)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE josbc.security_fs_context_dupasbuh1hhjoubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hj,phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hfch]hfc}(hj9phhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hstruct fs_context *src_fch](j)}(hjh]hstruct}(hjRphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNpubj)}(h h]h }(hj_phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNpubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjpphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrpmodnameN classnameNjI jL )}jO ]jpc.security_fs_context_dupasbuh1hhjNpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNpubjm)}(hsrc_fch]hsrc_fc}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjohMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohMMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohMMhjohhubj)}(hhh]h)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` destination filesystem context ``struct fs_context *src_fc`` source filesystem context **Description** Allocate and attach a security structure to sc->security. This pointer is initialised to NULL by the caller. **fc** indicates the new filesystem context. **src_fc** indicates the original filesystem context. **Return** Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(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.chMQhjpubj)}(hhh](j)}(h9``struct fs_context *fc`` destination filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjqh]hstruct fs_context *fc}(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.chMNhjqubj)}(hhh]h)}(hdestination filesystem contexth]hdestination filesystem context}(hj-qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)qhMNhj*qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj)qhMNhj qubj)}(h8``struct fs_context *src_fc`` source filesystem context h](j)}(h``struct fs_context *src_fc``h]j)}(hjMqh]hstruct fs_context *src_fc}(hjOqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjGqubj)}(hhh]h)}(hsource filesystem contexth]hsource filesystem context}(hjfqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbqhMOhjcqubah}(h]h ]h"]h$]h&]uh1jhjGqubeh}(h]h ]h"]h$]h&]uh1jhjbqhMOhj qubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjpubh)}(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. }(hjqhhhNhNubj)}(h**fc**h]hfc}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh' indicates the new filesystem context. }(hjqhhhNhNubj)}(h **src_fc**h]hsrc_fc}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh+ indicates the original filesystem context.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjpubh)}(h **Return**h]j)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjpubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hWint security_fs_context_parse_param (struct fs_context *fc, struct fs_parameter *param)h]j)}(hVint security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param)h](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]ubj)}(h h]h }(hj'rhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrhhhj&rhM]ubjg)}(hsecurity_fs_context_parse_paramh]jm)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hj9rhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5rubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjrhhhj&rhM]ubj)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j)}(hstruct fs_context *fch](j)}(hjh]hstruct}(hjUrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQrubj)}(h h]h }(hjbrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQrubh)}(hhh]jm)}(h fs_contexth]h fs_context}(hjsrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjprubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjurmodnameN classnameNjI jL )}jO ]jR )}jE j;rsb!c.security_fs_context_parse_paramasbuh1hhjQrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQrubjm)}(hfch]hfc}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMrubj)}(hstruct fs_parameter *paramh](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(h fs_parameterh]h fs_parameter}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jr!c.security_fs_context_parse_paramasbuh1hhjrubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hparamh]hparam}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMrubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhj&rhM]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhj&rhM]ubah}(h]j rah ](jjeh"]h$]h&]jj)jhuh1hhj&rhM]hj rhhubj)}(hhh]h)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hjHshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hjEshhubah}(h]h ]h"]h$]h&]uh1jhj rhhhj&rhM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`sjj`sjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` filesystem context ``struct fs_parameter *param`` filesystem parameter **Description** Userspace provided a parameter to configure a superblock. The LSM can consume the parameter or return it to the caller for use elsewhere. **Return** If the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.h](h)}(h**Parameters**h]j)}(hjjsh]h Parameters}(hjlshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjdsubj)}(hhh](j)}(h-``struct fs_context *fc`` filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjsh]hstruct fs_context *fc}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hjsubj)}(hhh]h)}(hfilesystem contexth]hfilesystem context}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM^hjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshM^hjsubj)}(h4``struct fs_parameter *param`` filesystem parameter h](j)}(h``struct fs_parameter *param``h]j)}(hjsh]hstruct fs_parameter *param}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjsubj)}(hhh]h)}(hfilesystem parameterh]hfilesystem parameter}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM_hjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshM_hjsubeh}(h]h ]h"]h$]h&]uh1jhjdsubh)}(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.chMahjdsubh)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjdsubh)}(h **Return**h]j)}(hj$th]hReturn}(hj&thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"tubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjdsubh)}(hIf the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.h]hIf the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.}(hj:thhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjdsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_alloc (C function)c.security_sb_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.int security_sb_alloc (struct super_block *sb)h]j)}(h-int security_sb_alloc(struct super_block *sb)h](j )}(hinth]hint}(hjithhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjethhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzubj)}(h h]h }(hjxthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjethhhjwthMzubjg)}(hsecurity_sb_alloch]jm)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjethhhjwthMzubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]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 ]jR )}jE jtsbc.security_sb_allocasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hsbh]hsb}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubah}(h]h ]h"]h$]h&]jjuh1jhjethhhjwthMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjathhhjwthMzubah}(h]j\tah ](jjeh"]h$]h&]jj)jhuh1hhjwthMzhj^thhubj)}(hhh]h)}(hAllocate a super_block LSM blobh]hAllocate a super_block LSM blob}(hj)uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhj&uhhubah}(h]h ]h"]h$]h&]uh1jhj^thhhjwthMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAujjAujjjuh1hhhhjX"hNhNubj)}(hXV**Parameters** ``struct super_block *sb`` filesystem superblock **Description** Allocate and attach a security structure to the sb->s_security field. The s_security field is initialized to NULL when the structure is allocated. **sb** contains the super_block structure to be modified. **Return** Returns 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hjKuh]h Parameters}(hjMuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjEuubj)}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjjuh]hstruct super_block *sb}(hjluhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjduubj)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM{hjuubah}(h]h ]h"]h$]h&]uh1jhjduubeh}(h]h ]h"]h$]h&]uh1jhjuhM{hjauubah}(h]h ]h"]h$]h&]uh1jhjEuubh)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hjEuubh)}(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. }(hjuhhhNhNubj)}(h**sb**h]hsb}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh3 contains the super_block structure to be modified.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hjEuubh)}(h **Return**h]j)}(hjuh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEuubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_delete (C function)c.security_sb_deletehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h0void security_sb_delete (struct super_block *sb)h]j)}(h/void security_sb_delete(struct super_block *sb)h](j )}(hvoidh]hvoid}(hj#vhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj2vhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvhhhj1vhMubjg)}(hsecurity_sb_deleteh]jm)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(hjDvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@vubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhj1vhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hj`vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\vubj)}(h h]h }(hjmvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\vubh)}(hhh]jm)}(h super_blockh]h super_block}(hj~vhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{vubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE jFvsbc.security_sb_deleteasbuh1hhj\vubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\vubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\vubjm)}(hsbh]hsb}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXvubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhj1vhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhj1vhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhj1vhMhjvhhubj)}(hhh]h)}(h*Release super_block LSM associated objectsh]h*Release super_block LSM associated objects}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhj1vhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct super_block *sb`` filesystem superblock **Description** Release objects tied to a superblock (e.g. inodes). **sb** contains the super_block structure being released.h](h)}(h**Parameters**h]j)}(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)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hj$wh]hstruct super_block *sb}(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)}(hfilesystem superblockh]hfilesystem superblock}(hj=whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9whMhj:wubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhj9whMhjwubah}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hj_wh]h Description}(hjawhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]wubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvubh)}(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). }(hjuwhhhNhNubj)}(h**sb**h]hsb}(hj}whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuwubh3 contains the super_block structure being released.}(hjuwhhhNhNubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sb_free (C function)c.security_sb_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.void security_sb_free (struct super_block *sb)h]j)}(h-void security_sb_free(struct super_block *sb)h](j )}(hvoidh]hvoid}(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_sb_freeh]jm)}(hsecurity_sb_freeh]hsecurity_sb_free}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhjwhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(h super_blockh]h super_block}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jR )}jE jwsbc.security_sb_freeasbuh1hhjwubj)}(h h]h }(hj1xhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hj?xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hsbh]hsb}(hjLxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(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)}(hFree a super_block LSM blobh]hFree a super_block LSM blob}(hjvxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct super_block *sb`` filesystem superblock **Description** Deallocate and clear the sb->s_security field. **sb** contains the super_block structure to be modified.h](h)}(h**Parameters**h]j)}(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)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjxh]hstruct super_block *sb}(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)}(hfilesystem superblockh]hfilesystem superblock}(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)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubh)}(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. }(hjyhhhNhNubj)}(h**sb**h]hsb}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh3 contains the super_block structure to be modified.}(hjyhhhNhNubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h9int security_sb_kern_mount (const struct super_block *sb)h]j)}(h8int security_sb_kern_mount(const struct super_block *sb)h](j )}(hinth]hint}(hjIyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjXyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEyhhhjWyhMubjg)}(hsecurity_sb_kern_mounth]jm)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hjjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEyhhhjWyhMubj)}(h(const struct super_block *sb)h]j)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubh)}(hhh]jm)}(h super_blockh]h super_block}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE jlysbc.security_sb_kern_mountasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(hsbh]hsb}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~yubah}(h]h ]h"]h$]h&]jjuh1jhjEyhhhjWyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAyhhhjWyhMubah}(h]jyhhubj)}(hhh]h)}(h"Check if a kernel mount is allowedh]h"Check if a kernel mount is allowed}(hj$zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!zhhubah}(h]h ]h"]h$]h&]uh1jhj>yhhhjWyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_move_mount (C function)c.security_move_mounthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hRint security_move_mount (const struct path *from_path, const struct path *to_path)h]j)}(hQint security_move_mount(const struct path *from_path, const struct path *to_path)h](j )}(hinth]hint}(hjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{hhhjhMyubjg)}(hsecurity_move_mounth]jm)}(hsecurity_move_mounth]hsecurity_move_mount}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj{hhhjhMyubj)}(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)}(hjh]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}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *to_pathh](j)}(hjh]hconst}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_move_mountasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hto_pathh]hto_path}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhjhMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhMyubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMyhjthhubj)}(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.chMyhjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct path *from_path`` source mount point ``const struct path *to_path`` destination mount point **Description** Check permission before a mount is moved. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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)}(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.chMzhj ubj)}(hhh]h)}(hsource mount pointh]hsource mount point}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMzhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMzhjubj)}(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}(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{hjYubj)}(hhh]h)}(hdestination mount pointh]hdestination mount point}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM{hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM{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)Check permission before a mount is moved.h]h)Check permission before a mount is moved.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjÊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj׊hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_path_notify (C function)c.security_path_notifyhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hSint security_path_notify (const struct path *path, u64 mask, unsigned int obj_type)h]j)}(hRint security_path_notify(const struct path *path, u64 mask, unsigned int obj_type)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_notifyh]jm)}(hsecurity_path_notifyh]hsecurity_path_notify}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubj)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(hpathh]hpath}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(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&]noemphjjuh1jhj;ubj)}(hu64 maskh](h)}(hhh]jm)}(hu64h]hu64}(hjӋhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjЋubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjՋmodnameN classnameNjI jL )}jO ]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&]noemphjjuh1jhj;ubj)}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hobj_typeh]hobj_type}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h#Check if setting a watch is allowedh]h#Check if setting a watch is allowed}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hXM**Parameters** ``const struct path *path`` file path ``u64 mask`` event mask ``unsigned int obj_type`` file path type **Description** Check permissions before setting a watch on events as defined by **mask**, on an object at **path**, whose type is defined by **obj_type**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h&``const struct path *path`` file path h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h file pathh]h file path}(hjԌhhhNhNubah}(h]h ]h"]h$]h&]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&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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}(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)}(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&]uh1jhjÍubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjۍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_alloc (C function)c.security_inode_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h9int security_inode_alloc (struct inode *inode, gfp_t gfp)h]j)}(h8int security_inode_alloc(struct inode *inode, gfp_t gfp)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_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)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(hinodeh]hinode}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjgmodnameN classnameNjI jL )}jO ]jR )}jE j-sbc.security_inode_allocasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhjX"hNhNubj)}(hX1**Parameters** ``struct inode *inode`` the inode ``gfp_t gfp`` allocation flags **Description** Allocate and attach a security structure to **inode->i_security**. The i_security field is initialized to NULL when the inode structure is allocated. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj.ubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjSh]hstruct inode *inode}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubj)}(hhh]h)}(h the inodeh]h the inode}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubj)}(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&]uh1jhjhMhjJubeh}(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)}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_inode_free (C function)c.security_inode_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.void security_inode_free (struct inode *inode)h]j)}(h-void security_inode_free(struct inode *inode)h](j )}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjShMubjg)}(hsecurity_inode_freeh]jm)}(hsecurity_inode_freeh]hsecurity_inode_free}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjShMubj)}(h(struct inode *inode)h]j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.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&]noemphjjuh1jhjzubah}(h]h ]h"]h$]h&]jjuh1jhjAhhhjShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhjShMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShMhj:hhubj)}(hhh]h)}(hFree an inode's LSM blobh]hFree an inode’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct inode *inode`` the inode **Description** Release any LSM resources associated with **inode**, although due to the inode's RCU protections it is possible that the resources will not be fully released until after the current RCU grace period has elapsed. It is important for LSMs to note that despite being present in a call to security_inode_free(), **inode** may still be referenced in a VFS path walk and calls to security_inode_permission() may be made during, or after, a call to security_inode_free(). For this reason the inode->i_security field is released via a call_rcu() callback and any LSMs which need to retain inode state for use in security_inode_permission() should only release that state in the inode_free_security_rcu() LSM hook callback.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubj)}(hhh]j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjFh]hstruct inode *inode}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj@ubj)}(hhh]h)}(h the inodeh]h the inode}(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)}(hjh]h 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)}(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.chMhj!ubh)}(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.chMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hwint security_inode_init_security_anon (struct inode *inode, const struct qstr *name, const struct inode *context_inode)h]j)}(hvint security_inode_init_security_anon(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMJubjg)}(h!security_inode_init_security_anonh]jm)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMJubj)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(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 ]jR )}jE jsb#c.security_inode_init_security_anonasbuh1hhj2ubj)}(h h]h }(hjthhhNhNubah}(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&]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)}(hjh]hstruct}(hjÒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjВhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjޒubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jp#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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hinodeh]hinode}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jp#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&]jjuh1jhjhhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMJhjhhubj)}(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.chMJhj̓hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct inode *inode`` the inode ``const struct qstr *name`` the anonymous inode class ``const struct inode *context_inode`` an optional related inode **Description** Set up the incore security field for the new anonymous inode and return whether the inode creation is permitted by the security module or not. **Return** Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjubj)}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhj ubj)}(hhh]h)}(h the inodeh]h the inode}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMKhjubj)}(h6``const struct qstr *name`` the anonymous inode class h](j)}(h``const struct qstr *name``h]j)}(hjIh]hconst struct qstr *name}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjCubj)}(hhh]h)}(hthe anonymous inode classh]hthe anonymous inode class}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMLhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMLhjubj)}(h@``const struct inode *context_inode`` an optional related inode h](j)}(h%``const struct inode *context_inode``h]j)}(hjh]h!const struct inode *context_inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhj|ubj)}(hhh]h)}(han optional related inodeh]han optional related inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjubh)}(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.chMNhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjubh)}(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.chMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hNvoid security_path_post_mknod (struct mnt_idmap *idmap, struct dentry *dentry)h]j)}(hMvoid security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry)h](j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMtubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj7hMtubjg)}(hsecurity_path_post_mknodh]jm)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj7hMtubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(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 jLsbc.security_path_post_mknodasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjؕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԕubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjԕubh)}(hhh]jm)}(hdentryh]hdentry}(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%hhhj7hMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMthjhhubj)}(hhh]h)}(h-Update inode security after reg file creationh]h-Update inode security after reg file creation}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` new file **Description** Update inode security field after a regular file has been created.h](h)}(h**Parameters**h]j)}(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.chMxhjuubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjӖh]hstruct dentry *dentry}(hjՖhhhNhNubah}(h]h ]h"]h$]h&]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)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhj͖ubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubeh}(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:283: ./security/security.chMxhjuubh)}(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.chMwhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hGint security_path_rmdir (const struct path *dir, struct dentry *dentry)h]j)}(hFint security_path_rmdir(const struct path *dir, struct dentry *dentry)h](j )}(hinth]hint}(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 }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOhhhjahMubjg)}(hsecurity_path_rmdirh]jm)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjOhhhjahMubj)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjɗhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjƗubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj˗modnameN classnameNjI jL )}jO ]jR )}jE jvsbc.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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jc.security_path_rmdirasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjHhhubj)}(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&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` directory to remove **Description** Check the permission to remove a directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj˜hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``const struct path *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjߘh]hconst struct path *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݘubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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}(hj1hhhNhNubah}(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)}(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)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_path_symlink (C function)c.security_path_symlinkhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h_int security_path_symlink (const struct path *dir, struct dentry *dentry, const char *old_name)h]j)}(h^int security_path_symlink(const struct path *dir, struct dentry *dentry, const char *old_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjΙhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj͙hMubjg)}(hsecurity_path_symlinkh]jm)}(hsecurity_path_symlinkh]hsecurity_path_symlink}(hjhhhNhNubah}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_symlinkasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdirh]hdir}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jQc.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}(hjhhhNhNubah}(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*}(hj0hhhNhNubah}(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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj͙hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` symbolic link ``const char *old_name`` file pathname **Description** Check the permission to create a symbolic link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``const struct path *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjh]hconst struct path *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߛubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjۛ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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjkhhhNhNubah}(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&]uh1jhjzubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_path_link (C function)c.security_path_linkhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hiint security_path_link (struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h]j)}(hhint security_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_linkasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h old_dentryh]h old_dentry}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *new_dirh](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j8c.security_path_linkasbuh1hhjlubj)}(h h]h }(hjǝhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubj)}(hjh]h*}(hj՝hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjm)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *new_dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j8c.security_path_linkasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h new_dentryh]h new_dentry}(hjRhhhNhNubah}(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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjϜhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct dentry *old_dentry`` existing file ``const struct path *new_dir`` new parent directory ``struct dentry *new_dentry`` new link **Description** Check permission before creating a new hard link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h,``struct dentry *old_dentry`` existing file h](j)}(h``struct dentry *old_dentry``h]j)}(hjh]hstruct dentry *old_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h existing fileh]h existing file}(hj֞hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҞhMhjӞubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҞhMhjubj)}(h4``const struct path *new_dir`` new parent directory h](j)}(h``const struct path *new_dir``h]j)}(hjh]hconst struct path *new_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hnew parent directoryh]hnew parent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)ubj)}(hhh]h)}(hnew linkh]hnew link}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h;Check permission before creating a new hard link to a file.h]h;Check permission before creating a new hard link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_path_truncate (C function)c.security_path_truncatehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4int security_path_truncate (const struct path *path)h]j)}(h3int security_path_truncate(const struct path *path)h](j )}(hinth]hint}(hj֟hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjҟhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(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&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_truncateasbuh1hhjubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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ɠjjjuh1hhhhjX"hNhNubj)}(hX2**Parameters** ``const struct path *path`` file **Description** Check permission before truncating the file indicated by path. Note that truncation permissions may also be checked based on already opened files, using the security_file_truncate() hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjӠh]h Parameters}(hjՠhhhNhNubah}(h]h ]h"]h$]h&]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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj͠ubh)}(h **Return**h]j)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj͠ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj͠ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chmod (C function)c.security_path_chmodhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h?int security_path_chmod (const struct path *path, umode_t mode)h]j)}(h>int security_path_chmod(const struct path *path, umode_t mode)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_chmodh]jm)}(hsecurity_path_chmodh]hsecurity_path_chmod}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h'(const struct path *path, umode_t mode)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj֡hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҡubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjҡubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҡubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjҡubh)}(hhh]jm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]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}(hjJhhhNhNubah}(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}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN 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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h,Check if changing the file's mode is allowedh]h.Check if changing the file’s mode is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjԢjjԢjjjuh1hhhhjX"hNhNubj)}(hX6**Parameters** ``const struct path *path`` file ``umode_t mode`` new mode **Description** Check for permission to change a mode of the file **path**. The new mode is specified in **mode** which is a bitmask of constants from . **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjޢh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܢubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjآubj)}(hhh](j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``umode_t mode`` new mode h](j)}(h``umode_t mode``h]j)}(hj6h]h umode_t mode}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubj)}(hhh]h)}(hnew modeh]hnew mode}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubeh}(h]h ]h"]h$]h&]uh1jhjآubh)}(h**Description**h]j)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.chMhjآubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjآubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjңhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjآubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_path_chown (C function)c.security_path_chownhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hIint security_path_chown (const struct path *path, kuid_t uid, kgid_t gid)h]j)}(hHint security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_path_chownh]jm)}(hsecurity_path_chownh]hsecurity_path_chown}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h1(const struct path *path, kuid_t uid, kgid_t gid)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hpathh]hpath}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE j$sbc.security_path_chownasbuh1hhj:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(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&]noemphjjuh1jhj6ubj)}(h kgid_t gidh](h)}(hhh]jm)}(hkgid_th]hkgid_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_path_chownasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgidh]hgid}(hjBhhhNhNubah}(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)}(h3Check if changing the file's owner/group is allowedh]h5Check if changing the file’s owner/group is allowed}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct path *path`` file ``kuid_t uid`` file owner ``kgid_t gid`` file group **Description** Check for permission to change owner/group of a file or directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjƥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj¥hMhjåubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj¥hMhjubj)}(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.chMhjubj)}(hhh]h)}(h file ownerh]h file owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``kgid_t gid`` file group h](j)}(h``kgid_t gid``h]j)}(hjh]h kgid_t gid}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h file grouph]h file group}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_path_chroot (C function)c.security_path_chroothNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h2int security_path_chroot (const struct path *path)h]j)}(h1int security_path_chroot(const struct path *path)h](j )}(hinth]hint}(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_path_chrooth]jm)}(hsecurity_path_chrooth]hsecurity_path_chroot}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj¦hhhjԦhM(ubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hpathh]hpath}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_path_chrootasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hpathh]hpath}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj¦hhhjԦhM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjԦhM(ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԦhM(hjhhubj)}(hhh]h)}(h/Check if changing the root directory is allowedh]h/Check if changing the root directory is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԦhM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct path *path`` directory **Description** Check for permission to change root directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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&``const struct path *path`` directory h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjܧubj)}(hhh]h)}(h directoryh]h directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjܧubeh}(h]h ]h"]h$]h&]uh1jhjhM)hj٧ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h 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 for permission to change root directory.h]h.Check for permission to change root directory.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjubh)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hVvoid security_inode_post_create_tmpfile (struct mnt_idmap *idmap, struct inode *inode)h]j)}(hUvoid security_inode_post_create_tmpfile(struct mnt_idmap *idmap, struct inode *inode)h](j )}(hvoidh]hvoid}(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)}(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&]jjuh1jfhjhhhjhMIubj)}(h.(struct mnt_idmap *idmap, struct inode *inode)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjƨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¨ubj)}(h h]h }(hjӨhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¨ubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb$c.security_inode_post_create_tmpfileasbuh1hhj¨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&]noemphjjuh1jhjubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hinodeh]hinode}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]j$c.security_inode_post_create_tmpfileasbuh1hhj4ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMIubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhMIhj~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.chMIhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѩjjѩjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct inode *inode`` inode of the new tmpfile **Description** Update inode security data after a tmpfile has been created.h](h)}(h**Parameters**h]j)}(hj۩h]h Parameters}(hjݩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٩ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjթubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(h1``struct inode *inode`` inode of the new tmpfile h](j)}(h``struct inode *inode``h]j)}(hj3h]hstruct inode *inode}(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.chMKhj-ubj)}(hhh]h)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMKhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMKhjubeh}(h]h ]h"]h$]h&]uh1jhjթubh)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjթubh)}(hh]hconst char *old_name}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hj8ubj)}(hhh]h)}(hexisting filenameh]hexisting filename}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM}hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM}hjñubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.chM~hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_rmdir (C function)c.security_inode_rmdirhNtauh1hhjX"hhhNhNubh)}(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 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_rmdirh]jm)}(hsecurity_inode_rmdirh]hsecurity_inode_rmdir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h*(struct inode *dir, struct dentry *dentry)h](j)}(hstruct inode *dirh](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_rmdirasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdirh]hdir}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(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_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&]jjuh1jhjhhhjhMubeh}(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-jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` directory to be removed **Description** Check the permission to remove a directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubj)}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hjVh]hstruct inode *dir}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubj)}(hhh]h)}(hparent directoryh]hparent directory}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjMubj)}(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&]uh1jhjhMhjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(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.chMhj1ubh)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubh)}(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.chMhj1ubh)}(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.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_inode_mknod (C function)c.security_inode_mknodhNtauh1hhjX"hhhNhNubh)}(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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhjDhMubjg)}(hsecurity_inode_mknodh]jm)}(hsecurity_inode_mknodh]hsecurity_inode_mknod}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhjDhMubj)}(hC(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j)}(hstruct inode *dirh](j)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jYsbc.security_inode_mknodasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjm)}(hdirh]hdir}(hj̵hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_mknodasbuh1hhjubj)}(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&]noemphjjuh1jhjkubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZmodnameN classnameNjI jL )}jO ]jc.security_inode_mknodasbuh1hhjQubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(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&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhj+hhubj)}(hhh]h)}(h+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+hhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` new file ``umode_t mode`` new file mode ``dev_t dev`` device number **Description** Check permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hj7h]hstruct inode *dir}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubj)}(hhh]h)}(hparent directoryh]hparent directory}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjph]hstruct dentry *dentry}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjubj)}(hhh]h)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(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}(hj·hhhNhNubah}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjܷubj)}(hhh]h)}(h 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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_inode_rename (C function)c.security_inode_renamehNtauh1hhjX"hhhNhNubh)}(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)}(hjh]hstruct}(hjƸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¸ubj)}(h h]h }(hjӸhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¸ubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_renameasbuh1hhj¸ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¸ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¸ubjm)}(hold_dirh]hold_dir}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj¸ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *old_dentryh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hdentryh]hdentry}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jc.security_inode_renameasbuh1hhj4ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *new_dirh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjƹhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjùubah}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jc.security_inode_renameasbuh1hhjubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(h new_dentryh]h new_dentry}(hjohhhNhNubah}(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]j|ah ](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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX}**Parameters** ``struct inode *old_dir`` parent directory of the old file ``struct dentry *old_dentry`` the old file ``struct inode *new_dir`` parent directory of the new file ``struct dentry *new_dentry`` the new file ``unsigned int flags`` flags **Description** Check for permission to rename a file or directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h;``struct inode *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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(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)}(hjdh]hstruct dentry *old_dentry}(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 old fileh]h the old file}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj"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)}(hjh]hunsigned int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]h)}(hflagsh]hflags}(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)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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)}(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.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_readlink (C function)c.security_inode_readlinkhNtauh1hhjX"hhhNhNubh)}(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.chMubj)}(h h]h }(hjżhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjļhMubjg)}(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ļhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jټsbc.security_inode_readlinkasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjļhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjļhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjļhMhjhhubj)}(hhh]h)}(h+Check if reading a symbolic link is allowedh]h+Check if reading a symbolic link 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&]uh1jhjhhhjļhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct dentry *dentry`` link **Description** Check the permission to read the symbolic link. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``struct dentry *dentry`` link h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hlinkh]hlink}(hjнhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̽hMhjͽubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̽hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_follow_link (C function)c.security_inode_follow_linkhNtauh1hhjX"hhhNhNubh)}(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 hjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjlhMubjg)}(hsecurity_inode_follow_linkh]jm)}(hsecurity_inode_follow_linkh]hsecurity_inode_follow_link}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjlhMubj)}(h6(struct dentry *dentry, struct inode *inode, bool rcu)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_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)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(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_linkasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hinodeh]hinode}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool rcuh](j )}(hj8h]hbool}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubjm)}(hrcuh]hrcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(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)}(h-Check if following a symbolic link is allowedh]h-Check if following a symbolic link is allowed}(hj¿hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjڿjjڿjjjuh1hhhhjX"hNhNubj)}(hX>**Parameters** ``struct dentry *dentry`` link dentry ``struct inode *inode`` link inode ``bool rcu`` true if in RCU-walk mode **Description** Check permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj޿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.chMhjubj)}(hhh]h)}(h link dentryh]h link dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``struct inode *inode`` link inode h](j)}(h``struct inode *inode``h]j)}(hj<h]hstruct inode *inode}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubj)}(hhh]h)}(h link inodeh]h link inode}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(h&``bool rcu`` true if in RCU-walk mode h](j)}(h ``bool rcu``h]j)}(hjuh]hbool rcu}(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)}(htrue if in RCU-walk modeh]htrue if in RCU-walk mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj޿ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj޿ubh)}(htCheck permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable.h](hKCheck permission to follow a symbolic link when looking up a pathname. If }(hjhhhNhNubj)}(h**rcu**h]hrcu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is true, }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not stable.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_permission (C function)c.security_inode_permissionhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h=int security_inode_permission (struct inode *inode, int mask)h]j)}(h(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jysbc.security_inode_post_setattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jc.security_inode_post_setattrasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int ia_validh](j )}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubjm)}(hia_validh]hia_valid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhM2ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhM2hjKhhubj)}(hhh]h)}(h*Update the inode after a setattr operationh]h*Update the inode after a setattr operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``int ia_valid`` file attributes set **Description** Update inode security field after successful setting file attributes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hj5h]hstruct dentry *dentry}(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.chM4hj/ubj)}(hhh]h)}(hfileh]hfile}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhM4hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhM4hjubj)}(h%``int ia_valid`` file attributes set h](j)}(h``int ia_valid``h]j)}(hjnh]h int ia_valid}(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.chM5hjhubj)}(hhh]h)}(hfile attributes seth]hfile attributes set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjubh)}(hEUpdate inode security field after successful setting file attributes.h]hEUpdate inode security field after successful setting file attributes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4int security_inode_getattr (const struct path *path)h]j)}(h3int security_inode_getattr(const struct path *path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMBubjg)}(hsecurity_inode_getattrh]jm)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMBubj)}(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 }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hpathh]hpath}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfmodnameN 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&]jjuh1jhjhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMBhjhhubj)}(hhh]h)}(h+Check if getting file attributes is allowedh]h+Check if getting file attributes is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct path *path`` file **Description** Check permission before obtaining file attributes. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjubj)}(hhh]j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hj h]hconst struct path *path}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjubj)}(hhh]h)}(hfileh]hfile}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubah}(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.chMEhjubh)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjubh)}(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.chMFhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hint security_inode_setxattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]j)}(hint security_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMQubjg)}(hsecurity_inode_setxattrh]jm)}(hsecurity_inode_setxattrh]hsecurity_inode_setxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMQubj)}(hm(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_setxattrasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(hdentryh]hdentry}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j(c.security_inode_setxattrasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *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 }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hvalueh]hvalue}(hjqhhhNhNubah}(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&]jjuh1jhjhhhjhMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMQubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMQhjhhubj)}(hhh]h)}(h'Check if setting file xattrs is allowedh]h'Check if setting file xattrs is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *name`` xattr name ``const void *value`` xattr value ``size_t size`` size of xattr value ``int flags`` flags **Description** This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer. Normally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhj4ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjYh]hstruct mnt_idmap *idmap}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjSubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMRhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMRhjPubj)}(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.chMShjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjPubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjPubj)}(h"``const void *value`` xattr value h](j)}(h``const void *value``h]j)}(hjh]hconst void *value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjubj)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjPubj)}(h$``size_t size`` size of xattr value h](j)}(h``size_t size``h]j)}(hj=h]h size_t size}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhj7ubj)}(hhh]h)}(hsize of xattr valueh]hsize of xattr value}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMVhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMVhjPubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjvh]h int flags}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjpubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj4ubh)}(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.chMXhj4ubh)}(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]hj4ubh)}(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.chMghj4ubh)}(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.chMhhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hyint security_inode_set_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]j)}(hxint security_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j )}(hinth]hint}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhMubjg)}(hsecurity_inode_set_aclh]jm)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhMubj)}(h^(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(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 jasbc.security_inode_set_aclasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(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*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj )}(hcharh]hchar}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjm)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct posix_acl *kaclh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h posix_aclh]h posix_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_inode_set_aclasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkaclh]hkacl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj3hhubj)}(hhh]h)}(h&Check if setting posix acls is allowedh]h&Check if setting posix acls is allowed}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhjX"hNhNubj)}(hXZ**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name ``struct posix_acl *kacl`` acl struct **Description** Check permission before setting posix acls, the posix acls in **kacl** are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hj|h]hstruct mnt_idmap *idmap}(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)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(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.chMhj!ubj)}(hhh]h)}(h acl structh]h acl struct}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubh)}(hfCheck permission before setting posix acls, the posix acls in **kacl** are identified by **acl_name**.h](h>Check permission before setting posix acls, the posix acls in }(hjxhhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh are identified by }(hjxhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hfvoid security_inode_post_set_acl (struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]j)}(hevoid security_inode_post_set_acl(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_post_set_aclh]jm)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hE(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(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}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_post_set_aclasbuh1hhj+ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubj)}(hjh]h*}(hj{hhhNhNubah}(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)}(hjh]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 ]jic.security_inode_post_set_aclasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkaclh]hkacl}(hjUhhhNhNubah}(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)Update inode security from posix acls seth]h)Update inode security from posix acls set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct dentry *dentry`` file ``const char *acl_name`` acl name ``struct posix_acl *kacl`` acl struct **Description** Update inode security data after successfully setting posix acls on **dentry**. The posix acls in **kacl** are identified by **acl_name**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hj2h]hstruct posix_acl *kacl}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj,ubj)}(hhh]h)}(h acl structh]h acl struct}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hUpdate inode security data after successfully setting posix acls on **dentry**. The posix acls in **kacl** are identified by **acl_name**.h](hDUpdate inode security data after successfully setting posix acls on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. The posix acls in }(hjhhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(haint security_inode_get_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(h`int security_inode_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_get_aclh]jm)}(hsecurity_inode_get_aclh]hsecurity_inode_get_acl}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_inode_get_aclasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hidmaph]hidmap}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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 }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h&Check if reading posix acls is allowedh]h&Check if reading posix acls is allowed}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX$**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Check permission before getting osix acls, the posix acls are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(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.chMhj"ubj)}(hhh]h)}(hacl nameh]hacl name}(hjAhhhNhNubah}(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)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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 }(hjyhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hdint security_inode_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(hcint security_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_remove_aclh]jm)}(hsecurity_inode_remove_aclh]hsecurity_inode_remove_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_remove_aclasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jXc.security_inode_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*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h(Check if removing a posix acl is allowedh]h(Check if removing a posix acl is allowed}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX&**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Check permission before removing posix acls, the posix acls are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hj!h]hconst char *acl_name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubeh}(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)}(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 }(hjrhhhNhNubj)}(h **acl_name**h]hacl_name}(hjzhhhNhNubah}(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.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hjvoid security_inode_post_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(hivoid security_inode_post_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_post_remove_aclh]jm)}(hsecurity_inode_post_remove_aclh]hsecurity_inode_post_remove_acl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE jsb c.security_inode_post_remove_aclasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jQ 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&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hacl_nameh]hacl_name}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h)Update inode security after rm posix aclsh]h)Update inode security after rm posix acls}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX&**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Update inode security data after successfully removing posix acls on **dentry** in **idmap**. The posix acls are identified by **acl_name**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hacl nameh]hacl name}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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 }(hjkhhhNhNubj)}(h **dentry**h]hdentry}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh in }(hjkhhhNhNubj)}(h **idmap**h]hidmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh#. The posix acls are identified by }(hjkhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh.}(hjkhhhNhNubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hvvoid security_inode_post_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]j)}(huvoid security_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_post_setxattrh]jm)}(hsecurity_inode_post_setxattrh]hsecurity_inode_post_setxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hT(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj-modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_post_setxattrasbuh1hhj 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}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]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}(hj hhhNhNubah}(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&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jGc.security_inode_post_setxattrasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(hsizeh]hsize}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h+Update the inode after a setxattr operationh]h+Update the inode after a setxattr operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name ``const void *value`` xattr value ``size_t size`` xattr value size ``int flags`` flags **Description** Update inode security field after successful setxattr operation.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(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)}(hfileh]hfile}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjAh]hconst char *name}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj;ubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(h"``const void *value`` xattr value h](j)}(h``const void *value``h]j)}(hjzh]hconst void *value}(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.chMhjtubj)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``size_t size`` xattr value size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hxattr value sizeh]hxattr value size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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@Update inode security field after successful setxattr operation.h]h@Update inode security field after successful setxattr operation.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hEint security_inode_getxattr (struct dentry *dentry, const char *name)h]j)}(hDint security_inode_getxattr(struct dentry *dentry, const char *name)h](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhX/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&]uh1jhjhhhhjzhMubjg)}(hsecurity_inode_getxattrh]jm)}(hsecurity_inode_getxattrh]hsecurity_inode_getxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhhjzhMubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_getxattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hcharh]hchar}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjzhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjahhubj)}(hhh]h)}(h Check if xattr access is allowedh]h Check if xattr access is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Check permission before obtaining the extended attributes identified by **name** for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(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`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hjThhhNhNubj)}(h**name**h]hname}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh for }(hjThhhNhNubj)}(h **dentry**h]hdentry}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4int security_inode_listxattr (struct dentry *dentry)h]j)}(h3int security_inode_listxattr(struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_listxattrh]jm)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(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 }(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&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h"Check if listing xattrs is allowedh]h"Check if listing xattrs is allowed}(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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file **Description** Check permission before obtaining the list of extended attribute names for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hVCheck permission before obtaining the list of extended attribute names for **dentry**.h](hKCheck permission before obtaining the list of extended attribute names for }(hj hhhNhNubj)}(h **dentry**h]hdentry}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjCh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(haint security_inode_removexattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h]j)}(h`int security_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j )}(hinth]hint}(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_removexattrh]jm)}(hsecurity_inode_removexattrh]hsecurity_inode_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hB(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_removexattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(hdentryh]hdentry}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jc.security_inode_removexattrasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhjX"hNhNubj)}(hXU**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer. Normally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjVh]hstruct mnt_idmap *idmap}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjMubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubh)}(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}(hj!hhhNhNubah}(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.chMhj1ubh)}(hXeNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed.h]hXqNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a ‘inode_xattr_skipcap’ hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a ‘inode_xattr_skipcap’ hook, or return a 0 (the default return value), the capability check is still performed. If no ‘inode_xattr_skipcap’ hooks are registered the capability check is performed.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubh)}(h **Return**h]j)}(hjKh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj1ubh)}(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.chM#hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hNvoid security_inode_post_removexattr (struct dentry *dentry, const char *name)h]j)}(hMvoid security_inode_post_removexattr(struct dentry *dentry, const char *name)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM8ubjg)}(hsecurity_inode_post_removexattrh]jm)}(hsecurity_inode_post_removexattrh]hsecurity_inode_post_removexattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM8ubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.security_inode_post_removexattrasbuh1hhjubj)}(h h]h }(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&]uh1jhj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj )}(hcharh]hchar}(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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM8hjhhubj)}(hhh]h)}(h'Update the inode after a removexattr oph]h'Update the inode after a removexattr op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Update the inode after a successful removexattr operation.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjubj)}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(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:hj!ubj)}(hhh]h)}(h xattr nameh]h xattr 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)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjubh)}(h:Update the inode after a successful removexattr operation.h]h:Update the inode after a successful removexattr operation.}(hjxhhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_setattr (C function)c.security_inode_file_setattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hNint security_inode_file_setattr (struct dentry *dentry, struct file_kattr *fa)h]j)}(hMint security_inode_file_setattr(struct dentry *dentry, struct file_kattr *fa)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMFubjg)}(hsecurity_inode_file_setattrh]jm)}(hsecurity_inode_file_setattrh]hsecurity_inode_file_setattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMFubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_file_setattrasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdentryh]hdentry}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct file_kattr *fah](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(h file_kattrh]h file_kattr}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jc.security_inode_file_setattrasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hfah]hfa}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMFhjhhubj)}(hhh]h)}(h#check if setting fsxattr is allowedh]h#check if setting fsxattr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX4**Parameters** ``struct dentry *dentry`` file to set filesystem extended attributes on ``struct file_kattr *fa`` extended attributes to set on the inode **Description** Called when file_setattr() syscall or FS_IOC_FSSETXATTR ioctl() is called on inode **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjubj)}(hhh](j)}(hH``struct dentry *dentry`` file to set filesystem extended attributes on h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjubj)}(hhh]h)}(h-file to set filesystem extended attributes onh]h-file to set filesystem extended attributes on}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMGhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMGhjubj)}(hB``struct file_kattr *fa`` extended attributes to set on the inode h](j)}(h``struct file_kattr *fa``h]j)}(hjQh]hstruct file_kattr *fa}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjKubj)}(hhh]h)}(h'extended attributes to set on the inodeh]h'extended attributes to set on the inode}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMHhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMHhjubeh}(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.chMJhjubh)}(hRCalled when file_setattr() syscall or FS_IOC_FSSETXATTR ioctl() is called on inodeh]hRCalled when file_setattr() syscall or FS_IOC_FSSETXATTR ioctl() is called on inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_inode_file_getattr (C function)c.security_inode_file_getattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hNint security_inode_file_getattr (struct dentry *dentry, struct file_kattr *fa)h]j)}(hMint security_inode_file_getattr(struct dentry *dentry, struct file_kattr *fa)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMUubjg)}(hsecurity_inode_file_getattrh]jm)}(hsecurity_inode_file_getattrh]hsecurity_inode_file_getattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMUubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(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 ]jR )}jE jsbc.security_inode_file_getattrasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(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&]noemphjjuh1jhj-ubj)}(hstruct file_kattr *fah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h file_kattrh]h file_kattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]joc.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&]jjuh1jhjhhhjhMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMUhjhhubj)}(hhh]h)}(h&check if retrieving fsxattr is allowedh]h&check if retrieving fsxattr is allowed}(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&]uh1jhjhhhjhMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1hhhhjX"hNhNubj)}(hX.**Parameters** ``struct dentry *dentry`` file to retrieve filesystem extended attributes from ``struct file_kattr *fa`` extended attributes to get **Description** Called when file_getattr() syscall or FS_IOC_FSGETXATTR ioctl() is called on inode **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhjDubj)}(hhh](j)}(hO``struct dentry *dentry`` file to retrieve filesystem extended attributes from h](j)}(h``struct dentry *dentry``h]j)}(hjih]hstruct dentry *dentry}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjcubj)}(hhh]h)}(h4file to retrieve filesystem extended attributes fromh]h4file to retrieve filesystem extended attributes from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMVhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMVhj`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.chMWhjubj)}(hhh]h)}(hextended attributes to geth]hextended attributes to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhjDubh)}(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.chMXhjDubh)}(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[hjDubh)}(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\hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h8int security_inode_need_killpriv (struct dentry *dentry)h]j)}(h7int security_inode_need_killpriv(struct dentry *dentry)h](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjWhMdubjg)}(hsecurity_inode_need_killprivh]jm)}(hsecurity_inode_need_killprivh]hsecurity_inode_need_killpriv}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhMdubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jlsbc.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&]jjuh1jhjEhhhjWhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhMdubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMdhj>hhubj)}(hhh]h)}(h+Check if security_inode_killpriv() requiredh]h+Check if security_inode_killpriv() required}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjX"hNhNubj)}(hXw**Parameters** ``struct dentry *dentry`` associated dentry **Description** Called when an inode has been changed to determine if security_inode_killpriv() should be called. **Return** Return <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.h](h)}(h**Parameters**h]j)}(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)}(h,``struct dentry *dentry`` associated dentry h](j)}(h``struct dentry *dentry``h]j)}(hjJh]hstruct dentry *dentry}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjDubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMehj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMehjAubah}(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.chMghj%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.chMfhj%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.chMihj%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.chMjhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hLint security_inode_killpriv (struct mnt_idmap *idmap, struct dentry *dentry)h]j)}(hKint security_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMtubjg)}(hsecurity_inode_killprivh]jm)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMtubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(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 mnt_idmaph]h mnt_idmap}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_killprivasbuh1hhj*ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jhc.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&]jjuh1jhjhhhjhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMthjhhubj)}(hhh]h)}(h+The setuid bit is removed, update LSM stateh]h+The setuid bit is removed, update LSM state}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1hhhhjX"hNhNubj)}(hXq**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` associated dentry **Description** The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held. **Return** Return 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhj=ubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjbh]hstruct mnt_idmap *idmap}(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.chMuhj\ubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMuhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMuhjYubj)}(h,``struct dentry *dentry`` associated dentry h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubj)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhj=ubh)}(h}The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.Ih](hThe }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhq’s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhj=ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhj=ubh)}(hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h]hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hzint security_inode_getsecurity (struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h]j)}(hyint security_inode_getsecurity(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j )}(hinth]hint}(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_inode_getsecurityh]jm)}(hsecurity_inode_getsecurityh]hsecurity_inode_getsecurity}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjbhMubj)}(h[(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j)}(hstruct mnt_idmap *idmaph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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_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)}(hjh]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&]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*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubeh}(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}(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(Get the xattr security label of an inodeh]h(Get the xattr security label of an inode}(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&]uh1jhjIhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhjX"hNhNubj)}(hXh**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct inode *inode`` inode ``const char *name`` xattr name ``void **buffer`` security label buffer ``bool alloc`` allocation flag **Description** Retrieve a copy of the extended attribute representation of the security label associated with **name** for **inode** via **buffer**. Note that **name** is the remainder of the attribute name after the security prefix has been removed. **alloc** is used to specify if the call should return a value via the buffer or just the value length. **Return** Returns size of buffer on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h(``void **buffer`` security label buffer h](j)}(h``void **buffer``h]j)}(hjPh]h void **buffer}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjJubj)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubj)}(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.chMhjubj)}(hhh]h)}(hallocation flagh]hallocation flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubh)}(h **Return**h]j)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h"Returns size of buffer on success.h]h"Returns size of buffer on success.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hqint security_inode_setsecurity (struct inode *inode, const char *name, const void *value, size_t size, int flags)h]j)}(hpint security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j )}(hinth]hint}(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_setsecurityh]jm)}(hsecurity_inode_setsecurityh]hsecurity_inode_setsecurity}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hR(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_inode_setsecurityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj )}(hcharh]hchar}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hnameh]hname}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(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}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubjm)}(hflagsh]hflags}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(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)}(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.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX0**Parameters** ``struct inode *inode`` inode ``const char *name`` xattr name ``const void *value`` security label ``size_t size`` length of security label ``int flags`` flags **Description** Set the security label associated with **name** for **inode** from the extended attribute value **value**. **size** indicates the size of the **value** in bytes. **flags** may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that **name** is the remainder of the attribute name after the security. prefix has been removed. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``const void *value`` security label h](j)}(h``const void *value``h]j)}(hj4h]hconst void *value}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj.ubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(h)``size_t size`` length of security label h](j)}(h``size_t size``h]j)}(hjmh]h size_t size}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjgubj)}(hhh]h)}(hlength of security labelh]hlength of security label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh indicates the size of the }(hjhhhNhNubj)}(h **value**h]hvalue}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in bytes. }(hjhhhNhNubj)}(h **flags**h]hflags}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that }(hjhhhNhNubj)}(h**name**h]hname}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT is the remainder of the attribute name after the security. prefix has been removed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_inode_getlsmprop (C function)c.security_inode_getlsmprophNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hKvoid security_inode_getlsmprop (struct inode *inode, struct lsm_prop *prop)h]j)}(hJvoid security_inode_getlsmprop(struct inode *inode, struct lsm_prop *prop)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inode_getlsmproph]jm)}(hsecurity_inode_getlsmproph]hsecurity_inode_getlsmprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h,(struct inode *inode, struct lsm_prop *prop)h](j)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hinodeh]hinode}(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 }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hinodeh]hinode}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_prop *proph](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jBc.security_inode_getlsmpropasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hproph]hprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hGet an inode's LSM datah]hGet an inode’s LSM data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct inode *inode`` inode ``struct lsm_prop *prop`` lsm specific information to return **Description** Get the lsm specific information associated with the node.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hj<h]hstruct inode *inode}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubj)}(hhh]h)}(hinodeh]hinode}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h=``struct lsm_prop *prop`` lsm specific information to return h](j)}(h``struct lsm_prop *prop``h]j)}(hjuh]hstruct lsm_prop *prop}(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)}(h"lsm specific information to returnh]h"lsm specific information to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h:Get the lsm specific information associated with the node.h]h:Get the lsm specific information associated with the node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hVint security_kernfs_init_security (struct kernfs_node *kn_dir, struct kernfs_node *kn)h]j)}(hUint security_kernfs_init_security(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_kernfs_init_securityh]jm)}(hsecurity_kernfs_init_securityh]hsecurity_kernfs_init_security}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h4(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j)}(hstruct kernfs_node *kn_dirh](j)}(hjh]hstruct}(hj2hhhNhNubah}(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}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_kernfs_init_securityasbuh1hhj.ubj)}(h h]h }(hjphhhNhNubah}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h kernfs_nodeh]h kernfs_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jlc.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=jjjuh1hhhhjX"hNhNubj)}(hX/**Parameters** ``struct kernfs_node *kn_dir`` parent kernfs node ``struct kernfs_node *kn`` the kernfs node to initialize **Description** Initialize the security context of a newly created kernfs node based on its own and its parent's attributes. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAubj)}(hhh](j)}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j)}(h``struct kernfs_node *kn_dir``h]j)}(hjfh]hstruct kernfs_node *kn_dir}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubj)}(hhh]h)}(hparent kernfs nodeh]hparent kernfs node}(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)}(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&]uh1jhjAubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAubh)}(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 hjAubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAubh)}(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! hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_file_permission (C function)c.security_file_permissionhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h:int security_file_permission (struct file *file, int mask)h]j)}(h9int security_file_permission(struct file *file, int mask)h](j )}(hinth]hint}(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_file_permissionh]jm)}(hsecurity_file_permissionh]hsecurity_file_permission}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjThM* ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jisbc.security_file_permissionasbuh1hhjubj)}(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&]noemphjjuh1jhj{ubj)}(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&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThM* ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThM* ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThM* hj;hhubj)}(hhh]h)}(hCheck file permissionsh]hCheck file permissions}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* hj8hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThM* ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct file *file`` file ``int mask`` requested permissions **Description** Check file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hjWubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hj|h]hstruct file *file}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ hjvubj)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+ hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhM+ hjsubj)}(h#``int mask`` requested permissions h](j)}(h ``int mask``h]j)}(hjh]hint mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM, hjubj)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM, hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM, hjsubeh}(h]h ]h"]h$]h&]uh1jhjWubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hjWubh)}(hXCheck file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation.h]hXCheck file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM- hjWubh)}(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.chM9 hjWubh)}(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: hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_file_alloc (C function)c.security_file_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h+int security_file_alloc (struct file *file)h]j)}(h*int security_file_alloc(struct file *file)h](j )}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjjhMB ubjg)}(hsecurity_file_alloch]jm)}(hsecurity_file_alloch]hsecurity_file_alloc}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjjhMB ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_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&]jjuh1jhjXhhhjjhMB ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjjhMB ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMB hjQhhubj)}(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.chMB hjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMB ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhjX"hNhNubj)}(hX%**Parameters** ``struct file *file`` the file **Description** Allocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created. **Return** Return 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMF hj8ubj)}(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.chMC hjWubj)}(hhh]h)}(hthe fileh]hthe file}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMC hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMC 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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chME hj8ubh)}(hAllocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created.h]hAllocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hj8ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMG hj8ubh)}(h=Return 0 if the hook is successful and permission is granted.h]h=Return 0 if the hook is successful and permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMH hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_release (C function)c.security_file_releasehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.void security_file_release (struct file *file)h]j)}(h-void security_file_release(struct file *file)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMW ubjg)}(hsecurity_file_releaseh]jm)}(hsecurity_file_releaseh]hsecurity_file_release}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMW ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=ubh)}(hhh]jm)}(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_file_releaseasbuh1hhj=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&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMW ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMW ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMW hjhhubj)}(hhh]h)}(h-Perform actions before releasing the file refh]h-Perform actions before releasing the file ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMW ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Perform actions before releasing the last reference to a file.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[ hjubj)}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMX hjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMX hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMX hjubah}(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.chMZ hjubh)}(h>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hjVhhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_free (C function)c.security_file_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h+void security_file_free (struct file *file)h]j)}(h*void security_file_free(struct file *file)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMb ubjg)}(hsecurity_file_freeh]jm)}(hsecurity_file_freeh]hsecurity_file_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMb ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_file_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMb ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhMb ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhMb hjzhhubj)}(hhh]h)}(hFree a file's LSM blobh]hFree a file’s LSM blob}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hjBhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMb ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Deallocate and free any security structures stored in file->f_security.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMf hjaubj)}(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.chMc hjubj)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMc hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMc hj}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:283: ./security/security.chMe hjaubh)}(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.chMd hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_file (C function)c.security_mmap_filehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hSint security_mmap_file (struct file *file, unsigned long prot, unsigned long flags)h]j)}(hRint security_mmap_file(struct file *file, unsigned long prot, unsigned long flags)h](j )}(hinth]hint}(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)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(hfileh]hfile}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN 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&]noemphjjuh1jhj;ubj)}(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&]noemphjjuh1jhj;ubj)}(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 }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h)}(h#Check if mmap'ing a file is allowedh]h%Check if mmap’ing a file is allowed}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX0**Parameters** ``struct file *file`` file ``unsigned long prot`` protection applied by the kernel ``unsigned long flags`` flags **Description** Check permissions for a mmap operation. The **file** may be NULL, e.g. if mapping anonymous memory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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.c hM hjubj)}(hhh]h)}(hflagsh]hflags}(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&]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 }(hjlhhhNhNubj)}(h**file**h]hfile}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh/ may be NULL, e.g. if mapping anonymous memory.}(hjlhhhNhNubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_mmap_addr (C function)c.security_mmap_addrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h+int security_mmap_addr (unsigned long addr)h]j)}(h*int security_mmap_addr(unsigned long addr)h](j )}(hinth]hint}(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 }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(haddrh]haddr}(hjIhhhNhNubah}(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'Check if mmap'ing an address is allowedh]h)Check if mmap’ing an address 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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``unsigned long addr`` address **Description** Check permissions for a mmap operation at **addr**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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 }(hj hhhNhNubj)}(h**addr**h]haddr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM 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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_mprotect (C function)c.security_file_mprotecthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hbint security_file_mprotect (struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h]j)}(haint security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j )}(hinth]hint}(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj| hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji hhhj{ hM ubjg)}(hsecurity_file_mprotecth]jm)}(hsecurity_file_mprotecth]hsecurity_file_mprotect}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhji hhhj{ hM ubj)}(hG(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j)}(hstruct vm_area_struct *vmah](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hvm_area_structh]hvm_area_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.security_file_mprotectasbuh1hhj 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)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long reqproth](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}(hj8 hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjF hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hreqproth]hreqprot}(hjT hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long proth](j )}(hunsignedh]hunsigned}(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji ubj)}(h h]h }(hj{ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji ubjm)}(hproth]hprot}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhji hhhj{ hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhje hhhj{ hM ubah}(h]j` ah ](jjeh"]h$]h&]jj)jhuh1hhj{ hM hjb hhubj)}(hhh]h)}(h/Check if changing memory protections is allowedh]h/Check if changing memory protections is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjb hhhj{ hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjX"hNhNubj)}(hX7**Parameters** ``struct vm_area_struct *vma`` memory region ``unsigned long reqprot`` application requested protection ``unsigned long prot`` protection applied by the kernel **Description** Check permissions before changing memory access permissions. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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 vm_area_struct *vma`` memory region h](j)}(h``struct vm_area_struct *vma``h]j)}(hj h]hstruct vm_area_struct *vma}(hj hhhNhNubah}(h]h ]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 memory regionh]h memory region}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj% hM hj& ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj% hM hj ubj)}(h;``unsigned long reqprot`` application requested protection h](j)}(h``unsigned long reqprot``h]j)}(hjI h]hunsigned long reqprot}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjC ubj)}(hhh]h)}(h application requested protectionh]h application requested protection}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ hM hj_ ubah}(h]h ]h"]h$]h&]uh1jhjC ubeh}(h]h ]h"]h$]h&]uh1jhj^ hM hj ubj)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hj h]hunsigned long prot}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj| ubj)}(hhh]h)}(h protection applied by the kernelh]h protection applied by the kernel}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj| ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj 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)}(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)}(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 file *file`` the file h](j)}(h``struct file *file``h]j)}(hj`h]hstruct file *file}(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)}(hthe fileh]hthe file}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj;ubh)}(hSave owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook.h]hSave owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj;ubh)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj;ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj;ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h]int security_file_send_sigiotask (struct task_struct *tsk, struct fown_struct *fown, int sig)h]j)}(h\int security_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj$hM ubjg)}(hsecurity_file_send_sigiotaskh]jm)}(hsecurity_file_send_sigiotaskh]hsecurity_file_send_sigiotask}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj$hM ubj)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(h task_structh]h task_struct}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE j9sbc.security_file_send_sigiotaskasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(htskh]htsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hstruct fown_struct *fownh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h fown_structh]h fown_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_file_send_sigiotaskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hfownh]hfown}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hint sigh](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hsigh]hsig}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(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(Check if sending SIGIO/SIGURG is allowedh]h(Check if sending SIGIO/SIGURG is allowed}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hXH**Parameters** ``struct task_struct *tsk`` target task ``struct fown_struct *fown`` signal sender ``int sig`` signal to be sent, SIGIO is sent if 0 **Description** Check permission for the file owner **fown** to send SIGIO or SIGURG to the process **tsk**. Note that this hook is sometimes called from interrupt. Note that the fown_struct, **fown**, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh](j)}(h(``struct task_struct *tsk`` target task h](j)}(h``struct task_struct *tsk``h]j)}(hjh]hstruct task_struct *tsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h target taskh]h target task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h+``struct fown_struct *fown`` signal sender h](j)}(h``struct fown_struct *fown``h]j)}(hjh]hstruct fown_struct *fown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(h signal senderh]h signal sender}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h2``int sig`` signal to be sent, SIGIO is sent if 0 h](j)}(h ``int sig``h]j)}(hj.h]hint sig}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(ubj)}(hhh]h)}(h%signal to be sent, SIGIO is sent if 0h]h%signal to be sent, SIGIO is sent if 0}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM hjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! hjubh)}(hXhCheck permission for the file owner **fown** to send SIGIO or SIGURG to the process **tsk**. Note that this hook is sometimes called from interrupt. Note that the fown_struct, **fown**, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner).h](h$Check permission for the file owner }(hjhhhNhNubj)}(h**fown**h]hfown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( to send SIGIO or SIGURG to the process }(hjhhhNhNubj)}(h**tsk**h]htsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhW. Note that this hook is sometimes called from interrupt. Note that the fown_struct, }(hjhhhNhNubj)}(h**fown**h]hfown}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, 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).}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_file_receive (C function)c.security_file_receivehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h-int security_file_receive (struct file *file)h]j)}(h,int security_file_receive(struct file *file)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM0 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&]jjuh1jfhjhhhjhM0 ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubh)}(hhh]jm)}(hfileh]hfile}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jR )}jE j.sbc.security_file_receiveasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM0 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM0 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM0 hjhhubj)}(hhh]h)}(h,Check if receiving a file via IPC is allowedh]h,Check if receiving a file via IPC is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct file *file`` file being received **Description** This hook allows security modules to control the ability of a process to receive an open file descriptor via socket IPC. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 hjubj)}(hhh]j)}(h*``struct file *file`` file being received h](j)}(h``struct file *file``h]j)}(hj h]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1 hjubj)}(hhh]h)}(hfile being receivedh]hfile being received}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM1 hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hM1 hjubah}(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.chM3 hjubh)}(hxThis hook allows security modules to control the ability of a process to receive an open file descriptor via socket IPC.h]hxThis hook allows security modules to control the ability of a process to receive an open file descriptor via socket IPC.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 hjubh)}(h **Return**h]j)}(hjnh]hReturn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 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.chM6 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_file_open (C function)c.security_file_openhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h*int security_file_open (struct file *file)h]j)}(h)int security_file_open(struct file *file)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM> ubjg)}(hsecurity_file_openh]jm)}(hsecurity_file_openh]hsecurity_file_open}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM> ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]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}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM> ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM> ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM> hjhhubj)}(hhh]h)}(h.Save open() time state for late use by the LSMh]h.Save open() time state for late use by the LSM}(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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct file *file`` **Description** Save open-time permission checking state for later use upon file_permission, and recheck access if anything has changed since inode_permission. We can check if a file is opened for execution (e.g. execve(2) call), either directly or indirectly (e.g. ELF's ld.so) by checking file->f_flags & __FMODE_EXEC . **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hjubh)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjubh)}(hSave open-time permission checking state for later use upon file_permission, and recheck access if anything has changed since inode_permission.h]hSave open-time permission checking state for later use upon file_permission, and recheck access if anything has changed since inode_permission.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ hjubh)}(hWe can check if a file is opened for execution (e.g. execve(2) call), either directly or indirectly (e.g. ELF's ld.so) by checking file->f_flags & __FMODE_EXEC .h]hWe can check if a file is opened for execution (e.g. execve(2) call), either directly or indirectly (e.g. ELF’s ld.so) by checking file->f_flags & __FMODE_EXEC .}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMG hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMH hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_file_truncate (C function)c.security_file_truncatehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.int security_file_truncate (struct file *file)h]j)}(h-int security_file_truncate(struct file *file)h](j )}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhjNhMa ubjg)}(hsecurity_file_truncateh]jm)}(hsecurity_file_truncateh]hsecurity_file_truncate}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhjNhMa ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubh)}(hhh]jm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jcsbc.security_file_truncateasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMa ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMa ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjNhMa hj5hhubj)}(hhh]h)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMa ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct file *file`` file **Description** Check permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the **path_truncate** hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hjubj)}(hhh]j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjAh]hstruct file *file}(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.chMb hj;ubj)}(hhh]h)}(hfileh]hfile}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMb hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMb hj8ubah}(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.chMd 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.chMc hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMg hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMh hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_task_alloc (C function)c.security_task_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hCint security_task_alloc (struct task_struct *task, u64 clone_flags)h]j)}(hBint security_task_alloc(struct task_struct *task, u64 clone_flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMp ubjg)}(hsecurity_task_alloch]jm)}(hsecurity_task_alloch]hsecurity_task_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMp ubj)}(h+(struct task_struct *task, u64 clone_flags)h](j)}(hstruct task_struct *taskh](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_task_allocasbuh1hhj3ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(htaskh]htask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(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 ]jqc.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&]jjuh1jhjhhhjhMp ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMp ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMp hjhhubj)}(hhh]h)}(hAllocate a task's LSM blobh]hAllocate a task’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMp ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *task`` the task ``u64 clone_flags`` flags indicating what is being shared **Description** Handle allocation of task-related resources. **Return** Returns a zero on success, negative values on failure.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt hjubj)}(hhh](j)}(h&``struct task_struct *task`` the task h](j)}(h``struct task_struct *task``h]j)}(hjCh]hstruct task_struct *task}(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.chMq hj=ubj)}(hhh]h)}(hthe taskh]hthe task}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMq hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMq hj:ubj)}(h:``u64 clone_flags`` flags indicating what is being shared h](j)}(h``u64 clone_flags``h]j)}(hj|h]hu64 clone_flags}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMr hjvubj)}(hhh]h)}(h%flags indicating what is being sharedh]h%flags indicating what is being shared}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMr hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMr 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.chMt 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.chMs 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.chMu 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.chMv hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_task_free (C function)c.security_task_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h2void security_task_free (struct task_struct *task)h]j)}(h1void security_task_free(struct task_struct *task)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj1hM ubjg)}(hsecurity_task_freeh]jm)}(hsecurity_task_freeh]hsecurity_task_free}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj1hM ubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jFsbc.security_task_freeasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(htaskh]htask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hM 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&]uh1jhjhhhj1hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *task`` task **Description** Handle release of task-related resources. Note that this can be called from interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h 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&]uh1hhj9hM hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM hjubah}(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&]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.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hsecurity field in a set of credentials.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubj)}(hhh]j)}(h"``struct cred *cred`` credentials h](j)}(h``struct cred *cred``h]j)}(hj!h]hstruct cred *cred}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubj)}(hhh]h)}(h credentialsh]h credentials}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM hj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM hj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubh)}(hFDeallocate and clear the cred->security field in a set of credentials.h]hFDeallocate and clear the cred->security field in a set of credentials.}(hj1"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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_prepare_creds (C function)c.security_prepare_credshNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hPint security_prepare_creds (struct cred *new, const struct cred *old, gfp_t gfp)h]j)}(hOint security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp)h](j )}(hinth]hint}(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 }(hjo"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\"hhhjn"hM ubjg)}(hsecurity_prepare_credsh]jm)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\"hhhjn"hM ubj)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hcredh]hcred}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"modnameN classnameNjI jL )}jO ]jR )}jE j"sbc.security_prepare_credsasbuh1hhj"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hnewh]hnew}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj #ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj #ubj)}(hjh]hstruct}(hj*#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj #ubj)}(h h]h }(hj7#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj #ubh)}(hhh]jm)}(hcredh]hcred}(hjH#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjE#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJ#modnameN classnameNjI jL )}jO ]j"c.security_prepare_credsasbuh1hhj #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)}(holdh]hold}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj #ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]j"c.security_prepare_credsasbuh1hhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubjm)}(hgfph]hgfp}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubeh}(h]h ]h"]h$]h&]jjuh1jhj\"hhhjn"hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjX"hhhjn"hM ubah}(h]jS"ah ](jjeh"]h$]h&]jj)jhuh1hhjn"hM hjU"hhubj)}(hhh]h)}(h Prepare a new set of credentialsh]h Prepare a new set of credentials}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj#hhubah}(h]h ]h"]h$]h&]uh1jhjU"hhhjn"hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj $jj $jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct cred *new`` new credentials ``const struct cred *old`` original credentials ``gfp_t gfp`` gfp flags **Description** Prepare a new set of credentials by copying the data from the old set. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$ubj)}(hhh](j)}(h%``struct cred *new`` new credentials h](j)}(h``struct cred *new``h]j)}(hj4$h]hstruct cred *new}(hj6$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.$ubj)}(hhh]h)}(hnew credentialsh]hnew credentials}(hjM$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI$hM hjJ$ubah}(h]h ]h"]h$]h&]uh1jhj.$ubeh}(h]h ]h"]h$]h&]uh1jhjI$hM hj+$ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hjm$h]hconst struct cred *old}(hjo$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjg$ubj)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM hj$ubah}(h]h ]h"]h$]h&]uh1jhjg$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hj+$ubj)}(h``gfp_t gfp`` gfp flags h](j)}(h ``gfp_t gfp``h]j)}(hj$h]h gfp_t gfp}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$ubj)}(hhh]h)}(h gfp flagsh]h gfp flags}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hj+$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubh)}(h**Description**h]j)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$ubh)}(hFPrepare a new set of credentials by copying the data from the old set.h]hFPrepare a new set of credentials by copying the data from the old set.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$ubh)}(h **Return**h]j)}(hj%h]hReturn}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$ubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_transfer_creds (C function)c.security_transfer_credshNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hGvoid security_transfer_creds (struct cred *new, const struct cred *old)h]j)}(hFvoid security_transfer_creds(struct cred *new, const struct cred *old)h](j )}(hvoidh]hvoid}(hjM%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj\%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI%hhhj[%hM ubjg)}(hsecurity_transfer_credsh]jm)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hjn%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjI%hhhj[%hM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hcredh]hcred}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%modnameN classnameNjI jL )}jO ]jR )}jE jp%sbc.security_transfer_credsasbuh1hhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjm)}(hnewh]hnew}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj &hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubj)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj$&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(hcredh]hcred}(hj5&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7&modnameN classnameNjI jL )}jO ]j%c.security_transfer_credsasbuh1hhj%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)}(holdh]hold}(hjn&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhjI%hhhj[%hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjE%hhhj[%hM ubah}(h]j@%ah ](jjeh"]h$]h&]jj)jhuh1hhj[%hM hjB%hhubj)}(hhh]h)}(hTransfer credsh]hTransfer creds}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&hhubah}(h]h ]h"]h$]h&]uh1jhjB%hhhj[%hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct cred *new`` target credentials ``const struct cred *old`` original credentials **Description** Transfer data from original creds to new creds.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&ubj)}(hhh](j)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hj&h]hstruct cred *new}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&ubj)}(hhh]h)}(htarget credentialsh]htarget credentials}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM hj&ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hj'h]hconst struct cred *old}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 'ubj)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hj+'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj''hM hj('ubah}(h]h ]h"]h$]h&]uh1jhj 'ubeh}(h]h ]h"]h$]h&]uh1jhj''hM hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubh)}(h**Description**h]j)}(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)}(h/Transfer data from original creds to new creds.h]h/Transfer data from original creds to new creds.}(hjc'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_kernel_act_as (C function)c.security_kernel_act_ashNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h8int security_kernel_act_as (struct cred *new, u32 secid)h]j)}(h7int security_kernel_act_as(struct cred *new, u32 secid)h](j )}(hinth]hint}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj'hM ubjg)}(hsecurity_kernel_act_ash]jm)}(hsecurity_kernel_act_ash]hsecurity_kernel_act_as}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj'hM ubj)}(h(struct cred *new, u32 secid)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hcredh]hcred}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.security_kernel_act_asasbuh1hhj'ubj)}(h h]h }(hj (hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjm)}(hnewh]hnew}(hj((hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(h u32 secidh](h)}(hhh]jm)}(hu32h]hu32}(hjD(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjA(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjF(modnameN classnameNjI jL )}jO ]j (c.security_kernel_act_asasbuh1hhj=(ubj)}(h h]h }(hjb(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=(ubjm)}(hsecidh]hsecid}(hjp(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(jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct cred *new`` credentials ``u32 secid`` secid **Description** Set the credentials for a kernel service to act as (subjective context). The current task must be the one that nominated **secid**. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(ubj)}(hhh](j)}(h!``struct cred *new`` credentials h](j)}(h``struct cred *new``h]j)}(hj(h]hstruct cred *new}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(ubj)}(hhh]h)}(h credentialsh]h credentials}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM hj(ubj)}(h``u32 secid`` secid h](j)}(h ``u32 secid``h]j)}(hj)h]h u32 secid}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubj)}(hhh]h)}(hsecidh]hsecid}(hj-)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj))hM hj*)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj))hM hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]j)}(hjO)h]h Description}(hjQ)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(ubh)}(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 }(hje)hhhNhNubj)}(h **secid**h]hsecid}(hjm)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje)ubh.}(hje)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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hKint security_kernel_create_files_as (struct cred *new, struct inode *inode)h]j)}(hJint security_kernel_create_files_as(struct cred *new, struct inode *inode)h](j )}(hinth]hint}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj)hM ubjg)}(hsecurity_kernel_create_files_ash]jm)}(hsecurity_kernel_create_files_ash]hsecurity_kernel_create_files_as}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj)hM ubj)}(h'(struct cred *new, struct inode *inode)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj *hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(hcredh]hcred}(hj(*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj**modnameN classnameNjI jL )}jO ]jR )}jE j)sb!c.security_kernel_create_files_asasbuh1hhj*ubj)}(h h]h }(hjH*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjV*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjm)}(hnewh]hnew}(hjc*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct inode *inodeh](j)}(hjh]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)}(hinodeh]hinode}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*modnameN classnameNjI jL )}jO ]jD*!c.security_kernel_create_files_asasbuh1hhjx*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)}(hinodeh]hinode}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjx*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj)hM ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hM hj)hhubj)}(hhh]h)}(h(Set file creation context using an inodeh]h(Set file creation context using an inode}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhjX"hNhNubj)}(hXN**Parameters** ``struct cred *new`` target credentials ``struct inode *inode`` reference inode **Description** Set the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated **inode**. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj!+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+ubj)}(hhh](j)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hj>+h]hstruct cred *new}(hj@+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj8+ubj)}(hhh]h)}(htarget credentialsh]htarget credentials}(hjW+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS+hM hjT+ubah}(h]h ]h"]h$]h&]uh1jhj8+ubeh}(h]h ]h"]h$]h&]uh1jhjS+hM hj5+ubj)}(h(``struct inode *inode`` reference inode h](j)}(h``struct inode *inode``h]j)}(hjw+h]hstruct inode *inode}(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)}(hreference inodeh]hreference inode}(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 hj5+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)}(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.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4int security_kernel_module_request (char *kmod_name)h]j)}(h3int security_kernel_module_request(char *kmod_name)h](j )}(hinth]hint}(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_kernel_module_requesth]jm)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hjQ,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,,hhhj>,hM ubj)}(h(char *kmod_name)h]j)}(hchar *kmod_nameh](j )}(hcharh]hchar}(hjm,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hji,ubj)}(h h]h }(hj{,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhji,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji,ubjm)}(h kmod_nameh]h kmod_name}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhje,ubah}(h]h ]h"]h$]h&]jjuh1jhj,,hhhj>,hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(,hhhj>,hM ubah}(h]j#,ah ](jjeh"]h$]h&]jj)jhuh1hhj>,hM hj%,hhubj)}(hhh]h)}(h$Check if loading a module is allowedh]h$Check if loading a module is allowed}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj,hhubah}(h]h ]h"]h$]h&]uh1jhj%,hhhj>,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``char *kmod_name`` module name **Description** Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$ hj,ubj)}(hhh]j)}(h ``char *kmod_name`` module name h](j)}(h``char *kmod_name``h]j)}(hj-h]hchar *kmod_name}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! hj,ubj)}(hhh]h)}(h module nameh]h module 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! 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}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.}(hjR-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)}(hjc-h]hReturn}(hje-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hj,ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hjy-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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hRint security_task_fix_setuid (struct cred *new, const struct cred *old, int flags)h]j)}(hQint security_task_fix_setuid(struct cred *new, const struct cred *old, int flags)h](j )}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-hhhj-hMx 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-hMx ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-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*}(hj1.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}(hjW.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS.ubj)}(h h]h }(hjd.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS.ubj)}(hjh]hstruct}(hjr.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjS.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_setuidasbuh1hhjS.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)}(holdh]hold}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS.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-hMx ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj-hMx ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMx 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.chMx hj%/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hMx ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@/jj@/jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct cred *new`` updated credentials ``const struct cred *old`` credentials being replaced ``int flags`` LSM_SETID_* flag values **Description** Update the module's state after setting one or more of the user identity attributes of the current process. The **flags** parameter indicates which of the set*uid system calls invoked this hook. If **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjJ/h]h Parameters}(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.chM| hjD/ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hji/h]hstruct cred *new}(hjk/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMy hjc/ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~/hMy hj/ubah}(h]h ]h"]h$]h&]uh1jhjc/ubeh}(h]h ]h"]h$]h&]uh1jhj~/hMy 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.chMz hj/ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMz hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMz 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&]uh1jhjD/ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM} hjD/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,0hhhNhNubj)}(h **flags**h]hflags}(hj40hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,0ubhN parameter indicates which of the set*uid system calls invoked this hook. If }(hj,0hhhNhNubj)}(h**new**h]hnew}(hjF0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,0ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj,0hhhNhNubj)}(h**current->cred**h]h current->cred}(hjX0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,0ubh.}(hj,0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hjD/ubh)}(h **Return**h]j)}(hjs0h]hReturn}(hju0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjD/ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjD/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hRint security_task_fix_setgid (struct cred *new, const struct cred *old, int flags)h]j)}(hQint security_task_fix_setgid(struct cred *new, const struct cred *old, int flags)h](j )}(hinth]hint}(hj0hhhNhNubah}(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 }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhj0hM ubjg)}(hsecurity_task_fix_setgidh]jm)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhj0hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(hcredh]hcred}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE j0sbc.security_task_fix_setgidasbuh1hhj0ubj)}(h h]h }(hj31hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hjA1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hnewh]hnew}(hjN1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjg1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc1ubj)}(h h]h }(hjt1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc1ubj)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc1ubh)}(hhh]jm)}(hcredh]hcred}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]j/1c.security_task_fix_setgidasbuh1hhjc1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjc1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc1ubjm)}(holdh]hold}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(h int flagsh](j )}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubjm)}(hflagsh]hflags}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hM ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hM hj0hhubj)}(hhh]h)}(h'Update LSM with new group id attributesh]h'Update LSM with new group id attributes}(hj82hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj52hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjP2jjP2jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct cred *new`` updated credentials ``const struct cred *old`` credentials being replaced ``int flags`` LSM_SETID_* flag value **Description** Update the module's state after setting one or more of the group identity attributes of the current process. The **flags** parameter indicates which of the set*gid system calls invoked this hook. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjZ2h]h Parameters}(hj\2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjT2ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjy2h]hstruct cred *new}(hj{2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjs2ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jhjs2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM hjp2ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj2h]hconst struct cred *old}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM hj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM hjp2ubj)}(h%``int flags`` LSM_SETID_* flag value h](j)}(h ``int flags``h]j)}(hj2h]h int flags}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2ubj)}(hhh]h)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM hj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hM hjp2ubeh}(h]h ]h"]h$]h&]uh1jhjT2ubh)}(h**Description**h]j)}(hj&3h]h Description}(hj(3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjT2ubh)}(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<3hhhNhNubj)}(h **flags**h]hflags}(hjD3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<3ubhK parameter indicates which of the set*gid system calls invoked this hook. }(hj<3hhhNhNubj)}(h**new**h]hnew}(hjV3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<3ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj<3hhhNhNubj)}(h**current->cred**h]h current->cred}(hjh3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<3ubh.}(hj<3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjT2ubh)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjT2ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjT2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hJint security_task_fix_setgroups (struct cred *new, const struct cred *old)h]j)}(hIint security_task_fix_setgroups(struct cred *new, const struct cred *old)h](j )}(hinth]hint}(hj3hhhNhNubah}(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 }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhj3hM ubjg)}(hsecurity_task_fix_setgroupsh]jm)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj3hM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hcredh]hcred}(hj#4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj%4modnameN classnameNjI jL )}jO ]jR )}jE j3sbc.security_task_fix_setgroupsasbuh1hhj4ubj)}(h h]h }(hjC4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjQ4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(hnewh]hnew}(hj^4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjw4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs4ubj)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs4ubh)}(hhh]jm)}(hcredh]hcred}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]j?4c.security_task_fix_setgroupsasbuh1hhjs4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjs4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs4ubjm)}(holdh]hold}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjs4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hM ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hM hj3hhubj)}(hhh]h)}(h(Update LSM with new supplementary groupsh]h(Update LSM with new supplementary groups}(hj5hhhNhNubah}(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&]uh1jhj3hhhj3hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+5jj+5jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct cred *new`` updated credentials ``const struct cred *old`` credentials being replaced **Description** Update the module's state after setting the supplementary group identity attributes of the current process. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hj55h]h Parameters}(hj75hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj35ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj/5ubj)}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjT5h]hstruct cred *new}(hjV5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjN5ubj)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjm5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji5hM hjj5ubah}(h]h ]h"]h$]h&]uh1jhjN5ubeh}(h]h ]h"]h$]h&]uh1jhji5hM hjK5ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj5h]hconst struct cred *old}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj5ubj)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM hjK5ubeh}(h]h ]h"]h$]h&]uh1jhj/5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj/5ubh)}(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. }(hj5hhhNhNubj)}(h**new**h]hnew}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj5hhhNhNubj)}(h**current->cred**h]h current->cred}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj/5ubh)}(h **Return**h]j)}(hj6h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj/5ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj)6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj/5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)h]j)}(h;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 hj8;ubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj];h]hstruct task_struct *p}(hj_;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjW;ubj)}(hhh]h)}(htaskh]htask}(hjv;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr;hM hjs;ubah}(h]h ]h"]h$]h&]uh1jhjW;ubeh}(h]h ]h"]h$]h&]uh1jhjr;hM hjT;ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj8;ubh)}(hLCheck permission before getting the session identifier of the process **p**.h](hFCheck permission before getting the session identifier of the process }(hj;hhhNhNubj)}(h**p**h]hp}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj8;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 hj8;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 hj8;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_setnice (C function)c.security_task_setnicehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h;int security_task_setnice (struct task_struct *p, int nice)h]j)}(h:int security_task_setnice(struct task_struct *p, int nice)h](j )}(hinth]hint}(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_setniceh]jm)}(hsecurity_task_setniceh]hsecurity_task_setnice}(hj7<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhj$<hM ubj)}(h!(struct task_struct *p, int nice)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjS<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO<ubj)}(h h]h }(hj`<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO<ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjq<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjs<modnameN classnameNjI jL )}jO ]jR )}jE j9<sbc.security_task_setniceasbuh1hhjO<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjO<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO<ubjm)}(hjh]hp}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjO<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjK<ubj)}(hint niceh](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)}(hniceh]hnice}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjK<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 setting a task's nice value is allowedh]h1Check if setting a task’s nice value 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"=jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task ``int nice`` nice value **Description** Check permission before setting the nice value of **p** to **nice**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj,=h]h Parameters}(hj.=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&=ubj)}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjK=h]hstruct task_struct *p}(hjM=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjE=ubj)}(hhh]h)}(h target taskh]h target task}(hjd=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`=hM hja=ubah}(h]h ]h"]h$]h&]uh1jhjE=ubeh}(h]h ]h"]h$]h&]uh1jhj`=hM hjB=ubj)}(h``int nice`` nice value h](j)}(h ``int nice``h]j)}(hj=h]hint nice}(hj=hhhNhNubah}(h]h ]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 nice valueh]h nice 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 hjB=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)}(hDCheck permission before setting the nice value of **p** to **nice**.h](h2Check permission before setting the nice value of }(hj=hhhNhNubj)}(h**p**h]hp}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh to }(hj=hhhNhNubj)}(h**nice**h]hnice}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setioprio (C function)c.security_task_setiopriohNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h?int security_task_setioprio (struct task_struct *p, int ioprio)h]j)}(h>int security_task_setioprio(struct task_struct *p, int ioprio)h](j )}(hinth]hint}(hjO>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjK>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&]uh1jhjK>hhhj]>hM ubjg)}(hsecurity_task_setioprioh]jm)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hjp>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjK>hhhj]>hM ubj)}(h#(struct task_struct *p, int ioprio)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jr>sbc.security_task_setioprioasbuh1hhj>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)}(h int ioprioh](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)}(hioprioh]hioprio}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(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+Check if setting a task's ioprio is allowedh]h-Check if setting a task’s ioprio is allowed}(hjC?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@?hhubah}(h]h ]h"]h$]h&]uh1jhjD>hhhj]>hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[?jj[?jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task ``int ioprio`` ioprio value **Description** Check permission before setting the ioprio value of **p** to **ioprio**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hje?h]h Parameters}(hjg?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj_?ubj)}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hj?h]hstruct task_struct *p}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~?ubj)}(hhh]h)}(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``int ioprio`` ioprio value h](j)}(h``int ioprio``h]j)}(hj?h]h int ioprio}(hj?hhhNhNubah}(h]h ]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 ioprio valueh]h ioprio 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 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)}(hHCheck permission before setting the ioprio value of **p** to **ioprio**.h](h4Check permission before setting the ioprio value of }(hj@hhhNhNubj)}(h**p**h]hp}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh to }(hj@hhhNhNubj)}(h **ioprio**h]hioprio}(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)}(hjC@h]hReturn}(hjE@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj_?ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjY@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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_getioprio (C function)c.security_task_getiopriohNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h3int security_task_getioprio (struct task_struct *p)h]j)}(h2int security_task_getioprio(struct task_struct *p)h](j )}(hinth]hint}(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_getioprioh]jm)}(hsecurity_task_getioprioh]hsecurity_task_getioprio}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj@hhhj@hM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]jR )}jE j@sbc.security_task_getioprioasbuh1hhj@ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjm)}(hjh]hp}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhj@hhhj@hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj@hM ubah}(h]j{@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hM hj}@hhubj)}(hhh]h)}(h+Check if getting a task's ioprio is allowedh]h-Check if getting a task’s ioprio is allowed}(hjGAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjDAhhubah}(h]h ]h"]h$]h&]uh1jhj}@hhhj@hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_Ajj_Ajjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before getting the ioprio value of **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjiAh]h Parameters}(hjkAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjcAubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjAh]hstruct task_struct *p}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjAubj)}(hhh]h)}(htaskh]htask}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM hjAubah}(h]h ]h"]h$]h&]uh1jhjcAubh)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjcAubh)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(hjAhhhNhNubj)}(h**p**h]hp}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjcAubh)}(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 hjcAubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjcAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_task_prlimit (C function)c.security_task_prlimithNtauh1hhjX"hhhNhNubh)}(hhh](j)}(haint security_task_prlimit (const struct cred *cred, const struct cred *tcred, unsigned int flags)h]j)}(h`int security_task_prlimit(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j )}(hinth]hint}(hjABhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=BhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! ubj)}(h h]h }(hjPBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=BhhhjOBhM! ubjg)}(hsecurity_task_prlimith]jm)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hjbBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^Bubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=BhhhjOBhM! ubj)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hj~BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzBubj)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzBubh)}(hhh]jm)}(hcredh]hcred}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jdBsbc.security_task_prlimitasbuh1hhjzBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzBubjm)}(hcredh]hcred}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvBubj)}(hconst struct cred *tcredh](j)}(hjh]hconst}(hj ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]hstruct}(hj&ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hj3ChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(hcredh]hcred}(hjDChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjACubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFCmodnameN classnameNjI jL )}jO ]jBc.security_task_prlimitasbuh1hhjCubj)}(h h]h }(hjbChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjpChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(htcredh]htcred}(hj}ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvBubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hflagsh]hflags}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvBubeh}(h]h ]h"]h$]h&]jjuh1jhj=BhhhjOBhM! ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9BhhhjOBhM! ubah}(h]j4Bah ](jjeh"]h$]h&]jj)jhuh1hhjOBhM! hj6Bhhubj)}(hhh]h)}(h0Check if get/setting resources limits is allowedh]h0Check if get/setting resources limits is allowed}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! hjChhubah}(h]h ]h"]h$]h&]uh1jhj6BhhhjOBhM! ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhjX"hNhNubj)}(hXa**Parameters** ``const struct cred *cred`` current task credentials ``const struct cred *tcred`` target task credentials ``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both **Description** Check permission before getting and/or setting the resource limits of another task. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hjDubj)}(hhh](j)}(h5``const struct cred *cred`` current task credentials h](j)}(h``const struct cred *cred``h]j)}(hj9Dh]hconst struct cred *cred}(hj;DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Dubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hj3Dubj)}(hhh]h)}(hcurrent task credentialsh]hcurrent task credentials}(hjRDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNDhM" hjODubah}(h]h ]h"]h$]h&]uh1jhj3Dubeh}(h]h ]h"]h$]h&]uh1jhjNDhM" hj0Dubj)}(h5``const struct cred *tcred`` target task credentials h](j)}(h``const struct cred *tcred``h]j)}(hjrDh]hconst struct cred *tcred}(hjtDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM# hjlDubj)}(hhh]h)}(htarget task credentialsh]htarget task credentials}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM# hjDubah}(h]h ]h"]h$]h&]uh1jhjlDubeh}(h]h ]h"]h$]h&]uh1jhjDhM# hj0Dubj)}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both h](j)}(h``unsigned int flags``h]j)}(hjDh]hunsigned int flags}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$ hjDubj)}(hhh]h)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM$ hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM$ hj0Dubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM& hjDubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hjDubh)}(h **Return**h]j)}(hj Eh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Eubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM( hjDubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj#EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM) hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hcint security_task_setrlimit (struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h]j)}(hbint security_task_setrlimit(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j )}(hinth]hint}(hjREhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 ubj)}(h h]h }(hjaEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNEhhhj`EhM2 ubjg)}(hsecurity_task_setrlimith]jm)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hjsEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNEhhhj`EhM2 ubj)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(hhh]jm)}(h task_structh]h task_struct}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jR )}jE juEsbc.security_task_setrlimitasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hjh]hp}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(hunsigned int resourceh](j )}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj )}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hj*FhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hresourceh]hresource}(hj8FhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(hstruct rlimit *new_rlimh](j)}(hjh]hstruct}(hjQFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMFubj)}(h h]h }(hj^FhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMFubh)}(hhh]jm)}(hrlimith]hrlimit}(hjoFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlFubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqFmodnameN classnameNjI jL )}jO ]jEc.security_task_setrlimitasbuh1hhjMFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMFubjm)}(hnew_rlimh]hnew_rlim}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhjNEhhhj`EhM2 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJEhhhj`EhM2 ubah}(h]jEEah ](jjeh"]h$]h&]jj)jhuh1hhj`EhM2 hjGEhhubj)}(hhh]h)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 hjFhhubah}(h]h ]h"]h$]h&]uh1jhjGEhhhj`EhM2 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct task_struct *p`` target task's group leader ``unsigned int resource`` resource whose limit is being set ``struct rlimit *new_rlim`` new resource limit **Description** Check permission before setting the resource limits of process **p** for **resource** to **new_rlim**. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chM6 hjFubj)}(hhh](j)}(h5``struct task_struct *p`` target task's group leader h](j)}(h``struct task_struct *p``h]j)}(hjGh]hstruct task_struct *p}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3 hj Gubj)}(hhh]h)}(htarget task's group leaderh]htarget task’s group leader}(hj,GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(GhM3 hj)Gubah}(h]h ]h"]h$]h&]uh1jhj Gubeh}(h]h ]h"]h$]h&]uh1jhj(GhM3 hj Gubj)}(h<``unsigned int resource`` resource whose limit is being set h](j)}(h``unsigned int resource``h]j)}(hjLGh]hunsigned int resource}(hjNGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 hjFGubj)}(hhh]h)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hjeGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaGhM4 hjbGubah}(h]h ]h"]h$]h&]uh1jhjFGubeh}(h]h ]h"]h$]h&]uh1jhjaGhM4 hj Gubj)}(h/``struct rlimit *new_rlim`` new resource limit h](j)}(h``struct rlimit *new_rlim``h]j)}(hjGh]hstruct rlimit *new_rlim}(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.chM5 hjGubj)}(hhh]h)}(hnew resource limith]hnew resource limit}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM5 hjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM5 hj Gubeh}(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.chM7 hjFubh)}(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 }(hjGhhhNhNubj)}(h**p**h]hp}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh for }(hjGhhhNhNubj)}(h **resource**h]hresource}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh to }(hjGhhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hjFubh)}(h **Return**h]j)}(hjHh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM: hjFubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj3HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM; hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h6int security_task_setscheduler (struct task_struct *p)h]j)}(h5int security_task_setscheduler(struct task_struct *p)h](j )}(hinth]hint}(hjbHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^HhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD ubj)}(h h]h }(hjqHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^HhhhjpHhMD ubjg)}(hsecurity_task_setschedulerh]jm)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^HhhhjpHhMD ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(h task_structh]h task_struct}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jHsbc.security_task_setschedulerasbuh1hhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hjh]hp}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhj^HhhhjpHhMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZHhhhjpHhMD ubah}(h]jUHah ](jjeh"]h$]h&]jj)jhuh1hhjpHhMD hjWHhhubj)}(hhh]h)}(h.Check if setting sched policy/param is allowedh]h.Check if setting sched policy/param is allowed}(hj!IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjIhhubah}(h]h ]h"]h$]h&]uh1jhjWHhhhjpHhMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9Ijj9Ijjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task **Description** Check permission before setting scheduling policy and/or parameters of process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjCIh]h Parameters}(hjEIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMH hj=Iubj)}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjbIh]hstruct task_struct *p}(hjdIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chME hj\Iubj)}(hhh]h)}(h target taskh]h target task}(hj{IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwIhME hjxIubah}(h]h ]h"]h$]h&]uh1jhj\Iubeh}(h]h ]h"]h$]h&]uh1jhjwIhME hjYIubah}(h]h ]h"]h$]h&]uh1jhj=Iubh)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMG hj=Iubh)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of process }(hjIhhhNhNubj)}(h**p**h]hp}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMF hj=Iubh)}(h **Return**h]j)}(hjIh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMI hj=Iubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJ hj=Iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h6int security_task_getscheduler (struct task_struct *p)h]j)}(h5int security_task_getscheduler(struct task_struct *p)h](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR ubj)}(h h]h }(hj*JhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhj)JhMR ubjg)}(hsecurity_task_getschedulerh]jm)}(hsecurity_task_getschedulerh]hsecurity_task_getscheduler}(hjJsbc.security_task_getschedulerasbuh1hhjTJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTJubjm)}(hjh]hp}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPJubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhj)JhMR ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj)JhMR ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhj)JhMR hjJhhubj)}(hhh]h)}(h+Check if getting scheduling info is allowedh]h+Check if getting scheduling info is allowed}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjJhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhj)JhMR ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task **Description** Check permission before obtaining scheduling information for process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMV hjJubj)}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjKh]hstruct task_struct *p}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS hjKubj)}(hhh]h)}(h target taskh]h target task}(hj4KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0KhMS hj1Kubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhj0KhMS hjKubah}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjVKh]h Description}(hjXKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjJubh)}(hKCheck permission before obtaining scheduling information for process **p**.h](hECheck permission before obtaining scheduling information for process }(hjlKhhhNhNubj)}(h**p**h]hp}(hjtKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlKubh.}(hjlKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjJubh)}(h **Return**h]j)}(hjKh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMV hjJubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_task_movememory (C function)c.security_task_movememoryhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4int security_task_movememory (struct task_struct *p)h]j)}(h3int security_task_movememory(struct task_struct *p)h](j )}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhjKhM_ ubjg)}(hsecurity_task_movememoryh]jm)}(hsecurity_task_movememoryh]hsecurity_task_movememory}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhjKhM_ ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Lubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Lubh)}(hhh]jm)}(h task_structh]h task_struct}(hj/LhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,Lubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1LmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.security_task_movememoryasbuh1hhj Lubj)}(h h]h }(hjOLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Lubj)}(hjh]h*}(hj]LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Lubjm)}(hjh]hp}(hjjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Lubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhM_ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhM_ ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjKhM_ hjKhhubj)}(hhh]h)}(h!Check if moving memory is allowedh]h!Check if moving memory is allowed}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ hjLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhM_ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before moving memory owned by process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chMc hjLubj)}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjLh]hstruct task_struct *p}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjLubj)}(hhh]h)}(htaskh]htask}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM` hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhM` hjLubah}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hjLubh)}(h=Check permission before moving memory owned by process **p**.h](h7Check permission before moving memory owned by process }(hj%MhhhNhNubj)}(h**p**h]hp}(hj-MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Mubh.}(hj%MhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjLubh)}(h **Return**h]j)}(hjHMh]hReturn}(hjJMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hjLubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj^MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_task_kill (C function)c.security_task_killhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hmint security_task_kill (struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h]j)}(hlint security_task_kill(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h](j )}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhjMhMl ubjg)}(hsecurity_task_killh]jm)}(hsecurity_task_killh]hsecurity_task_kill}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhjMhMl ubj)}(hV(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(hhh]jm)}(h task_structh]h task_struct}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jMsbc.security_task_killasbuh1hhjMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hjh]hp}(hj#NhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hstruct kernel_siginfo *infoh](j)}(hjh]hstruct}(hj;NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Nubj)}(h h]h }(hjHNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Nubh)}(hhh]jm)}(hkernel_siginfoh]hkernel_siginfo}(hjYNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[NmodnameN classnameNjI jL )}jO ]jNc.security_task_killasbuh1hhj7Nubj)}(h h]h }(hjwNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7Nubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Nubjm)}(hinfoh]hinfo}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7Nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hint sigh](j )}(hinth]hint}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubjm)}(hsigh]hsig}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(hcredh]hcred}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jNc.security_task_killasbuh1hhjNubj)}(h h]h }(hj7OhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjEOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hcredh]hcred}(hjROhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhMl ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjMhMl ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjMhMl hjMhhubj)}(hhh]h)}(h$Check if sending a signal is allowedh]h$Check if sending a signal is allowed}(hj|OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl hjyOhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMl ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct task_struct *p`` target process ``struct kernel_siginfo *info`` signal information ``int sig`` signal value ``const struct cred *cred`` credentials of the signal sender, NULL if **current** **Description** Check permission before sending signal **sig** to **p**. **info** can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If **info** is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp hjOubj)}(hhh](j)}(h)``struct task_struct *p`` target process h](j)}(h``struct task_struct *p``h]j)}(hjOh]hstruct task_struct *p}(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.chMm hjOubj)}(hhh]h)}(htarget processh]htarget process}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMm hjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMm hjOubj)}(h3``struct kernel_siginfo *info`` signal information h](j)}(h``struct kernel_siginfo *info``h]j)}(hjOh]hstruct kernel_siginfo *info}(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.chMn hjOubj)}(hhh]h)}(hsignal informationh]hsignal information}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj PhMn hj Pubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj PhMn hjOubj)}(h``int sig`` signal value h](j)}(h ``int sig``h]j)}(hj/Ph]hint sig}(hj1PhhhNhNubah}(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.chMo hj)Pubj)}(hhh]h)}(h signal valueh]h signal value}(hjHPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDPhMo hjEPubah}(h]h ]h"]h$]h&]uh1jhj)Pubeh}(h]h ]h"]h$]h&]uh1jhjDPhMo hjOubj)}(hR``const struct cred *cred`` credentials of the signal sender, NULL if **current** h](j)}(h``const struct cred *cred``h]j)}(hjhPh]hconst struct cred *cred}(hjjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp hjbPubj)}(hhh]h)}(h5credentials of the signal sender, NULL if **current**h](h*credentials of the signal sender, NULL if }(hjPhhhNhNubj)}(h **current**h]hcurrent}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1hhj}PhMp hj~Pubah}(h]h ]h"]h$]h&]uh1jhjbPubeh}(h]h ]h"]h$]h&]uh1jhj}PhMp hjOubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMr hjOubh)}(hXrCheck permission before sending signal **sig** to **p**. **info** can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If **info** is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops.h](h'Check permission before sending signal }(hjPhhhNhNubj)}(h**sig**h]hsig}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh to }(hjPhhhNhNubj)}(h**p**h]hp}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh. }(hjPhhhNhNubj)}(h**info**h]hinfo}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhN can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If }(hjPhhhNhNubj)}(h**info**h]hinfo}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hjOubh)}(h **Return**h]j)}(hj Qh]hReturn}(hj"QhhhNhNubah}(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.chMw hjOubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj6QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_task_prctl (C function)c.security_task_prctlhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(htint security_task_prctl (int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h]j)}(hsint security_task_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j )}(hinth]hint}(hjeQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjtQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaQhhhjsQhM ubjg)}(hsecurity_task_prctlh]jm)}(hsecurity_task_prctlh]hsecurity_task_prctl}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjaQhhhjsQhM ubj)}(h\(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j)}(h int optionh](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(hoptionh]hoption}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hunsigned long arg2h](j )}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj )}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubjm)}(harg2h]harg2}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hunsigned long arg3h](j )}(hunsignedh]hunsigned}(hj(RhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$Rubj)}(h h]h }(hj6RhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$Rubj )}(hlongh]hlong}(hjDRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj$Rubj)}(h h]h }(hjRRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$Rubjm)}(harg3h]harg3}(hj`RhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$Rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hunsigned long arg4h](j )}(hunsignedh]hunsigned}(hjyRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuRubj )}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuRubjm)}(harg4h]harg4}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hunsigned long arg5h](j )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj )}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubjm)}(harg5h]harg5}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjaQhhhjsQhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]QhhhjsQhM ubah}(h]jXQah ](jjeh"]h$]h&]jj)jhuh1hhjsQhM hjZQhhubj)}(hhh]h)}(hCheck if a prctl op is allowedh]hCheck if a prctl op is allowed}(hj,ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)Shhubah}(h]h ]h"]h$]h&]uh1jhjZQhhhjsQhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDSjjDSjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``int option`` operation ``unsigned long arg2`` argument ``unsigned long arg3`` argument ``unsigned long arg4`` argument ``unsigned long arg5`` argument **Description** Check permission before performing a process control operation on the current process. **Return** Return -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.h](h)}(h**Parameters**h]j)}(hjNSh]h Parameters}(hjPShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHSubj)}(hhh](j)}(h``int option`` operation h](j)}(h``int option``h]j)}(hjmSh]h int option}(hjoShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgSubj)}(hhh]h)}(h operationh]h operation}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM hjSubah}(h]h ]h"]h$]h&]uh1jhjgSubeh}(h]h ]h"]h$]h&]uh1jhjShM hjdSubj)}(h ``unsigned long arg2`` argument h](j)}(h``unsigned long arg2``h]j)}(hjSh]hunsigned long arg2}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjSubj)}(hhh]h)}(hargumenth]hargument}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShM hjdSubj)}(h ``unsigned long arg3`` argument h](j)}(h``unsigned long arg3``h]j)}(hjSh]hunsigned long arg3}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjSubj)}(hhh]h)}(hargumenth]hargument}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM hjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShM hjdSubj)}(h ``unsigned long arg4`` argument h](j)}(h``unsigned long arg4``h]j)}(hjTh]hunsigned long arg4}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjTubj)}(hhh]h)}(hargumenth]hargument}(hj1ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ThM hj.Tubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhj-ThM hjdSubj)}(h ``unsigned long arg5`` argument h](j)}(h``unsigned long arg5``h]j)}(hjQTh]hunsigned long arg5}(hjSThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjKTubj)}(hhh]h)}(hargumenth]hargument}(hjjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfThM hjgTubah}(h]h ]h"]h$]h&]uh1jhjKTubeh}(h]h ]h"]h$]h&]uh1jhjfThM hjdSubeh}(h]h ]h"]h$]h&]uh1jhjHSubh)}(h**Description**h]j)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHSubh)}(hVCheck permission before performing a process control operation on the current process.h]hVCheck permission before performing a process control operation on the current process.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHSubh)}(h **Return**h]j)}(hjTh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHSubh)}(hzReturn -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.h]hzReturn -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_task_to_inode (C function)c.security_task_to_inodehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hHvoid security_task_to_inode (struct task_struct *p, struct inode *inode)h]j)}(hGvoid security_task_to_inode(struct task_struct *p, struct inode *inode)h](j )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjThhhjUhM ubjg)}(hsecurity_task_to_inodeh]jm)}(hsecurity_task_to_inodeh]hsecurity_task_to_inode}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjThhhjUhM ubj)}(h,(struct task_struct *p, struct inode *inode)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hj5UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Uubj)}(h h]h }(hjBUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Uubh)}(hhh]jm)}(h task_structh]h task_struct}(hjSUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUUmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.security_task_to_inodeasbuh1hhj1Uubj)}(h h]h }(hjsUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Uubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Uubjm)}(hjh]hp}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-Uubj)}(hstruct inode *inodeh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hinodeh]hinode}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]joUc.security_task_to_inodeasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hinodeh]hinode}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-Uubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjUhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjUhM ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjUhM hjThhubj)}(hhh]h)}(h-Set the security attributes of a task's inodeh]h/Set the security attributes of a task’s inode}(hj'VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$Vhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjUhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?Vjj?Vjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct task_struct *p`` task ``struct inode *inode`` inode **Description** Set the security attributes for an inode based on an associated task's security attributes, e.g. for /proc/pid inodes.h](h)}(h**Parameters**h]j)}(hjIVh]h Parameters}(hjKVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCVubj)}(hhh](j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjhVh]hstruct task_struct *p}(hjjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjbVubj)}(hhh]h)}(htaskh]htask}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}VhM hj~Vubah}(h]h ]h"]h$]h&]uh1jhjbVubeh}(h]h ]h"]h$]h&]uh1jhj}VhM hj_Vubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjVh]hstruct inode *inode}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjVubj)}(hhh]h)}(hinodeh]hinode}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhM hjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhM hj_Vubeh}(h]h ]h"]h$]h&]uh1jhjCVubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCVubh)}(hvSet the security attributes for an inode based on an associated task's security attributes, e.g. for /proc/pid inodes.h]hxSet the security attributes for an inode based on an associated task’s security attributes, e.g. for /proc/pid inodes.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_create_user_ns (C function)c.security_create_user_nshNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h5int security_create_user_ns (const struct cred *cred)h]j)}(h4int security_create_user_ns(const struct cred *cred)h](j )}(hinth]hint}(hj!WhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj0WhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhj/WhM ubjg)}(hsecurity_create_user_nsh]jm)}(hsecurity_create_user_nsh]hsecurity_create_user_ns}(hjBWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>Wubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhj/WhM ubj)}(h(const struct cred *cred)h]j)}(hconst struct cred *credh](j)}(hjh]hconst}(hj^WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZWubj)}(h h]h }(hjkWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZWubj)}(hjh]hstruct}(hjyWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZWubh)}(hhh]jm)}(hcredh]hcred}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jDWsbc.security_create_user_nsasbuh1hhjZWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZWubjm)}(hcredh]hcred}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVWubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhj/WhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhj/WhM ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhj/WhM hjWhhubj)}(hhh]h)}(h)Check if creating a new userns is allowedh]h)Check if creating a new userns is allowed}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjWhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhj/WhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct cred *cred`` prepared creds **Description** Check permission prior to creating a new user namespace. **Return** Returns 0 if successful, otherwise < 0 error code.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXubj)}(hhh]j)}(h+``const struct cred *cred`` prepared creds h](j)}(h``const struct cred *cred``h]j)}(hj=Xh]hconst struct cred *cred}(hj?XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Xubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj7Xubj)}(hhh]h)}(hprepared credsh]hprepared creds}(hjVXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRXhM hjSXubah}(h]h ]h"]h$]h&]uh1jhj7Xubeh}(h]h ]h"]h$]h&]uh1jhjRXhM hj4Xubah}(h]h ]h"]h$]h&]uh1jhjXubh)}(h**Description**h]j)}(hjxXh]h Description}(hjzXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXubh)}(h8Check permission prior to creating a new user namespace.h]h8Check permission prior to creating a new user namespace.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXubh)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXubh)}(h2Returns 0 if successful, otherwise < 0 error code.h]h2Returns 0 if successful, otherwise < 0 error code.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_ipc_permission (C function)c.security_ipc_permissionhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hDint security_ipc_permission (struct kern_ipc_perm *ipcp, short flag)h]j)}(hCint security_ipc_permission(struct kern_ipc_perm *ipcp, short flag)h](j )}(hinth]hint}(hjXhhhNhNubah}(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 }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjXhM ubjg)}(hsecurity_ipc_permissionh]jm)}(hsecurity_ipc_permissionh]hsecurity_ipc_permission}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjXhM ubj)}(h((struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct kern_ipc_perm *ipcph](j)}(hjh]hstruct}(hj!YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h h]h }(hj.YhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj?YhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsecurity 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)}(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 msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hj%^h]hstruct msg_msg *msg}(hj'^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubj)}(hhh]h)}(hmessage structureh]hmessage 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^ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubh)}(hAllocate and attach a security structure to the msg->security field. The security field is initialized to NULL when the structure is first created.h]hAllocate and attach a security structure to the msg->security field. The security field is initialized to NULL when the structure is first created.}(hjv^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubh)}(h **Return**h]j)}(hj^h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubh)}(h?Return 0 if operation was successful and permission is granted.h]h?Return 0 if operation was successful and permission is granted.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h0void security_msg_msg_free (struct msg_msg *msg)h]j)}(h/void security_msg_msg_free(struct msg_msg *msg)h](j )}(hvoidh]hvoid}(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_msg_freeh]jm)}(hsecurity_msg_msg_freeh]hsecurity_msg_msg_free}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj^hhhj^hM ubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hj _hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(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.security_msg_msg_freeasbuh1hhj_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)}(hmsgh]hmsg}(hjb_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 Free a sysv ipc message LSM blobh]h Free a sysv ipc message LSM blob}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.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 msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hj_h]hstruct msg_msg *msg}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj_ubj)}(hhh]h)}(hmessage structureh]hmessage 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_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)}(h3Deallocate the security structure for this message.h]h3Deallocate the security structure for this message.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h8int security_msg_queue_alloc (struct kern_ipc_perm *msq)h]j)}(h7int security_msg_queue_alloc(struct kern_ipc_perm *msq)h](j )}(hinth]hint}(hjM`hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjI`hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hj\`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjI`hhhj[`hM ubjg)}(hsecurity_msg_queue_alloch]jm)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hjn`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjI`hhhj[`hM ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`modnameN classnameNjI jL )}jO ]jR )}jE jp`sbc.security_msg_queue_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)}(hmsqh]hmsq}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhjI`hhhj[`hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjE`hhhj[`hM ubah}(h]j@`ah ](jjeh"]h$]h&]jj)jhuh1hhj[`hM hjB`hhubj)}(hhh]h)}(h&Allocate a sysv ipc msg queue LSM blobh]h&Allocate a sysv ipc msg queue LSM blob}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ahhubah}(h]h ]h"]h$]h&]uh1jhjB`hhhj[`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%ajj%ajjjuh1hhhhjX"hNhNubj)}(hX1**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure **Description** Allocate and attach a security structure to **msg**. The security field is initialized to NULL when the structure is first created. **Return** Returns 0 if operation was successful and permission is granted.h](h)}(h**Parameters**h]j)}(hj/ah]h Parameters}(hj1ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-aubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)aubj)}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjNah]hstruct kern_ipc_perm *msq}(hjPahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHaubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjgahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcahM hjdaubah}(h]h ]h"]h$]h&]uh1jhjHaubeh}(h]h ]h"]h$]h&]uh1jhjcahM hjEaubah}(h]h ]h"]h$]h&]uh1jhj)aubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)aubh)}(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 }(hjahhhNhNubj)}(h**msg**h]hmsg}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubhP. The security field is initialized to NULL when the structure is first created.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)aubh)}(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)aubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)aubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_msg_queue_free (C function)c.security_msg_queue_freehNtauh1hhjX"hhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjbhM ubjg)}(hsecurity_msg_queue_freeh]jm)}(hsecurity_msg_queue_freeh]hsecurity_msg_queue_free}(hj(bhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$bubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjbhM ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjDbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@bubj)}(h h]h }(hjQbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@bubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjbbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_bubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdbmodnameN classnameNjI jL )}jO ]jR )}jE j*bsbc.security_msg_queue_freeasbuh1hhj@bubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@bubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@bubjm)}(hmsqh]hmsq}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsecurity** for the message queue.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjbubj)}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjch]hstruct kern_ipc_perm *msq}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjcubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj!chhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM hjbubah}(h]h ]h"]h$]h&]uh1jhjbubh)}(h**Description**h]j)}(hjCch]h Description}(hjEchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjbubh)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjYchhhNhNubj)}(h**perm->security**h]hperm->security}(hjachhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYcubh for the message queue.}(hjYchhhNhNubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hHint security_msg_queue_associate (struct kern_ipc_perm *msq, int msqflg)h]j)}(hGint security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg)h](j )}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjchM ubjg)}(hsecurity_msg_queue_associateh]jm)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjchM ubj)}(h'(struct kern_ipc_perm *msq, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjcmodnameN classnameNjI jL )}jO ]jR )}jE jcsbc.security_msg_queue_associateasbuh1hhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hj#dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hmsqh]hmsq}(hj0dhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(h int msqflgh](j )}(hinth]hint}(hjIdhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEdubj)}(h h]h }(hjWdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEdubjm)}(hmsqflgh]hmsqflg}(hjedhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEdubeh}(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)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``int msqflg`` operation flags **Description** Check permission when a message queue is requested through the msgget system call. This hook is only called when returning the message queue identifier for an existing message queue, not when a new message queue is created. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjdh]hstruct kern_ipc_perm *msq}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjdubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hj eh]h int msqflg}(hj ehhhNhNubah}(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 hjeubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hj"ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]j)}(hjDeh]h Description}(hjFehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubh)}(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.}(hjZehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubh)}(h **Return**h]j)}(hjkeh]hReturn}(hjmehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjieubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hjdubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM# hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hBint security_msg_queue_msgctl (struct kern_ipc_perm *msq, int cmd)h]j)}(hAint security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd)h](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjehM+ ubjg)}(hsecurity_msg_queue_msgctlh]jm)}(hsecurity_msg_queue_msgctlh]hsecurity_msg_queue_msgctl}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjehM+ ubj)}(h$(struct kern_ipc_perm *msq, int cmd)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]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}(hj fhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj fmodnameN classnameNjI jL )}jO ]jR )}jE jesbc.security_msg_queue_msgctlasbuh1hhjeubj)}(h h]h }(hj+fhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hj9fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hmsqh]hmsq}(hjFfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hint cmdh](j )}(hinth]hint}(hj_fhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[fubj)}(h h]h }(hjmfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[fubjm)}(hcmdh]hcmd}(hj{fhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjehM+ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehM+ ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehM+ hjehhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(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&]uh1jhjehhhjehM+ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhjX"hNhNubj)}(hX***Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``int cmd`` operation **Description** Check permission when a message control operation specified by **cmd** is to be performed on the message queue with permissions. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ hjfubj)}(hhh](j)}(h<``struct 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.chM, hjfubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM, hjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhM, hjfubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hjgh]hint cmd}(hj!ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM- hjgubj)}(hhh]h)}(h operationh]h operation}(hj8ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ghM- hj5gubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhj4ghM- hjfubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h**Description**h]j)}(hjZgh]h Description}(hj\ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ hjfubh)}(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 }(hjpghhhNhNubj)}(h**cmd**h]hcmd}(hjxghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpgubh: is to be performed on the message queue with permissions.}(hjpghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hjfubh)}(h **Return**h]j)}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1 hjfubh)}(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.chM2 hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgsnd (C function)c.security_msg_queue_msgsndhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hZint security_msg_queue_msgsnd (struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h]j)}(hYint security_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j )}(hinth]hint}(hjghhhNhNubah}(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 }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjghM: ubjg)}(hsecurity_msg_queue_msgsndh]jm)}(hsecurity_msg_queue_msgsndh]hsecurity_msg_queue_msgsnd}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjghM: ubj)}(h<(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hj"hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj3hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0hubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5hmodnameN classnameNjI jL )}jO ]jR )}jE jgsbc.security_msg_queue_msgsndasbuh1hhjhubj)}(h h]h }(hjShhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjahhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hmsqh]hmsq}(hjnhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj hubj)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN classnameNjI jL )}jO ]jOhc.security_msg_queue_msgsndasbuh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjm)}(hmsgh]hmsg}(hjhhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj hubj)}(h int msqflgh](j )}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hmsqflgh]hmsqflg}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj hubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghM: ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghM: ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghM: hjghhubj)}(hhh]h)}(h.Check if sending a sysv ipc message is allowedh]h.Check if sending a sysv ipc message is allowed}(hj=ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM: hj:ihhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghM: ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUijjUijjjuh1hhhhjX"hNhNubj)}(hXI**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``struct msg_msg *msg`` message ``int msqflg`` operation flags **Description** Check permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj_ih]h Parameters}(hjaihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]iubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hjYiubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj~ih]hstruct kern_ipc_perm *msq}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM; hjxiubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM; hjiubah}(h]h ]h"]h$]h&]uh1jhjxiubeh}(h]h ]h"]h$]h&]uh1jhjihM; hjuiubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hjih]hstruct msg_msg *msg}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM< hjiubj)}(hhh]h)}(hmessageh]hmessage}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM< hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihM< hjuiubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjih]h int msqflg}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM= hjiubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM= hjjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjjhM= hjuiubeh}(h]h ]h"]h$]h&]uh1jhjYiubh)}(h**Description**h]j)}(hj+jh]h Description}(hj-jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)jubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hjYiubh)}(hsCheck permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**.h](h#Check permission before a message, }(hjAjhhhNhNubj)}(h**msg**h]hmsg}(hjIjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAjubhA, is enqueued on the message queue with permissions specified in }(hjAjhhhNhNubj)}(h**msq**h]hmsq}(hj[jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAjubh.}(hjAjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hjYiubh)}(h **Return**h]j)}(hjvjh]hReturn}(hjxjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjYiubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hjYiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hint security_msg_queue_msgrcv (struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h]j)}(h~int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h](j )}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMK ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjhhhjjhMK ubjg)}(hsecurity_msg_queue_msgrcvh]jm)}(hsecurity_msg_queue_msgrcvh]hsecurity_msg_queue_msgrcv}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhjjhMK ubj)}(ha(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE jjsbc.security_msg_queue_msgrcvasbuh1hhjjubj)}(h h]h }(hj6khhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubj)}(hjh]h*}(hjDkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjm)}(hmsqh]hmsq}(hjQkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hstruct msg_msg *msgh](j)}(hjh]hstruct}(hjjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfkubj)}(h h]h }(hjwkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfkubh)}(hhh]jm)}(hmsg_msgh]hmsg_msg}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]j2kc.security_msg_queue_msgrcvasbuh1hhjfkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfkubjm)}(hmsgh]hmsg}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hstruct task_struct *targeth](j)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubh)}(hhh]jm)}(h task_structh]h task_struct}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]j2kc.security_msg_queue_msgrcvasbuh1hhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubj)}(hjh]h*}(hj$lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjm)}(htargeth]htarget}(hj1lhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h long typeh](j )}(hlongh]hlong}(hjJlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFlubj)}(h h]h }(hjXlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFlubjm)}(htypeh]htype}(hjflhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hint modeh](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj{lubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{lubjm)}(hmodeh]hmode}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMK ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMK hjjhhubj)}(hhh]h)}(h,Check if receiving a sysv ipc msg is allowedh]h,Check if receiving a sysv ipc msg is allowed}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMK hjlhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhjX"hNhNubj)}(hX+**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``struct msg_msg *msg`` message ``struct task_struct *target`` target task ``long type`` type of message requested ``int mode`` operation flags **Description** Check permission before a message, **msg**, is removed from the message queue. The **target** task structure contains a pointer to the process that will be receiving the message (not equal to the current process when inline receives are being performed). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chMO hjlubj)}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjmh]hstruct kern_ipc_perm *msq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chML hjmubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhML hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhML hjlubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hj?mh]hstruct msg_msg *msg}(hjAmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=mubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMM hj9mubj)}(hhh]h)}(hmessageh]hmessage}(hjXmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTmhMM hjUmubah}(h]h ]h"]h$]h&]uh1jhj9mubeh}(h]h ]h"]h$]h&]uh1jhjTmhMM hjlubj)}(h+``struct task_struct *target`` target task h](j)}(h``struct task_struct *target``h]j)}(hjxmh]hstruct task_struct *target}(hjzmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMN hjrmubj)}(hhh]h)}(h target taskh]h target task}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMN hjmubah}(h]h ]h"]h$]h&]uh1jhjrmubeh}(h]h ]h"]h$]h&]uh1jhjmhMN hjlubj)}(h(``long type`` type of message requested h](j)}(h ``long type``h]j)}(hjmh]h long type}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMO hjmubj)}(hhh]h)}(htype of message requestedh]htype of message requested}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMO hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMO hjlubj)}(h``int mode`` operation flags h](j)}(h ``int mode``h]j)}(hjmh]hint mode}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMP hjmubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMP hjnubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMP hjlubeh}(h]h ]h"]h$]h&]uh1jhjlubh)}(h**Description**h]j)}(hj%nh]h Description}(hj'nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjlubh)}(hCheck permission before a message, **msg**, is removed from the message queue. The **target** task structure contains a pointer to the process that will be receiving the message (not equal to the current process when inline receives are being performed).h](h#Check permission before a message, }(hj;nhhhNhNubj)}(h**msg**h]hmsg}(hjCnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;nubh), is removed from the message queue. The }(hj;nhhhNhNubj)}(h **target**h]htarget}(hjUnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;nubh task structure contains a pointer to the process that will be receiving the message (not equal to the current process when inline receives are being performed).}(hj;nhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ hjlubh)}(h **Return**h]j)}(hjpnh]hReturn}(hjrnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMV hjlubh)}(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.chMW hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_alloc (C function)c.security_shm_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h2int security_shm_alloc (struct kern_ipc_perm *shp)h]j)}(h1int security_shm_alloc(struct kern_ipc_perm *shp)h](j )}(hinth]hint}(hjnhhhNhNubah}(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 }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnhhhjnhM` ubjg)}(hsecurity_shm_alloch]jm)}(hsecurity_shm_alloch]hsecurity_shm_alloc}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjnhM` ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj oubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]jR )}jE jnsbc.security_shm_allocasbuh1hhjnubj)}(h h]h }(hj0ohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hj>ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hshph]hshp}(hjKohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhjnhhhjnhM` ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjnhM` ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjnhM` hjnhhubj)}(hhh]h)}(hAllocate a sysv shm LSM blobh]hAllocate a sysv shm LSM blob}(hjuohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjrohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhM` ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhjX"hNhNubj)}(hXE**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure **Description** Allocate and attach a security structure to the **shp** security field. The security field is initialized to NULL when the structure is first created. **Return** Returns 0 if operation was successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjoubj)}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjoh]hstruct kern_ipc_perm *shp}(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.chMa hjoubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMa hjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMa hjoubah}(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:283: ./security/security.chMc hjoubh)}(hAllocate and attach a security structure to the **shp** security field. The security field is initialized to NULL when the structure is first created.h](h0Allocate and attach a security structure to the }(hjphhhNhNubj)}(h**shp**h]hshp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh` security field. The security field is initialized to NULL when the structure is first created.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hjoubh)}(h **Return**h]j)}(hj*ph]hReturn}(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.chMe hjoubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hj@phhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMf hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_shm_free (C function)c.security_shm_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h2void security_shm_free (struct kern_ipc_perm *shp)h]j)}(h1void security_shm_free(struct kern_ipc_perm *shp)h](j )}(hvoidh]hvoid}(hjophhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu ubj)}(h h]h }(hj~phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkphhhj}phMu ubjg)}(hsecurity_shm_freeh]jm)}(hsecurity_shm_freeh]hsecurity_shm_free}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjkphhhj}phMu ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjpmodnameN classnameNjI jL )}jO ]jR )}jE jpsbc.security_shm_freeasbuh1hhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hshph]hshp}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhjkphhhj}phMu ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjgphhhj}phMu ubah}(h]jbpah ](jjeh"]h$]h&]jj)jhuh1hhj}phMu hjdphhubj)}(hhh]h)}(hFree a sysv shm LSM blobh]hFree a sysv shm LSM blob}(hj/qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu hj,qhhubah}(h]h ]h"]h$]h&]uh1jhjdphhhj}phMu ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGqjjGqjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure **Description** Deallocate the security structure **perm->security** for the memory segment.h](h)}(h**Parameters**h]j)}(hjQqh]h Parameters}(hjSqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMy hjKqubj)}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjpqh]hstruct kern_ipc_perm *shp}(hjrqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMv hjjqubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMv hjqubah}(h]h ]h"]h$]h&]uh1jhjjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMv hjgqubah}(h]h ]h"]h$]h&]uh1jhjKqubh)}(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.chMx hjKqubh)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hjqhhhNhNubj)}(h**perm->security**h]hperm->security}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh for the memory segment.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hjKqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_shm_associate (C function)c.security_shm_associatehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hBint security_shm_associate (struct kern_ipc_perm *shp, int shmflg)h]j)}(hAint security_shm_associate(struct kern_ipc_perm *shp, int shmflg)h](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjrhM ubjg)}(hsecurity_shm_associateh]jm)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hj#rhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjqhhhjrhM ubj)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hjh]hstruct}(hj?rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;rubj)}(h h]h }(hjLrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;rubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj]rhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj_rmodnameN classnameNjI jL )}jO ]jR )}jE j%rsbc.security_shm_associateasbuh1hhj;rubj)}(h h]h }(hj}rhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;rubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;rubjm)}(hshph]hshp}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7rubj)}(h int shmflgh](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubjm)}(hshmflgh]hshmflg}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7rubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjrhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjrhM ubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjrhM hjqhhubj)}(hhh]h)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjrhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure ``int shmflg`` operation flags **Description** Check permission when a shared memory region is requested through the shmget system call. This hook is only called when returning the shared memory region identifier for an existing region, not when a new shared memory region is created. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjsubj)}(hhh](j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj8sh]hstruct kern_ipc_perm *shp}(hj:shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2subj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjQshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMshM hjNsubah}(h]h ]h"]h$]h&]uh1jhj2subeh}(h]h ]h"]h$]h&]uh1jhjMshM hj/subj)}(h``int shmflg`` operation flags h](j)}(h``int shmflg``h]j)}(hjqsh]h int shmflg}(hjsshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjosubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjksubj)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshM hjsubah}(h]h ]h"]h$]h&]uh1jhjksubeh}(h]h ]h"]h$]h&]uh1jhjshM hj/subeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjsubh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjsubh)}(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.chM hjsubh)}(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.chM hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hsecurity** for the semaphore.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{ubj)}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hj{h]hstruct kern_ipc_perm *sma}(hj{hhhNhNubah}(h]h ]h"]h$]h&]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{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)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hj%|hhhNhNubj)}(h**sma->security**h]h sma->security}(hj-|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%|ubh for the semaphore.}(hj%|hhhNhNubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_sem_associate (C function)c.security_sem_associatehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hBint security_sem_associate (struct kern_ipc_perm *sma, int semflg)h]j)}(hAint security_sem_associate(struct kern_ipc_perm *sma, int semflg)h](j )}(hinth]hint}(hjf|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjb|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hju|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb|hhhjt|hM ubjg)}(hsecurity_sem_associateh]jm)}(hsecurity_sem_associateh]hsecurity_sem_associate}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjb|hhhjt|hM ubj)}(h'(struct kern_ipc_perm *sma, int semflg)h](j)}(hstruct kern_ipc_perm *smah](j)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(h kern_ipc_permh]h kern_ipc_perm}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]jR )}jE j|sbc.security_sem_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)}(hsmah]hsma}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h int semflgh](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)}(hsemflgh]hsemflg}(hj1}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhjb|hhhjt|hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^|hhhjt|hM ubah}(h]jY|ah ](jjeh"]h$]h&]jj)jhuh1hhjt|hM hj[|hhubj)}(hhh]h)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hj[}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjX}hhubah}(h]h ]h"]h$]h&]uh1jhj[|hhhjt|hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjs}jjs}jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``int semflg`` operation flags **Description** Check permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj}}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjw}ubj)}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hj}h]hstruct kern_ipc_perm *sma}(hj}hhhNhNubah}(h]h ]h"]h$]h&]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 semflg`` operation flags h](j)}(h``int semflg``h]j)}(hj}h]h int semflg}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj}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&]uh1jhjw}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 hjw}ubh)}(hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.h]hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.}(hj&~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjw}ubh)}(h **Return**h]j)}(hj7~h]hReturn}(hj9~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjw}ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjM~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjw}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hhhhNhNubah}(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&]jjjjVjjVjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``struct sembuf *sops`` operations to perform ``unsigned nsops`` number of operations ``int alter`` flag indicating changes will be made **Description** Check permissions before performing operations on members of the semaphore set. If the **alter** flag is nonzero, the semaphore set may be modified. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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:283: ./security/security.chM hjZubj)}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjh]hstruct kern_ipc_perm *sma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjyubj)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM hjvubj)}(h.``struct sembuf *sops`` operations to perform h](j)}(h``struct sembuf *sops``h]j)}(hjh]hstruct sembuf *sops}(hjhhhNhNubah}(h]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)}(hoperations to performh]hoperations to perform}(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(``unsigned nsops`` number of operations h](j)}(h``unsigned nsops``h]j)}(hjh]hunsigned nsops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj)}(hhh]h)}(hnumber of operationsh]hnumber of operations}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjvubj)}(h3``int alter`` flag indicating changes will be made h](j)}(h ``int alter``h]j)}(hj*h]h int alter}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj$ubj)}(hhh]h)}(h$flag indicating changes will be madeh]h$flag indicating changes will be made}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hM hjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubh)}(hCheck permissions before performing operations on members of the semaphore set. If the **alter** flag is nonzero, the semaphore set may be modified.h](hWCheck permissions before performing operations on members of the semaphore set. If the }(hj{hhhNhNubj)}(h **alter**h]halter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh4 flag is nonzero, the semaphore set may be modified.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubh)}(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 hjZubh)}(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 hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_getselfattr (C function)c.security_getselfattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hfint security_getselfattr (unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h]j)}(heint security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]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_getselfattrh]jm)}(hsecurity_getselfattrh]hsecurity_getselfattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj߃hhhjhMubj)}(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 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 }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_ctx __user *uctxh](j)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh)}(hhh]jm)}(hlsm_ctxh]hlsm_ctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_getselfattrasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubh__user}(hjmhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubj)}(hjh]h*}(hjτhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjm)}(huctxh]huctx}(hj܄hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 __user *sizeh](h)}(hhh]jm)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_getselfattrasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hjChhhNhNubah}(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 reftargetjamodnameN classnameNjI jL )}jO ]jc.security_getselfattrasbuh1hhjXubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(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-Read an LSM attribute of the current process.h]h-Read an LSM attribute of the current process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj؃hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjͅjjͅjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``unsigned int attr`` which attribute to return ``struct lsm_ctx __user *uctx`` the user-space destination for the information, or NULL ``u32 __user *size`` pointer to the size of space available to receive the data ``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. **Description** A NULL value for **uctx** can be used to get both the number of attributes and the size of the data. Returns the number of attributes found on success, negative value on error. **size** is reset to the total size of the data. If **size** is insufficient to contain the data -E2BIG is returned.h](h)}(h**Parameters**h]j)}(hjׅh]h Parameters}(hjمhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՅubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjхubj)}(hhh](j)}(h0``unsigned int attr`` which attribute to return h](j)}(h``unsigned int attr``h]j)}(hjh]hunsigned int attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hwhich attribute to returnh]hwhich attribute to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)ubj)}(hhh]h)}(h7the user-space destination for the information, or NULLh]h7the user-space destination for the information, or NULL}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(hP``u32 __user *size`` pointer to the size of space available to receive the data h](j)}(h``u32 __user *size``h]j)}(hjhh]hu32 __user *size}(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.chMhjbubj)}(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}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubj)}(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.chM hjubj)}(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}(hj†hhhNhNubah}(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.chMhjubah}(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)}(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.chM!hjх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.chM$hjхubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_setselfattr (C function)c.security_setselfattrhNtauh1hhjX"hhhNhNubh)}(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}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhMwubjg)}(hsecurity_setselfattrh]jm)}(hsecurity_setselfattrh]hsecurity_setselfattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhMwubj)}(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 }(hjhhhNhNubah}(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)}(hjh]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 }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(huctxh]huctx}(hjrhhhNhNubah}(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 ]jAc.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 ]jAc.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&]jjuh1jhjuhhhjhMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhMwubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMwhjnhhubj)}(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.chMwhj)hhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``unsigned int attr`` which attribute to set ``struct lsm_ctx __user *uctx`` the user-space source for the information ``u32 size`` the size of the data ``u32 flags`` reserved for future use, must be 0 **Description** Set an LSM attribute for the current process. The LSM, attribute and new value are included in **uctx**. Returns 0 on success, -EINVAL if the input is inconsistent, -EFAULT if the user buffer is inaccessible, E2BIG if size is too big, or an LSM specific failure.h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjHubj)}(hhh](j)}(h-``unsigned int attr`` which attribute to set h](j)}(h``unsigned int attr``h]j)}(hjmh]hunsigned int 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.chMxhjgubj)}(hhh]h)}(hwhich attribute to seth]hwhich attribute to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjdubj)}(hJ``struct lsm_ctx __user *uctx`` the user-space source for the information h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hjh]hstruct lsm_ctx __user *uctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjubj)}(hhh]h)}(h)the user-space source for the informationh]h)the user-space source for the information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjdubj)}(h"``u32 size`` the size of the data h](j)}(h ``u32 size``h]j)}(hj߉h]hu32 size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݉ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjىubj)}(hhh]h)}(hthe size of the datah]hthe size of the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjىubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjdubj)}(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.chM{hjubj)}(hhh]h)}(h"reserved for future use, must be 0h]h"reserved for future use, must be 0}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM{hj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hM{hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(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}hjHubh)}(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 }(hjihhhNhNubj)}(h**uctx**h]huctx}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hjHubh)}(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.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_getprocattr (C function)c.security_getprocattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h[int security_getprocattr (struct task_struct *p, int lsmid, const char *name, char **value)h]j)}(hZint security_getprocattr(struct task_struct *p, int lsmid, const char *name, char **value)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjȊhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjNJhMubjg)}(hsecurity_getprocattrh]jm)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hjڊhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj֊ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjNJhMubj)}(hB(struct task_struct *p, int lsmid, const char *name, char **value)h](j)}(hstruct task_struct *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h task_structh]h task_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j܊sbc.security_getprocattrasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int lsmidh](j )}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubjm)}(hlsmidh]hlsmid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(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}(hjhhhNhNubah}(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&]jjuh1jhjhhhjNJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjNJhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjNJhMhjhhubj)}(hhh]h)}(hRead an attribute for a taskh]hRead an attribute for a task}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjNJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1hhhhjX"hNhNubj)}(hXY**Parameters** ``struct task_struct *p`` the task ``int lsmid`` LSM identification ``const char *name`` attribute name ``char **value`` attribute value **Description** Read attribute **name** for task **p** and store it into **value** if allowed. **Return** Returns the length of **value** on success, a negative value otherwise.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjuubj)}(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}(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)}(hattribute nameh]hattribute name}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h!``char **value`` attribute value h](j)}(h``char **value``h]j)}(hjEh]h char **value}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubj)}(hhh]h)}(hattribute valueh]hattribute value}(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&]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:283: ./security/security.chMhjuubh)}(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}(hjhhhNhNubah}(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.chMhjuubh)}(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.chMhjuubh)}(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.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_setprocattr (C function)c.security_setprocattrhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hPint security_setprocattr (int lsmid, const char *name, void *value, size_t size)h]j)}(hOint security_setprocattr(int lsmid, const char *name, void *value, size_t size)h](j )}(hinth]hint}(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_setprocattrh]jm)}(hsecurity_setprocattrh]hsecurity_setprocattr}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhjBhMubj)}(h7(int lsmid, const char *name, void *value, size_t size)h](j)}(h int lsmidh](j )}(hinth]hint}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubjm)}(hlsmidh]hlsmid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(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&]noemphjjuh1jhjiubj)}(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&]noemphjjuh1jhjiubj)}(h size_t sizeh](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 jWsbc.security_setprocattrasbuh1hhjAubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hsizeh]hsize}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(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)}(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)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX[**Parameters** ``int lsmid`` LSM identification ``const char *name`` attribute name ``void *value`` attribute value ``size_t size`` attribute value size **Description** Write (set) the current task's attribute **name** to **value**, size **size** if allowed. **Return** Returns bytes written on success, a negative value otherwise.h](h)}(h**Parameters**h]j)}(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!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hjh]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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(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)}(hjSh]h void *value}(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)}(hattribute valueh]hattribute value}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhj؏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ǐ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)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݐubh if allowed.}(hjݐhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_post_notification (C function)c.security_post_notificationhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hqint security_post_notification (const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h]j)}(hpint security_post_notification(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjwhMubjg)}(hsecurity_post_notificationh]jm)}(hsecurity_post_notificationh]hsecurity_post_notification}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjehhhjwhMubj)}(hR(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j)}(hconst struct cred *w_credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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 reftargetjmodnameN 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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hcredh]hcred}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN 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)}(hjh]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&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhj^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.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjX"hNhNubj)}(hXm**Parameters** ``const struct cred *w_cred`` credentials of the task that set the watch ``const struct cred *cred`` credentials of the task which triggered the watch ``struct watch_notification *n`` the notification **Description** Check to see if a watch notification can be posted to a particular queue. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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:283: ./security/security.chMhjZubj)}(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)}(hjh]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.chMhjyubj)}(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&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(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͓hMhjΓubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͓hMhjvubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubeh}(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.chMhjZubh)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZubh)}(h **Return**h]j)}(hjSh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_watch_key (C function)c.security_watch_keyhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h(int security_watch_key (struct key *key)h]j)}(h'int security_watch_key(struct key *key)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_watch_keyh]jm)}(hsecurity_watch_keyh]hsecurity_watch_key}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hjՔhhhNhNubah}(h]h ]jah"]h$]h&]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*}(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&]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}(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&]jjjjpjjpjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct key *key`` the key to watch **Description** Check to see if a process is allowed to watch for event notifications from a key or keyring. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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%``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&]uh1jhjtubh)}(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.chMhjtubh)}(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.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)}(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.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_netlink_send (C function)c.security_netlink_sendhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h@int security_netlink_send (struct sock *sk, struct sk_buff *skb)h]j)}(h?int security_netlink_send(struct sock *sk, struct sk_buff *skb)h](j )}(hinth]hint}(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 }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhjNhMubjg)}(hsecurity_netlink_sendh]jm)}(hsecurity_netlink_sendh]hsecurity_netlink_send}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhjNhMubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](j)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jcsbc.security_netlink_sendasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjɖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(hskh]hsk}(hj֖hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hstruct sk_buff *skbh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsk_buffh]hsk_buff}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_netlink_sendasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskbh]hskb}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjNhMhj5hhubj)}(hhh]h)}(h1Save info and check if netlink sending is allowedh]h1Save info and check if netlink sending is allowed}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct sock *sk`` sending socket ``struct sk_buff *skb`` netlink message **Description** Save security information for a netlink message so that permission checking can be performed when the message is processed. The security information can be saved using the eff_cap field of the netlink_skb_parms structure. Also may be used to provide fine grained control over message transmission. **Return** Returns 0 if the information was successfully saved and message is allowed to be transmitted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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.}(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)}(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.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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_create (C function)c.security_socket_createhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hIint security_socket_create (int family, int type, int protocol, int kern)h]j)}(hHint security_socket_create(int family, int type, int protocol, int kern)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j 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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubjm)}(hprotocolh]hprotocol}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjƘubj)}(hint kernh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubjm)}(hkernh]hkern}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(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˙jjjuh1hhhhjX"hNhNubj)}(hX)**Parameters** ``int family`` protocol family ``int type`` communications type ``int protocol`` requested protocol ``int kern`` set to 1 if a kernel socket is requested **Description** Check permissions prior to creating a new socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjՙh]h Parameters}(hjיhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjәubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjfh]h int protocol}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubj)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjubj)}(h6``int kern`` set to 1 if a kernel socket is requested h](j)}(h ``int kern``h]j)}(hjh]hint kern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hcint security_socket_post_create (struct socket *sock, int family, int type, int protocol, int kern)h]j)}(hbint security_socket_post_create(struct socket *sock, int family, int type, int protocol, int kern)h](j )}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjThMubjg)}(hsecurity_socket_post_createh]jm)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjThMubj)}(hC(struct socket *sock, int family, int type, int protocol, int kern)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jisbc.security_socket_post_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjϛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjܛhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(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&]noemphjjuh1jhj{ubj)}(hint typeh](j )}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubjm)}(htypeh]htype}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(h int protocolh](j )}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubjm)}(hprotocolh]hprotocol}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(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&]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!Initialize a newly created socketh]h!Initialize a newly created socket}(hjڜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjלhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct socket *sock`` socket ``int family`` protocol family ``int type`` communications type ``int protocol`` requested protocol ``int kern`` set to 1 if a kernel socket is requested **Description** This hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn't available when the inode was allocated. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjTh]h int family}(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)}(hprotocol familyh]hprotocol family}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubj)}(h!``int type`` communications type h](j)}(h ``int type``h]j)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjߝhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj۝hMhjܝubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj۝hMhjubj)}(h6``int kern`` set to 1 if a kernel socket is requested h](j)}(h ``int kern``h]j)}(hjh]hint kern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn't available when the inode was allocated.h]hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn’t available when the inode was allocated.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjah]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!security_socket_bind (C function)c.security_socket_bindhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hUint security_socket_bind (struct socket *sock, struct sockaddr *address, int addrlen)h]j)}(hTint security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM&ubjg)}(hsecurity_socket_bindh]jm)}(hsecurity_socket_bindh]hsecurity_socket_bind}(hjǞhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjÞubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM&ubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߞubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjߞubh)}(hhh]jm)}(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 }(hj!hhhNhNubah}(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)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jc.security_socket_bindasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj۞ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM&ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM&hjhhubj)}(hhh]h)}(h+Check if a 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.chM&hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhjX"hNhNubj)}(hXq**Parameters** ``struct socket *sock`` socket ``struct sockaddr *address`` requested bind address ``int addrlen`` length of address **Description** Check permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hj'ubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjLh]hstruct socket *sock}(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)}(hsocketh]hsocket}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM'hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM'hjCubj)}(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.chM(hjubj)}(hhh]h)}(hrequested bind addressh]hrequested bind address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjCubj)}(h"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjubj)}(hhh]h)}(hlength of addressh]hlength of address}(hjנhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӠhM)hjԠubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӠhM)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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hj'ubh)}(hCheck permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter.h](hYCheck permission before socket protocol layer bind operation is performed and the socket }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* is bound to the address specified in the }(hjhhhNhNubj)}(h **address**h]haddress}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh parameter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hj'ubh)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hj'ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_connect (C function)c.security_socket_connecthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hXint security_socket_connect (struct socket *sock, struct sockaddr *address, int addrlen)h]j)}(hWint security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM8ubjg)}(hsecurity_socket_connecth]jm)}(hsecurity_socket_connecth]hsecurity_socket_connect}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM8ubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjơhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¡ubj)}(h h]h }(hjӡhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¡ubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_connectasbuh1hhj¡ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj¡ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¡ubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj¡ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sockaddr *addressh](j)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubh)}(hhh]jm)}(hsockaddrh]hsockaddr}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jc.security_socket_connectasbuh1hhj4ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjm)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubeh}(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&]jjuh1jhjhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM8ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhM8hj~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.chM8hjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hXa**Parameters** ``struct socket *sock`` socket ``struct sockaddr *address`` address of remote connection point ``int addrlen`` length of address **Description** Check permission before socket protocol layer connect operation attempts to connect socket **sock** to a remote address, **address**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hj ubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hj/h]hstruct socket *sock}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hj)ubj)}(hhh]h)}(hsocketh]hsocket}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM9hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhM9hj&ubj)}(h@``struct sockaddr *address`` address of remote connection point h](j)}(h``struct sockaddr *address``h]j)}(hjhh]hstruct sockaddr *address}(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"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&]uh1jhjbubeh}(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&]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)}(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<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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_socket_listen (C function)c.security_socket_listenhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h=int security_socket_listen (struct socket *sock, int backlog)h]j)}(hhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(hsocketh]hsocket}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jc.security_socket_acceptasbuh1hhj-ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjm)}(hnewsockh]hnewsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhMWubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMWhjwhhubj)}(hhh]h)}(h2Check if a socket is allowed to accept connectionsh]h2Check if a socket is allowed to accept connections}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjʧjjʧjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct socket *sock`` listening socket ``struct socket *newsock`` newly creation connection socket **Description** Check permission before accepting a new connection. Note that the new socket, **newsock**, has been created and some information copied to it, but the accept operation has not actually been performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjԧh]h Parameters}(hj֧hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hjΧubj)}(hhh](j)}(h)``struct socket *sock`` listening socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjubj)}(hhh]h)}(hlistening socketh]hlistening socket}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjubj)}(h<``struct socket *newsock`` newly creation connection socket h](j)}(h``struct socket *newsock``h]j)}(hj,h]hstruct socket *newsock}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj&ubj)}(hhh]h)}(h newly creation connection socketh]h newly creation connection socket}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMYhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMYhjubeh}(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.chM[hjΧubh)}(hCheck permission before accepting a new connection. Note that the new socket, **newsock**, has been created and some information copied to it, but the accept operation has not actually been performed.h](hOCheck permission before accepting a new connection. Note that the new socket, }(hj}hhhNhNubj)}(h **newsock**h]hnewsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubho, has been created and some information copied to it, but the accept operation has not actually been performed.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhjΧ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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_sendmsg (C function)c.security_socket_sendmsghNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hOint security_socket_sendmsg (struct socket *sock, struct msghdr *msg, int size)h]j)}(hNint security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMgubjg)}(hsecurity_socket_sendmsgh]jm)}(hsecurity_socket_sendmsgh]hsecurity_socket_sendmsg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMgubj)}(h3(struct socket *sock, struct msghdr *msg, int size)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_socket_sendmsgasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct msghdr *msgh](j)}(hjh]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 ]j\c.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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjݨhhhjhMgubah}(h]jبah ](jjeh"]h$]h&]jj)jhuh1hhjhMghjڨhhubj)}(hhh]h)}(h%Check if sending a message is allowedh]h%Check if sending a message is allowed}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjGhhubah}(h]h ]h"]h$]h&]uh1jhjڨhhhjhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct socket *sock`` sending socket ``struct msghdr *msg`` message to send ``int size`` size of message **Description** Check permission before transmitting a message to another socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chMkhjfubj)}(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.chMhhjubj)}(hhh]h)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubj)}(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&]uh1jhjªubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjubj)}(hhh]h)}(hmessage to sendh]hmessage to send}(hjݪhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj٪hMihjڪubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj٪hMihjubj)}(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.chMjhjubj)}(hhh]h)}(hsize of messageh]hsize of message}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubeh}(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.chMlhjfubh)}(hACheck permission before transmitting a message to another socket.h]hACheck permission before transmitting a message to another socket.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhjfubh)}(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.chMmhjfubh)}(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.chMnhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_socket_recvmsg (C function)c.security_socket_recvmsghNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hZint security_socket_recvmsg (struct socket *sock, struct msghdr *msg, int size, int flags)h]j)}(hYint security_socket_recvmsg(struct socket *sock, struct msghdr *msg, int size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMvubjg)}(hsecurity_socket_recvmsgh]jm)}(hsecurity_socket_recvmsgh]hsecurity_socket_recvmsg}(hjūhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMvubj)}(h>(struct socket *sock, struct msghdr *msg, int size, int flags)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(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_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}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݫubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj٫ubj)}(hstruct msghdr *msgh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hmsghdrh]hmsghdr}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jc.security_socket_recvmsgasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj٫ubj)}(hint sizeh](j )}(hinth]hint}(hjìhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjѬhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsizeh]hsize}(hj߬hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj٫ubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj٫ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMvhjhhubj)}(hhh]h)}(h'Check if receiving a message is allowedh]h'Check if receiving a message is allowed}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhj;hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjX"hNhNubj)}(hX(**Parameters** ``struct socket *sock`` receiving socket ``struct msghdr *msg`` message to receive ``int size`` size of message ``int flags`` operational flags **Description** Check permission before receiving a message from a socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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:283: ./security/security.chMzhjZubj)}(hhh](j)}(h)``struct socket *sock`` receiving socket h](j)}(h``struct socket *sock``h]j)}(hjh]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.chMwhjyubj)}(hhh]h)}(hreceiving socketh]hreceiving socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjvubj)}(h*``struct msghdr *msg`` message to receive h](j)}(h``struct msghdr *msg``h]j)}(hjh]hstruct msghdr *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubj)}(hhh]h)}(hmessage to receiveh]hmessage to receive}(hjѭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͭhMxhjέubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjͭhMxhjvubj)}(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.chMyhjubj)}(hhh]h)}(hsize of messageh]hsize of message}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjvubj)}(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.chMzhj$ubj)}(hhh]h)}(hoperational flagsh]hoperational flags}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMzhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMzhjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM|hjZubh)}(h:Check permission before receiving a message from a socket.h]h:Check permission before receiving a message from a socket.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjZubh)}(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}hjZubh)}(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~hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhjX"hhhNhNubh)}(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 }(hjhhhNhNubah}(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)}(hjh]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}(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_getsocknameasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hsockh]hsock}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjͮhhhj߮hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjɮhhhj߮hMubah}(h]jĮah ](jjeh"]h$]h&]jj)jhuh1hhj߮hMhjƮhhubj)}(hhh]h)}(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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct socket *sock`` socket **Description** Check permission before reading the local address (name) of the socket object. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjүh]hstruct socket *sock}(hjԯhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЯubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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}(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)}(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)}(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.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h5int security_socket_getpeername (struct socket *sock)h]j)}(h4int security_socket_getpeername(struct socket *sock)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_socket_getpeernameh]jm)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjðhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjnhhubj)}(hhh]h)}(h+Check if reading the peer's addr is allowedh]h-Check if reading the peer’s addr is allowed}(hj9hhhNhNubah}(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&]uh1jhjnhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct socket *sock`` socket **Description** Check permission before the remote address (name) of a socket object. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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.chMhjUubj)}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjzh]hstruct socket *sock}(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.chMhjtubj)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjqubah}(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.chMhjUubh)}(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.chMhjUubh)}(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.chMhjUubh)}(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.chMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hLint security_socket_getsockopt (struct socket *sock, int level, int optname)h]j)}(hKint security_socket_getsockopt(struct socket *sock, int level, int optname)h](j )}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj/hMubjg)}(hsecurity_socket_getsockopth]jm)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hjBhhhNhNubah}(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)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubh)}(hhh]jm)}(hsocketh]hsocket}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE jDsbc.security_socket_getsockoptasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(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&]noemphjjuh1jhjVubj)}(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}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(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}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhjX"hNhNubj)}(hX **Parameters** ``struct socket *sock`` socket ``int level`` option's protocol level ``int optname`` option name **Description** Check permissions before retrieving the options associated with socket **sock**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjgubj)}(hhh](j)}(h``struct 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}(hjdzhhhNhNubah}(h]h ]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)}(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&]uh1jhjgubh)}(h**Description**h]j)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjgubh)}(hPCheck permissions before retrieving the options associated with socket **sock**.h](hGCheck permissions before retrieving the options associated with socket }(hjOhhhNhNubj)}(h**sock**h]hsock}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjgubh)}(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.chMhjgubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hLint security_socket_setsockopt (struct socket *sock, int level, int optname)h]j)}(hKint security_socket_setsockopt(struct socket *sock, int level, int optname)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jڴsbc.security_socket_setsockoptasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsockh]hsock}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int levelh](j )}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hlevelh]hlevel}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj޵hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjŴhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX **Parameters** ``struct socket *sock`` socket ``int level`` option's protocol level ``int optname`` option name **Description** Check permissions before setting the options associated with socket **sock**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hj"h]hstruct socket *sock}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsocketh]hsocket}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjUubj)}(hhh]h)}(hoption's protocol levelh]hoption’s protocol level}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubj)}(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}(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.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h;int security_socket_shutdown (struct socket *sock, int how)h]j)}(h:int security_socket_shutdown(struct socket *sock, int how)h](j )}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIhhhj[hMubjg)}(hsecurity_socket_shutdownh]jm)}(hsecurity_socket_shutdownh]hsecurity_socket_shutdown}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIhhhj[hMubj)}(h(struct socket *sock, int how)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jpsbc.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 }(hj hhhNhNubah}(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&]jjuh1jhjIhhhj[hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hMhjBhhubj)}(hhh]h)}(h-Checks if shutting down the socket is allowedh]h-Checks if shutting down the socket is allowed}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct socket *sock`` socket ``int how`` flag indicating how sends and receives are handled **Description** Checks permission before all or part of a connection on the socket **sock** is shut down. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjhMhjzubj)}(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ѸhMhjzubeh}(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)}(hj0h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjFhhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hqint security_socket_getpeersec_stream (struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h]j)}(hpint security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j )}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqhhhjhMubjg)}(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&]jjuh1jfhjqhhhjhMubj)}(hK(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j)}(hstruct socket *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsocketh]hsocket}(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_streamasbuh1hhj ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hoptvalh]hoptval}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optlenh](h)}(hhh]jm)}(h sockptr_th]h sockptr_t}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]j#c.security_socket_getpeersec_streamasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhubjm)}(hoptlenh]hoptlen}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjºhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hjкhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(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&]jjuh1jhjqhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjjhhubj)}(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&]uh1jhjjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhjX"hNhNubj)}(hX/**Parameters** ``struct socket *sock`` socket ``sockptr_t optval`` destination buffer ``sockptr_t optlen`` size of peer label copied into the buffer ``unsigned int len`` maximum size of the destination buffer **Description** This hook allows the security module to provide peer socket security state for unix or connected tcp sockets to userspace via getsockopt SO_GETPEERSEC. For tcp sockets this can be meaningful if the socket is associated with an ipsec SA. **Return** Returns 0 if all is well, otherwise, typical getsockopt return values.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubj)}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjWh]hstruct socket *sock}(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.chMhjQubj)}(hhh]h)}(hsocketh]hsocket}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(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&]uh1jhjhMhjNubj)}(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.chMhjûubj)}(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&]uh1jhjûubeh}(h]h ]h"]h$]h&]uh1jhj޻hMhjNubj)}(h<``unsigned int len`` maximum size of the destination buffer h](j)}(h``unsigned int len``h]j)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h&maximum size of the destination bufferh]h&maximum size of the destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubh)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubh)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubh)}(hFReturns 0 if all is well, otherwise, typical getsockopt return values.h]hFReturns 0 if all is well, otherwise, typical getsockopt return values.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h1int lsm_sock_alloc (struct sock *sock, gfp_t gfp)h]j)}(h0int lsm_sock_alloc(struct sock *sock, gfp_t gfp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hlsm_sock_alloch]jm)}(hlsm_sock_alloch]hlsm_sock_alloc}(hjʼhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjƼubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(struct sock *sock, gfp_t gfp)h](j)}(hstruct sock *sockh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j̼sbc.lsm_sock_allocasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj2hhhNhNubah}(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}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]j c.lsm_sock_allocasbuh1hhjTubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubjm)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(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 composite sock blobh]hallocate a composite sock blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjɽjjɽjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct sock *sock`` the sock that needs a blob ``gfp_t gfp`` allocation mode **Description** Allocate the sock blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjӽh]h Parameters}(hjսhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѽubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjͽ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.chMhjubj)}(hhh]h)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``gfp_t gfp`` allocation mode h](j)}(h ``gfp_t gfp``h]j)}(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 modeh]hallocation mode}(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&]uh1jhjͽubh)}(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.chMhjͽubh)}(h*Allocate the sock blob for all the modulesh]h*Allocate the sock 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.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_alloc (C function)c.security_sk_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hCint security_sk_alloc (struct sock *sk, int family, gfp_t priority)h]j)}(hBint security_sk_alloc(struct sock *sk, int family, gfp_t priority)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjɾhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjȾhMubjg)}(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ȾhMubj)}(h-(struct sock *sk, int family, gfp_t priority)h](j)}(hstruct sock *skh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jݾsbc.security_sk_allocasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hskh]hsk}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int familyh](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubjm)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(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 ]j1c.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ȾhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjȾhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjȾhMhjhhubj)}(hhh]h)}(h)Allocate and initialize a sock's LSM blobh]h+Allocate and initialize a sock’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjȾhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hXB**Parameters** ``struct sock *sk`` sock ``int family`` protocol family ``gfp_t priority`` gfp flags **Description** Allocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hj8h]hstruct sock *sk}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubj)}(hhh]h)}(hsockh]hsock}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjqh]h int family}(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)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhj/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.chMhjubj)}(hhh]h)}(h gfp flagsh]h gfp flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]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.chM hjubh)}(hAllocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets.h]hAllocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(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"hjubh)}(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.chM#hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_sk_free (C function)c.security_sk_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h'void security_sk_free (struct sock *sk)h]j)}(h&void security_sk_free(struct sock *sk)h](j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhj_hM2ubjg)}(hsecurity_sk_freeh]jm)}(hsecurity_sk_freeh]hsecurity_sk_free}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhj_hM2ubj)}(h(struct sock *sk)h]j)}(hstruct sock *skh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jtsbc.security_sk_freeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(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&]jjuh1jhjMhhhj_hM2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhj_hM2ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hM2hjFhhubj)}(hhh]h)}(hFree the sock's LSM blobh]hFree the sock’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhjX"hNhNubj)}(h[**Parameters** ``struct sock *sk`` sock **Description** Deallocate security structure.h](h)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hj-ubj)}(hhh]j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hjRh]hstruct sock *sk}(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.chM3hjLubj)}(hhh]h)}(hsockh]hsock}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM3hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM3hjIubah}(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.chM5hj-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.chM4hj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hQvoid security_inet_csk_clone (struct sock *newsk, const struct request_sock *req)h]j)}(hPvoid security_inet_csk_clone(struct sock *newsk, const struct request_sock *req)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_inet_csk_cloneh]jm)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h4(struct sock *newsk, const struct request_sock *req)h](j)}(hstruct sock *newskh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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 }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnewskh]hnewsk}(hjhhhhNhNubah}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubh)}(hhh]jm)}(h request_sockh]h request_sock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jIc.security_inet_csk_cloneasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h,Set new sock LSM state based on request_sockh]h,Set new sock LSM state based on request_sock}(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&]jjjj5jj5jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct sock *newsk`` new sock ``const struct request_sock *req`` connection request_sock **Description** Set that LSM state of **sock** using the LSM state from **req**.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(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.chMhj9ubj)}(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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubj)}(hhh]h)}(hnew sockh]hnew sock}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjUubj)}(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&]uh1jhjhMhjUubeh}(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:283: ./security/security.chMhj9ubh)}(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.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hBint security_mptcp_add_subflow (struct sock *sk, struct sock *ssk)h]j)}(hAint security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)h](j )}(hinth]hint}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7hhhjIhMlubjg)}(hsecurity_mptcp_add_subflowh]jm)}(hsecurity_mptcp_add_subflowh]hsecurity_mptcp_add_subflow}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj7hhhjIhMlubj)}(h#(struct sock *sk, struct sock *ssk)h](j)}(hstruct sock *skh](j)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(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_subflowasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hstruct sock *sskh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.security_mptcp_add_subflowasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsskh]hssk}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhjIhMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjIhMlubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhMlhj0hhubj)}(hhh]h)}(h+Inherit the LSM label from the MPTCP socketh]h+Inherit the LSM label from the MPTCP socket}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhjhhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct sock *sk`` the owning MPTCP socket ``struct sock *ssk`` the new subflow **Description** Update the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks. **Return** Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjubj)}(hhh](j)}(h,``struct sock *sk`` the owning MPTCP socket h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjubj)}(hhh]h)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(h%``struct sock *ssk`` the new subflow h](j)}(h``struct sock *ssk``h]j)}(hjh]hstruct sock *ssk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhjubj)}(hhh]h)}(hthe new subflowh]hthe new subflow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubeh}(h]h ]h"]h$]h&]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.chMphjubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjubh)}(h **Return**h]j)}(hjGh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjubh)}(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.chMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h]int security_xfrm_policy_clone (struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h]j)}(h\int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j )}(hinth]hint}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_xfrm_policy_cloneasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hold_ctxh]hold_ctx}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx **new_ctxph](j)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jc.security_xfrm_policy_cloneasbuh1hhj7ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hnew_ctxph]hnew_ctxp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(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)}(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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX4**Parameters** ``struct xfrm_sec_ctx *old_ctx`` xfrm security context ``struct xfrm_sec_ctx **new_ctxp`` target xfrm security context **Description** Allocate a security structure in new_ctxp that contains the information from the old_ctx structure. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h7``struct xfrm_sec_ctx *old_ctx`` xfrm security context h](j)}(h ``struct xfrm_sec_ctx *old_ctx``h]j)}(hj h]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&]uh1hhjhMhj ubah}(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)}(hjCh]hstruct xfrm_sec_ctx **new_ctxp}(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)}(htarget xfrm security contexth]htarget xfrm security context}(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&]uh1jhjubh)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h:int security_xfrm_policy_delete (struct xfrm_sec_ctx *ctx)h]j)}(h9int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_xfrm_policy_deleteh]jm)}(hsecurity_xfrm_policy_deleteh]hsecurity_xfrm_policy_delete}(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)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjGmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_xfrm_policy_deleteasbuh1hhj#ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjm)}(hctxh]hctx}(hjhhhNhNubah}(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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct xfrm_sec_ctx *ctx`` xfrm security context **Description** Authorize deletion of a SPD entry. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hjh]hstruct xfrm_sec_ctx *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hdint security_xfrm_state_alloc_acquire (struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h]j)}(hcint security_xfrm_state_alloc_acquire(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j 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)}(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&]jjuh1jfhjhhhjhMubj)}(h>(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb#c.security_xfrm_state_alloc_acquireasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hx}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx *polsech](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubh)}(hhh]jm)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`modnameN classnameNjI jL )}jO ]j #c.security_xfrm_state_alloc_acquireasbuh1hhj<ubj)}(h h]h }(hj|hhhNhNubah}(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&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state LSM blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct xfrm_state *x`` xfrm state being added to the SAD ``struct xfrm_sec_ctx *polsec`` associated policy's security context ``u32 secid`` secid from the flow **Description** Allocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid. **Return** Returns 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]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 xfrm_state *x`` xfrm state being added to the SAD h](j)}(h``struct xfrm_state *x``h]j)}(hjJh]hstruct xfrm_state *x}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubj)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(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.chMhj}ubj)}(hhh]h)}(h$associated policy's security contexth]h&associated policy’s security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjAubj)}(h"``u32 secid`` secid from the flow h](j)}(h ``u32 secid``h]j)}(hjh]h u32 secid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsecid from the flowh]hsecid from the flow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjAubeh}(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)}(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.chMhj%ubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj%ubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hj4hhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4void security_xfrm_state_free (struct xfrm_state *x)h]j)}(h3void security_xfrm_state_free(struct xfrm_state *x)h](j )}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_hhhjqhM6ubjg)}(hsecurity_xfrm_state_freeh]jm)}(hsecurity_xfrm_state_freeh]hsecurity_xfrm_state_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhjqhM6ubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE 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)}(hjh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj_hhhjqhM6ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhjqhM6ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhM6hjXhhubj)}(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.chM6hjhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhM6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhjX"hNhNubj)}(h_**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Deallocate x->security.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hj>ubj)}(hhh]j)}(h$``struct xfrm_state *x`` xfrm state h](j)}(h``struct xfrm_state *x``h]j)}(hjch]hstruct xfrm_state *x}(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.chM7hj]ubj)}(hhh]h)}(h xfrm stateh]h xfrm state}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM7hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM7hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hj>ubh)}(hDeallocate x->security.h]hDeallocate x->security.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hHint security_xfrm_policy_lookup (struct xfrm_sec_ctx *ctx, u32 fl_secid)h]j)}(hGint security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMAubjg)}(hsecurity_xfrm_policy_lookuph]jm)}(hsecurity_xfrm_policy_lookuph]hsecurity_xfrm_policy_lookup}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMAubj)}(h((struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hjh]hstruct}(hj hhhNhNubah}(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&]uh1jlhj;ubah}(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*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hctxh]hctx}(hjyhhhNhNubah}(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 ]jZc.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&]jjuh1jhjhhhjhMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMAubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMAhjhhubj)}(hhh]h)}(h'Check if using a xfrm policy is allowedh]h'Check if using a xfrm policy is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct xfrm_sec_ctx *ctx`` target xfrm security context ``u32 fl_secid`` flow secid used to authorize access **Description** Check permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy. **Return** Return 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(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.chMEhjubj)}(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.chMBhj&ubj)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMBhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMBhj#ubj)}(h5``u32 fl_secid`` flow secid used to authorize access h](j)}(h``u32 fl_secid``h]j)}(hjeh]h u32 fl_secid}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChj_ubj)}(hhh]h)}(h#flow secid used to authorize accessh]h#flow secid used to authorize access}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMChj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMChj#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.chMEhjubh)}(hCheck permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy.h]hCheck permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjubh)}(hOReturn 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.h]hOReturn 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hvint security_xfrm_state_pol_flow_match (struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h]j)}(huint security_xfrm_state_pol_flow_match(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMRubjg)}(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&]jjuh1jfhjhhhjhMRubj)}(hO(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j)}(hstruct xfrm_state *xh](j)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubh)}(hhh]jm)}(h xfrm_stateh]h xfrm_state}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jR )}jE j/sb$c.security_xfrm_state_pol_flow_matchasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjm)}(hjh]hx}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hstruct xfrm_policy *xph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h xfrm_policyh]h xfrm_policy}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]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&]noemphjjuh1jhjAubj)}(hconst struct flowi_common *flich](j)}(hjh]hconst}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubj)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ubh)}(hhh]jm)}(h flowi_commonh]h flowi_common}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN 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&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMRhjhhubj)}(hhh]h)}(hCheck for a xfrm matchh]hCheck for a xfrm match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX/**Parameters** ``struct xfrm_state *x`` xfrm state to match ``struct xfrm_policy *xp`` xfrm policy to check for a match ``const struct flowi_common *flic`` flow to check for a match. **Description** Check **xp** and **flic** for a match with **x**. **Return** Returns 1 if there is a match.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjubj)}(hhh](j)}(h-``struct xfrm_state *x`` xfrm state to match h](j)}(h``struct xfrm_state *x``h]j)}(hjh]hstruct xfrm_state *x}(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.chMShjubj)}(hhh]h)}(hxfrm state to matchh]hxfrm state to match}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(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}(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.chMThj:ubj)}(hhh]h)}(h xfrm policy to check for a matchh]h xfrm policy to check for a match}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMThjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMThjubj)}(h?``const struct flowi_common *flic`` flow to check for a match. h](j)}(h#``const struct flowi_common *flic``h]j)}(hjyh]hconst struct flowi_common *flic}(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.chMUhjsubj)}(hhh]h)}(hflow to check for a match.h]hflow to check for a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMUhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjubh)}(h1Check **xp** and **flic** for a match with **x**.h](hCheck }(hjhhhNhNubj)}(h**xp**h]hxp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**flic**h]hflic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for a match with }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjubh)}(hReturns 1 if there is a match.h]hReturns 1 if there is a match.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hBint security_xfrm_decode_session (struct sk_buff *skb, u32 *secid)h]j)}(hAint security_xfrm_decode_session(struct sk_buff *skb, u32 *secid)h](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMsubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRhhhjdhMsubjg)}(hsecurity_xfrm_decode_sessionh]jm)}(hsecurity_xfrm_decode_sessionh]hsecurity_xfrm_decode_session}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjdhMsubj)}(h!(struct sk_buff *skb, u32 *secid)h](j)}(hstruct sk_buff *skbh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jysbc.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 reftargetj modnameN classnameNjI jL )}jO ]jc.security_xfrm_decode_sessionasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hsecidh]hsecid}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhMsubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhMshjKhhubj)}(hhh]h)}(h%Determine the xfrm secid for a packeth]h%Determine the xfrm secid for a packet}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjhhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct sk_buff *skb`` xfrm packet ``u32 *secid`` secid **Description** Decode the packet in **skb** and return the security label in **secid**. **Return** Return 0 if all xfrms used have the same secid.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubj)}(hhh](j)}(h$``struct sk_buff *skb`` xfrm packet h](j)}(h``struct sk_buff *skb``h]j)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjubj)}(hhh]h)}(h xfrm packeth]h xfrm packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubj)}(h``u32 *secid`` secid h](j)}(h``u32 *secid``h]j)}(hjh]h u32 *secid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjubj)}(hhh]h)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubeh}(h]h ]h"]h$]h&]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.chMwhjubh)}(hHDecode the packet in **skb** and return the security label in **secid**.h](hDecode the packet in }(hj6hhhNhNubj)}(h**skb**h]hskb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh" and return the security label in }(hj6hhhNhNubj)}(h **secid**h]hsecid}(hjPhhhNhNubah}(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.chMvhjubh)}(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.chMxhjubh)}(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.chMyhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_alloc (C function)c.security_key_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hVint security_key_alloc (struct key *key, const struct cred *cred, unsigned long flags)h]j)}(hUint security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_key_alloch]jm)}(hsecurity_key_alloch]hsecurity_key_alloc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h?(struct key *key, const struct cred *cred, unsigned long flags)h](j)}(hstruct key *keyh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(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*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hkeyh]hkey}(hjFhhhNhNubah}(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&]uh1jhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubh)}(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_allocasbuh1hhj[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)}(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}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1hhhhjX"hNhNubj)}(hXP**Parameters** ``struct key *key`` key ``const struct cred *cred`` credentials ``unsigned long flags`` allocation flags **Description** Permit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point. **Return** Return 0 if permission is granted, -ve error otherwise.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubj)}(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&]uh1jhjhubh)}(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.chMhjhubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhubh)}(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.chMhjhubh)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hjwhhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_key_free (C function)c.security_key_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h(void security_key_free (struct key *key)h]j)}(h'void security_key_free(struct key *key)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_key_freeh]jm)}(hsecurity_key_freeh]hsecurity_key_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_key_freeasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(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}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhjX"hNhNubj)}(hl**Parameters** ``struct key *key`` key **Description** Notification of destruction; free security data.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_key_permission (C function)c.security_key_permissionhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hfint security_key_permission (key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h]j)}(heint security_key_permission(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h](j )}(hinth]hint}(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_key_permissionh]jm)}(hsecurity_key_permissionh]hsecurity_key_permission}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj5hMubj)}(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}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjimodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.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&]noemphjjuh1jhj\ubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(henum key_need_perm need_permh](j)}(hj:h]henum}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(h key_need_permh]h key_need_perm}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jc.security_key_permissionasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubjm)}(h need_permh]h need_perm}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(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*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&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hXW**Parameters** ``key_ref_t key_ref`` key reference ``const struct cred *cred`` credentials of actor requesting access ``enum key_need_perm need_perm`` requested permissions **Description** See whether a specific operational right is granted to a process on a key. **Return** Return 0 if permission is granted, -ve error otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h$``key_ref_t key_ref`` key reference h](j)}(h``key_ref_t key_ref``h]j)}(hjh]hkey_ref_t key_ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h key referenceh]h key reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``const struct cred *cred`` credentials of actor requesting access h](j)}(h``const struct cred *cred``h]j)}(hj'h]hconst struct cred *cred}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubj)}(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&]uh1jhj!ubeh}(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}(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.chMhjZubj)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]j)}(hhhubj)}(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>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct key *keyring`` keyring to which the key is linked to ``struct key *key`` created or updated key ``const void *payload`` data used to instantiate or update the key ``size_t payload_len`` length of payload ``unsigned long flags`` key flags ``bool create`` flag indicating whether the key was created or updated **Description** Notify the caller of a key creation or update.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h>``struct key *keyring`` keyring to which the key is linked to h](j)}(h``struct key *keyring``h]j)}(hjh]hstruct key *keyring}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h%keyring to which the key is linked toh]h%keyring to which the key is linked to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``struct key *key`` created or updated key h](j)}(h``struct key *key``h]j)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubj)}(hC``const void *payload`` data used to instantiate or update the key h](j)}(h``const void *payload``h]j)}(hjVh]hconst void *payload}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubj)}(hhh]h)}(h*data used to instantiate or update the keyh]h*data used to instantiate or update the key}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjubj)}(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&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h.Notify the caller of a key creation or update.h]h.Notify the caller of a key creation or update.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hZint security_audit_rule_init (u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h]j)}(hYint security_audit_rule_init(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j )}(hinth]hint}(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_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}hhhjhMubj)}(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}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *rulestrh](j )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hrulestrh]hrulestr}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(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}hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjvhhubj)}(hhh]h)}(h*Allocate and init an LSM audit rule structh]h*Allocate and init an LSM audit rule struct}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1hhhhjX"hNhNubj)}(hX{**Parameters** ``u32 field`` audit action ``u32 op`` rule operator ``char *rulestr`` rule context ``void **lsmrule`` receive buffer for audit rule struct ``gfp_t gfp`` GFP flag used for kmalloc **Description** Allocate and initialize an LSM audit rule structure. **Return** Return 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubj)}(hhh](j)}(h``u32 field`` audit action h](j)}(h ``u32 field``h]j)}(hj{h]h u32 field}(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.chMhjuubj)}(hhh]h)}(h audit actionh]h audit action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(h``u32 op`` rule operator h](j)}(h ``u32 op``h]j)}(hjh]hu32 op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h rule operatorh]h rule operator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(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&]uh1jhjhMhjrubj)}(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.chMhj ubj)}(hhh]h)}(h$receive buffer for audit rule structh]h$receive buffer for audit rule struct}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjrubj)}(h(``gfp_t gfp`` GFP flag used for kmalloc h](j)}(h ``gfp_t gfp``h]j)}(hj_h]h gfp_t gfp}(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.chMhjYubj)}(hhh]h)}(hGFP flag used for kmalloch]hGFP flag used for kmalloc}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubh)}(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.chMhjVubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubh)}(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.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h9int security_audit_rule_known (struct audit_krule *krule)h]j)}(h8int security_audit_rule_known(struct audit_krule *krule)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj&hMubjg)}(hsecurity_audit_rule_knownh]jm)}(hsecurity_audit_rule_knownh]hsecurity_audit_rule_known}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj&hMubj)}(h(struct audit_krule *krule)h]j)}(hstruct audit_krule *kruleh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(h audit_kruleh]h audit_krule}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jR )}jE j;sbc.security_audit_rule_knownasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hkruleh]hkrule}(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]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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct audit_krule *krule`` audit rule **Description** Specifies whether given **krule** contains any fields related to the current LSM. **Return** Returns 1 in case of relation found, 0 otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h)``struct audit_krule *krule`` audit rule h](j)}(h``struct audit_krule *krule``h]j)}(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}(hj2hhhNhNubah}(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)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hQSpecifies whether given **krule** contains any fields related to the current LSM.h](hSpecifies whether given }(hjjhhhNhNubj)}(h **krule**h]hkrule}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh0 contains any fields related to the current LSM.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h1Returns 1 in case of relation found, 0 otherwise.h]h1Returns 1 in case of relation found, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h-void security_audit_rule_free (void *lsmrule)h]j)}(h,void security_audit_rule_free(void *lsmrule)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hsecurity_audit_rule_freeh]jm)}(hsecurity_audit_rule_freeh]hsecurity_audit_rule_free}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(void *lsmrule)h]j)}(h void *lsmruleh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j 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}(hj8hhhNhNubah}(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}(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&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``void *lsmrule`` audit rule struct **Description** Deallocate the LSM audit rule structure previously allocated by audit_rule_init().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hWint security_audit_rule_match (struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h]j)}(hVint security_audit_rule_match(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j )}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj1hMubjg)}(hsecurity_audit_rule_matchh]jm)}(hsecurity_audit_rule_matchh]hsecurity_audit_rule_match}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj1hMubj)}(h9(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j)}(hstruct lsm_prop *proph](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jFsbc.security_audit_rule_matchasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hproph]hprop}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(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&]noemphjjuh1jhjXubj)}(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 }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hjIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(h void *lsmruleh](j )}(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)}(hlsmruleh]hlsmrule}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhjhhubj)}(hhh]h)}(h&Check if a label matches an audit ruleh]h&Check if a label matches an audit rule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hXd**Parameters** ``struct lsm_prop *prop`` security label ``u32 field`` LSM audit field ``u32 op`` matching operator ``void *lsmrule`` audit rule **Description** Determine if given **secid** matches a rule previously approved by security_audit_rule_known(). **Return** Returns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h)``struct lsm_prop *prop`` security label h](j)}(h``struct lsm_prop *prop``h]j)}(hjh]hstruct lsm_prop *prop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hsecurity labelh]hsecurity label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h``u32 field`` LSM audit field h](j)}(h ``u32 field``h]j)}(hj/h]h u32 field}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)ubj)}(hhh]h)}(hLSM audit fieldh]hLSM audit field}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(h``u32 op`` matching operator h](j)}(h ``u32 op``h]j)}(hjhh]hu32 op}(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.chMhjbubj)}(hhh]h)}(hmatching operatorh]hmatching operator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubj)}(h``void *lsmrule`` audit rule h](j)}(h``void *lsmrule``h]j)}(hjh]h void *lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h audit ruleh]h audit rule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h_Determine if given **secid** matches a rule previously approved by security_audit_rule_known().h](hDetermine if given }(hjhhhNhNubj)}(h **secid**h]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC matches a rule previously approved by security_audit_rule_known().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.h]hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf (C function)c.security_bpfhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hPint security_bpf (int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h]j)}(hOint security_bpf(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j )}(hinth]hint}(hjZhhhNhNubah}(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 }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhM*ubjg)}(h security_bpfh]jm)}(h security_bpfh]h security_bpf}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhM*ubj)}(h?(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j)}(hint cmdh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hunionh]hunion}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE 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 hj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubj )}(hinth]hint}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubjm)}(hsizeh]hsize}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j 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&]jjuh1jhjVhhhjhhM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhM*ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhM*hjOhhubj)}(hhh]h)}(h-Check if the bpf syscall operation is allowedh]h-Check if the bpf syscall operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``int cmd`` command ``union bpf_attr *attr`` bpf attribute ``unsigned int size`` size ``bool kernel`` whether or not call originated from kernel **Description** Do a initial check for all bpf syscalls after the attribute is copied into the kernel. The actual security module can implement their own rules to check the specific cmd they need. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubj)}(hhh](j)}(h``int cmd`` command h](j)}(h ``int cmd``h]j)}(hjh]hint cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubj)}(hhh]h)}(hcommandh]hcommand}(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'``union bpf_attr *attr`` bpf attribute h](j)}(h``union bpf_attr *attr``h]j)}(hjOh]hunion bpf_attr *attr}(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)}(h bpf attributeh]h bpf attribute}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM,hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM,hj 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.chM-hjubj)}(hhh]h)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hj 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.chM.hjubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.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.chM0hjubh)}(hDo a initial check for all bpf syscalls after the attribute is copied into the kernel. The actual security module can implement their own rules to check the specific cmd they need.h]hDo a initial check for all bpf syscalls after the attribute is copied into the kernel. The actual security module can implement their own rules to check the specific cmd they need.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjubh)}(h **Return**h]j)}(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.chM3hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_map (C function)c.security_bpf_maphNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h9int security_bpf_map (struct bpf_map *map, fmode_t fmode)h]j)}(h8int security_bpf_map(struct bpf_map *map, fmode_t fmode)h](j )}(hinth]hint}(hjhhhhNhNubah}(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 }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjvhM<ubjg)}(hsecurity_bpf_maph]jm)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjvhM<ubj)}(h$(struct bpf_map *map, fmode_t fmode)h](j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE 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 }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hfmodeh]hfmode}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjvhM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhM<ubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhjvhM<hj]hhubj)}(hhh]h)}(h'Check if access to a bpf map is allowedh]h'Check if access to a bpf map is allowed}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjmhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct bpf_map *map`` bpf map ``fmode_t fmode`` mode **Description** Do a check when the kernel generates and returns a file descriptor for eBPF maps. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjubj)}(hhh](j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hjh]hstruct bpf_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjubj)}(hhh]h)}(hbpf maph]hbpf map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubj)}(h``fmode_t fmode`` mode h](j)}(h``fmode_t fmode``h]j)}(hjh]h fmode_t fmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hjubj)}(hhh]h)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjubeh}(h]h ]h"]h$]h&]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)}(hQDo a check when the kernel generates and returns a file descriptor for eBPF maps.h]hQDo a check when the kernel generates and returns a file descriptor for eBPF maps.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?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.chMBhjubh)}(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.chMChjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_bpf_prog (C function)c.security_bpf_proghNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h-int security_bpf_prog (struct bpf_prog *prog)h]j)}(h,int security_bpf_prog(struct bpf_prog *prog)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMKubjg)}(hsecurity_bpf_progh]jm)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMKubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_progasbuh1hhjubj)}(h h]h }(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&]jjuh1jhjhhhjhMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMKhjhhubj)}(hhh]h)}(h+Check if access to a bpf program is allowedh]h+Check if access to a bpf program is allowed}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` bpf program **Description** Do a check when the kernel generates and returns a file descriptor for eBPF programs. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjmubj)}(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.chMLhjubj)}(hhh]h)}(h bpf programh]h bpf program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjmubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjmubh)}(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.chMMhjmubh)}(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.chMPhjmubh)}(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.chMQhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hmint security_bpf_map_create (struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h]j)}(hlint security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j )}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhjGhMYubjg)}(hsecurity_bpf_map_createh]jm)}(hsecurity_bpf_map_createh]hsecurity_bpf_map_create}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhjGhMYubj)}(hQ(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_map *maph](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j\sbc.security_bpf_map_createasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjm)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(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*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hattrh]hattr}(hj?hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjxmodnameN classnameNjI jL )}jO ]jc.security_bpf_map_createasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(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&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhjGhMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhjGhMYubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMYhj.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.chMYhj hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct bpf_map *map`` BPF map object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF map ``struct bpf_token *token`` BPF token used to grant user access ``bool kernel`` whether or not call originated from kernel **Description** Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj)ubj)}(hhh](j)}(h'``struct bpf_map *map`` BPF map object h](j)}(h``struct bpf_map *map``h]j)}(hjNh]hstruct bpf_map *map}(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.chMZhjHubj)}(hhh]h)}(hBPF map objecth]hBPF map object}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMZhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMZhjEubj)}(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[hjEubj)}(h@``struct bpf_token *token`` BPF token used to grant user access h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hjubj)}(hhh]h)}(h#BPF token used to grant user accessh]h#BPF token used to grant user access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjEubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjh]h bool kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hjubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hj)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.}(hjJhhhNhNubah}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahj)ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjqhhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hnint security_bpf_prog_load (struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h]j)}(hmint security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMtubjg)}(hsecurity_bpf_prog_loadh]jm)}(hsecurity_bpf_prog_loadh]hsecurity_bpf_prog_load}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMtubj)}(hS(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_progh]hbpf_prog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_prog_loadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprogh]hprog}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hjh]hunion}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(hbpf_attrh]hbpf_attr}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjomodnameN classnameNjI jL )}jO ]jc.security_bpf_prog_loadasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bpf_token *tokenh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.security_bpf_prog_loadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(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}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMthjhhubj)}(hhh]h)}(h*Check if loading of BPF program is allowedh]h*Check if loading of BPF program is allowed}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX/**Parameters** ``struct bpf_prog *prog`` BPF program object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF program ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem ``bool kernel`` whether or not call originated from kernel **Description** Perform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubj)}(hhh](j)}(h-``struct bpf_prog *prog`` BPF program object h](j)}(h``struct bpf_prog *prog``h]j)}(hjh]hstruct bpf_prog *prog}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjubj)}(hhh]h)}(hBPF program objecth]hBPF program object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(hK``union bpf_attr *attr`` BPF syscall attributes used to create BPF program h](j)}(h``union bpf_attr *attr``h]j)}(hjh]hunion bpf_attr *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubj)}(hhh]h)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(hQ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem h](j)}(h``struct bpf_token *token``h]j)}(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.chMwhj!ubj)}(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<hMwhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMwhjubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hj`h]h bool kernel}(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.chMxhjZubj)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMxhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMxhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjubh)}(hPerform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program.h]hPerform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hfint security_bpf_token_create (struct bpf_token *token, union bpf_attr *attr, const struct path *path)h]j)}(heint security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_bpf_token_createh]jm)}(hsecurity_bpf_token_createh]hsecurity_bpf_token_create}(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)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN 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 }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hjNhhhNhNubah}(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 reftargetjamodnameN 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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``struct bpf_token *token`` BPF token object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF token ``const struct path *path`` path pointing to BPF FS mount point from which BPF token is created **Description** Do a check when the kernel instantiates a new BPF token object from BPF FS instance. This is also the point where LSM blob can be allocated for LSMs. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h-``struct bpf_token *token`` BPF token object h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(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&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubj)}(hhh]h)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create BPF token}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(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)}(hjuh]hconst struct path *path}(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)}(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&]uh1jhjoubeh}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hLint security_bpf_token_cmd (const struct bpf_token *token, enum bpf_cmd cmd)h]j)}(hKint security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)h](j )}(hinth]hint}(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&]uh1jlhj9ubah}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(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_cmdasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(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}(hj0hhhNhNubah}(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)}(hGCheck if BPF token is allowed to delegate requested BPF syscall commandh]hGCheck if BPF token is allowed to delegate requested BPF syscall command}(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&]jjjjrjjrjjjuh1hhhhjX"hNhNubj)}(hXV**Parameters** ``const struct bpf_token *token`` BPF token object ``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token **Description** Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF syscall command. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvubj)}(hhh](j)}(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&]uh1jhjvubh)}(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.chMhjvubh)}(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.chMhjvubh)}(h **Return**h]j)}(hj6h]hReturn}(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.chMhjvubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjLhhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hGint security_bpf_token_capable (const struct bpf_token *token, int cap)h]j)}(hFint security_bpf_token_capable(const struct bpf_token *token, int cap)h](j )}(hinth]hint}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwhhhjhMubjg)}(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&]jjuh1jfhjwhhhjhMubj)}(h((const struct bpf_token *token, int cap)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_token_capableasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(htokenh]htoken}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint caph](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hcaph]hcap}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjphhubj)}(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&]uh1jhjphhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hXK**Parameters** ``const struct bpf_token *token`` BPF token object ``int cap`` capabilities requested to be delegated by BPF token **Description** Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF-related capabilities. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh](j)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hjh]hconst struct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``int cap`` capabilities requested to be delegated by BPF token h](j)}(h ``int cap``h]j)}(hjh]hint cap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h3capabilities requested to be delegated by BPF tokenh]h3capabilities requested to be delegated by BPF token}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjgh]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_bpf_map_free (C function)c.security_bpf_map_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h0void security_bpf_map_free (struct bpf_map *map)h]j)}(h/void security_bpf_map_free(struct bpf_map *map)h](j )}(hvoidh]hvoid}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_bpf_map_freeasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hmaph]hmap}(hjBhhhNhNubah}(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}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h|**Parameters** ``struct bpf_map *map`` bpf map **Description** Clean up the security information stored inside bpf map.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h3void security_bpf_prog_free (struct bpf_prog *prog)h]j)}(h2void security_bpf_prog_free(struct bpf_prog *prog)h](j )}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj;hMubjg)}(hsecurity_bpf_prog_freeh]jm)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj;hMubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubh)}(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 jPsbc.security_bpf_prog_freeasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubah}(h]h ]h"]h$]h&]jjuh1jhj)hhhj;hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj;hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj;hMhj"hhubj)}(hhh]h)}(hFree a BPF program's LSM blobh]hFree a BPF program’s LSM blob}(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&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` BPF program struct **Description** Clean up the security information stored inside BPF program.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj)}(hhh]j)}(h-``struct bpf_prog *prog`` BPF program struct h](j)}(h``struct bpf_prog *prog``h]j)}(hj.h]hstruct bpf_prog *prog}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj(ubj)}(hhh]h)}(hBPF program structh]hBPF program struct}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ hhhj= hMQubjg)}(hsecurity_perf_event_openh]jm)}(hsecurity_perf_event_openh]hsecurity_perf_event_open}(hjP hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj+ hhhj= hMQubj)}(h (int type)h]j)}(hint typeh](j )}(hinth]hint}(hjl hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjh ubj)}(h h]h }(hjz hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjh ubjm)}(htypeh]htype}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjh ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjd ubah}(h]h ]h"]h$]h&]jjuh1jhj+ hhhj= hMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj' hhhj= hMQubah}(h]j" ah ](jjeh"]h$]h&]jj)jhuh1hhj= hMQhj$ hhubj)}(hhh]h)}(h%Check if a perf event open is allowedh]h%Check if a perf event open is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhj hhubah}(h]h ]h"]h$]h&]uh1jhj$ hhhj= hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``int type`` type of event **Description** Check whether the **type** of perf_event_open syscall is allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhj ubj)}(hhh]j)}(h``int type`` type of event 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.chMRhj ubj)}(hhh]h)}(h type of eventh]h type of event}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMRhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMRhj 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.chMThj ubh)}(hACheck whether the **type** of perf_event_open syscall is allowed.h](hCheck whether the }(hjD hhhNhNubj)}(h**type**h]htype}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD ubh' of perf_event_open syscall is allowed.}(hjD hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShj ubh)}(h **Return**h]j)}(hjg h]hReturn}(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.chMUhj 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.chMVhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_perf_event_alloc (C function)c.security_perf_event_allochNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h8int security_perf_event_alloc (struct perf_event *event)h]j)}(h7int security_perf_event_alloc(struct perf_event *event)h](j )}(hinth]hint}(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_perf_event_alloch]jm)}(hsecurity_perf_event_alloch]hsecurity_perf_event_alloc}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM^ubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h perf_eventh]h perf_event}(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_perf_event_allocasbuh1hhj ubj)}(h h]h }(hj' hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(heventh]hevent}(hjB 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 perf event LSM blobh]hAllocate a perf event LSM blob}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hji hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Allocate and save perf_event security info. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(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 perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hj h]hstruct perf_event *event}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hj ubj)}(hhh]h)}(h perf eventh]h perf event}(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.chMahj ubh)}(h+Allocate and save perf_event security info.h]h+Allocate and save perf_event security info.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhj ubh)}(h'Returns 0 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.chMchj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_perf_event_free (C function)c.security_perf_event_freehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h8void security_perf_event_free (struct perf_event *event)h]j)}(h7void security_perf_event_free(struct perf_event *event)h](j )}(hvoidh]hvoid}(hjT hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjP hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwubj)}(h h]h }(hjc hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP hhhjb hMwubjg)}(hsecurity_perf_event_freeh]jm)}(hsecurity_perf_event_freeh]hsecurity_perf_event_free}(hju hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjP hhhjb hMwubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jw sbc.security_perf_event_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)}(heventh]hevent}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjP hhhjb hMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjL hhhjb hMwubah}(h]jG ah ](jjeh"]h$]h&]jj)jhuh1hhjb hMwhjI hhubj)}(hhh]h)}(hFree a perf event LSM blobh]hFree a perf event LSM blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhj hhubah}(h]h ]h"]h$]h&]uh1jhjI hhhjb hMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj, jj, jjjuh1hhhhjX"hNhNubj)}(ht**Parameters** ``struct perf_event *event`` perf event **Description** Release (free) perf_event security info.h](h)}(h**Parameters**h]j)}(hj6 h]h Parameters}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4 ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hj0 ubj)}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjU h]hstruct perf_event *event}(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.chMxhjO ubj)}(hhh]h)}(h perf eventh]h perf event}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj hMxhjk ubah}(h]h ]h"]h$]h&]uh1jhjO ubeh}(h]h ]h"]h$]h&]uh1jhjj hMxhjL ubah}(h]h ]h"]h$]h&]uh1jhj0 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.chMzhj0 ubh)}(h(Release (free) perf_event security info.h]h(Release (free) perf_event security info.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhj0 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%security_perf_event_read (C function)c.security_perf_event_readhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h7int security_perf_event_read (struct perf_event *event)h]j)}(h6int security_perf_event_read(struct perf_event *event)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]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_perf_event_readh]jm)}(hsecurity_perf_event_readh]hsecurity_perf_event_read}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE j sbc.security_perf_event_readasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(heventh]hevent}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]h)}(h.Check if reading a perf event label is allowedh]h.Check if reading a perf event label is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Read perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjh]hstruct perf_event *event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h)Read perf_event security info if allowed.h]h)Read perf_event security info if allowed.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(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.chMhjubh)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&security_perf_event_write (C function)c.security_perf_event_writehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h8int security_perf_event_write (struct perf_event *event)h]j)}(h7int security_perf_event_write(struct perf_event *event)h](j )}(hinth]hint}(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_perf_event_writeh]jm)}(hsecurity_perf_event_writeh]hsecurity_perf_event_write}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjyhhhjhMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h perf_eventh]h perf_event}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.security_perf_event_writeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(heventh]hevent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjrhhubj)}(hhh]h)}(h.Check if writing a perf event label is allowedh]h.Check if writing a perf event label is allowed}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Write perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubj)}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hj~h]hstruct perf_event *event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubj)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(h*Write perf_event security info if allowed.h]h*Write perf_event security info if allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*security_uring_override_creds (C function)c.security_uring_override_credshNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h:int security_uring_override_creds (const struct cred *new)h]j)}(h9int security_uring_override_creds(const struct cred *new)h](j )}(hinth]hint}(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_uring_override_credsh]jm)}(hsecurity_uring_override_credsh]hsecurity_uring_override_creds}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!hhhj3hMubj)}(h(const struct cred *new)h]j)}(hconst struct cred *newh](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jHsbc.security_uring_override_credsasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjm)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubah}(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 overriding creds is allowedh]h$Check if overriding creds is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``const struct cred *new`` new credentials **Description** Check if the current task, executing an io_uring operation, is allowed to override it's credentials with **new**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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+``const struct cred *new`` new credentials h](j)}(h``const struct cred *new``h]j)}(hjAh]hconst struct cred *new}(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)}(hnew credentialsh]hnew credentials}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubah}(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)}(hqCheck if the current task, executing an io_uring operation, is allowed to override it's credentials with **new**.h](hkCheck if the current task, executing an io_uring operation, is allowed to override it’s credentials with }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"security_uring_sqpoll (C function)c.security_uring_sqpollhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h int security_uring_sqpoll (void)h]j)}(hint security_uring_sqpoll(void)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_uring_sqpollh]jm)}(hsecurity_uring_sqpollh]hsecurity_uring_sqpoll}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubah}(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 IORING_SETUP_SQPOLL is allowedh]h'Check if IORING_SETUP_SQPOLL is allowed}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Check whether the current task is allowed to spawn a io_uring polling thread (IORING_SETUP_SQPOLL). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}ubj)}(hhh]j)}(h``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&]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.chKhj}ubh)}(hcCheck whether the current task is allowed to spawn a io_uring polling thread (IORING_SETUP_SQPOLL).h]hcCheck whether the current task is allowed to spawn a io_uring polling thread (IORING_SETUP_SQPOLL).}(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.cfhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurity_uring_cmd (C function)c.security_uring_cmdhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h4int security_uring_cmd (struct io_uring_cmd *ioucmd)h]j)}(h3int security_uring_cmd(struct io_uring_cmd *ioucmd)h](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjWhMubjg)}(hsecurity_uring_cmdh]jm)}(hsecurity_uring_cmdh]hsecurity_uring_cmd}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhMubj)}(h(struct io_uring_cmd *ioucmd)h]j)}(hstruct io_uring_cmd *ioucmdh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h io_uring_cmdh]h io_uring_cmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jlsbc.security_uring_cmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hioucmdh]hioucmd}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubah}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj>hhubj)}(hhh]h)}(h2Check if a io_uring passthrough command is allowedh]h2Check if a io_uring passthrough command is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``struct io_uring_cmd *ioucmd`` command **Description** Check whether the file_operations uring_cmd is allowed to run. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj%ubj)}(hhh]j)}(h(``struct io_uring_cmd *ioucmd`` command h](j)}(h``struct io_uring_cmd *ioucmd``h]j)}(hjJh]hstruct io_uring_cmd *ioucmd}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjDubj)}(hhh]h)}(hcommandh]hcommand}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj%ubh)}(h>Check whether the file_operations uring_cmd is allowed to run.h]h>Check whether the file_operations uring_cmd is allowed to run.}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h!int security_uring_allowed (void)h]j)}(h int security_uring_allowed(void)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsecurity_uring_allowedh]jm)}(hsecurity_uring_allowedh]hsecurity_uring_allowed}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(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}(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&]jjjjpjjpjjjuh1hhhhjX"hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Check whether the current task is allowed to call io_uring_setup(). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(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``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&]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.chKhjtubh)}(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.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)}(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.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhjX"hhhNhNubh)}(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 }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<hhhjNhMubjg)}(hsecurity_initramfs_populatedh]jm)}(hsecurity_initramfs_populatedh]hsecurity_initramfs_populated}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhjNhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjyubah}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhjNhMhj5hhubj)}(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&]uh1jhj5hhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hy**Parameters** ``void`` no arguments **Description** Tells the LSMs the initramfs has been unpacked into the rootfs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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.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.}(hj9hhhNhNubah}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hstruct dentry * securityfs_create_file (const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h]j)}(hstruct dentry *securityfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h](j)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjuhKubh)}(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_fileasbuh1hhjdhhhjuhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdhhhjuhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjuhKubjg)}(hsecurityfs_create_fileh]jm)}(hjh]hsecurityfs_create_file}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjdhhhjuhKubj)}(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}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjDmodnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhj;ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;ubjm)}(hmodeh]hmode}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jc.securityfs_create_fileasbuh1hhj5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(hfopsh]hfops}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjuhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjuhKubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhjuhKhj]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]hhhjuhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``const char *name`` a pointer to a string containing the name of the file to create. ``umode_t mode`` the permission that the file should have ``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the file will be created in the root of the securityfs filesystem. ``void *data`` a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call. ``const struct file_operations *fops`` a pointer to a struct file_operations that should be used for this file. **Description** This function creates a file in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjubj)}(hhh](j)}(hV``const char *name`` a pointer to a string containing the name of the file to create. h](j)}(h``const char *name``h]j)}(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)}(hjOh]h umode_t mode}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjIubj)}(hhh]h)}(h(the permission that the file should haveh]h(the permission that the file should have}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhKhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhKhj 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)}(hjh]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)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(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}(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).}(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&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"securityfs_create_dir (C function)c.securityfs_create_dirhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hOstruct dentry * securityfs_create_dir (const char *name, struct dentry *parent)h]j)}(hMstruct dentry *securityfs_create_dir(const char *name, struct dentry *parent)h](j)}(hjh]hstruct}(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)}(hjh]hsecurityfs_create_dir}(hj0hhhNhNubah}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj )}(hcharh]hchar}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hstruct dentry *parenth](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]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&]noemphjjuh1jhjCubeh}(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&]jjjjAjjAjjjuh1hhhhjX"hNhNubj)}(hX?**Parameters** ``const char *name`` a pointer to a string containing the name of the directory to create. ``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. **Description** This function creates a directory in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(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:286: ./security/inode.chKhjEubj)}(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)}(hjjh]hconst char *name}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjdubj)}(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.chKhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubj)}(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&]uh1jhjhKhjaubeh}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjEubh)}(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.chKhjEubh)}(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.chKhjEubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hj8hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh is returned.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&securityfs_create_symlink (C function)c.securityfs_create_symlinkhNtauh1hhjX"hhhNhNubh)}(hhh](j)}(hstruct dentry * securityfs_create_symlink (const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h]j)}(hstruct dentry *securityfs_create_symlink(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhKubh)}(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_symlinkasbuh1hhjuhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhKubjg)}(hsecurityfs_create_symlinkh]jm)}(hjh]hsecurityfs_create_symlink}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjhKubj)}(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 }(hj hhhNhNubah}(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)}(hnameh]hname}(hj7 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *parenth](j)}(hjh]hstruct}(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL ubj)}(h h]h }(hj] hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL ubh)}(hhh]jm)}(hdentryh]hdentry}(hjn hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjp modnameN classnameNjI jL )}jO ]jc.securityfs_create_symlinkasbuh1hhjL ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL ubjm)}(hparenth]hparent}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *targeth](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)}(htargeth]htarget}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h#const struct inode_operations *iopsh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj*!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]hstruct}(hj8!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hjE!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubh)}(hhh]jm)}(hinode_operationsh]hinode_operations}(hjV!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjS!ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjX!modnameN classnameNjI jL )}jO ]jc.securityfs_create_symlinkasbuh1hhj!ubj)}(h h]h }(hjt!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjm)}(hiopsh]hiops}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjnhhubj)}(hhh]h)}(h-create a symlink in the securityfs filesystemh]h-create a symlink in the securityfs filesystem}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj!hhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhjX"hNhNubj)}(hX**Parameters** ``const char *name`` a pointer to a string containing the name of the symlink to create. ``struct dentry *parent`` a pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. ``const char *target`` a pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations. ``const struct inode_operations *iops`` a pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used. **Description** This function creates a symlink in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj!ubj)}(hhh](j)}(hY``const char *name`` a pointer to a string containing the name of the symlink to create. h](j)}(h``const char *name``h]j)}(hj!h]hconst char *name}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj!ubj)}(hhh]h)}(hCa pointer to a string containing the name of the symlink to create.h]hCa pointer to a string containing the name of the symlink to create.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj"ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhj!ubj)}(h``struct dentry *parent`` a pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hj4"h]hstruct dentry *parent}(hj6"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2"ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj."ubj)}(hhh]h)}(ha pointer to 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 }(hjM"hhhNhNubj)}(h``NULL``h]hNULL}(hjU"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM"ubhN, then the directory will be created in the root of the securityfs filesystem.}(hjM"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjJ"ubah}(h]h ]h"]h$]h&]uh1jhj."ubeh}(h]h ]h"]h$]h&]uh1jhjI"hKhj!ubj)}(h``const char *target`` a pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations. h](j)}(h``const char *target``h]j)}(hj"h]hconst char *target}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~"ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjz"ubj)}(hhh]h)}(ha pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations.h](hZa pointer to a string containing the name of the symlink’s target. If this parameter is }(hj"hhhNhNubj)}(h``NULL``h]hNULL}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh , then the }(hj"hhhNhNubj)}(h**iops**h]hiops}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhP parameter needs to be setup to handle .readlink and .get_link inode_operations.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj"ubah}(h]h ]h"]h$]h&]uh1jhjz"ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhj!ubj)}(h``const struct inode_operations *iops`` a pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used. h](j)}(h'``const struct inode_operations *iops``h]j)}(hj"h]h#const struct inode_operations *iops}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj"ubj)}(hhh]h)}(ha pointer to 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 }(hj"hhhNhNubj)}(h``NULL``h]hNULL}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh@, then the default simple_symlink_inode operations will be used.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj"ubah}(h]h ]h"]h$]h&]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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj!ubh)}(hFThis function creates a symlink in securityfs with the given **name**.h](h=This function creates a symlink in securityfs with the given }(hjB#hhhNhNubj)}(h**name**h]hname}(hjJ#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB#ubh.}(hjB#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj!ubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hjc#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj!ubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hjr#hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hjz#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr#ubh is returned.}(hjr#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsecurityfs_remove (C function)c.securityfs_removehNtauh1hhjX"hhhNhNubh)}(hhh](j)}(h.void securityfs_remove (struct dentry *dentry)h]j)}(h-void securityfs_remove(struct dentry *dentry)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj#hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj#hhhj#hMubjg)}(hsecurityfs_removeh]jm)}(hsecurityfs_removeh]hsecurityfs_remove}(hj#hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#hhhj#hMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hjh]hstruct}(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}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj $ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$modnameN classnameNjI jL )}jO ]jR )}jE j#sbc.securityfs_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)}(hdentryh]hdentry}(hjI$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj#hMhj#hhubj)}(hhh]h)}(h:removes a file or directory from the securityfs filesystemh]h:removes a file or directory from the securityfs filesystem}(hjs$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhjp$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1hhhhjX"hNhNubj)}(hX^**Parameters** ``struct dentry *dentry`` a pointer to a the dentry of the file or directory to be removed. **Description** This function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.) This function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here. AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM hj$ubj)}(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)}(hj$h]hstruct dentry *dentry}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhj$ubj)}(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.}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM hj$ubh)}(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.)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhj$ubh)}(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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM#hj$ubh)}(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'hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjX"hhhNhNubeh}(h]security-frameworkah ]h"]security frameworkah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hAudit Interfacesh]hAudit Interfaces}(hjD%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA%hhhhhM"ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_start (C function)c.audit_log_starthNtauh1hhjA%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)}(hjh]hstruct}(hjk%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg%hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMaubj)}(h h]h }(hjy%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg%hhhjx%hMaubh)}(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 audit_log_startsbc.audit_log_startasbuh1hhjg%hhhjx%hMaubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjg%hhhjx%hMaubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg%hhhjx%hMaubjg)}(haudit_log_starth]jm)}(hj%h]haudit_log_start}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjg%hhhjx%hMaubj)}(h5(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj&modnameN classnameNjI jL )}jO ]j%c.audit_log_startasbuh1hhj%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}(hjX&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjU&ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjZ&modnameN classnameNjI jL )}jO ]j%c.audit_log_startasbuh1hhjQ&ubj)}(h h]h }(hjv&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ&ubjm)}(hgfp_maskh]hgfp_mask}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQ&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 }(hj&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%ubeh}(h]h ]h"]h$]h&]jjuh1jhjg%hhhjx%hMaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjc%hhhjx%hMaubah}(h]j^%ah ](jjeh"]h$]h&]jj)jhuh1hhjx%hMahj`%hhubj)}(hhh]h)}(hobtain an audit bufferh]hobtain an audit buffer}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMahj&hhubah}(h]h ]h"]h$]h&]uh1jhj`%hhhjx%hMaubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1hhhhjA%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.chMehj&ubj)}(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&]uh1hhj9'hMbhj:'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj9'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&]uh1jhj['ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMchjW'ubj)}(hhh]h)}(htype of allocationh]htype of allocation}(hjv'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr'hMchjs'ubah}(h]h ]h"]h$]h&]uh1jhjW'ubeh}(h]h ]h"]h$]h&]uh1jhjr'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&]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.chMfhj&ubh)}(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.chMehj&ubh)}(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.chMghj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_format (C function)c.audit_log_formathNtauh1hhjA%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 }(hj4(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!(hhhj3(hMubjg)}(haudit_log_formath]jm)}(haudit_log_formath]haudit_log_format}(hjF(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB(ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!(hhhj3(hMubj)}(h/(struct audit_buffer *ab, const char *fmt, ...)h](j)}(hstruct audit_buffer *abh](j)}(hjh]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 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 jH(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&]noemphjjuh1jhjZ(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&]noemphjjuh1jhjZ(ubj)}(h...h]j)}(hjh]h...}(hj1)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-)ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjZ(ubeh}(h]h ]h"]h$]h&]jjuh1jhj!(hhhj3(hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj3(hMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhj3(hMhj(hhubj)}(hhh]h)}(h'format a message into the audit buffer.h]h'format a message into the audit buffer.}(hjZ)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjW)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj3(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjr)jjr)jjjuh1hhhhjA%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)}(hj|)h]h Parameters}(hj~)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz)ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjv)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&]uh1jhjv)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.chMhjv)ubh)}(h*All the work is done in audit_log_vformat.h]h*All the work is done in audit_log_vformat.}(hjp*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjv)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_subj_ctx (C function)c.audit_log_subj_ctxhNtauh1hhjA%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)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(h audit_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}(hj5+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct lsm_prop *proph](j)}(hjh]hstruct}(hjN+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ+ubj)}(h h]h }(hj[+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJ+ubh)}(hhh]jm)}(hlsm_proph]hlsm_prop}(hjl+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjn+modnameN classnameNjI jL )}jO ]j+c.audit_log_subj_ctxasbuh1hhjJ+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)}(hproph]hprop}(hj+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJ+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+jjjuh1hhhhjA%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)}(hjI,h]hstruct lsm_prop *prop}(hjK,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG,ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjC,ubj)}(hhh]h)}(hLSM subject properties.h]hLSM subject properties.}(hjb,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^,hMhj_,ubah}(h]h ]h"]h$]h&]uh1jhjC,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&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_end (C function)c.audit_log_endhNtauh1hhjA%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)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubh)}(hhh]jm)}(h audit_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 }(hjD-hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-ubj)}(hjh]h*}(hjR-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-jjjuh1hhhhjA%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&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log (C function) c.audit_loghNtauh1hhjA%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}(hjJ.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjF.hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM[ ubj)}(h h]h }(hjY.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjF.hhhjX.hM[ ubjg)}(h audit_logh]jm)}(h audit_logh]h audit_log}(hjk.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjF.hhhjX.hM[ ubj)}(hK(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.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 jm.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}(hjA/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=/ubj)}(h h]h }(hjO/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}(hjv/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr/ubj )}(hcharh]hchar}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjr/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjr/ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr/ubjm)}(hfmth]hfmt}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr/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&]jjuh1jhjF.hhhjX.hM[ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjB.hhhjX.hM[ ubah}(h]j=.ah ](jjeh"]h$]h&]jj)jhuh1hhjX.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?.hhhjX.hM[ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhjA%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)}(hj0h]h Parameters}(hj 0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM_ hj0ubj)}(hhh](j)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hj=0h]hstruct audit_context *ctx}(hj?0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM\ hj70ubj)}(hhh]h)}(h audit contexth]h audit context}(hjV0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR0hM\ hjS0ubah}(h]h ]h"]h$]h&]uh1jhj70ubeh}(h]h ]h"]h$]h&]uh1jhjR0hM\ hj40ubj)}(h&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hjv0h]hgfp_t gfp_mask}(hjx0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM] hjp0ubj)}(hhh]h)}(htype of allocationh]htype of allocation}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM] hj0ubah}(h]h ]h"]h$]h&]uh1jhjp0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM] hj40ubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hj0h]hint type}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM^ hj0ubj)}(hhh]h)}(haudit message typeh]haudit message type}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM^ hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM^ hj40ubj)}(h)``const char *fmt`` format string to use h](j)}(h``const char *fmt``h]j)}(hj0h]hconst char *fmt}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM_ hj0ubj)}(hhh]h)}(hformat string to useh]hformat string to use}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM_ hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM_ hj40ubj)}(h7``...`` variable parameters matching the format string h](j)}(h``...``h]j)}(hj!1h]h...}(hj#1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM` hj1ubj)}(hhh]h)}(h.variable parameters matching the format stringh]h.variable parameters matching the format string}(hj:1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj61hM` hj71ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj61hM` hj40ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj\1h]h Description}(hj^1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ1ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMb hj0ubh)}(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.}(hjr1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMa hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_filter_op (C function)c.__audit_filter_ophNtauh1hhjA%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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj1hM.ubjg)}(h__audit_filter_oph]jm)}(h__audit_filter_oph]h__audit_filter_op}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj1hM.ubj)}(hx(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h](j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.__audit_filter_opasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hj*2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(htskh]htsk}(hj72hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjP2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL2ubj)}(h h]h }(hj]2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL2ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjn2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjp2modnameN classnameNjI jL )}jO ]j2c.__audit_filter_opasbuh1hhjL2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL2ubjm)}(hctxh]hctx}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct list_head *listh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubh)}(hhh]jm)}(h list_headh]h list_head}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]j2c.__audit_filter_opasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2ubj)}(hjh]h*}(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjm)}(hlisth]hlist}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct audit_names *nameh](j)}(hjh]hstruct}(hj03hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,3ubj)}(h h]h }(hj=3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,3ubh)}(hhh]jm)}(h audit_namesh]h audit_names}(hjN3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjK3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjP3modnameN classnameNjI jL )}jO ]j2c.__audit_filter_opasbuh1hhj,3ubj)}(h h]h }(hjl3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,3ubj)}(hjh]h*}(hjz3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,3ubjm)}(hnameh]hname}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hunsigned long oph](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj )}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubjm)}(hoph]hop}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hM.ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hM.hj1hhubj)}(hhh]h)}(h7common filter helper for operations (syscall/uring/etc)h]h7common filter helper for operations (syscall/uring/etc)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.hj3hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhjA%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$4h]h Parameters}(hj&4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"4ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj4ubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hjC4h]hstruct task_struct *tsk}(hjE4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM/hj=4ubj)}(hhh]h)}(hassociated taskh]hassociated task}(hj\4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX4hM/hjY4ubah}(h]h ]h"]h$]h&]uh1jhj=4ubeh}(h]h ]h"]h$]h&]uh1jhjX4hM/hj:4ubj)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hj|4h]hstruct audit_context *ctx}(hj~4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hjv4ubj)}(hhh]h)}(h audit contexth]h audit context}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM0hj4ubah}(h]h ]h"]h$]h&]uh1jhjv4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM0hj:4ubj)}(h-``struct list_head *list`` audit filter list h](j)}(h``struct list_head *list``h]j)}(hj4h]hstruct list_head *list}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hj4ubj)}(hhh]h)}(haudit filter listh]haudit filter list}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM1hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM1hj:4ubj)}(h6``struct audit_names *name`` audit_name (can be NULL) h](j)}(h``struct audit_names *name``h]j)}(hj4h]hstruct audit_names *name}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj4ubj)}(hhh]h)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM2hj5ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj5hM2hj:4ubj)}(h.``unsigned long op`` current syscall/uring_op h](j)}(h``unsigned long op``h]j)}(hj'5h]hunsigned long op}(hj)5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%5ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3hj!5ubj)}(hhh]h)}(hcurrent syscall/uring_oph]hcurrent syscall/uring_op}(hj@5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<5hM3hj=5ubah}(h]h ]h"]h$]h&]uh1jhj!5ubeh}(h]h ]h"]h$]h&]uh1jhj<5hM3hj:4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hjb5h]h Description}(hjd5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`5ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hj4ubh)}(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 }(hjx5hhhNhNubj)}(h**list**h]hlist}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx5ubh against }(hjx5hhhNhNubj)}(h**tsk**h]htsk}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx5ubh using }(hjx5hhhNhNubj)}(h**ctx**h]hctx}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx5ubh, }(hjx5hhhNhNubj)}(h**name**h]hname}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx5ubh, and }(hjx5hhhNhNubj)}(h**op**h]hop}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx5ubhr, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The }(hjx5hhhNhNubj)}(h**name**h]hname}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx5ubh 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.}(hjx5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_filter_uring (C function)c.audit_filter_uringhNtauh1hhjA%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}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPubj)}(h h]h }(hj"6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6hhhj!6hMPubjg)}(haudit_filter_uringh]jm)}(haudit_filter_uringh]haudit_filter_uring}(hj46hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj06ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj6hhhj!6hMPubj)}(h4(struct task_struct *tsk, struct audit_context *ctx)h](j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hjP6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL6ubj)}(h h]h }(hj]6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL6ubh)}(hhh]jm)}(h task_structh]h task_struct}(hjn6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjk6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjp6modnameN classnameNjI jL )}jO ]jR )}jE j66sbc.audit_filter_uringasbuh1hhjL6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjL6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL6ubjm)}(htskh]htsk}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjH6ubj)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj6modnameN classnameNjI jL )}jO ]j6c.audit_filter_uringasbuh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hctxh]hctx}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjH6ubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhj!6hMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj 6hhhj!6hMPubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj!6hMPhj6hhubj)}(hhh]h)}(h&apply filters to an io_uring operationh]h&apply filters to an io_uring operation}(hjC7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhj@7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj!6hMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[7jj[7jjjuh1hhhhjA%hNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit contexth](h)}(h**Parameters**h]j)}(hje7h]h Parameters}(hjg7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc7ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMThj_7ubj)}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hj7h]hstruct task_struct *tsk}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMQhj~7ubj)}(hhh]h)}(hassociated taskh]hassociated task}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMQhj7ubah}(h]h ]h"]h$]h&]uh1jhj~7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMQhj{7ubj)}(h+``struct audit_context *ctx`` audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hj7h]hstruct audit_context *ctx}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShj7ubj)}(hhh]h)}(h audit contexth]h audit context}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMRhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMShj{7ubeh}(h]h ]h"]h$]h&]uh1jhj_7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h audit_reset_context (C function)c.audit_reset_contexthNtauh1hhjA%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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj&8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhj%8hMubjg)}(haudit_reset_contexth]jm)}(haudit_reset_contexth]haudit_reset_context}(hj88hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj48ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj%8hMubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjT8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP8ubj)}(h h]h }(hja8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP8ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjr8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjt8modnameN classnameNjI jL )}jO ]jR )}jE j:8sbc.audit_reset_contextasbuh1hhjP8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP8ubjm)}(hctxh]hctx}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjP8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjL8ubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhj%8hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj%8hMubah}(h]j 8ah ](jjeh"]h$]h&]jj)jhuh1hhj%8hMhj 8hhubj)}(hhh]h)}(hreset a audit_context structureh]hreset a audit_context structure}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj 8hhhj%8hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhjA%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)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj8ubj)}(hhh]j)}(h9``struct audit_context *ctx`` the audit_context to reset h](j)}(h``struct audit_context *ctx``h]j)}(hj9h]hstruct audit_context *ctx}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj9ubj)}(hhh]h)}(hthe audit_context to reseth]hthe audit_context to reset}(hj19hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-9hMhj.9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj-9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hjS9h]h Description}(hjU9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ9ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj8ubh)}(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.}(hji9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_alloc (C function) c.audit_allochNtauh1hhjA%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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhj9hMubjg)}(h audit_alloch]jm)}(h audit_alloch]h audit_alloc}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhj9hMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hjh]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 j9sb c.audit_allocasbuh1hhj9ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hj!:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(htskh]htsk}(hj.:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj9hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj9hhubj)}(hhh]h)}(h*allocate an audit context block for a taskh]h*allocate an audit context block for a task}(hjX:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjU:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp:jjp:jjjuh1hhhhjA%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)}(hjz:h]h Parameters}(hj|:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx:ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjt:ubj)}(hhh]j)}(h!``struct task_struct *tsk`` task h](j)}(h``struct task_struct *tsk``h]j)}(hj:h]hstruct task_struct *tsk}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj:ubj)}(hhh]h)}(htaskh]htask}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjt: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.chMhjt:ubh)}(hFilter on the task information and allocate a per-task audit context if necessary. Doing so turns on system call auditing for the specified task. This is called from copy_process, so no lock is needed.h]hFilter on the task information and allocate a per-task audit context if necessary. Doing so turns on system call auditing for the specified task. This is called from copy_process, so no lock is needed.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjt:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_log_uring (C function)c.audit_log_uringhNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h0void audit_log_uring (struct audit_context *ctx)h]j)}(h/void audit_log_uring(struct audit_context *ctx)h](j )}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj;hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOubj)}(h h]h }(hj(;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhj';hMOubjg)}(haudit_log_uringh]jm)}(haudit_log_uringh]haudit_log_uring}(hj:;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhj';hMOubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjV;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR;ubj)}(h h]h }(hjc;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR;ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjt;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjv;modnameN classnameNjI jL )}jO ]jR )}jE j<;sbc.audit_log_uringasbuh1hhjR;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjR;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR;ubjm)}(hctxh]hctx}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjR;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjN;ubah}(h]h ]h"]h$]h&]jjuh1jhj;hhhj';hMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj';hMOubah}(h]j ;ah ](jjeh"]h$]h&]jj)jhuh1hhj';hMOhj;hhubj)}(hhh]h)}(hgenerate a AUDIT_URINGOP recordh]hgenerate a AUDIT_URINGOP record}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhj;hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj';hMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhjA%hNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShj;ubj)}(hhh]j)}(h/``struct audit_context *ctx`` the audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hj<h]hstruct audit_context *ctx}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMUhj<ubj)}(hhh]h)}(hthe audit contexth]hthe audit context}(hj3<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhj0<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj/<hMUhj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_free (C function)c.__audit_freehNtauh1hhjA%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}(hjt<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjp<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&]uh1jhjp<hhhj<hMubjg)}(h __audit_freeh]jm)}(h __audit_freeh]h __audit_free}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjp<hhhj<hMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubh)}(hhh]jm)}(h task_structh]h task_struct}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jR )}jE j<sbc.__audit_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)}(htskh]htsk}(hj =hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjp<hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjl<hhhj<hMubah}(h]jg<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMhji<hhubj)}(hhh]h)}(hfree a per-task audit contexth]hfree a per-task audit context}(hj4=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1=hhubah}(h]h ]h"]h$]h&]uh1jhji<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjL=jjL=jjjuh1hhhhjA%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)}(hjV=h]h Parameters}(hjX=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT=ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjP=ubj)}(hhh]j)}(hC``struct task_struct *tsk`` task whose audit context block to free h](j)}(h``struct task_struct *tsk``h]j)}(hju=h]hstruct task_struct *tsk}(hjw=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs=ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjo=ubj)}(hhh]h)}(h&task whose audit context block to freeh]h&task whose audit context block to free}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhjo=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjl=ubah}(h]h ]h"]h$]h&]uh1jhjP=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.chMhjP=ubh)}(h8Called from copy_process, do_exit, and the io_uring codeh]h8Called from copy_process, do_exit, and the io_uring code}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjP=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_return_fixup (C function)c.audit_return_fixuphNtauh1hhjA%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}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj=hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj=hhhj>hM0ubjg)}(haudit_return_fixuph]jm)}(haudit_return_fixuph]haudit_return_fixup}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj=hhhj>hM0ubj)}(h3(struct audit_context *ctx, int success, long code)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hj2>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.>ubj)}(h h]h }(hj?>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.>ubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjP>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjM>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjR>modnameN classnameNjI jL )}jO ]jR )}jE j>sbc.audit_return_fixupasbuh1hhj.>ubj)}(h h]h }(hjp>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.>ubj)}(hjh]h*}(hj~>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.>ubjm)}(hctxh]hctx}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*>ubj)}(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}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*>ubeh}(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)}(h+fixup the return codes in the audit_contexth]h+fixup the return codes in the audit_context}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hj?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj>hM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7?jj7?jjjuh1hhhhjA%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)}(hjA?h]h Parameters}(hjC?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.chM4hj;?ubj)}(hhh](j)}(h0``struct audit_context *ctx`` the audit_context h](j)}(h``struct audit_context *ctx``h]j)}(hj`?h]hstruct audit_context *ctx}(hjb?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^?ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hjZ?ubj)}(hhh]h)}(hthe audit_contexth]hthe audit_context}(hjy?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju?hM1hjv?ubah}(h]h ]h"]h$]h&]uh1jhjZ?ubeh}(h]h ]h"]h$]h&]uh1jhju?hM1hjW?ubj)}(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.chM2hj?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?hM2hj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM2hjW?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.chM3hj?ubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM3hj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM3hjW?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.chM5hj;?ubh)}(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#@hhhNhNubah}(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&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h void __audit_uring_entry (u8 op)h]j)}(hvoid __audit_uring_entry(u8 op)h](j )}(hvoidh]hvoid}(hjR@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjN@hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLubj)}(h h]h }(hja@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN@hhhj`@hMLubjg)}(h__audit_uring_entryh]jm)}(h__audit_uring_entryh]h__audit_uring_entry}(hjs@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjo@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjN@hhhj`@hMLubj)}(h(u8 op)h]j)}(hu8 oph](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 ju@sbc.__audit_uring_entryasbuh1hhj@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@ubah}(h]h ]h"]h$]h&]jjuh1jhjN@hhhj`@hMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJ@hhhj`@hMLubah}(h]jE@ah ](jjeh"]h$]h&]jj)jhuh1hhj`@hMLhjG@hhubj)}(hhh]h)}(h4prepare the kernel task's audit context for io_uringh]h6prepare the kernel task’s audit context for io_uring}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLhj@hhubah}(h]h ]h"]h$]h&]uh1jhjG@hhhj`@hMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhjA%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 Ah]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhjAubj)}(hhh]j)}(h``u8 op`` the io_uring opcode h](j)}(h ``u8 op``h]j)}(hj+Ah]hu8 op}(hj-AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Aubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMMhj%Aubj)}(hhh]h)}(hthe io_uring opcodeh]hthe io_uring opcode}(hjDAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@AhMMhjAAubah}(h]h ]h"]h$]h&]uh1jhj%Aubeh}(h]h ]h"]h$]h&]uh1jhj@AhMMhj"Aubah}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjfAh]h Description}(hjhAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdAubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhjAubh)}(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.}(hj|AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMNhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_uring_exit (C function)c.__audit_uring_exithNtauh1hhjA%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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMoubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjAhMoubjg)}(h__audit_uring_exith]jm)}(h__audit_uring_exith]h__audit_uring_exit}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjAhMoubj)}(h(int success, long code)h](j)}(h int successh](j )}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubjm)}(hsuccessh]hsuccess}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(h long codeh](j )}(hlongh]hlong}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBubj)}(h h]h }(hj+BhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBubjm)}(hcodeh]hcode}(hj9BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhMoubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjAhMohjAhhubj)}(hhh]h)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hjcBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMohj`Bhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{Bjj{Bjjjuh1hhhhjA%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)}(hjBh]h Parameters}(hjBhhhNhNubah}(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.chMshjBubj)}(hhh](j)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hjBh]h int success}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMphjBubj)}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMphjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMphjBubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hjBh]h long code}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMqhjBubj)}(hhh]h)}(hoperation return codeh]hoperation return code}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMqhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMqhjBubeh}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMshjBubh)}(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.ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMrhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhjA%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]ChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjYChhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hjlChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYChhhjkChMubjg)}(h__audit_syscall_entryh]jm)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hj~ChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjYChhhjkChMubj)}(hS(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j)}(h int majorh](j )}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(hmajorh]hmajor}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned long a1h](j )}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj )}(hlongh]hlong}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubjm)}(ha1h]ha1}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubj)}(hunsigned long a2h](j )}(hunsignedh]hunsigned}(hj DhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjDubj)}(h h]h }(hj.DhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(huptrh]huptr}(hjKIhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhjwHhhhjHhM}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjsHhhhjHhM}ubah}(h]jnHah ](jjeh"]h$]h&]jj)jhuh1hhjHhM}hjpHhhubj)}(hhh]h)}(h/fill out filename with info from existing entryh]h/fill out filename with info from existing entry}(hjuIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM}hjrIhhubah}(h]h ]h"]h$]h&]uh1jhjpHhhhjHhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhjA%hNhNubj)}(hX**Parameters** ``const __user char *uptr`` userland ptr to pathname **Description** Search the audit_names list for the current audit context. If there is an existing entry with a matching "uptr" then return the filename associated with that audit_name. If not, return NULL.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjIubj)}(hhh]j)}(h5``const __user char *uptr`` userland ptr to pathname h](j)}(h``const __user char *uptr``h]j)}(hjIh]hconst __user char *uptr}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM~hjIubj)}(hhh]h)}(huserland ptr to pathnameh]huserland ptr to pathname}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM~hjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhM~hjIubah}(h]h ]h"]h$]h&]uh1jhjIubh)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjIubh)}(hSearch the audit_names list for the current audit context. If there is an existing entry with a matching "uptr" then return the filename associated with that audit_name. If not, return NULL.h]hSearch the audit_names list for the current audit context. If there is an existing entry with a matching “uptr” then return the filename associated with that audit_name. If not, return NULL.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_getname (C function)c.__audit_getnamehNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h,void __audit_getname (struct filename *name)h]j)}(h+void __audit_getname(struct filename *name)h](j )}(hvoidh]hvoid}(hj6JhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2JhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hjEJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2JhhhjDJhMubjg)}(h__audit_getnameh]jm)}(h__audit_getnameh]h__audit_getname}(hjWJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2JhhhjDJhMubj)}(h(struct filename *name)h]j)}(hstruct filename *nameh](j)}(hjh]hstruct}(hjsJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoJubh)}(hhh]jm)}(hfilenameh]hfilename}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJmodnameN classnameNjI jL )}jO ]jR )}jE jYJsbc.__audit_getnameasbuh1hhjoJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjoJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubjm)}(hnameh]hname}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkJubah}(h]h ]h"]h$]h&]jjuh1jhj2JhhhjDJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.JhhhjDJhMubah}(h]j)Jah ](jjeh"]h$]h&]jj)jhuh1hhjDJhMhj+Jhhubj)}(hhh]h)}(hadd a name to the listh]hadd a name to the list}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhj+JhhhjDJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhjA%hNhNubj)}(h**Parameters** ``struct filename *name`` name to add **Description** Add a name to the list of audit names for this context. Called from fs/namei.c:getname().h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjKubj)}(hhh]j)}(h&``struct filename *name`` name to add h](j)}(h``struct filename *name``h]j)}(hj7Kh]hstruct filename *name}(hj9KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Kubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj1Kubj)}(hhh]h)}(h name to addh]h name to add}(hjPKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLKhMhjMKubah}(h]h ]h"]h$]h&]uh1jhj1Kubeh}(h]h ]h"]h$]h&]uh1jhjLKhMhj.Kubah}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjrKh]h Description}(hjtKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjKubh)}(hYAdd a name to the list of audit names for this context. Called from fs/namei.c:getname().h]hYAdd a name to the list of audit names for this context. Called from fs/namei.c:getname().}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_inode (C function)c.__audit_inodehNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h[void __audit_inode (struct filename *name, const struct dentry *dentry, unsigned int flags)h]j)}(hZvoid __audit_inode(struct filename *name, const struct dentry *dentry, unsigned int flags)h](j )}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhjKhMubjg)}(h __audit_inodeh]jm)}(h __audit_inodeh]h __audit_inode}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhjKhMubj)}(hH(struct filename *name, const struct dentry *dentry, unsigned int flags)h](j)}(hstruct filename *nameh](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubh)}(hhh]jm)}(hfilenameh]hfilename}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.__audit_inodeasbuh1hhjKubj)}(h h]h }(hj2LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKubj)}(hjh]h*}(hj@LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjm)}(hnameh]hname}(hjMLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hconst struct dentry *dentryh](j)}(hjh]hconst}(hjfLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbLubj)}(h h]h }(hjsLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbLubj)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbLubh)}(hhh]jm)}(hdentryh]hdentry}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]j.Lc.__audit_inodeasbuh1hhjbLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbLubjm)}(hdentryh]hdentry}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj )}(hinth]hint}(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubjm)}(hflagsh]hflags}(hj)MhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhjKhhubj)}(hhh]h)}(h(store the inode and device from a lookuph]h(store the inode and device from a lookup}(hjSMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjPMhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkMjjkMjjjuh1hhhhjA%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)}(hjuMh]h Parameters}(hjwMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsMubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjoMubj)}(hhh](j)}(h-``struct filename *name`` name being audited h](j)}(h``struct filename *name``h]j)}(hjMh]hstruct filename *name}(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.chMhjMubj)}(hhh]h)}(hname being auditedh]hname being audited}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(h5``const struct dentry *dentry`` dentry being audited h](j)}(h``const struct dentry *dentry``h]j)}(hjMh]hconst struct dentry *dentry}(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.chMhjMubj)}(hhh]h)}(hdentry being auditedh]hdentry being audited}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(h;``unsigned int flags`` attributes for this particular entryh](j)}(h``unsigned int flags``h]j)}(hjNh]hunsigned int flags}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjNubj)}(hhh]h)}(h$attributes for this particular entryh]h$attributes for this particular entry}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjoMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hauditsc_get_stamp (C function)c.auditsc_get_stamphNtauh1hhjA%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`NhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj\NhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjoNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\NhhhjnNhM ubjg)}(hauditsc_get_stamph]jm)}(hauditsc_get_stamph]hauditsc_get_stamp}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}Nubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj\NhhhjnNhM ubj)}(h6(struct audit_context *ctx, struct audit_stamp *stamp)h](j)}(hstruct audit_context *ctxh](j)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(h audit_contexth]h audit_context}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE jNsbc.auditsc_get_stampasbuh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hctxh]hctx}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hstruct audit_stamp *stamph](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Oubh)}(hhh]jm)}(h audit_stamph]h audit_stamp}(hj-OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*Oubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/OmodnameN classnameNjI jL )}jO ]jNc.auditsc_get_stampasbuh1hhj Oubj)}(h h]h }(hjKOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Oubj)}(hjh]h*}(hjYOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubjm)}(hstamph]hstamp}(hjfOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhj\NhhhjnNhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXNhhhjnNhM ubah}(h]jSNah ](jjeh"]h$]h&]jj)jhuh1hhjnNhM hjUNhhubj)}(hhh]h)}(h(get local copies of audit_context valuesh]h(get local copies of audit_context values}(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&]uh1jhjUNhhhjnNhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1hhhhjA%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)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjOubj)}(hhh](j)}(h9``struct audit_context *ctx`` audit_context for the task h](j)}(h``struct audit_context *ctx``h]j)}(hjOh]hstruct audit_context *ctx}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjOubj)}(hhh]h)}(haudit_context for the taskh]haudit_context for the task}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjOubj)}(h2``struct audit_stamp *stamp`` timestamp to record h](j)}(h``struct audit_stamp *stamp``h]j)}(hj Ph]hstruct audit_stamp *stamp}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjPubj)}(hhh]h)}(htimestamp to recordh]htimestamp to record}(hj#PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM hj Pubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhM hjOubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjEPh]h Description}(hjGPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCPubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjOubh)}(h#Also sets the context as auditable.h]h#Also sets the context as auditable.}(hj[PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_mq_open (C function)c.__audit_mq_openhNtauh1hhjA%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}(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_openh]jm)}(h__audit_mq_openh]h__audit_mq_open}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjPhM ubj)}(h/(int oflag, umode_t mode, struct mq_attr *attr)h](j)}(h int oflagh](j )}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hoflagh]hoflag}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h umode_t modeh](h)}(hhh]jm)}(humode_th]humode_t}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]jR )}jE jPsbc.__audit_mq_openasbuh1hhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hmodeh]hmode}(hj-QhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hstruct mq_attr *attrh](j)}(hjh]hstruct}(hjFQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBQubj)}(h h]h }(hjSQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBQubh)}(hhh]jm)}(hmq_attrh]hmq_attr}(hjdQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjfQmodnameN classnameNjI jL )}jO ]jQc.__audit_mq_openasbuh1hhjBQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBQubjm)}(hattrh]hattr}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjPhM ubah}(h]j}Pah ](jjeh"]h$]h&]jj)jhuh1hhjPhM hjPhhubj)}(hhh]h)}(h%record audit data for a POSIX MQ openh]h%record audit data for a POSIX MQ open}(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&]jjjjQjjQjjjuh1hhhhjA%hNhNubj)}(ht**Parameters** ``int oflag`` open flag ``umode_t mode`` mode bits ``struct mq_attr *attr`` queue attributesh](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``int oflag`` open flag h](j)}(h ``int oflag``h]j)}(hjRh]h int oflag}(hj RhhhNhNubah}(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 open flagh]h open flag}(hj!RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM hjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM hjQubj)}(h``umode_t mode`` mode bits h](j)}(h``umode_t mode``h]j)}(hjARh]h umode_t mode}(hjCRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Rubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj;Rubj)}(hhh]h)}(h mode bitsh]h mode bits}(hjZRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVRhM hjWRubah}(h]h ]h"]h$]h&]uh1jhj;Rubeh}(h]h ]h"]h$]h&]uh1jhjVRhM hjQubj)}(h)``struct mq_attr *attr`` queue attributesh](j)}(h``struct mq_attr *attr``h]j)}(hjzRh]hstruct mq_attr *attr}(hj|RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxRubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjtRubj)}(hhh]h)}(hqueue attributesh]hqueue attributes}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjRubah}(h]h ]h"]h$]h&]uh1jhjtRubeh}(h]h ]h"]h$]h&]uh1jhjRhM hjQubeh}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h __audit_mq_sendrecv (C function)c.__audit_mq_sendrecvhNtauh1hhjA%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}(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_mq_sendrecvh]jm)}(h__audit_mq_sendrecvh]h__audit_mq_sendrecv}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjRhhhjRhM 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}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE jRsbc.__audit_mq_sendrecvasbuh1hhj Subj)}(h h]h }(hj4ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Subjm)}(hmqdesh]hmqdes}(hjBShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Subj)}(hsize_t msg_lenh](h)}(hhh]jm)}(hsize_th]hsize_t}(hj^ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[Subah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj`SmodnameN classnameNjI jL )}jO ]j0Sc.__audit_mq_sendrecvasbuh1hhjWSubj)}(h h]h }(hj|ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWSubjm)}(hmsg_lenh]hmsg_len}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Subj)}(hunsigned int msg_prioh](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)}(hmsg_prioh]hmsg_prio}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Subj)}(h$const struct timespec64 *abs_timeouth](j)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(h timespec64h]h timespec64}(hj-ThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*Tubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/TmodnameN classnameNjI jL )}jO ]j0Sc.__audit_mq_sendrecvasbuh1hhjSubj)}(h h]h }(hjKThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjYThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(h abs_timeouth]h abs_timeout}(hjfThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Subeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjRhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjRhM ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjRhM hjRhhubj)}(hhh]h)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjThhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1hhhhjA%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)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjTubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjTh]h mqd_t mqdes}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjTubj)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThM hjTubj)}(h"``size_t msg_len`` Message length h](j)}(h``size_t msg_len``h]j)}(hj Uh]hsize_t msg_len}(hj UhhhNhNubah}(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.chM hjUubj)}(hhh]h)}(hMessage lengthh]hMessage length}(hj#UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hj Uubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjTubj)}(h+``unsigned int msg_prio`` Message priority h](j)}(h``unsigned int msg_prio``h]j)}(hjCUh]hunsigned int msg_prio}(hjEUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAUubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj=Uubj)}(hhh]h)}(hMessage priorityh]hMessage priority}(hj\UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXUhM hjYUubah}(h]h ]h"]h$]h&]uh1jhj=Uubeh}(h]h ]h"]h$]h&]uh1jhjXUhM hjTubj)}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j)}(h(``const struct timespec64 *abs_timeout``h]j)}(hj|Uh]h$const struct timespec64 *abs_timeout}(hj~UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzUubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjvUubj)}(hhh]h)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjUubah}(h]h ]h"]h$]h&]uh1jhjvUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjTubeh}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhjA%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}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjUhM ubjg)}(h__audit_mq_notifyh]jm)}(h__audit_mq_notifyh]h__audit_mq_notify}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjUhM ubj)}(h2(mqd_t mqdes, const struct sigevent *notification)h](j)}(h mqd_t mqdesh](h)}(hhh]jm)}(hmqd_th]hmqd_t}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.__audit_mq_notifyasbuh1hhjVubj)}(h h]h }(hj6VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubjm)}(hmqdesh]hmqdes}(hjDVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Vubj)}(h#const struct sigevent *notificationh](j)}(hjh]hconst}(hj]VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYVubj)}(h h]h }(hjjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYVubj)}(hjh]hstruct}(hjxVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYVubh)}(hhh]jm)}(hsigeventh]hsigevent}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjVmodnameN classnameNjI jL )}jO ]j2Vc.__audit_mq_notifyasbuh1hhjYVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYVubjm)}(h notificationh]h notification}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Vubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhM ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhM hjUhhubj)}(hhh]h)}(h'record audit data for a POSIX MQ notifyh]h'record audit data for a POSIX MQ notify}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhjA%hNhNubj)}(hm**Parameters** ``mqd_t mqdes`` MQ descriptor ``const struct sigevent *notification`` Notification eventh](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjWubj)}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hj:Wh]h mqd_t mqdes}(hj_ubj)}(hhh]h)}(h args arrayh]h args array}(hj]_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMK hjZ_ubah}(h]h ]h"]h$]h&]uh1jhj>_ubeh}(h]h ]h"]h$]h&]uh1jhjY_hML hj_ubeh}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_fd_pair (C function)c.__audit_fd_pairhNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h'void __audit_fd_pair (int fd1, int fd2)h]j)}(h&void __audit_fd_pair(int fd1, int fd2)h](j )}(hvoidh]hvoid}(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_fd_pairh]jm)}(h__audit_fd_pairh]h__audit_fd_pair}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj_hhhj_hM[ ubj)}(h(int fd1, int fd2)h](j)}(hint fd1h](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)}(hfd1h]hfd1}(hj_hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hint fd2h](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)}(hfd2h]hfd2}(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)record audit data for pipe and socketpairh]h)record audit data for pipe and socketpair}(hjV`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM[ hjS`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hM[ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjn`jjn`jjjuh1hhhhjA%hNhNubj)}(ha**Parameters** ``int fd1`` the first file descriptor ``int fd2`` the second file descriptorh](h)}(h**Parameters**h]j)}(hjx`h]h Parameters}(hjz`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv`ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM_ hjr`ubj)}(hhh](j)}(h&``int fd1`` the first file descriptor h](j)}(h ``int fd1``h]j)}(hj`h]hint fd1}(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 first file descriptorh]hthe first file descriptor}(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 fd2`` the second file descriptorh](j)}(h ``int fd2``h]j)}(hj`h]hint fd2}(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 second file descriptorh]hthe second file descriptor}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM] hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hM^ hj`ubeh}(h]h ]h"]h$]h&]uh1jhjr`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h__audit_sockaddr (C function)c.__audit_sockaddrhNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h'int __audit_sockaddr (int len, void *a)h]j)}(h&int __audit_sockaddr(int len, void *a)h](j )}(hinth]hint}(hj*ahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&ahhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMi ubj)}(h h]h }(hj9ahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&ahhhj8ahMi ubjg)}(h__audit_sockaddrh]jm)}(h__audit_sockaddrh]h__audit_sockaddr}(hjKahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&ahhhj8ahMi ubj)}(h(int len, void *a)h](j)}(hint lenh](j )}(hinth]hint}(hjgahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcaubj)}(h h]h }(hjuahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcaubjm)}(hlenh]hlen}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_aubj)}(hvoid *ah](j )}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjm)}(hjh]ha}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_aubeh}(h]h ]h"]h$]h&]jjuh1jhj&ahhhj8ahMi ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"ahhhj8ahMi ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj8ahMi hjahhubj)}(hhh]h)}(h7record audit data for sys_bind, sys_connect, sys_sendtoh]h7record audit data for sys_bind, sys_connect, sys_sendto}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMi hjahhubah}(h]h ]h"]h$]h&]uh1jhjahhhj8ahMi ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhjA%hNhNubj)}(h**Parameters** ``int len`` data length in user space ``void *a`` data address in kernel space **Description** Returns 0 for success or NULL context or < 0 on error.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(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.chMm hj bubj)}(hhh](j)}(h&``int len`` data length in user space h](j)}(h ``int len``h]j)}(hj/bh]hint len}(hj1bhhhNhNubah}(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.chMj hj)bubj)}(hhh]h)}(hdata length in user spaceh]hdata length in user space}(hjHbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDbhMj hjEbubah}(h]h ]h"]h$]h&]uh1jhj)bubeh}(h]h ]h"]h$]h&]uh1jhjDbhMj hj&bubj)}(h)``void *a`` data address in kernel space h](j)}(h ``void *a``h]j)}(hjhbh]hvoid *a}(hjjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfbubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMk hjbbubj)}(hhh]h)}(hdata address in kernel spaceh]hdata address in kernel space}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}bhMk hj~bubah}(h]h ]h"]h$]h&]uh1jhjbbubeh}(h]h ]h"]h$]h&]uh1jhj}bhMk hj&bubeh}(h]h ]h"]h$]h&]uh1jhj bubh)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMm hj bubh)}(h6Returns 0 for success or NULL context or < 0 on error.h]h6Returns 0 for success or NULL context or < 0 on error.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMl hj bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&audit_signal_info_syscall (C function)c.audit_signal_info_syscallhNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h5int audit_signal_info_syscall (struct task_struct *t)h]j)}(h4int audit_signal_info_syscall(struct task_struct *t)h](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjbhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbhhhjbhM ubjg)}(haudit_signal_info_syscallh]jm)}(haudit_signal_info_syscallh]haudit_signal_info_syscall}(hj chhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhhjbhM ubj)}(h(struct task_struct *t)h]j)}(hstruct task_struct *th](j)}(hjh]hstruct}(hj%chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!cubj)}(h h]h }(hj2chhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!cubh)}(hhh]jm)}(h task_structh]h task_struct}(hjCchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@cubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEcmodnameN classnameNjI jL )}jO ]jR )}jE j csbc.audit_signal_info_syscallasbuh1hhj!cubj)}(h h]h }(hjcchhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!cubj)}(hjh]h*}(hjqchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!cubjm)}(hth]ht}(hj~chhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj!cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhM ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhM hjbhhubj)}(hhh]h)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhjA%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)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjcubj)}(hhh]j)}(h.``struct task_struct *t`` task being signaled h](j)}(h``struct task_struct *t``h]j)}(hjch]hstruct task_struct *t}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjcubj)}(hhh]h)}(htask being signaledh]htask being signaled}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM hjcubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjcubh)}(h]If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.h]h]If the audit subsystem is being terminated, record the task (pid) and uid that is doing that.}(hj:dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__audit_log_bprm_fcaps (C function)c.__audit_log_bprm_fcapshNtauh1hhjA%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}(hjidhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjedhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hjxdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjedhhhjwdhM ubjg)}(h__audit_log_bprm_fcapsh]jm)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjedhhhjwdhM ubj)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j)}(hstruct linux_binprm *bprmh](j)}(hjh]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}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE jdsbc.__audit_log_bprm_fcapsasbuh1hhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjm)}(hbprmh]hbprm}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hconst struct cred *newh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hj%ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]hstruct}(hj3ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hj@ehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(hcredh]hcred}(hjQehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSemodnameN classnameNjI jL )}jO ]jdc.__audit_log_bprm_fcapsasbuh1hhjeubj)}(h h]h }(hjoehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hj}ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hnewh]hnew}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(hhh]jm)}(hcredh]hcred}(hjehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jdc.__audit_log_bprm_fcapsasbuh1hhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(holdh]hold}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhjedhhhjwdhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjadhhhjwdhM ubah}(h]j\dah ](jjeh"]h$]h&]jj)jhuh1hhjwdhM hj^dhhubj)}(hhh]h)}(h9store information about a loading bprm and relevant fcapsh]h9store information about a loading bprm and relevant fcaps}(hj?fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjiubah}(h]h ]h"]h$]h&]uh1jhj"iubeh}(h]h ]h"]h$]h&]uh1jhj=ihM hjiubj)}(h9``const struct cred *old`` the old (current) credentials h](j)}(h``const struct cred *old``h]j)}(hjaih]hconst struct cred *old}(hjcihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_iubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj[iubj)}(hhh]h)}(hthe old (current) credentialsh]hthe old (current) credentials}(hjzihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvihM hjwiubah}(h]h ]h"]h$]h&]uh1jhj[iubeh}(h]h ]h"]h$]h&]uh1jhjvihM hjiubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjiubh)}(hfRecord the arguments userspace sent to sys_capset for later printing by the audit system if applicableh]hfRecord the arguments userspace sent to sys_capset for later printing by the audit system if applicable}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_core_dumps (C function)c.audit_core_dumpshNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h"void audit_core_dumps (long signr)h]j)}(h!void audit_core_dumps(long signr)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.chMs ubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjihhhjihMs ubjg)}(haudit_core_dumpsh]jm)}(haudit_core_dumpsh]haudit_core_dumps}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjihhhjihMs ubj)}(h (long signr)h]j)}(h long signrh](j )}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjubj)}(h h]h }(hj,jhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjubjm)}(hsignrh]hsignr}(hj:jhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhjihhhjihMs ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihMs ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihMs hjihhubj)}(hhh]h)}(h6record information about processes that end abnormallyh]h6record information about processes that end abnormally}(hjdjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMs hjajhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMs ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jjj|jjjjuh1hhhhjA%hNhNubj)}(h**Parameters** ``long signr`` signal value **Description** If a process ends with a core dump, something fishy is going on and we should record the event for investigation.h](h)}(h**Parameters**h]j)}(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.chMw hjjubj)}(hhh]j)}(h``long signr`` signal value h](j)}(h``long signr``h]j)}(hjjh]h long signr}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMt hjjubj)}(hhh]h)}(h signal valueh]h signal value}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMt hjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMt hjjubah}(h]h ]h"]h$]h&]uh1jhjjubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv hjjubh)}(hqIf a process ends with a core dump, something fishy is going on and we should record the event for investigation.h]hqIf a process ends with a core dump, something fishy is going on and we should record the event for investigation.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMu hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_seccomp (C function)c.audit_seccomphNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h@void audit_seccomp (unsigned long syscall, long signr, int code)h]j)}(h?void audit_seccomp(unsigned long syscall, long signr, int code)h](j )}(hvoidh]hvoid}(hj%khhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj!khhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj)}(h h]h }(hj4khhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj!khhhj3khM ubjg)}(h audit_seccomph]jm)}(h audit_seccomph]h audit_seccomp}(hjFkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBkubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj!khhhj3khM ubj)}(h-(unsigned long syscall, long signr, int code)h](j)}(hunsigned long syscallh](j )}(hunsignedh]hunsigned}(hjbkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^kubj)}(h h]h }(hjpkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^kubj )}(hlongh]hlong}(hj~khhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj^kubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^kubjm)}(hsyscallh]hsyscall}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj^kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZkubj)}(h long signrh](j )}(hlongh]hlong}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hsignrh]hsignr}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZkubj)}(hint codeh](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hcodeh]hcode}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZkubeh}(h]h ]h"]h$]h&]jjuh1jhj!khhhj3khM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhj3khM ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhj3khM hjkhhubj)}(hhh]h)}(h)record information about a seccomp actionh]h)record information about a seccomp action}(hj.lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj+lhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhj3khM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFljjFljjjuh1hhhhjA%hNhNubj)}(hX**Parameters** ``unsigned long syscall`` syscall number ``long signr`` signal value ``int code`` the seccomp action **Description** Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.h](h)}(h**Parameters**h]j)}(hjPlh]h Parameters}(hjRlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNlubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJlubj)}(hhh](j)}(h)``unsigned long syscall`` syscall number h](j)}(h``unsigned long syscall``h]j)}(hjolh]hunsigned long syscall}(hjqlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjilubj)}(hhh]h)}(hsyscall numberh]hsyscall number}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM hjlubah}(h]h ]h"]h$]h&]uh1jhjilubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjflubj)}(h``long signr`` signal value h](j)}(h``long signr``h]j)}(hjlh]h long signr}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjlubj)}(hhh]h)}(h signal valueh]h signal value}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM hjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjflubj)}(h ``int code`` the seccomp action h](j)}(h ``int code``h]j)}(hjlh]hint code}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjlubj)}(hhh]h)}(hthe seccomp actionh]hthe seccomp action}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM hjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjflubeh}(h]h ]h"]h$]h&]uh1jhjJlubh)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJlubh)}(hX:Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.h]hX:Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.}(hj2mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](haudit_rule_change (C function)c.audit_rule_changehNtauh1hhjA%hhhNhNubh)}(hhh](j)}(hDint audit_rule_change (int type, int seq, void *data, size_t datasz)h]j)}(hCint audit_rule_change(int type, int seq, void *data, size_t datasz)h](j )}(hinth]hint}(hjamhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj]mhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMgubj)}(h h]h }(hjpmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]mhhhjomhMgubjg)}(haudit_rule_changeh]jm)}(haudit_rule_changeh]haudit_rule_change}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~mubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj]mhhhjomhMgubj)}(h.(int type, int seq, void *data, size_t datasz)h](j)}(hint typeh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubjm)}(htypeh]htype}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hint seqh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmubjm)}(hseqh]hseq}(hjmhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(h void *datah](j )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hj$nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(hdatah]hdata}(hj1nhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(h size_t dataszh](h)}(hhh]jm)}(hsize_th]hsize_t}(hjMnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOnmodnameN classnameNjI jL )}jO ]jR )}jE jmsbc.audit_rule_changeasbuh1hhjFnubj)}(h h]h }(hjmnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFnubjm)}(hdataszh]hdatasz}(hj{nhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhj]mhhhjomhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYmhhhjomhMgubah}(h]jTmah ](jjeh"]h$]h&]jj)jhuh1hhjomhMghjVmhhubj)}(hhh]h)}(h-apply all rules to the specified message typeh]h-apply all rules to the specified message type}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMghjnhhubah}(h]h ]h"]h$]h&]uh1jhjVmhhhjomhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhjA%hNhNubj)}(h**Parameters** ``int type`` audit message type ``int seq`` netlink audit message sequence (serial) number ``void *data`` payload data ``size_t datasz`` size of payload datah](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMkhjnubj)}(hhh](j)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hjnh]hint type}(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.chMhhjnubj)}(hhh]h)}(haudit message typeh]haudit message type}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhhjnubj)}(h;``int seq`` netlink audit message sequence (serial) number h](j)}(h ``int seq``h]j)}(hjoh]hint seq}(hj!ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMihjoubj)}(hhh]h)}(h.netlink audit message sequence (serial) numberh]h.netlink audit message sequence (serial) number}(hj8ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ohMihj5oubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhj4ohMihjnubj)}(h``void *data`` payload data h](j)}(h``void *data``h]j)}(hjXoh]h void *data}(hjZohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVoubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMjhjRoubj)}(hhh]h)}(h payload datah]h payload data}(hjqohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmohMjhjnoubah}(h]h ]h"]h$]h&]uh1jhjRoubeh}(h]h ]h"]h$]h&]uh1jhjmohMjhjnubj)}(h&``size_t datasz`` size of payload datah](j)}(h``size_t datasz``h]j)}(hjoh]h size_t datasz}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMlhjoubj)}(hhh]h)}(hsize of payload datah]hsize of payload data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMkhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMlhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"audit_list_rules_send (C function)c.audit_list_rules_sendhNtauh1hhjA%hhhNhNubh)}(hhh](j)}(h@int audit_list_rules_send (struct sk_buff *request_skb, int seq)h]j)}(h?int audit_list_rules_send(struct sk_buff *request_skb, int seq)h](j )}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjohhhjohMubjg)}(haudit_list_rules_sendh]jm)}(haudit_list_rules_sendh]haudit_list_rules_send}(hj phhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjohMubj)}(h&(struct sk_buff *request_skb, int seq)h](j)}(hstruct sk_buff *request_skbh](j)}(hjh]hstruct}(hj(phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$pubj)}(h h]h }(hj5phhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$pubh)}(hhh]jm)}(hsk_buffh]hsk_buff}(hjFphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHpmodnameN classnameNjI jL )}jO ]jR )}jE jpsbc.audit_list_rules_sendasbuh1hhj$pubj)}(h h]h }(hjfphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$pubj)}(hjh]h*}(hjtphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$pubjm)}(h request_skbh]h request_skb}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$pubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj pubj)}(hint seqh](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hseqh]hseq}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj pubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjohMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjohhubj)}(hhh]h)}(hlist the audit rulesh]hlist the audit rules}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhjA%hNhNubj)}(h**Parameters** ``struct sk_buff *request_skb`` skb of request we are replying to (used to target the reply) ``int seq`` netlink audit message sequence (serial) numberh](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjpubj)}(hhh](j)}(h]``struct sk_buff *request_skb`` skb of request we are replying to (used to target the reply) h](j)}(h``struct sk_buff *request_skb``h]j)}(hj!qh]hstruct sk_buff *request_skb}(hj#qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjqubj)}(hhh]h)}(h``const struct qstr *dname`` dentry name that we're comparing h](j)}(h``const struct qstr *dname``h]j)}(hjth]hconst struct qstr *dname}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjtubj)}(hhh]h)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjtubj)}(h8``const char *path`` full pathname that we're comparing h](j)}(h``const char *path``h]j)}(hjth]hconst char *path}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjtubj)}(hhh]h)}(h"full pathname that we're comparingh]h$full pathname that we’re comparing}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjtubj)}(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)}(hjuh]h int parentlen}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjuubj)}(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.}(hj3uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/uhMhj0uubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhj/uhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjA%hhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM"ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hjeuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbuhhhhhM.ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsys_acct (C function) c.sys_accthNtauh1hhjbuhhhNhNubh)}(hhh](j)}(h(long sys_acct (const char __user * name)h]j)}(h&long sys_acct(const char __user *name)h](j )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuhhhjuhMubjg)}(hsys_accth]jm)}(hsys_accth]hsys_acct}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjuhhhjuhMubj)}(h(const char __user *name)h]j)}(hconst char __user *nameh](j)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj )}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh__user}(hjuhhhNhNubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hnameh]hname}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhjuhhhjuhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjuhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjuhhubj)}(hhh]h)}(h!enable/disable process accountingh]h!enable/disable process accounting}(hjIvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjFvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjavjjavjjjuh1hhhhjbuhNhNubj)}(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)}(hjkvh]h Parameters}(hjmvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjivubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM!hjevubj)}(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)}(hjvh]hconst char __user * name}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjvubj)}(hhh]h)}(h?file name for accounting records or NULL to shutdown accountingh]h?file name for accounting records or NULL to shutdown accounting}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjevubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM hjevubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjevubh)}(h **Return**h]j)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM$hjevubh)}(h30 for success or negative errno values for failure.h]h30 for success or negative errno values for failure.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM%hjevubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjbuhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hacct_collect (C function)c.acct_collecthNtauh1hhjbuhhhNhNubh)}(hhh](j)}(h1void acct_collect (long exitcode, int group_dead)h]j)}(h0void acct_collect(long exitcode, int group_dead)h](j )}(hvoidh]hvoid}(hj1whhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj-whhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM+ubj)}(h h]h }(hj@whhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-whhhj?whM+ubjg)}(h acct_collecth]jm)}(h acct_collecth]h acct_collect}(hjRwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-whhhj?whM+ubj)}(h(long exitcode, int group_dead)h](j)}(h long exitcodeh](j )}(hlongh]hlong}(hjnwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjwubj)}(h h]h }(hj|whhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjjwubjm)}(hexitcodeh]hexitcode}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfwubj)}(hint group_deadh](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubjm)}(h group_deadh]h group_dead}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfwubeh}(h]h ]h"]h$]h&]jjuh1jhj-whhhj?whM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)whhhj?whM+ubah}(h]j$wah ](jjeh"]h$]h&]jj)jhuh1hhj?whM+hj&whhubj)}(hhh]h)}(h0collect accounting information into pacct_structh]h0collect accounting information into pacct_struct}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM+hjwhhubah}(h]h ]h"]h$]h&]uh1jhj&whhhj?whM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1hhhhjbuhNhNubj)}(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 xh]h Parameters}(hj xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj xubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM/hjxubj)}(hhh](j)}(h!``long exitcode`` task exit code h](j)}(h``long exitcode``h]j)}(hj*xh]h long exitcode}(hj,xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(xubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM,hj$xubj)}(hhh]h)}(htask exit codeh]htask exit code}(hjCxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?xhM,hj@xubah}(h]h ]h"]h$]h&]uh1jhj$xubeh}(h]h ]h"]h$]h&]uh1jhj?xhM,hj!xubj)}(hH``int group_dead`` not 0, if this thread is the last one in the process.h](j)}(h``int group_dead``h]j)}(hjcxh]hint group_dead}(hjexhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaxubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM.hj]xubj)}(hhh]h)}(h5not 0, if this thread is the last one in the process.h]h5not 0, if this thread is the last one in the process.}(hj|xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM-hjyxubah}(h]h ]h"]h$]h&]uh1jhj]xubeh}(h]h ]h"]h$]h&]uh1jhjxxhM.hj!xubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjbuhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hacct_process (C function)c.acct_processhNtauh1hhjbuhhhNhNubh)}(hhh](j)}(hvoid acct_process (void)h]j)}(hvoid acct_process(void)h](j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMdubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjxhMdubjg)}(h acct_processh]jm)}(h acct_processh]h acct_process}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjxhMdubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubah}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMdubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMdhjxhhubj)}(hhh]h)}(h.handles process accounting for an exiting taskh]h.handles process accounting for an exiting task}(hj$yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMdhj!yhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjThe current folio we're iterating. NULL after the last folio.h]h@The current folio we’re iterating. NULL after the last folio.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM hj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hM hj|ubj)}(h5``offset`` The byte offset within the current folio. h](j)}(h ``offset``h]j)}(hj|h]hoffset}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM hj|ubj)}(hhh]h)}(h)The byte offset within the current folio.h]h)The byte offset within the current folio.}(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)}(hQ``length`` The number of bytes in this iteration (will not cross folio boundary).h](j)}(h ``length``h]j)}(hj!}h]hlength}(hj#}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj}ubj)}(hhh]h)}(hFThe number of bytes in this iteration (will not cross folio boundary).h]hFThe number of bytes in this iteration (will not cross folio boundary).}(hj:}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6}hMhj7}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj6}hMhj|ubeh}(h]h ]h"]h$]h&]uh1jhj^|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]jg)}(hbio_for_each_folio_allh]jm)}(hjt}h]hbio_for_each_folio_all}(hj~}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz}ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjv}hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM;ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjr}hhhj}hM;ubah}(h]jm}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hM;hjo}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjo}hhhj}hM;ubeh}(h]h ](jmacroeh"]h$]h&]jjjj}jj}jjjuh1hhhhjyhNhNubh)}(h$``bio_for_each_folio_all (fi, bio)``h]j)}(hj}h]h bio_for_each_folio_all (fi, bio)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM=hjyhhubj)}(h"Iterate over each folio in a bio. h]h)}(h!Iterate over each folio in a bio.h]h!Iterate over each folio in a bio.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM;hj}ubah}(h]h ]h"]h$]h&]uh1jhj}hM;hjyhhubj)}(hr**Parameters** ``fi`` struct folio_iter which is updated for each folio. ``bio`` struct bio to iterate over.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM?hj}ubj)}(hhh](j)}(h:``fi`` struct folio_iter which is updated for each folio. h](j)}(h``fi``h]j)}(hj~h]hfi}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM<hj}ubj)}(hhh]h)}(h2struct folio_iter which is updated for each folio.h]h2struct folio_iter which is updated for each folio.}(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#``bio`` struct bio to iterate over.h](j)}(h``bio``h]j)}(hj=~h]hbio}(hj?~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM>hj7~ubj)}(hhh]h)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hjV~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhM=hjS~ubah}(h]h ]h"]h$]h&]uh1jhj7~ubeh}(h]h ]h"]h$]h&]uh1jhjR~hM>hj}ubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_next_split (C function)c.bio_next_splithNtauh1hhjyhhhNhNubh)}(hhh](j)}(hYstruct bio * bio_next_split (struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h]j)}(hWstruct bio *bio_next_split(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMKubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhj~hMKubh)}(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 bio_next_splitsbc.bio_next_splitasbuh1hhj~hhhj~hMKubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhj~hMKubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhj~hMKubjg)}(hbio_next_splith]jm)}(hj~h]hbio_next_split}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhj~hMKubj)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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 reftargetj1modnameN classnameNjI jL )}jO ]j~c.bio_next_splitasbuh1hhj 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&]noemphjjuh1jhj ubj)}(h int sectorsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj}ubjm)}(hsectorsh]hsectors}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h gfp_t gfph](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j~c.bio_next_splitasbuh1hhjubj)}(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&]noemphjjuh1jhj ubj)}(hstruct bio_set *bsh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbio_seth]hbio_set}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j~c.bio_next_splitasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbsh]hbs}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhj~hMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhj~hMKubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj~hMKhj~hhubj)}(hhh]h)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hjhhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# from a bio, splitting if necessary}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMKhj|hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj~hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hXU**Parameters** ``struct bio *bio`` bio to split ``int sectors`` number of sectors to split from the front of **bio** ``gfp_t gfp`` gfp mask ``struct bio_set *bs`` bio set to allocate from **Return** a bio representing the next **sectors** of **bio** - if the bio is smaller than **sectors**, returns the original bio unchanged.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMOhjubj)}(hhh](j)}(h!``struct bio *bio`` bio to split h](j)}(h``struct bio *bio``h]j)}(hjҀh]hstruct bio *bio}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЀubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMLhj̀ubj)}(hhh]h)}(h bio to splith]h bio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhj̀ubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjɀubj)}(hE``int sectors`` number of sectors to split from the front of **bio** h](j)}(h``int sectors``h]j)}(hj h]h int sectors}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMMhjubj)}(hhh]h)}(h4number of sectors to split from the front of **bio**h](h-number of sectors to split from the front of }(hj$hhhNhNubj)}(h**bio**h]hbio}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1hhj hMMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMMhjɀubj)}(h``gfp_t gfp`` gfp mask h](j)}(h ``gfp_t gfp``h]j)}(hjRh]h gfp_t gfp}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMNhjLubj)}(hhh]h)}(hgfp maskh]hgfp mask}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMNhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMNhjɀubj)}(h0``struct bio_set *bs`` bio set to allocate from h](j)}(h``struct bio_set *bs``h]j)}(hjh]hstruct bio_set *bs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMOhjubj)}(hhh]h)}(hbio set to allocate fromh]hbio set to allocate from}(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 **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:310: ./include/linux/bio.hhMQhjubh)}(ha bio representing the next **sectors** of **bio** - if the bio is smaller than **sectors**, returns the original bio unchanged.h](ha bio representing the next }(hj܁hhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܁ubh of }(hj܁hhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܁ubh - if the bio is smaller than }(hj܁hhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܁ubh%, returns the original bio unchanged.}(hj܁hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_add_max_vecs (C function)c.bio_add_max_vecshNtauh1hhjyhhhNhNubh)}(hhh](j)}(h=unsigned int bio_add_max_vecs (void *kaddr, unsigned int len)h]j)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``void *kaddr`` kernel virtual address to add ``unsigned int len`` length in bytes to add **Description** Calculate how many bio_vecs need to be allocated to add the kernel virtual address range in [**kaddr**:**len**] in the worse case.h](h)}(h**Parameters**h]j)}(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:310: ./include/linux/bio.hhMhjZubj)}(hhh](j)}(h.``void *kaddr`` kernel virtual address to add h](j)}(h``void *kaddr``h]j)}(hjh]h void *kaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjyubj)}(hhh]h)}(hkernel virtual address to addh]hkernel virtual address to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(h,``unsigned int len`` length in bytes to add h](j)}(h``unsigned int len``h]j)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjubj)}(hhh]h)}(hlength in bytes to addh]hlength in bytes to add}(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:310: ./include/linux/bio.hhMhjZubh)}(hCalculate how many bio_vecs need to be allocated to add the kernel virtual address range in [**kaddr**:**len**] in the worse case.h](h]Calculate how many bio_vecs need to be allocated to add the kernel virtual address range in [}(hj hhhNhNubj)}(h **kaddr**h]hkaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubj)}(h**len**h]hlen}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh] in the worse case.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_is_zone_append (C function)c.bio_is_zone_appendhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h)bool bio_is_zone_append (struct bio *bio)h]j)}(h(bool bio_is_zone_append(struct bio *bio)h](j )}(hj8h]hbool}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjihMubjg)}(hbio_is_zone_appendh]jm)}(hbio_is_zone_appendh]hbio_is_zone_append}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjihMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j~sbc.bio_is_zone_appendasbuh1hhjubj)}(h h]h }(hjքhhhNhNubah}(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&]jjuh1jhjXhhhjihMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjihMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjQhhubj)}(hhh]h)}(his this a zone append bio?h]his this a zone append bio?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1hhhhjyhNhNubj)}(hXD**Parameters** ``struct bio *bio`` bio to check **Description** Check if **bio** is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj7ubj)}(hhh]j)}(h!``struct bio *bio`` bio to check h](j)}(h``struct bio *bio``h]j)}(hj\h]hstruct bio *bio}(hj^hhhNhNubah}(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.hhMhjVubj)}(hhh]h)}(h bio to checkh]h bio to check}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj7ubh)}(hCheck if **bio** is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.h](h Check if }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bio.hhMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_queue_flag_set (C function)c.blk_queue_flag_sethNtauh1hhjyhhhNhNubh)}(hhh](j)}(hDvoid blk_queue_flag_set (unsigned int flag, struct request_queue *q)h]j)}(hCvoid blk_queue_flag_set(unsigned int flag, struct request_queue *q)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKLubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKLubjg)}(hblk_queue_flag_seth]jm)}(hblk_queue_flag_seth]hblk_queue_flag_set}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKLubj)}(h,(unsigned int flag, struct request_queue *q)h](j)}(hunsigned int flagh](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 )}(hinth]hint}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubjm)}(hflagh]hflag}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubh)}(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_queue_flag_setasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hjȆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hjch]hq}(hjՆhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKLhjhhubj)}(hhh]h)}(hatomically set a queue flagh]hatomically set a queue flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKLhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hc**Parameters** ``unsigned int flag`` flag to be set ``struct request_queue *q`` request queueh](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKPhjubj)}(hhh](j)}(h%``unsigned int flag`` flag to be set h](j)}(h``unsigned int flag``h]j)}(hj?h]hunsigned int flag}(hjAhhhNhNubah}(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.chKMhj9ubj)}(hhh]h)}(hflag to be seth]hflag to be set}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKMhj6ubj)}(h)``struct request_queue *q`` request queueh](j)}(h``struct request_queue *q``h]j)}(hjxh]hstruct request_queue *q}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKOhjrubj)}(hhh]h)}(h request queueh]h request queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKNhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhKOhj6ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blk_queue_flag_clear (C function)c.blk_queue_flag_clearhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hFvoid blk_queue_flag_clear (unsigned int flag, struct request_queue *q)h]j)}(hEvoid blk_queue_flag_clear(unsigned int flag, struct request_queue *q)h](j )}(hvoidh]hvoid}(hj҇hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj·hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj·hhhjhKWubjg)}(hblk_queue_flag_clearh]jm)}(hblk_queue_flag_clearh]hblk_queue_flag_clear}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj·hhhjhKWubj)}(h,(unsigned int flag, struct request_queue *q)h](j)}(hunsigned int flagh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hinth]hint}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hflagh]hflag}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hj~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_queue_flag_clearasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj·hhhjhKWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjʇhhhjhKWubah}(h]jŇah ](jjeh"]h$]h&]jj)jhuh1hhjhKWhjLJhhubj)}(hhh]h)}(hatomically clear a queue flagh]hatomically clear a queue flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKWhj߈hhubah}(h]h ]h"]h$]h&]uh1jhjLJhhhjhKWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hg**Parameters** ``unsigned int flag`` flag to be cleared ``struct request_queue *q`` request queueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chK[hjubj)}(hhh](j)}(h)``unsigned int flag`` flag to be cleared h](j)}(h``unsigned int flag``h]j)}(hj#h]hunsigned int flag}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKXhjubj)}(hhh]h)}(hflag to be clearedh]hflag to be cleared}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKXhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hKXhjubj)}(h)``struct request_queue *q`` request queueh](j)}(h``struct request_queue *q``h]j)}(hj\h]hstruct request_queue *q}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKZhjVubj)}(hhh]h)}(h request queueh]h request queue}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKYhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKZhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_op_str (C function) c.blk_op_strhNtauh1hhjyhhhNhNubh)}(hhh](j)}(h(const char * blk_op_str (enum req_op op)h]j)}(h&const char *blk_op_str(enum req_op op)h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKuubj)}(h h]h }(hjĉhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjÉhKuubj )}(hcharh]hchar}(hj҉hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjÉhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjÉhKuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjÉhKuubjg)}(h blk_op_strh]jm)}(h blk_op_strh]h blk_op_str}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjÉhKuubj)}(h(enum req_op op)h]j)}(henum req_op oph](j)}(hj:h]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hreq_oph]hreq_op}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj;modnameN classnameNjI jL )}jO ]jR )}jE jsb c.blk_op_strasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hoph]hop}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjÉhKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjÉhKuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjÉhKuhjhhubj)}(hhh]h)}(h$Return string XXX in the REQ_OP_XXX.h]h$Return string XXX in the REQ_OP_XXX.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKuhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjÉhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``enum req_op op`` REQ_OP_XXX. **Description** Centralize block layer function to convert REQ_OP_XXX into string format. Useful in the debugging and tracing bio or request. For invalid REQ_OP_XXX it returns string "UNKNOWN".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.chKyhjubj)}(hhh]j)}(h``enum req_op op`` REQ_OP_XXX. h](j)}(h``enum req_op op``h]j)}(hjҊh]henum req_op 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:311: ./block/blk-core.chKvhj̊ubj)}(hhh]h)}(h REQ_OP_XXX.h]h REQ_OP_XXX.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jhj̊ubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjɊ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.chKxhjubh)}(hCentralize block layer function to convert REQ_OP_XXX into string format. Useful in the debugging and tracing bio or request. For invalid REQ_OP_XXX it returns string "UNKNOWN".h]hCentralize block layer function to convert REQ_OP_XXX into string format. Useful in the debugging and tracing bio or request. For invalid REQ_OP_XXX it returns string “UNKNOWN”.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_sync_queue (C function)c.blk_sync_queuehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h-void blk_sync_queue (struct request_queue *q)h]j)}(h,void blk_sync_queue(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNhhhj`hKubjg)}(hblk_sync_queueh]jm)}(hblk_sync_queueh]hblk_sync_queue}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjNhhhj`hKubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jusbc.blk_sync_queueasbuh1hhjubj)}(h h]h }(hj͋hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjۋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjNhhhj`hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj`hKubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhj`hKhjGhhubj)}(hhh]h)}(h'cancel any pending callbacks on a queueh]h'cancel any pending callbacks on a queue}(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&]uh1jhjGhhhj`hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct request_queue *q`` the queue **Description** The block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function. This function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h](h)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhj-ubj)}(hhh]j)}(h&``struct request_queue *q`` the queue h](j)}(h``struct request_queue *q``h]j)}(hjRh]hstruct request_queue *q}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjLubj)}(hhh]h)}(h the queueh]h the queue}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjIubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhjyhhhNhNubh)}(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)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_set_pm_onlyasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jތah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hincrement pm_only counterh]hincrement pm_only counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_put_queue (C function)c.blk_put_queuehNtauh1hhjyhhhNhNubh)}(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}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjShMubjg)}(h blk_put_queueh]jm)}(h blk_put_queueh]h blk_put_queue}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjShMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jhsbc.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&]noemphjjuh1jhjzubah}(h]h ]h"]h$]h&]jjuh1jhjAhhhjShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhjShMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShMhj:hhubj)}(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&]uh1jhj:hhhjShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMhj ubj)}(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)}(hjEh]hstruct request_queue *q}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj ubh)}(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.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_get_queue (C function)c.blk_get_queuehNtauh1hhjyhhhNhNubh)}(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&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjҏhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_get_queueasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjZhhhNhNubah}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjҏhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct request_queue *q`` the request_queue structure to increment the refcount for **Description** Increment the refcount of the request_queue kobject. **Context** Any context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubj)}(hhh]j)}(hV``struct request_queue *q`` the request_queue structure to increment the refcount for h](j)}(h``struct request_queue *q``h]j)}(hjĐh]hstruct request_queue *q}(hjƐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsubmit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhjyhhhNhNubh)}(hhh](j)}(h(void submit_bio_noacct (struct bio *bio)h]j)}(h'void submit_bio_noacct(struct bio *bio)h](j )}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjghhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjghhhjyhMubjg)}(hsubmit_bio_noaccth]jm)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjghhhjyhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hjƑhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjÑubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjȑmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.submit_bio_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&]jjuh1jhjghhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjyhMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhj`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`hhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhjyhNhNubj)}(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)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM hjGubj)}(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)}(hjlh]hstruct bio *bio}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjfubj)}(hhh]h)}(h` which describes the I/O **Description** submit_bio() is used to submit I/O requests to block devices. It is passed a fully set up :c:type:`struct bio ` that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field. The success/failure status of the request, along with notification of completion, is delivered asynchronously through the ->bi_end_io() callback in **bio**. The bio must NOT be touched by the caller until ->bi_end_io() has been called.h](h)}(h**Parameters**h]j)}(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)}(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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjbiouh1hhjhMhjubh 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)}(hjKh]h Description}(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.chMhjȓubh)}(hsubmit_bio() is used to submit I/O requests to block devices. It is passed a fully set up :c:type:`struct bio ` that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field.h](h[submit_bio() is used to submit I/O requests to block devices. It is passed a fully set up }(hjahhhNhNubh)}(h:c:type:`struct bio `h]j)}(hjkh]h struct bio}(hjmhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjbiouh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjaubhr that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field.}(hjahhhNhNubeh}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_poll (C function) c.bio_pollhNtauh1hhjyhhhNhNubh)}(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)}(hjh]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 reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE jsb c.bio_pollasbuh1hhj ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hbioh]hbio}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct io_comp_batch *iobh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h io_comp_batchh]h io_comp_batch}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jK c.bio_pollasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj͕hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hiobh]hiob}(hjڕhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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}(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)}(hpoll for BIO completionsh]hpoll for BIO completions}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjɔhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhjyhNhNubj)}(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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjqubj)}(hhh](j)}(h$``struct 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}(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)}(h*BLK_POLL_* flags that control the behaviorh]h*BLK_POLL_* flags that control the behavior}(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&]uh1jhjqubh)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjqubh)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjqubh)}(h**Note**h]j)}(hjjh]hNote}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjqubh)}(h|the caller must either be the context that submitted **bio**, or be in a RCU critical section to prevent freeing of **bio**.h](h5the caller must either be the context that submitted }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8, or be in a RCU critical section to prevent freeing of }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhjyhhhNhNubh)}(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ϗhhhjhMubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjϗhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjϗhhhjhMubjg)}(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ϗhhhjhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(hbioh]hbio}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjLmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bio_start_io_acctasbuh1hhj(ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(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ϗhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj˗hhhjhMubah}(h]jƗah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjȗ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ȗhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjǘjjǘjjjuh1hhhhjyhNhNubj)}(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}(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&]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().}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhj˘ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_lld_busy (C function)c.blk_lld_busyhNtauh1hhjyhhhNhNubh)}(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}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM<ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlhhhj~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&]jjuh1jfhjlhhhj~hM<ubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(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&]jjuh1jhjlhhhj~hM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj~hM<ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj~hM<hjehhubj)}(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&]uh1jhjehhhj~hM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhjyhNhNubj)}(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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM@hjKubj)}(hhh]j)}(hB``struct request_queue *q`` the queue of the device being checked 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.chM=hjjubj)}(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&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjgubah}(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&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chM?hjKubj)}(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?hjKubh)}(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.chMIhjKubh)}(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.chMJhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_start_plug (C function)c.blk_start_plughNtauh1hhjyhhhNhNubh)}(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}(hj0hhhNhNubah}(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}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(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 jSsbc.blk_start_plugasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hplugh]hplug}(hjƛhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj%hhubj)}(hhh]h)}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hj1h]hstruct blk_plug *plug}(hj3hhhNhNubah}(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 }(hjJhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjTh]hstruct blk_plug}(hjVhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjblk_pluguh1hhjFhMhjJubh that needs to be initialized}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(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}(hjÜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ. The queued I/Os may also be submitted early if the task schedules (see below).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./block/blk-core.chMhjubh)}(hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h]hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don’t deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_finish_plug (C function)c.blk_finish_plughNtauh1hhjyhhhNhNubh)}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhMubjg)}(hblk_finish_plugh]jm)}(hblk_finish_plugh]hblk_finish_plug}(hj2hhhNhNubah}(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)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(hblk_plugh]hblk_plug}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjnmodnameN classnameNjI jL )}jO ]jR )}jE j4sbc.blk_finish_plugasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hj5h]hstruct blk_plug}(hj7hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjblk_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'hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_queue_enter (C function)c.blk_queue_enterhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hGint blk_queue_enter (struct request_queue *q, blk_mq_req_flags_t flags)h]j)}(hFint blk_queue_enter(struct request_queue *q, blk_mq_req_flags_t flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM,ubj)}(h h]h }(hjĞhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjÞhM,ubjg)}(hblk_queue_enterh]jm)}(hblk_queue_enterh]hblk_queue_enter}(hj֞hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjҞubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjÞhM,ubj)}(h3(struct request_queue *q, blk_mq_req_flags_t flags)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(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 }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hblk_mq_req_flags_t flagsh](h)}(hhh]jm)}(hblk_mq_req_flags_th]hblk_mq_req_flags_t}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN 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&]jjuh1jhjhhhjÞhM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjÞhM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjÞhM,hjhhubj)}(hhh]h)}(h"try to increase q->q_usage_counterh]h"try to increase q->q_usage_counter}(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&]uh1jhjhhhjÞhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjԟjjԟjjjuh1hhhhjyhNhNubj)}(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}(hjhhhNhNubah}(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)}(hj6h]hblk_mq_req_flags_t flags}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM/hj0ubj)}(hhh]h)}(h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh]h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:314: ./block/blk-core.chM.hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM/hjubeh}(h]h ]h"]h$]h&]uh1jhj؟ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hint blk_rq_map_user_iov (struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h]j)}(hint blk_rq_map_user_iov(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hblk_rq_map_user_iovh]jm)}(hblk_rq_map_user_iovh]hblk_rq_map_user_iov}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hx(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(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)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubh)}(hhh]jm)}(hrequesth]hrequest}(hj\hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj^modnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŠubj)}(hstruct rq_map_data *map_datah](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hiov_iterh]hiov_iter}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jc.blk_rq_map_user_iovasbuh1hhjubj)}(h h]h }(hjuhhhNhNubah}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hjCh]hstruct request_queue *q}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(h.``struct request *rq`` request to map data to h](j)}(h``struct request *rq``h]j)}(hj|h]hstruct request *rq}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjvubj)}(hhh]h)}(hrequest to map data toh]hrequest to map data to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(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ʣhMhj:ubj)}(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&]uh1jhjhMhj:ubj)}(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}(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)}(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: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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjxubh)}(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.chMhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhjyhhhNhNubh)}(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.chM_ubj)}(h h]h }(hjϤhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjΤhM_ubjg)}(hblk_rq_unmap_userh]jm)}(hblk_rq_unmap_userh]hblk_rq_unmap_user}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjݤubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjΤhM_ubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(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 }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioh]hbio}(hjVhhhNhNubah}(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)}(hunmap a request with user datah]hunmap a request with user data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chM_hj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjΤhM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.chMchjubj)}(hhh]j)}(h&``struct bio *bio`` start of bio list h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjåhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chM`hjubj)}(hhh]h)}(hstart of bio listh]hstart of bio list}(hjڥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj֥hM`hjץubah}(h]h ]h"]h$]h&]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&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMbhjubj)}(hUnmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.h]h)}(hUnmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.h]hUnmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMbhjubah}(h]h ]h"]h$]h&]uh1jhj$hMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhjyhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGhhhjYhMubjg)}(hblk_rq_map_kernh]jm)}(hblk_rq_map_kernh]hblk_rq_map_kern}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjYhMubj)}(hB(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j)}(hstruct request *rqh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jnsbc.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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj )}(hinth]hint}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubjm)}(hlenh]hlen}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]jm)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j¦c.blk_rq_map_kernasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(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)}(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@hhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hXW**Parameters** ``struct request *rq`` request to fill ``void *kbuf`` the kernel buffer ``unsigned int len`` length of user data ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhjubj)}(hhh](j)}(h'``struct request *rq`` request to fill h](j)}(h``struct request *rq``h]j)}(hj'h]hstruct request *rq}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:317: ./block/blk-map.chMhj!ubj)}(hhh]h)}(hrequest to fillh]hrequest to fill}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(h!``void *kbuf`` the kernel buffer h](j)}(h``void *kbuf``h]j)}(hj`h]h void *kbuf}(hjbhhhNhNubah}(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.chMhjZubj)}(hhh]h)}(hthe kernel bufferh]hthe kernel buffer}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubj)}(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}(hjhhhNhNubah}(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&]uh1jhj5hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_register_queue (C function)c.blk_register_queuehNtauh1hhjyhhhNhNubh)}(hhh](j)}(h-int blk_register_queue (struct gendisk *disk)h]j)}(h,int blk_register_queue(struct gendisk *disk)h](j )}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjXhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXhhhjjhMubjg)}(hblk_register_queueh]jm)}(hblk_register_queueh]hblk_register_queue}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjXhhhjjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]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_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&]jjuh1jhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjQhhubj)}(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&]uh1jhjQhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhjyhNhNubj)}(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.chMhj8ubj)}(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&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjWubj)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhjyhhhNhNubh)}(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)}(hjh]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_unregister_queueasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdiskh]hdisk}(hjMhhhNhNubah}(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()}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjthhubah}(h]h ]h"]h$]h&]uh1jhjhhhjŪhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:320: ./block/blk-sysfs.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhjyhhhNhNubh)}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chKubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhjFhKubjg)}(hblk_set_stacking_limitsh]jm)}(hblk_set_stacking_limitsh]hblk_set_stacking_limits}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjFhKubj)}(h(struct queue_limits *lim)h]j)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE j[sbc.blk_set_stacking_limitsasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjm)}(hlimh]hlim}(hjάhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhjFhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjFhKubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhKhj-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-hhhjFhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hj9h]hstruct queue_limits *lim}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chK hj3ubj)}(hhh]h)}(h#the queue_limits structure to reseth]h#the queue_limits structure to reset}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhK hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhK hj0ubah}(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&]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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhjyhhhNhNubh)}(hhh](j)}(hRint queue_limits_commit_update (struct request_queue *q, struct queue_limits *lim)h]j)}(hQint queue_limits_commit_update(struct request_queue *q, struct queue_limits *lim)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM$ubj)}(h h]h }(hjȭhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjǭhM$ubjg)}(hqueue_limits_commit_updateh]jm)}(hqueue_limits_commit_updateh]hqueue_limits_commit_update}(hjڭhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj֭ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjǭhM$ubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(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 }(hj4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubh)}(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 ]j0c.queue_limits_commit_updateasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjm)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were obtained from queue_limits_start_update() and updated by the caller to **q**. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM(hjubj)}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hj)h]hstruct request_queue *q}(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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM%hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM%hj ubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hjbh]hstruct queue_limits *lim}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM&hj\ubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM&hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM&hj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM(hjubh)}(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.chM'hjubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM+hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhjyhhhNhNubh)}(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.chMKubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj#hMKubjg)}(h!queue_limits_commit_update_frozenh]jm)}(h!queue_limits_commit_update_frozenh]h!queue_limits_commit_update_frozen}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj#hMKubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjphhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjrmodnameN classnameNjI jL )}jO ]jR )}jE j8sb#c.queue_limits_commit_update_frozenasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hjch]hq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hstruct queue_limits *limh](j)}(hjh]hstruct}(hjðhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjаhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(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&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hMKhj hhubj)}(hhh]h)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMKhjAhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1hhhhjyhNhNubj)}(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)}(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:323: ./block/blk-settings.chMOhj`ubj)}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMLhjubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhj|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.chMMhjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjױhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӱhMMhjԱubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӱhMMhj|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.chMOhj`ubh)}(hApply the limits in **lim** that were obtained from queue_limits_start_update() and updated with the new values by the caller to **q**. Freezes the queue before the update and unfreezes it after.h](hApply the limits in }(hjhhhNhNubj)}(h**lim**h]hlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhf that were obtained from queue_limits_start_update() and updated with the new values by the caller to }(hjhhhNhNubj)}(h**q**h]hq}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh>. Freezes the queue before the update and unfreezes it after.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMNhj`ubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMRhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hqueue_limits_set (C function)c.queue_limits_sethNtauh1hhjyhhhNhNubh)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmhhhjhMdubjg)}(hqueue_limits_seth]jm)}(hqueue_limits_seth]hqueue_limits_set}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmhhhjhMdubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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)}(hjh]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 reftargetj?modnameN classnameNjI jL )}jO ]jc.queue_limits_setasbuh1hhjubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hlimh]hlim}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMdubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMdhjfhhubj)}(hhh]h)}(happly queue limits to queueh]happly queue limits to queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX]**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were freshly initialized to **q**. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hj³h]h Parameters}(hjijhhhNhNubah}(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.chMhhjubj)}(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&]uh1jhj߳ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMehj۳ubj)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jhj۳ubeh}(h]h ]h"]h$]h&]uh1jhjhMehjس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.chMfhjubj)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMfhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMfhjسubeh}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhhjubh)}(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 }(hjkhhhNhNubj)}(h**lim**h]hlim}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh" that were freshly initialized to }(hjkhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubhe. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMghjubh)}(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.chMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_stack_limits (C function)c.blk_stack_limitshNtauh1hhjyhhhNhNubh)}(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)}(hjh]hstruct}(hj hhhNhNubah}(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 }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]ht}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *bh](j)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(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 ]jDc.blk_stack_limitsasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hjŵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hjGh]hb}(hjҵhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(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 ]jDc.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۴hMhj´hhubj)}(hhh]h)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjChhhNhNubah}(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&]uh1jhj´hhhj۴hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhjyhNhNubj)}(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)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM hj_ubj)}(hhh](j)}(hC``struct queue_limits *t`` the stacking driver limits (top device) h](j)}(h``struct queue_limits *t``h]j)}(hjh]hstruct queue_limits *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.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&]uh1jhjhMhj{ubj)}(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ҶhMhj{ubj)}(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}(hjhhhNhNubah}(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)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM hj_ubj)}(hXThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment. Returns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h](h)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chM hjGubh)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjGubeh}(h]h ]h"]h$]h&]uh1jhjYhM hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hrvoid queue_limits_stack_bdev (struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h]j)}(hqvoid queue_limits_stack_bdev(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hqueue_limits_stack_bdevh]jm)}(hqueue_limits_stack_bdevh]hqueue_limits_stack_bdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(hU(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](j)}(hstruct queue_limits *th](j)}(hjh]hstruct}(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 }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjȷubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȷubjm)}(hjch]ht}(hj%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjȷubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjķubj)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj[hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj]modnameN classnameNjI jL )}jO ]jc.queue_limits_stack_bdevasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(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}(hj9hhhNhNubah}(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}(hjchhhNhNubah}(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&]jjjj{jj{jjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct queue_limits *t`` the stacking driver limits (top device) ``struct block_device *bdev`` the underlying block device (bottom) ``sector_t offset`` offset to beginning of data within component device ``const char *pfx`` prefix to use for warnings logged **Description** This function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hhh](j)}(hC``struct queue_limits *t`` the stacking driver limits (top device) h](j)}(h``struct queue_limits *t``h]j)}(hjh]hstruct queue_limits *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.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)}(hjOh]hconst char *pfx}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjIubj)}(hhh]h)}(h!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubj)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]h)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhjyhhhNhNubh)}(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)}(hjh]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}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE jsbc.queue_limits_stack_integrityasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]ht}(hjnhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct queue_limits *bh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jOc.queue_limits_stack_integrityasbuh1hhjubj)}(h h]h }(hj»hhhNhNubah}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hjGh]hstruct queue_limits *t}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjAubj)}(hhh]h)}(htarget queue limitsh]htarget queue limits}(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-``struct queue_limits *b`` base queue limits h](j)}(h``struct queue_limits *b``h]j)}(hjh]hstruct queue_limits *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjzubj)}(hhh]h)}(hbase queue limitsh]hbase queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubeh}(h]h ]h"]h$]h&]uh1jhj"ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]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}(hjhhhNhNubah}(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}(hjAhhhNhNubah}(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&]jiHjCjkHhjlHj4uh1jGhjubah}(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 }(hjhhhhNhNubj)}(h**b**h]hb}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh can be stacked into }(hjhhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh , return }(hjhhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh. Else return }(hjhhhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh( and clear the integrity information in }(hjhhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh.}(hjhhhhNhNubeh}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhjyhhhNhNubh)}(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&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h-(struct request_queue *q, unsigned int depth)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjNmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_set_queue_depthasbuh1hhj*ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hjzhhhNhNubah}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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&]uh1jhj!ubah}(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)}(hjBh]hstruct request_queue *q}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhj<ubj)}(hhh]h)}(h the request queue for the deviceh]h the request queue for the device}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(h"``unsigned int depth`` queue depthh](j)}(h``unsigned int depth``h]j)}(hj{h]hunsigned int depth}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:323: ./block/blk-settings.chMhjuubj)}(hhh]h)}(h 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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhjyhhhNhNubh)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj2modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blkdev_issue_flushasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct block_device *bdev`` blockdev to issue flush for **Description** Issue a flush for the block device in question.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjubj)}(hhh]j)}(h:``struct block_device *bdev`` blockdev to issue flush for h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:326: ./block/blk-flush.chMhjubj)}(hhh]h)}(hblockdev to issue flush forh]hblockdev to issue flush 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&]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: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&]uh1jhj8hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhjyhhhNhNubh)}(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 hj[hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKLubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[hhhjmhKLubjg)}(hblkdev_issue_discardh]jm)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj[hhhjmhKLubj)}(hO(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blkdev_issue_discardasbuh1hhjubj)}(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_discardasbuh1hhj ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hsectorh]hsector}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjYhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj[modnameN classnameNjI jL )}jO ]jc.blkdev_issue_discardasbuh1hhjRubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubjm)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(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_discardasbuh1hhjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhjmhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjmhKLubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhKLhjThhubj)}(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&]uh1jhjThhhjmhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hj8h]hstruct block_device *bdev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKMhj2ubj)}(hhh]h)}(hblockdev to issue discard forh]hblockdev to issue discard for}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKMhj/ubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjqh]hsector_t sector}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKNhjkubj)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKPhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKPhj/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&]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)}(hj6h]h4Issue a discard request for the sectors in question.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chKRhj4ubah}(h]h ]h"]h$]h&]uh1jhjEhKRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhjyhhhNhNubh)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhhjzhMubjg)}(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&]jjuh1jfhjhhhhjzhMubj)}(hr(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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_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 reftargetj modnameN classnameNjI jL )}jO ]jc.__blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hsectorh]hsector}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]jm)}(hsector_th]hsector_t}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjhmodnameN 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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio **bioph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.__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*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbioph]hbiop}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjlubjm)}(hflagsh]hflags}(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(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&]uh1jhjahhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX**Parameters** ``struct block_device *bdev`` blockdev to issue ``sector_t sector`` start sector ``sector_t nr_sects`` number of sectors to write ``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) ``struct bio **biop`` pointer to anchor bio ``unsigned flags`` controls detailed behavior **Description** Zero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. If a device is using logical block provisioning, the underlying space will not be released if ``flags`` contains BLKDEV_ZERO_NOUNMAP. If ``flags`` contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjubj)}(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)}(hj0h]hsector_t sector}(hj2hhhNhNubah}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjih]hsector_t nr_sects}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjcubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(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.chMhjubj)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(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)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjubj)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chMhjeubh)}(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 }(hjxhhhNhNubj)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh contains BLKDEV_ZERO_NOUNMAP.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM hjeubh)}(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.chMhjeubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhjyhhhNhNubh)}(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)}(hjh]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}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hbdevh]hbdev}(hjvhhhNhNubah}(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 ]jWc.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 ]jWc.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 ]jWc.blkdev_issue_zerooutasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hgfp_maskh]hgfp_mask}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjcubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcubjm)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubeh}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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+hj!ubj)}(hhh]h)}(h start sectorh]h start sector}(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)}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.chM,hjZubj)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM,hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM,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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:329: ./block/blk-lib.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&]uh1jhjGhM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhjyhhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhh\/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&]uh1jhjjhhhj|hMubjg)}(hblk_trace_ioctlh]jm)}(hblk_trace_ioctlh]hblk_trace_ioctl}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhj|hMubj)}(h;(struct block_device *bdev, unsigned cmd, char __user *arg)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hchar __user *argh](j )}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubh__user}(hjNhhhNhNubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjm)}(hargh]harg}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhj|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hMubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhjchhubj)}(hhh]h)}(h)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&]uh1jhjchhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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 hMhjubah}(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)}(hj1h]h unsigned cmd}(hj3hhhNhNubah}(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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubj)}(h.``char __user *arg`` the argument data, if anyh](j)}(h``char __user *arg``h]j)}(hjjh]hchar __user *arg}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjdubj)}(hhh]h)}(hthe argument data, if anyh]hthe argument data, if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhjyhhhNhNubh)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj!modnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_trace_shutdownasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjZhhhNhNubah}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhjyhhhNhNubh)}(hhh](j)}(hivoid blk_add_trace_rq (struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h]j)}(hhvoid blk_add_trace_rq(struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMubj)}(h h]h }(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&]uh1jlhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj,hMubj)}(hS(struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h](j)}(hstruct request *rqh](j)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(hrequesth]hrequest}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj{modnameN classnameNjI jL )}jO ]jR )}jE jAsbc.blk_add_trace_rqasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(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&]noemphjjuh1jhjSubj)}(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}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hnr_bytesh]hnr_bytes}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hu64 whath](h)}(hhh]jm)}(hu64h]hu64}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_rqasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubjm)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(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&]noemphjjuh1jhjSubeh}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX7**Parameters** ``struct request *rq`` the source request ``blk_status_t error`` return status to log ``unsigned int nr_bytes`` number of completed bytes ``u64 what`` the action ``u64 cgid`` the cgroup info **Description** Records an action against a request. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(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)}(hjHh]hstruct request *rq}(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 source requesth]hthe source request}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj{ubj)}(hhh]h)}(hreturn status to logh]hreturn status to log}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(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``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hjh]hu64 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&]uh1hhjhMhj ubah}(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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(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)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj#ubj)}(hDRecords an action against a request. Will log the bio offset + size.h]h)}(hjh]hDRecords an action against a request. Will log the bio offset + size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhj}ubah}(h]h ]h"]h$]h&]uh1jhjhMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhjyhhhNhNubh)}(hhh](j)}(hVvoid blk_add_trace_bio (struct request_queue *q, struct bio *bio, u64 what, int error)h]j)}(hUvoid blk_add_trace_bio(struct request_queue *q, struct bio *bio, u64 what, int error)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMAubjg)}(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&]jjuh1jfhjhhhjhMAubj)}(h?(struct request_queue *q, struct bio *bio, u64 what, int error)h](j)}(hstruct request_queue *qh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_bioasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjch]hq}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubh)}(hhh]jm)}(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)}(hu64 whath](h)}(hhh]jm)}(hu64h]hu64}(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}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMAubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMAhjhhubj)}(hhh]h)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMAhj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhjyhNhNubj)}(h**Parameters** ``struct request_queue *q`` queue the io is for ``struct bio *bio`` the source bio ``u64 what`` the action ``int error`` error, if any **Description** Records an action against a bio. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMEhj}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.chMBhjubj)}(hhh]h)}(hqueue the io is forh]hqueue the io is for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjubj)}(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.chMChjubj)}(hhh]h)}(hthe source bioh]hthe source bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(h``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hjh]hu64 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.chMDhjubj)}(hhh]h)}(h the actionh]h the action}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMDhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMDhjubj)}(h``int error`` error, if any h](j)}(h ``int error``h]j)}(hjMh]h int error}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMEhjGubj)}(hhh]h)}(h error, if anyh]h error, if any}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMEhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMEhjubeh}(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.chMGhj}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.chMGhjubah}(h]h ]h"]h$]h&]uh1jhjhMGhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhjyhhhNhNubh)}(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 hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hignoreh]hignore}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct bio *bioh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(hbioh]hbio}(hjshhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjumodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_bio_remapasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(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&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.blk_add_trace_bio_remapasbuh1hhj ubj)}(h h]h }(hj0hhhNhNubah}(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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjTh]h sector_t from}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:335: ./kernel/trace/blktrace.chMhjNubj)}(hhh]h)}(h source sectorh]h source sector}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubeh}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhjyhhhNhNubh)}(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}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct request *rqh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hrequesth]hrequest}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjsmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.blk_add_trace_rq_remapasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hrqh]hrq}(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_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&]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_rq_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 request-remap operationh]h)Add a trace for a request-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~jjjuh1hhhhjyhNhNubj)}(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}(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.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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdisk_release (C function)c.disk_releasehNtauh1hhjyhhhNhNubh)}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdeviceh]hdevice}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE jsbc.disk_releaseasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjrhhhNhNubah}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hX@Drivers which used device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.h]hX@Drivers which used device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:338: ./block/genhd.chMhjubh)}(h **Context**h]j)}(hjNh]hContext}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(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}(hjdhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h bdev_count_inflight (C function)c.bdev_count_inflighthNtauh1hhjyhhhNhNubh)}(hhh](j)}(hhKubjg)}(h__register_blkdevh]jm)}(h__register_blkdevh]h__register_blkdev}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hKubj)}(hA(unsigned int major, const char *name, void (*probe)(dev_t devt))h](j)}(hunsigned int majorh](j )}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubjm)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hvoid (*probe)(dev_t devt)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hj4h]h(}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hprobeh]hprobe}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hj4h]h)}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj4h]h(}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hdev_th]hdev_t}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~modnameN classnameNjI jL )}jO ]jR )}jE jSsbc.__register_blkdevasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubj)}(hj4h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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)}(hregister a new block deviceh]hregister a new block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hXR**Parameters** ``unsigned int major`` the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number. ``const char *name`` the name of the new block device as a zero terminated string ``void (*probe)(dev_t devt)`` pre-devtmpfs / pre-udev callback used to create disks when their pre-created device node is accessed. When a probe call uses add_disk() and it fails the driver must cleanup resources. This interface may soon be removed. **Description** The **name** must be unique within the system. The return value depends on the **major** input parameter: - if a major device number was requested in range [1..BLKDEV_MAJOR_MAX-1] then the function returns zero on success, or a negative error code - if any unused major number was requested with **major** = 0 parameter then the return value is the allocated major number in range [1..BLKDEV_MAJOR_MAX-1] or a negative error code otherwise See Documentation/admin-guide/devices.txt for the list of allocated major numbers. Use register_blkdev instead for any new code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjubj)}(hhh](j)}(h``unsigned int major`` the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number. h](j)}(h``unsigned int major``h]j)}(hj"h]hunsigned int major}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjubj)}(hhh]h)}(huthe requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number.h](h>the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If }(hj;hhhNhNubj)}(h **major**h]hmajor}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh. = 0, try to allocate any unused major number.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hKhjubj)}(hR``const char *name`` the name of the new block device as a zero terminated string h](j)}(h``const char *name``h]j)}(hjnh]hconst char *name}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chKhjhubj)}(hhh]h)}(hhhhNhNubah}(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.chMmhjjubh)}(hQThis function registers the partitioning information in **disk** with the kernel.h](h8This function registers the partitioning information in }(hjRhhhNhNubj)}(h**disk**h]hdisk}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh with the kernel.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMlhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hblk_mark_disk_dead (C function)c.blk_mark_disk_deadhNtauh1hhjyhhhNhNubh)}(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)}(hjh]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 }(hjhhhNhNubah}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1hhhhjyhNhNubj)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjoubj)}(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&]uh1jhjoubh)}(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.chMhjoubh)}(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.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdel_gendisk (C function) c.del_gendiskhNtauh1hhjyhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj"hMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjohhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjqmodnameN classnameNjI jL )}jO ]jR )}jE j7sb c.del_gendiskasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(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)}(hremove the gendiskh]hremove the gendisk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(hX^**Parameters** ``struct gendisk *disk`` the struct gendisk to remove **Description** Removes the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue. This is the counter to the respective device_add_disk() call. The final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if device_add_disk() was used. Drivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred. **Context** can sleeph](h)}(h**Parameters**h]j)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]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.}(hjfhhhNhNubah}(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.}(hjuhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hinvalidate_disk (C function)c.invalidate_diskhNtauh1hhjyhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM?ubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hjh]hstruct}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubh)}(hhh]jm)}(hgendiskh]hgendisk}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjFmodnameN classnameNjI jL )}jO ]jR )}jE j sbc.invalidate_diskasbuh1hhj"ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj"ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjm)}(hdiskh]hdisk}(hjhhhNhNubah}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMAhjubh)}(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:341: ./block/genhd.chMEhjubh)}(h can sleeph]h can sleep}(hjbhhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hput_disk (C function) c.put_diskhNtauh1hhjyhhhNhNubh)}(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)}(hjh]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}(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&]jjjjijjijjjuh1hhhhjyhNhNubj)}(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)}(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)}(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&]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)}(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.chMhjmubh)}(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.chMhjmubh)}(hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).h]hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjmubh)}(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.chMhjmubh)}(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.}(hj1hhhNhNubah}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_disk_ro (C function) c.set_disk_rohNtauh1hhjyhhhNhNubh)}(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 hj\hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj\hhhjnhMubjg)}(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&]jjuh1jfhj\hhhjnhMubj)}(h&(struct gendisk *disk, bool read_only)h](j)}(hstruct gendisk *diskh](j)}(hjh]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}(hjhhhNhNubah}(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&]jjuh1jhj\hhhjnhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjnhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjUhhubj)}(hhh]h)}(hset a gendisk read-onlyh]hset a gendisk read-only}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1hhhhjyhNhNubj)}(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)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:341: ./block/genhd.chMhjpubj)}(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&]uh1jhjpubh)}(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.chMhjpubh)}(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.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bdev_validate_blocksize (C function)c.bdev_validate_blocksizehNtauh1hhjyhhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjjhhhQ/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&]uh1jhjjhhhj|hKubjg)}(hbdev_validate_blocksizeh]jm)}(hbdev_validate_blocksizeh]hbdev_validate_blocksize}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjjhhhj|hKubj)}(h+(struct block_device *bdev, int block_size)h](j)}(hstruct block_device *bdevh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bdev_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}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhj|hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hKubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hKhjchhubj)}(hhh]h)}(h(check that this block size is acceptableh]h(check that this block size is acceptable}(hjchhhNhNubah}(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&]uh1jhjchhhj|hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhjyhNhNubj)}(hXZ**Parameters** ``struct block_device *bdev`` blockdevice to check ``int block_size`` block size to check **Description** For block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device. **Return** On success zero is returned, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubj)}(hhh](j)}(h3``struct block_device *bdev`` blockdevice to check h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.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&]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.chKhjubh)}(hFor block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device.h]hFor block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chKhjubh)}(h **Return**h]j)}(hj?h]hReturn}(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.chKhjubh)}(hubah}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hj h]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&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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&]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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlookup_bdev (C function) c.lookup_bdevhNtauh1hhjyhhhNhNubh)}(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_bdevasbuh1hhj ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdevh]hdev}(hjbhhhNhNubah}(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]j}ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(h&Look up a struct block_device by name.h]h&Look up a struct block_device by name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:344: ./block/bdev.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hjAh]h Description}(hjChhhNhNubah}(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 }(hjWhhhNhNubj)}(h **pathname**h]hpathname}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh7 in the current namespace if possible and return it in }(hjWhhhNhNubj)}(h**dev**h]hdev}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh.}(hjWhhhNhNubeh}(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&]uh1jhjyhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhjyhhhNhNubh)}(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)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(h block_deviceh]h block_device}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.bdev_mark_deadasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(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&]jjjjjjjjjuh1hhhhjyhNhNubj)}(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)}(hjh]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}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhj$ubj)}(h.``bool surprise`` indicate a surprise removal h](j)}(h``bool surprise``h]j)}(hjfh]h bool surprise}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(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}(hjhhhNhNubah}(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)}(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.b}(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&]uh1jhjyhhhNhNubeh}(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}(hj2hhhNhNubah}(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 }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hKubjg)}(hregister_chrdev_regionh]jm)}(hregister_chrdev_regionh]hregister_chrdev_region}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(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}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.register_chrdev_regionasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjkubjm)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(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&]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}(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}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj@hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj@hKubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hKhj'hhubj)}(hhh]h)}(h"register a range of device numbersh]h"register a range of device numbers}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjYhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhjhNhNubj)}(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}(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.chKhjxubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh]h)}(h!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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjxubh)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjxubeh}(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 hj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(h baseminorh]h baseminor}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubjm)}(hcounth]hcount}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(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}(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.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&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj7ubj)}(hhh]h)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhj4ubj)}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned baseminor``h]j)}(hjvh]hunsigned baseminor}(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-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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhKhj4ubj)}(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&]uh1jhjhKhj4ubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj4ubeh}(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.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 }(hj9 hhhNhNubj)}(h**dev**h]hdev}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9 ubh). Returns zero or a negative error code.}(hj9 hhhNhNubeh}(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}(hjz hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjv 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&]uh1jhjv hhhj hKubjg)}(h__register_chrdevh]jm)}(h__register_chrdevh]h__register_chrdev}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjv hhhj hKubj)}(hv(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h](j)}(hunsigned int majorh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]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)}(hmajorh]hmajor}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(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 }(hj2 hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(h baseminorh]h baseminor}(hj@ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjY hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjU ubj)}(h h]h }(hjg hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjU ubj )}(hinth]hint}(hju hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjU ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjU ubjm)}(hcounth]hcount}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjU ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hnameh]hname}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]hstruct}(hj" hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj/ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hj@ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj= ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjB modnameN classnameNjI jL )}jO ]jR )}jE j sbc.__register_chrdevasbuh1hhj 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)}(hfopsh]hfops}(hj{ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjv hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjr hhhj hKubah}(h]jm ah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjo hhubj)}(hhh]h)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjo hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(hXm**Parameters** ``unsigned int major`` major device number or 0 for dynamic allocation ``unsigned int baseminor`` first of the requested range of minor numbers ``unsigned int count`` the number of minor numbers required ``const char *name`` name of this range of devices ``const struct file_operations *fops`` file operations associated with this devices **Description** If **major** == 0 this functions will dynamically allocate a major and return its number. If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success. Returns a -ve errno on failure. The name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh](j)}(hG``unsigned int major`` major device number or 0 for dynamic allocation h](j)}(h``unsigned int major``h]j)}(hj h]hunsigned int major}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh]h)}(h/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hI``unsigned int baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(hj h]hunsigned int baseminor}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4 hKhj5 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj4 hKhj ubj)}(h<``unsigned int count`` the number of minor numbers required h](j)}(h``unsigned int count``h]j)}(hjX h]hunsigned int count}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhjR ubj)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm hKhjn ubah}(h]h ]h"]h$]h&]uh1jhjR ubeh}(h]h ]h"]h$]h&]uh1jhjm hKhj ubj)}(h3``const char *name`` name of this range of devices h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hT``const struct file_operations *fops`` file operations associated with this devices h](j)}(h&``const struct file_operations *fops``h]j)}(hj h]h"const struct file_operations *fops}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubj)}(hhh]h)}(h,file operations associated with this devicesh]h,file operations associated with this devices}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubh)}(hYIf **major** == 0 this functions will dynamically allocate a major and return its number.h](hIf }(hj hhhNhNubj)}(h **major**h]hmajor}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhM == 0 this functions will dynamically allocate a major and return its number.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chKhj ubh)}(h|If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success.h](hIf }(hj< hhhNhNubj)}(h **major**h]hmajor}(hjD hhhNhNubah}(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.chMhj ubh)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubh)}(hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h]hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it’s ok to use e.g. the name of the module here.}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhR/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&]uh1jhj hhhj hM/ubjg)}(hunregister_chrdev_regionh]jm)}(hunregister_chrdev_regionh]hunregister_chrdev_region}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhj hM/ubj)}(h(dev_t from, unsigned count)h](j)}(h dev_t fromh](h)}(hhh]jm)}(hdev_th]hdev_t}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE j sbc.unregister_chrdev_regionasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubjm)}(hfromh]hfrom}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hcounth]hcount}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj 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$unregister a range of device numbersh]h$unregister a range of device numbers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM/hjehhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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 }(hj3hhhNhNubj)}(h **count**h]hcount}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh device numbers, starting with }(hj3hhhNhNubj)}(h**from**h]hfrom}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hj3hhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(h baseminorh]h baseminor}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjaubjm)}(hcounth]hcount}(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 }(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&]jjuh1jhjhhhjhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhMEubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhj{hhubj)}(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&]uh1jhj{hhhjhMEubeh}(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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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)}(hjeh]hunsigned int major}(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.chMFhj_ubj)}(hhh]h)}(hmajor device numberh]hmajor device number}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMFhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMFhj\ubj)}(h?``unsigned int baseminor`` first of the range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(hjh]hunsigned int baseminor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMGhjubj)}(hhh]h)}(h#first of the range of minor numbersh]h#first of the range of minor numbers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhj\ubj)}(hJ``unsigned int count`` the number of minor numbers this cdev is occupying h](j)}(h``unsigned int count``h]j)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMHhjubj)}(hhh]h)}(h2the number of minor numbers this cdev is occupyingh]h2the number of minor numbers this cdev is occupying}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhj\ubj)}(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.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%hMIhj\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&]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 }(hjahhhNhNubj)}(h **major**h]hmajor}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh, }(hjahhhNhNubj)}(h **baseminor**h]h baseminor}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh and }(hjahhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh5. This function undoes what __register_chrdev() did.}(hjahhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhR/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&]uh1jhjhhhjhMubjg)}(hcdev_addh]jm)}(hcdev_addh]hcdev_add}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h+(struct cdev *p, dev_t dev, unsigned count)h](j)}(hstruct cdev *ph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hcdevh]hcdev}(hj!hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#modnameN classnameNjI jL )}jO ]jR )}jE jsb c.cdev_addasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjh]hp}(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}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]j= c.cdev_addasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubjm)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hadd a char device to the systemh]hadd a char device to the system}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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.chMhjubj)}(hhh](j)}(h5``struct cdev *p`` the cdev structure for the device h](j)}(h``struct cdev *p``h]j)}(hjCh]hstruct cdev *p}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(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}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(hK``dev_t dev`` the first device number for which this device is responsible h](j)}(h ``dev_t dev``h]j)}(hj|h]h dev_t dev}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjvubj)}(hhh]h)}(hhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]jc.cdev_device_addasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hdevh]hdev}(hjwhhhNhNubah}(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?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&]uh1jhjfhhhjhM 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}(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&]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 }(hjlhhhNhNubj)}(h**cdev**h]hcdev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh4 to the system, just as cdev_add does. It then adds }(hjlhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhX  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.}(hjlhhhNhNubeh}(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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM8hjPubj)}(hhh](j)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hjuh]hstruct cdev *cdev}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM5hjoubj)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjlubj)}(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&]uh1jhjhM6hjlubeh}(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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM8hjPubh)}(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.chM7hjPubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM:hjPubh)}(h**NOTE**h]j)}(hjh]hNOTE}(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.chM=hjPubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chM>hjPubeh}(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}(hjdhhhNhNubah}(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 }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`hhhjrhMOubjg)}(hcdev_delh]jm)}(hcdev_delh]hcdev_del}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`hhhjrhMOubj)}(h(struct cdev *p)h]j)}(hstruct cdev *ph](j)}(hjh]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`hhhjrhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhjrhMOubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhMOhjYhhubj)}(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.chMOhj hhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhjhNhNubj)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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)}(hjdh]hstruct cdev *p}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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&]uh1hhjyhMPhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMPhj[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&]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)}(hjh]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&]uh1jlhj9ubah}(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*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hM|ubjg)}(h cdev_alloch]jm)}(hjZh]h cdev_alloc}(hj|hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(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&]uh1jhj;ubah}(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.}(hjShhhNhNubah}(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)}(hjh]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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hj1 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj- ubj)}(h h]h }(hj> hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj- ubj)}(hjh]hstruct}(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj- ubj)}(h h]h }(hjY hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj- ubh)}(hhh]jm)}(hfile_operationsh]hfile_operations}(hjj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjg ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjl modnameN classnameNjI jL )}jO ]j c.cdev_initasbuh1hhj- ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj- ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj- ubjm)}(hfopsh]hfops}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj- ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj)}(hhh]h)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhjhNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the structure to initialize ``const struct file_operations *fops`` the file_operations for this device **Description** Initializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubj)}(hhh](j)}(h2``struct cdev *cdev`` the structure to initialize h](j)}(h``struct cdev *cdev``h]j)}(hj!h]hstruct cdev *cdev}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj !ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj!ubj)}(hhh]h)}(hthe structure to initializeh]hthe structure to initialize}(hj'!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#!hMhj$!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj#!hMhj!ubj)}(hK``const struct file_operations *fops`` the file_operations for this device h](j)}(h&``const struct file_operations *fops``h]j)}(hjG!h]h"const struct file_operations *fops}(hjI!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE!ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhjA!ubj)}(hhh]h)}(h#the file_operations for this deviceh]h#the file_operations for this device}(hj`!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\!hMhj]!ubah}(h]h ]h"]h$]h&]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&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubh)}(haInitializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h Initializes }(hj!hhhNhNubj)}(h**cdev**h]hcdev}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh, remembering }(hj!hhhNhNubj)}(h**fops**h]hfops}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh7, making it ready to add to the system with cdev_add().}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:350: ./fs/char_dev.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM\ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hhhhhMbubh)}(hXgThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these "clocks" don't relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These :c:type:`struct clk ` instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.h](hXThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these “clocks” don’t relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These }(hj!hhhNhNubh)}(h:c:type:`struct clk `h]j)}(hj!h]h struct clk}(hj!hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjclkuh1hhhhMdhj!ubh instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMdhj!hhubh)}(hX_Power management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn't waste power changing the state of transistors that aren't in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a *retention mode*. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.h](hXPower management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn’t waste power changing the state of transistors that aren’t in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a }(hj"hhhNhNubjx)}(h*retention mode*h]hretention mode}(hj$"hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj"ubh. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMnhj!hhubh)}(hXPower-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a "standby" state may allow wakeup from several active domains, a "mem" (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver's suspend method may need to be aware of system-specific clock constraints on the target sleep state.h]hX"Power-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a “standby” state may allow wakeup from several active domains, a “mem” (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver’s suspend method may need to be aware of system-specific clock constraints on the target sleep state.}(hj<"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhj!hhubh)}(hSome platforms support programmable clock generators. These can be used by external chips of various kinds, such as other CPUs, multimedia codecs, and devices with strict requirements for interface clocking.h]hSome platforms support programmable clock generators. These can be used by external chips of various kinds, such as other CPUs, multimedia codecs, and devices with strict requirements for interface clocking.}(hjJ"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj!hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_notifier (C struct)c.clk_notifierhNtauh1hhj!hhhNhNubh)}(hhh](j)}(h clk_notifierh]j)}(hstruct clk_notifierh](j)}(hjh]hstruct}(hjq"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm"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&]uh1jhjm"hhhj~"hKubjg)}(h clk_notifierh]jm)}(hjk"h]h clk_notifier}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjm"hhhj~"hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhji"hhhj~"hKubah}(h]jd"ah ](jjeh"]h$]h&]jj)jhuh1hhj~"hKhjf"hhubj)}(hhh]h)}(hassociate a clk with a notifierh]hassociate a clk with a notifier}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK,hj"hhubah}(h]h ]h"]h$]h&]uh1jhjf"hhhj~"hKubeh}(h]h ](jstructeh"]h$]h&]jjjj"jj"jjjuh1hhhhj!hNhNubj)}(hX[**Definition**:: struct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; }; **Members** ``clk`` struct clk * to associate the notifier with ``notifier_head`` a blocking_notifier_head for this clk ``node`` linked list pointersh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh:}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hj"ubj#C)}(hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };h]hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };}hj"sbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK2hj"ubh)}(h **Members**h]j)}(hj#h]hMembers}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8hj"ubj)}(hhh](j)}(h4``clk`` struct clk * to associate the notifier with h](j)}(h``clk``h]j)}(hj #h]hclk}(hj"#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK.hj#ubj)}(hhh]h)}(h+struct clk * to associate the notifier withh]h+struct clk * to associate the notifier with}(hj9#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5#hK.hj6#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj5#hK.hj#ubj)}(h8``notifier_head`` a blocking_notifier_head for this clk h](j)}(h``notifier_head``h]j)}(hjY#h]h notifier_head}(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.hhK/hjS#ubj)}(hhh]h)}(h%a blocking_notifier_head for this clkh]h%a blocking_notifier_head for this clk}(hjr#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn#hK/hjo#ubah}(h]h ]h"]h$]h&]uh1jhjS#ubeh}(h]h ]h"]h$]h&]uh1jhjn#hK/hj#ubj)}(h``node`` linked list pointersh](j)}(h``node``h]j)}(hj#h]hnode}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK/hj#ubj)}(hhh]h)}(hlinked list pointersh]hlinked list pointers}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK0hj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hK/hj#ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK3hj!hhubh)}(hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular **clk**. Future notifiers on that **clk** are added to the **notifier_head**.h](hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular }(hj#hhhNhNubj)}(h**clk**h]hclk}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh. Future notifiers on that }(hj#hhhNhNubj)}(h**clk**h]hclk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh are added to the }(hj#hhhNhNubj)}(h**notifier_head**h]h notifier_head}(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.hhK0hj!hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhj!hhhNhNubh)}(hhh](j)}(hclk_notifier_datah]j)}(hstruct clk_notifier_datah](j)}(hjh]hstruct}(hjI$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK8ubj)}(h h]h }(hjW$hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjE$hhhjV$hK8ubjg)}(hclk_notifier_datah]jm)}(hjC$h]hclk_notifier_data}(hji$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhje$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjE$hhhjV$hK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjA$hhhjV$hK8ubah}(h]j<$ah ](jjeh"]h$]h&]jj)jhuh1hhjV$hK8hj>$hhubj)}(hhh]h)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK=hj$hhubah}(h]h ]h"]h$]h&]uh1jhj>$hhhjV$hK8ubeh}(h]h ](jstructeh"]h$]h&]jjjj$jj$jjjuh1hhhhj!hNhNubj)}(hX)**Definition**:: struct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; }; **Members** ``clk`` struct clk * being changed ``old_rate`` previous rate of this clk ``new_rate`` new rate of this clkh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh:}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhj$ubj#C)}(hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };h]hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };}hj$sbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKChj$ubh)}(h **Members**h]j)}(hj$h]hMembers}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIhj$ubj)}(hhh](j)}(h#``clk`` struct clk * being changed h](j)}(h``clk``h]j)}(hj$h]hclk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK?hj$ubj)}(hhh]h)}(hstruct clk * being changedh]hstruct clk * being changed}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj %hK?hj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj %hK?hj$ubj)}(h'``old_rate`` previous rate of this clk h](j)}(h ``old_rate``h]j)}(hj1%h]hold_rate}(hj3%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK@hj+%ubj)}(hhh]h)}(hprevious rate of this clkh]hprevious rate of this clk}(hjJ%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF%hK@hjG%ubah}(h]h ]h"]h$]h&]uh1jhj+%ubeh}(h]h ]h"]h$]h&]uh1jhjF%hK@hj$ubj)}(h!``new_rate`` new rate of this clkh](j)}(h ``new_rate``h]j)}(hjj%h]hnew_rate}(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:389: ./include/linux/clk.hhK@hjd%ubj)}(hhh]h)}(hnew rate of this clkh]hnew rate of this clk}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhj%ubah}(h]h ]h"]h$]h&]uh1jhjd%ubeh}(h]h ]h"]h$]h&]uh1jhj%hK@hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKDhj!hhubh)}(hFor a pre-notifier, old_rate is the clk's rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk's current rate (this was done to optimize the implementation).h]hXFor a pre-notifier, old_rate is the clk’s rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk’s current rate (this was done to optimize the implementation).}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKAhj!hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhj!hhhNhNubh)}(hhh](j)}(h clk_bulk_datah]j)}(hstruct clk_bulk_datah](j)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKIubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%hhhj%hKIubjg)}(h clk_bulk_datah]jm)}(hj%h]h clk_bulk_data}(hj &hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%hhhj%hKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%hKIubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj%hKIhj%hhubj)}(hhh]h)}(h"Data used for bulk clk operations.h]h"Data used for bulk clk operations.}(hj-&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKNhj*&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hKIubeh}(h]h ](jstructeh"]h$]h&]jjjjE&jjE&jjjuh1hhhhj!hNhNubj)}(h**Definition**:: struct clk_bulk_data { const char *id; struct clk *clk; }; **Members** ``id`` clock consumer ID ``clk`` struct clk * to store the associated clockh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjQ&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM&ubh:}(hjM&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhjI&ubj#C)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hjj&sbah}(h]h ]h"]h$]h&]jjuh1j"ChX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKThjI&ubh)}(h **Members**h]j)}(hj{&h]hMembers}(hj}&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKYhjI&ubj)}(hhh](j)}(h``id`` clock consumer ID h](j)}(h``id``h]j)}(hj&h]hid}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKQhj&ubj)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKQhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hKQhj&ubj)}(h2``clk`` struct clk * to store the associated clockh](j)}(h``clk``h]j)}(hj&h]hclk}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKQhj&ubj)}(hhh]h)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hKQhj&ubeh}(h]h ]h"]h$]h&]uh1jhjI&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKUhj!hhubh)}(hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.h]hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.}(hj,'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKRhj!hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhj!hhhNhNubh)}(hhh](j)}(hFint clk_notifier_register (struct clk *clk, struct notifier_block *nb)h]j)}(hEint clk_notifier_register(struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hjT'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjP'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK_ubj)}(h h]h }(hjc'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjP'hhhjb'hK_ubjg)}(hclk_notifier_registerh]jm)}(hclk_notifier_registerh]hclk_notifier_register}(hju'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjq'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjP'hhhjb'hK_ubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hclkh]hclk}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj'modnameN classnameNjI jL )}jO ]jR )}jE jw'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)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj!(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj#(modnameN classnameNjI jL )}jO ]j'c.clk_notifier_registerasbuh1hhj'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)}(hnbh]hnb}(hjZ(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjP'hhhjb'hK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjL'hhhjb'hK_ubah}(h]jG'ah ](jjeh"]h$]h&]jj)jhuh1hhjb'hK_hjI'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&]uh1jhjI'hhhjb'hK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhj!hNhNubj)}(hXF**Parameters** ``struct clk *clk`` clock whose rate we are interested in ``struct notifier_block *nb`` notifier block with callback function pointer **Description** ProTip: debugging across notifier chains can be frustrating. Make sure that your notifier callback function prints a nice big warning in case of failure.h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKchj(ubj)}(hhh](j)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(hj(h]hstruct clk *clk}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK`hj(ubj)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(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)}(hj9)h]h Description}(hj;)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjO)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKbhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhj!hhhNhNubh)}(hhh](j)}(hHint clk_notifier_unregister (struct clk *clk, struct notifier_block *nb)h]j)}(hGint clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hj~)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjz)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&]uh1jhjz)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&]jjuh1jfhjz)hhhj)hKjubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubh)}(hhh]jm)}(hclkh]hclk}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]jR )}jE j)sbc.clk_notifier_unregisterasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(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)}(hjh]hstruct}(hj-*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)*ubj)}(h h]h }(hj:*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)*ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hjK*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjH*ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjM*modnameN classnameNjI jL )}jO ]j)c.clk_notifier_unregisterasbuh1hhj)*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)}(hnbh]hnb}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjz)hhhj)hKjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjv)hhhj)hKjubah}(h]jq)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hKjhjs)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&]uh1jhjs)hhhj)hKjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock whose rate we are no longer interested in ``struct notifier_block *nb`` notifier block which will be unregisteredh](h)}(h**Parameters**h]j)}(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}(hjA+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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhj!hhhNhNubh)}(hhh](j)}(h_int devm_clk_notifier_register (struct device *dev, struct clk *clk, struct notifier_block *nb)h]j)}(h^int devm_clk_notifier_register(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(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)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(hdeviceh]hdevice}(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)}(hjh]hstruct}(hj1,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-,ubj)}(h h]h }(hj>,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj-,ubh)}(hhh]jm)}(hclkh]hclk}(hjO,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjL,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQ,modnameN classnameNjI jL )}jO ]j+c.devm_clk_notifier_registerasbuh1hhj-,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)}(hclkh]hclk}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hstruct notifier_block *nbh](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]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&]jjjuh1jjjhjz+hhhj+hKqubah}(h]ju+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hKqhjw+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&]uh1jhjw+hhhj+hKqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:-jj:-jjjuh1hhhhj!hNhNubj)}(hX **Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk *clk`` clock whose rate we are interested in ``struct notifier_block *nb`` notifier block with callback function pointer **Description** Returns 0 on success, -EERROR otherwiseh](h)}(h**Parameters**h]j)}(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:389: ./include/linux/clk.hhKuhj>-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.hhKrhj]-ubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj|-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx-hKrhjy-ubah}(h]h ]h"]h$]h&]uh1jhj]-ubeh}(h]h ]h"]h$]h&]uh1jhjx-hKrhjZ-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-hKshjZ-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-hKthjZ-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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhj!hhhNhNubh)}(hhh](j)}(h'long clk_get_accuracy (struct clk *clk)h]j)}(h&long clk_get_accuracy(struct clk *clk)h](j )}(hlongh]hlong}(hjU.hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjQ.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK|ubj)}(h h]h }(hjd.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ.hhhjc.hK|ubjg)}(hclk_get_accuracyh]jm)}(hclk_get_accuracyh]hclk_get_accuracy}(hjv.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjr.ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjQ.hhhjc.hK|ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubh)}(hhh]jm)}(hclkh]hclk}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.modnameN classnameNjI jL )}jO ]jR )}jE jx.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&]jjuh1jhjQ.hhhjc.hK|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM.hhhjc.hK|ubah}(h]jH.ah ](jjeh"]h$]h&]jj)jhuh1hhjc.hK|hjJ.hhubj)}(hhh]h)}(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&]uh1jhjJ.hhhjc.hK|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-/jj-/jjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This gets the clock source accuracy expressed in ppb. A perfect clock returns 0.h](h)}(h**Parameters**h]j)}(hj7/h]h Parameters}(hj9/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj1/ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjV/h]hstruct clk *clk}(hjX/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhK~hjP/ubj)}(hhh]h)}(h clock sourceh]h clock source}(hjo/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk/hK~hjl/ubah}(h]h ]h"]h$]h&]uh1jhjP/ubeh}(h]h ]h"]h$]h&]uh1jhjk/hK~hjM/ubah}(h]h ]h"]h$]h&]uh1jhj1/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.hhKhj1/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.hhKhj1/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_phase (C function)c.clk_set_phasehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h0int clk_set_phase (struct clk *clk, int degrees)h]j)}(h/int clk_set_phase(struct clk *clk, int degrees)h](j )}(hinth]hint}(hj/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)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj 0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubh)}(hhh]jm)}(hclkh]hclk}(hj10hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj30modnameN classnameNjI jL )}jO ]jR )}jE j/sbc.clk_set_phaseasbuh1hhj0ubj)}(h h]h }(hjQ0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubj)}(hjh]h*}(hj_0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjm)}(hclkh]hclk}(hjl0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj 0ubj)}(h int degreesh](j )}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0ubjm)}(hdegreesh]hdegrees}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj 0ubeh}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock signal source ``int degrees`` number of degrees the signal is shifted **Description** Shifts the phase of a clock signal by the specified degrees. Returns 0 on success, -EERROR otherwise.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj0ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj 1h]hstruct clk *clk}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj1ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hj%1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!1hKhj"1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj!1hKhj1ubj)}(h8``int degrees`` number of degrees the signal is shifted h](j)}(h``int degrees``h]j)}(hjE1h]h int degrees}(hjG1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj?1ubj)}(hhh]h)}(h'number of degrees the signal is shiftedh]h'number of degrees the signal is shifted}(hj^1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ1hKhj[1ubah}(h]h ]h"]h$]h&]uh1jhj?1ubeh}(h]h ]h"]h$]h&]uh1jhjZ1hKhj1ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj0ubh)}(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.}(hj1hhhNhNubah}(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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_phase (C function)c.clk_get_phasehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h#int clk_get_phase (struct clk *clk)h]j)}(h"int clk_get_phase(struct clk *clk)h](j )}(hinth]hint}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhj1hKubjg)}(h clk_get_phaseh]jm)}(h clk_get_phaseh]h clk_get_phase}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhj1hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubh)}(hhh]jm)}(hclkh]hclk}(hj 2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"2modnameN classnameNjI jL )}jO ]jR )}jE j1sbc.clk_get_phaseasbuh1hhj1ubj)}(h h]h }(hj@2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1ubj)}(hjh]h*}(hjN2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjm)}(hclkh]hclk}(hj[2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hKhj1hhubj)}(hhh]h)}(h(return the phase shift of a clock signalh]h(return the phase shift of a clock signal}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock signal source **Description** Returns the phase shift of a clock node in degrees, otherwise returns -EERROR.h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj2ubj)}(hhh]j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj2h]hstruct clk *clk}(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)}(hclock signal sourceh]hclock signal source}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(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.hhKhj2ubh)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhj!hhhNhNubh)}(hhh](j)}(hLint clk_set_duty_cycle (struct clk *clk, unsigned int num, unsigned int den)h]j)}(hKint clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den)h](j )}(hinth]hint}(hjF3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjU3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB3hhhjT3hKubjg)}(hclk_set_duty_cycleh]jm)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hjg3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjc3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjB3hhhjT3hKubj)}(h5(struct clk *clk, unsigned int num, unsigned int den)h](j)}(hstruct clk *clkh](j)}(hjh]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 ji3sbc.clk_set_duty_cycleasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hclkh]hclk}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{3ubj)}(hunsigned int numh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj4hhhNhNubah}(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&]uh1jhj3ubjm)}(hnumh]hnum}(hj-4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{3ubj)}(hunsigned int denh](j )}(hunsignedh]hunsigned}(hjF4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB4ubj)}(h h]h }(hjT4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB4ubj )}(hinth]hint}(hjb4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjB4ubj)}(h h]h }(hjp4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjB4ubjm)}(hdenh]hden}(hj~4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{3ubeh}(h]h ]h"]h$]h&]jjuh1jhjB3hhhjT3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>3hhhjT3hKubah}(h]j93ah ](jjeh"]h$]h&]jj)jhuh1hhjT3hKhj;3hhubj)}(hhh]h)}(h-adjust the duty cycle ratio of a clock signalh]h-adjust the duty cycle ratio of a clock signal}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj4hhubah}(h]h ]h"]h$]h&]uh1jhj;3hhhjT3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj!hNhNubj)}(hXF**Parameters** ``struct clk *clk`` clock signal source ``unsigned int num`` numerator of the duty cycle ratio to be applied ``unsigned int den`` denominator of the duty cycle ratio to be applied **Description** Adjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj4ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal 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)}(hclock signal sourceh]hclock signal source}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubj)}(hE``unsigned int num`` numerator of the duty cycle ratio to be applied h](j)}(h``unsigned int num``h]j)}(hj"5h]hunsigned int num}(hj$5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj5ubj)}(hhh]h)}(h/numerator of the duty cycle ratio to be appliedh]h/numerator of the duty cycle ratio to be applied}(hj;5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj75hKhj85ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj75hKhj4ubj)}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j)}(h``unsigned int den``h]j)}(hj[5h]hunsigned int den}(hj]5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjU5ubj)}(hhh]h)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hjt5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp5hKhjq5ubah}(h]h ]h"]h$]h&]uh1jhjU5ubeh}(h]h ]h"]h$]h&]uh1jhjp5hKhj4ubeh}(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:389: ./include/linux/clk.hhKhj4ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhj!hhhNhNubh)}(hhh](j)}(hCint clk_get_scaled_duty_cycle (struct clk *clk, unsigned int scale)h]j)}(hBint clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hKubjg)}(hclk_get_scaled_duty_cycleh]jm)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hKubj)}(h%(struct clk *clk, unsigned int scale)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj%6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubh)}(hhh]jm)}(hclkh]hclk}(hj66hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj36ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj86modnameN classnameNjI jL )}jO ]jR )}jE j5sbc.clk_get_scaled_duty_cycleasbuh1hhj6ubj)}(h h]h }(hjV6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjd6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjm)}(hclkh]hclk}(hjq6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned int scaleh](j )}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubj )}(hinth]hint}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj6ubjm)}(hscaleh]hscale}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hKubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hKhj5hhubj)}(hhh]h)}(h-return the duty cycle ratio of a clock signalh]h-return the duty cycle ratio of a clock signal}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct clk *clk`` clock signal source ``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer **Description** Returns the duty cycle ratio multiplied by the scale provided, otherwise returns -EERROR.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(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.hhKhj7ubj)}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj-7h]hstruct clk *clk}(hj/7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj'7ubj)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjF7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB7hKhjC7ubah}(h]h ]h"]h$]h&]uh1jhj'7ubeh}(h]h ]h"]h$]h&]uh1jhjB7hKhj$7ubj)}(hY``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer h](j)}(h``unsigned int scale``h]j)}(hjf7h]hunsigned int scale}(hjh7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd7ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj`7ubj)}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{7hKhj|7ubah}(h]h ]h"]h$]h&]uh1jhj`7ubeh}(h]h ]h"]h$]h&]uh1jhj{7hKhj$7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj7ubh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_is_match (C function)c.clk_is_matchhNtauh1hhj!hhhNhNubh)}(hhh](j)}(h` object. Returns false otherwise. Note that two NULL clks are treated as matching.h](h)}(h**Parameters**h]j)}(hjk9h]h Parameters}(hjm9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhje9ubj)}(hhh](j)}(h/``const struct clk *p`` clk compared against q h](j)}(h``const struct clk *p``h]j)}(hj9h]hconst struct clk *p}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj9ubj)}(hhh]h)}(hclk compared against qh]hclk compared against q}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hKhj9ubj)}(h/``const struct clk *q`` clk compared against p h](j)}(h``const struct clk *q``h]j)}(hj9h]hconst struct clk *q}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj9ubj)}(hhh]h)}(hclk compared against ph]hclk compared against p}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hKhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hKhj9ubeh}(h]h ]h"]h$]h&]uh1jhje9ubh)}(h**Description**h]j)}(hj9h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhje9ubh)}(hReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if **p** and **q** share the same :c:type:`struct clk_core ` object.h](hyReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if }(hj:hhhNhNubj)}(h**p**h]hp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh and }(hj:hhhNhNubj)}(h**q**h]hq}(hj.:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh share the same }(hj:hhhNhNubh)}(h$:c:type:`struct clk_core `h]j)}(hjB:h]hstruct clk_core}(hjD:hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj@:ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjclk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj:ubh object.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj_:hKhje9ubh)}(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.}(hjj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhje9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhj!hhhNhNubh)}(hhh](j)}(h,int clk_rate_exclusive_get (struct clk *clk)h]j)}(h+int clk_rate_exclusive_get(struct clk *clk)h](j )}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhj:hKubjg)}(hclk_rate_exclusive_geth]jm)}(hclk_rate_exclusive_geth]hclk_rate_exclusive_get}(hj:hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhj:hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]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_rate_exclusive_getasbuh1hhj: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&]jjuh1jhj:hhhj:hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj:hKubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hKhj:hhubj)}(hhh]h)}(h3get exclusivity over the rate control of a producerh]h3get exclusivity over the rate control of a producer}(hjY;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjV;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjq;jjq;jjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** This function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitches If exlusivity is claimed more than once on clock, even by the same driver, the rate effectively gets locked as exclusivity can't be preempted. Must not be called from within atomic context. Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hj{;h]h Parameters}(hj};hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhju;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.hhKhj;ubj)}(hhh]h)}(h clock sourceh]h clock 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&]uh1jhju;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.hhKhju;ubh)}(hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitchesh]hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitches}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhju;ubh)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhju;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.hhKhju;ubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhju;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(devm_clk_rate_exclusive_get (C function)c.devm_clk_rate_exclusive_gethNtauh1hhj!hhhNhNubh)}(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}(hjG<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjC<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hjV<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjC<hhhjU<hKubjg)}(hdevm_clk_rate_exclusive_geth]jm)}(hdevm_clk_rate_exclusive_geth]hdevm_clk_rate_exclusive_get}(hjh<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjd<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjC<hhhjU<hKubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(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 jj<sbc.devm_clk_rate_exclusive_getasbuh1hhj<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)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubh)}(hhh]jm)}(hclkh]hclk}(hj=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj=modnameN classnameNjI jL )}jO ]j<c.devm_clk_rate_exclusive_getasbuh1hhj<ubj)}(h h]h }(hj2=hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubj)}(hjh]h*}(hj@=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjm)}(hclkh]hclk}(hjM=hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|<ubeh}(h]h ]h"]h$]h&]jjuh1jhjC<hhhjU<hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?<hhhjU<hKubah}(h]j:<ah ](jjeh"]h$]h&]jj)jhuh1hhjU<hKhj<<hhubj)}(hhh]h)}(h&devm variant of clk_rate_exclusive_geth]h&devm variant of clk_rate_exclusive_get}(hjw=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhjt=hhubah}(h]h ]h"]h$]h&]uh1jhj<<hhhjU<hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1hhhhj!hNhNubj)}(hX-**Parameters** ``struct device *dev`` device the exclusivity is bound to ``struct clk *clk`` clock source **Description** Calls clk_rate_exclusive_get() on **clk** and registers a devm cleanup handler on **dev** to call clk_rate_exclusive_put(). Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(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 device *dev`` device the exclusivity is bound 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&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj=ubj)}(hhh]h)}(h"device the exclusivity is bound toh]h"device the exclusivity is bound 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!``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.hhKhj=ubj)}(hhh]h)}(h clock sourceh]h clock 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=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)}(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 }(hjB>hhhNhNubj)}(h**clk**h]hclk}(hjJ>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB>ubh) and registers a devm cleanup handler on }(hjB>hhhNhNubj)}(h**dev**h]hdev}(hj\>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB>ubh" to call clk_rate_exclusive_put().}(hjB>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj=ubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hju>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_rate_exclusive_put (C function)c.clk_rate_exclusive_puthNtauh1hhj!hhhNhNubh)}(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}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj>hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>hhhj>hKubjg)}(hclk_rate_exclusive_puth]jm)}(hclk_rate_exclusive_puth]hclk_rate_exclusive_put}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>hhhj>hKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]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_rate_exclusive_putasbuh1hhj>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&]jjuh1jhj>hhhj>hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj>hKubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhj>hKhj>hhubj)}(hhh]h)}(h7release exclusivity over the rate control of a producerh]h7release exclusivity over the rate control of a producer}(hjd?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhja?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|?jj|?jjjuh1hhhhj!hNhNubj)}(hX@**Parameters** ``struct clk *clk`` clock source **Description** This function allows drivers to 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)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj?ubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj?h]hstruct clk *clk}(hj?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 clock sourceh]h clock 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)}(hgThis function allows drivers to release the exclusivity it previously got from clk_rate_exclusive_get()h]hgThis function allows drivers to release the exclusivity it previously got from clk_rate_exclusive_get()}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj?ubh)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhKhj?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.hhKhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_prepare (C function) c.clk_preparehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h!int clk_prepare (struct clk *clk)h]j)}(h int clk_prepare(struct clk *clk)h](j )}(hinth]hint}(hjC@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 }(hjR@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?@hhhjQ@hM,ubjg)}(h clk_prepareh]jm)}(h clk_prepareh]h clk_prepare}(hjd@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`@ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?@hhhjQ@hM,ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|@ubh)}(hhh]jm)}(hclkh]hclk}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj@modnameN classnameNjI jL )}jO ]jR )}jE jf@sb c.clk_prepareasbuh1hhj|@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&]noemphjjuh1jhjx@ubah}(h]h ]h"]h$]h&]jjuh1jhj?@hhhjQ@hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;@hhhjQ@hM,ubah}(h]j6@ah ](jjeh"]h$]h&]jj)jhuh1hhjQ@hM,hj8@hhubj)}(hhh]h)}(hprepare a clock sourceh]hprepare a clock source}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM,hjAhhubah}(h]h ]h"]h$]h&]uh1jhj8@hhhjQ@hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This prepares the clock source for use. Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hj%Ah]h Parameters}(hj'AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Aubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM0hjAubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjDAh]hstruct clk *clk}(hjFAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM-hj>Aubj)}(hhh]h)}(h clock sourceh]h clock source}(hj]AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYAhM-hjZAubah}(h]h ]h"]h$]h&]uh1jhj>Aubeh}(h]h ]h"]h$]h&]uh1jhjYAhM-hj;Aubah}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Aubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM/hjAubh)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hjAubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM0hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhj!hhhNhNubh)}(hhh](j)}(h3bool clk_is_enabled_when_prepared (struct clk *clk)h]j)}(h2bool clk_is_enabled_when_prepared(struct clk *clk)h](j )}(hj8h]hbool}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjAhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAhhhjAhM8ubjg)}(hclk_is_enabled_when_preparedh]jm)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjAhhhjAhM8ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Bubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Bubh)}(hhh]jm)}(hclkh]hclk}(hj-BhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*Bubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj/BmodnameN classnameNjI jL )}jO ]jR )}jE jAsbc.clk_is_enabled_when_preparedasbuh1hhj Bubj)}(h h]h }(hjMBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Bubj)}(hjh]h*}(hj[BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Bubjm)}(hclkh]hclk}(hjhBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Bubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubah}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhM8ubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjAhM8hjAhhubj)}(hhh]h)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hjBhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** Returns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise. This is of interest mainly to the power management code where actually disabling the clock also requires unpreparing it to have any material effect. Regardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.h](h)}(h**Parameters**h]j)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM<hjBubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjBh]hstruct clk *clk}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM9hjBubj)}(hhh]h)}(h clock sourceh]h clock source}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM9hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhM9hjBubah}(h]h ]h"]h$]h&]uh1jhjBubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Cubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hjBubh)}(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$ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM:hjBubh)}(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.}(hj3ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM=hjBubh)}(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.}(hjBChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMAhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_unprepare (C function)c.clk_unpreparehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h$void clk_unprepare (struct clk *clk)h]j)}(h#void clk_unprepare(struct clk *clk)h](j )}(hvoidh]hvoid}(hjqChhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmChhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM\ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmChhhjChM\ubjg)}(h clk_unprepareh]jm)}(h clk_unprepareh]h clk_unprepare}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjmChhhjChM\ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubh)}(hhh]jm)}(hclkh]hclk}(hjChhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjCmodnameN classnameNjI jL )}jO ]jR )}jE jCsbc.clk_unprepareasbuh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjm)}(hclkh]hclk}(hjDhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhjmChhhjChM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjiChhhjChM\ubah}(h]jdCah ](jjeh"]h$]h&]jj)jhuh1hhjChM\hjfChhubj)}(hhh]h)}(h"undo preparation of a clock sourceh]h"undo preparation of a clock source}(hj1DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM\hj.Dhhubah}(h]h ]h"]h$]h&]uh1jhjfChhhjChM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIDjjIDjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This undoes a previously prepared clock. The caller must balance the number of prepare and unprepare calls. Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hjSDh]h Parameters}(hjUDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM`hjMDubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjrDh]hstruct clk *clk}(hjtDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM]hjlDubj)}(hhh]h)}(h clock sourceh]h clock source}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM]hjDubah}(h]h ]h"]h$]h&]uh1jhjlDubeh}(h]h ]h"]h$]h&]uh1jhjDhM]hjiDubah}(h]h ]h"]h$]h&]uh1jhjMDubh)}(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_hjMDubh)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM^hjMDubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMahjMDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get (C function) c.clk_gethNtauh1hhj!hhhNhNubh)}(hhh](j)}(h9struct clk * clk_get (struct device *dev, const char *id)h]j)}(h7struct clk *clk_get(struct device *dev, const char *id)h](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMuubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjEhMuubh)}(hhh]jm)}(hclkh]hclk}(hj EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj"EmodnameN classnameNjI jL )}jO ]jR )}jE clk_getsb c.clk_getasbuh1hhjDhhhjEhMuubj)}(h h]h }(hjAEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjDhhhjEhMuubj)}(hjh]h*}(hjOEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjEhMuubjg)}(hclk_geth]jm)}(hj>Eh]hclk_get}(hj`EhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\Eubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjDhhhjEhMuubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hj{EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwEubh)}(hhh]jm)}(hdeviceh]hdevice}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjEmodnameN classnameNjI jL )}jO ]jGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$GubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj$GhhhNhNubj)}(h**id**h]hid}(hjPGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$GubhY may be identical strings, but clk_get may return different clock producers depending on }(hj$GhhhNhNubj)}(h**dev**h]hdev}(hjbGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Gubh.)}(hj$GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMxhjuFubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj{GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM~hjuFubh)}(h;clk_get should not be called from within interrupt context.h]h;clk_get should not be called from within interrupt context.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjuFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_get (C function)c.clk_bulk_gethNtauh1hhj!hhhNhNubh)}(hhh](j)}(hOint clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hNint clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjGhhhX/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&]uh1jhjGhhhjGhMubjg)}(h clk_bulk_geth]jm)}(h clk_bulk_geth]h clk_bulk_get}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjGhhhjGhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hdeviceh]hdevice}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]jR )}jE jGsbc.clk_bulk_getasbuh1hhjGubj)}(h h]h }(hj4HhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjBHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hdevh]hdev}(hjOHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(h int num_clksh](j )}(hinth]hint}(hjhHhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjdHubj)}(h h]h }(hjvHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjdHubjm)}(hnum_clksh]hnum_clks}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjdHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjHmodnameN classnameNjI jL )}jO ]j0Hc.clk_bulk_getasbuh1hhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjm)}(hclksh]hclks}(hjHhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhjGhhubj)}(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.}(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&]jjjj6Ijj6Ijjjuh1hhhhj!hNhNubj)}(hXO**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** This helper function allows drivers to get several clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller. Returns 0 if all clocks specified in clk_bulk_data table are obtained successfully, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field. Drivers must assume that the clock source is not enabled. clk_bulk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj@Ih]h Parameters}(hjBIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Iubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:Iubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj_Ih]hstruct device *dev}(hjaIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYIubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjxIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtIhMhjuIubah}(h]h ]h"]h$]h&]uh1jhjYIubeh}(h]h ]h"]h$]h&]uh1jhjtIhMhjVIubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjIh]h int num_clks}(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)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjVIubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjIh]hstruct clk_bulk_data *clks}(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)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjVIubeh}(h]h ]h"]h$]h&]uh1jhj:Iubh)}(h**Description**h]j)}(hj Jh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Jubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:Iubh)}(hThis helper function allows drivers to get several clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.h]hThis helper function allows drivers to get several clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.}(hj"JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:Iubh)}(hX=Returns 0 if all clocks specified in clk_bulk_data table are obtained successfully, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field.h](hReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully, or valid IS_ERR() condition containing errno. The implementation uses }(hj1JhhhNhNubj)}(h**dev**h]hdev}(hj9JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Jubh and }(hj1JhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjKJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Jubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hj1JhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hj]JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Jubh field.}(hj1JhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:Iubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjvJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:Iubh)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj:Iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_get_all (C function)c.clk_bulk_get_allhNtauh1hhj!hhhNhNubh)}(hhh](j)}(hFint clk_bulk_get_all (struct device *dev, struct clk_bulk_data **clks)h]j)}(hEint clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(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 }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJhhhjJhMubjg)}(hclk_bulk_get_allh]jm)}(hclk_bulk_get_allh]hclk_bulk_get_all}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJhhhjJhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubh)}(hhh]jm)}(hdeviceh]hdevice}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Kubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]jR )}jE jJsbc.clk_bulk_get_allasbuh1hhjJubj)}(h h]h }(hj/KhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hj=KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjm)}(hdevh]hdev}(hjJKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hjcKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Kubj)}(h h]h }(hjpKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_Kubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~Kubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjKmodnameN classnameNjI jL )}jO ]j+Kc.clk_bulk_get_allasbuh1hhj_Kubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_Kubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Kubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Kubjm)}(hclksh]hclks}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjJhMhjJhhubj)}(hhh]h)}(h=lookup and obtain all available references to clock producer.h]h=lookup and obtain all available references to clock producer.}(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&]uh1jhjJhhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj Ljj Ljjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer **Description** This helper function allows drivers to get all clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller. Returns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed. Drivers must assume that the clock source is not enabled. clk_bulk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(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.hhMhj Lubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj2Lh]hstruct device *dev}(hj4LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Lubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj,Lubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjKLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGLhMhjHLubah}(h]h ]h"]h$]h&]uh1jhj,Lubeh}(h]h ]h"]h$]h&]uh1jhjGLhMhj)Lubj)}(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)}(hjkLh]hstruct clk_bulk_data **clks}(hjmLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjeLubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjeLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj)Lubeh}(h]h ]h"]h$]h&]uh1jhj Lubh)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj Lubh)}(hThis helper function allows drivers to get all clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.h]hThis helper function allows drivers to get all clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj Lubh)}(hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed.h](hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in }(hjLhhhNhNubj)}(h**clks**h]hclks}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj Lubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj Lubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"clk_bulk_get_optional (C function)c.clk_bulk_get_optionalhNtauh1hhj!hhhNhNubh)}(hhh](j)}(hXint clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hWint clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hj*MhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&MhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj9MhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&Mhhhj8MhMubjg)}(hclk_bulk_get_optionalh]jm)}(hclk_bulk_get_optionalh]hclk_bulk_get_optional}(hjKMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&Mhhhj8MhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjgMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcMubj)}(h h]h }(hjtMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcMubh)}(hhh]jm)}(hdeviceh]hdevice}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jMMsbc.clk_bulk_get_optionalasbuh1hhjcMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjcMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcMubjm)}(hdevh]hdev}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Mubj)}(h int num_clksh](j )}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubjm)}(hnum_clksh]hnum_clks}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Mubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Nubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Nubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj,NhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)Nubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.NmodnameN classnameNjI jL )}jO ]jMc.clk_bulk_get_optionalasbuh1hhj Nubj)}(h h]h }(hjJNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj Nubj)}(hjh]h*}(hjXNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Nubjm)}(hclksh]hclks}(hjeNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj Nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_Mubeh}(h]h ]h"]h$]h&]jjuh1jhj&Mhhhj8MhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"Mhhhj8MhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhj8MhMhjMhhubj)}(hhh]h)}(h:lookup and obtain a number of references to clock producerh]h:lookup and obtain a number of references to clock producer}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhj8MhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Behaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjNubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjNh]hstruct device *dev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjNubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjNubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj Oh]h int num_clks}(hj OhhhNhNubah}(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)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj"OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjNubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjBOh]hstruct clk_bulk_data *clks}(hjDOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Oubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjPmodnameN classnameNjI jL )}jO ]jR )}jE jOsbc.devm_clk_bulk_getasbuh1hhjOubj)}(h h]h }(hj=PhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjKPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hdevh]hdev}(hjXPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h int num_clksh](j )}(hinth]hint}(hjqPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmPubjm)}(hnum_clksh]hnum_clks}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]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 ]j9Pc.devm_clk_bulk_getasbuh1hhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hclksh]hclks}(hjPhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjOhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhjOhhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(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&]uh1jhjOhhhjOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?Qjj?Qjjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Return 0 on success, an errno on failure. This helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h](h)}(h**Parameters**h]j)}(hjIQh]h Parameters}(hjKQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCQubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjhQh]hstruct device *dev}(hjjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjbQubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}QhMhj~Qubah}(h]h ]h"]h$]h&]uh1jhjbQubeh}(h]h ]h"]h$]h&]uh1jhj}QhMhj_Qubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(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&]uh1jhjQhMhj_Qubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjQh]hstruct clk_bulk_data *clks}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj_Qubeh}(h]h ]h"]h$]h&]uh1jhjCQubh)}(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.hhMhjCQubh)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hj+RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCQubh)}(hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h]hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.}(hj:RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhj!hhhNhNubh)}(hhh](j)}(h]int devm_clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(h\int devm_clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjiRhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjeRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjxRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeRhhhjwRhMubjg)}(hdevm_clk_bulk_get_optionalh]jm)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_bulk_get_optional}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjeRhhhjwRhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubh)}(hhh]jm)}(hdeviceh]hdevice}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjRmodnameN classnameNjI jL )}jO ]jR )}jE jRsbc.devm_clk_bulk_get_optionalasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjm)}(hdevh]hdev}(hjRhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(h int num_clksh](j )}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjSubj)}(h h]h }(hj&ShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubjm)}(hnum_clksh]hnum_clks}(hj4ShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hstruct clk_bulk_data *clksh](j)}(hjh]hstruct}(hjMShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjISubj)}(h h]h }(hjZShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjISubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjkShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmSmodnameN classnameNjI jL )}jO ]jRc.devm_clk_bulk_get_optionalasbuh1hhjISubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjISubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjISubjm)}(hclksh]hclks}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjISubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjeRhhhjwRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjaRhhhjwRhMubah}(h]j\Rah ](jjeh"]h$]h&]jj)jhuh1hhjwRhMhj^Rhhubj)}(hhh]h)}(h-managed get multiple optional consumer clocksh]h-managed get multiple optional consumer clocks}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjShhubah}(h]h ]h"]h$]h&]uh1jhj^RhhhjwRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``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)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjTh]hstruct device *dev}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Tubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj Tubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj(ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ThMhj%Tubah}(h]h ]h"]h$]h&]uh1jhj Tubeh}(h]h ]h"]h$]h&]uh1jhj$ThMhjTubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjHTh]h int num_clks}(hjJThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjBTubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjaThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ThMhj^Tubah}(h]h ]h"]h$]h&]uh1jhjBTubeh}(h]h ]h"]h$]h&]uh1jhj]ThMhjTubj)}(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)}(hjTh]hstruct clk_bulk_data *clks}(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.hhMhj{Tubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhj{Tubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(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 }(hjThhhNhNubj)}(h**dev**h]hdev}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh and }(hjThhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjThhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh field.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj&UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubh)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(hj5UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhj!hhhNhNubh)}(hhh](j)}(hKint devm_clk_bulk_get_all (struct device *dev, struct clk_bulk_data **clks)h]j)}(hJint devm_clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(hjdUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj`UhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjsUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj`UhhhjrUhMubjg)}(hdevm_clk_bulk_get_allh]jm)}(hdevm_clk_bulk_get_allh]hdevm_clk_bulk_get_all}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj`UhhhjrUhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubh)}(hhh]jm)}(hdeviceh]hdevice}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUmodnameN classnameNjI jL )}jO ]jR )}jE jUsbc.devm_clk_bulk_get_allasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hdevh]hdev}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hj VhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hj1VhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.Vubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3VmodnameN classnameNjI jL )}jO ]jUc.devm_clk_bulk_get_allasbuh1hhjVubj)}(h h]h }(hjOVhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hj]VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hclksh]hclks}(hjwVhhhNhNubah}(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"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjYUhhhjrUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhj!hNhNubj)}(hX!**Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer **Description** Returns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed. This helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjVh]hstruct device *dev}(hjVhhhNhNubah}(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.hhMhjVubj)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjVubj)}(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)}(hjWh]hstruct clk_bulk_data **clks}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjWubj)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj4WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0WhMhj1Wubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhj0WhMhjVubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hjVWh]h Description}(hjXWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVubh)}(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 }(hjlWhhhNhNubj)}(h**clks**h]hclks}(hjtWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlWubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjlWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVubh)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhj!hhhNhNubh)}(hhh](j)}(hSint devm_clk_bulk_get_all_enabled (struct device *dev, struct clk_bulk_data **clks)h]j)}(hRint devm_clk_bulk_get_all_enabled(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWhhhjWhMubjg)}(hdevm_clk_bulk_get_all_enabledh]jm)}(hdevm_clk_bulk_get_all_enabledh]hdevm_clk_bulk_get_all_enabled}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWhhhjWhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(hdeviceh]hdevice}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jR )}jE jWsbc.devm_clk_bulk_get_all_enabledasbuh1hhjWubj)}(h h]h }(hj7XhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjEXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hdevh]hdev}(hjRXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hstruct clk_bulk_data **clksh](j)}(hjh]hstruct}(hjkXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgXubj)}(h h]h }(hjxXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgXubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]j3Xc.devm_clk_bulk_get_all_enabledasbuh1hhjgXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjgXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgXubjm)}(hclksh]hclks}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjWhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhjWhhubj)}(hhh]h)}(h3Get and enable all clocks of the consumer (managed)h]h3Get and enable all clocks of the consumer (managed)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhj!hNhNubj)}(hXD**Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer **Description** Returns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed. This helper function allows drivers to get all clocks of the consumer and enables them in one operation with management. The clks will automatically be disabled and freed when the device is unbound.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjYubj)}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj:Yh]hstruct device *dev}(hjstruct clk * devm_clk_get (struct device *dev, const char *id)h]j)}(hfubj)}(hconst char *idh](j)}(hjh]hconst}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj )}(hcharh]hchar}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjm)}(hidh]hid}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>fubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjehMZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehMZubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehMZhjehhubj)}(hhh]h)}(h'devm_clk_get_optional() + clk_prepare()h]h'devm_clk_get_optional() + clk_prepare()}(hj$ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMZhj!ghhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjinform the system when the clock source is no longer required.h]h>inform the system when the clock source is no longer required.}(hjqvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjnvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** Inform the system that a clock source is no longer required by a driver and may be shut down. May be called from atomic contexts. Implementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjvubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjvh]hstruct clk *clk}(hjvhhhNhNubah}(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.hhMhjvubj)}(hhh]h)}(h clock sourceh]h clock source}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjvubh)}(h]Inform the system that a clock source is no longer required by a driver and may be shut down.h]h]Inform the system that a clock source is no longer required by a driver and may be shut down.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjvubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjvubh)}(hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.h]hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.}(hj!whhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhj!hhhNhNubh)}(hhh](j)}(hFvoid clk_bulk_disable (int num_clks, const struct clk_bulk_data *clks)h]j)}(hEvoid clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks)h](j )}(hvoidh]hvoid}(hjPwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjLwhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hj_whhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLwhhhj^whMubjg)}(hclk_bulk_disableh]jm)}(hclk_bulk_disableh]hclk_bulk_disable}(hjqwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjLwhhhj^whMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubjm)}(hnum_clksh]hnum_clks}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubh)}(hhh]jm)}(h clk_bulk_datah]h clk_bulk_data}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jR )}jE jswsbc.clk_bulk_disableasbuh1hhjwubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwubj)}(hjh]h*}(hj)xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjm)}(hclksh]hclks}(hj6xhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhjLwhhhj^whMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHwhhhj^whMubah}(h]jCwah ](jjeh"]h$]h&]jj)jhuh1hhj^whMhjEwhhubj)}(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`xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj]xhhubah}(h]h ]h"]h$]h&]uh1jhjEwhhhj^whMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxxjjxxjjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``int num_clks`` the number of clk_bulk_data ``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Inform the system that a set of clks is no longer required by a driver and may be shut down. May be called from atomic contexts. Implementation detail: if the set of clks is shared between multiple drivers, clk_bulk_enable() calls must be balanced by the same number of clk_bulk_disable() calls for the clock source to be disabled.h](h)}(h**Parameters**h]j)}(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:389: ./include/linux/clk.hhMhj|xubj)}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjxh]h int num_clks}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjxubj)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjxubj)}(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)}(hjxh]h const struct clk_bulk_data *clks}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjxubj)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjxubeh}(h]h ]h"]h$]h&]uh1jhj|xubh)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj|xubh)}(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+yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj|xubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj:yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj|xubh)}(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.}(hjIyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj|xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_rate (C function)c.clk_get_ratehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h,unsigned long clk_get_rate (struct clk *clk)h]j)}(h+unsigned long clk_get_rate(struct clk *clk)h](j )}(hunsignedh]hunsigned}(hjxyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtyhhhjyhMubj )}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjtyhhhjyhMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtyhhhjyhMubjg)}(h clk_get_rateh]jm)}(h clk_get_rateh]h clk_get_rate}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjtyhhhjyhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubh)}(hhh]jm)}(hclkh]hclk}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE jysbc.clk_get_rateasbuh1hhjyubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjyubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjm)}(hclkh]hclk}(hj*zhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhjtyhhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjpyhhhjyhMubah}(h]jkyah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjmyhhubj)}(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.}(hjTzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjQzhhubah}(h]h ]h"]h$]h&]uh1jhjmyhhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjlzjjlzjjjuh1hhhhj!hNhNubj)}(h2**Parameters** ``struct clk *clk`` clock sourceh](h)}(h**Parameters**h]j)}(hjvzh]h Parameters}(hjxzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjpzubj)}(hhh]j)}(h ``struct clk *clk`` clock sourceh](j)}(h``struct clk *clk``h]j)}(hjzh]hstruct clk *clk}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzubj)}(hhh]h)}(h clock sourceh]h clock source}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjpzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_put (C function) c.clk_puthNtauh1hhj!hhhNhNubh)}(hhh](j)}(hvoid clk_put (struct clk *clk)h]j)}(hvoid clk_put(struct clk *clk)h](j )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjzhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjzhhhjzhMubjg)}(hclk_puth]jm)}(hclk_puth]hclk_put}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj {ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzhhhjzhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hj,{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj({ubj)}(h h]h }(hj9{hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj({ubh)}(hhh]jm)}(hclkh]hclk}(hjJ{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjG{ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjL{modnameN classnameNjI jL )}jO ]jR )}jE j{sb c.clk_putasbuh1hhj({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)}(hclkh]hclk}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj({ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj${ubah}(h]h ]h"]h$]h&]jjuh1jhjzhhhjzhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjzhhubj)}(hhh]h)}(h"free" the clock sourceh]h“free” the clock source}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Note** drivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function. clk_put should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(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)}(hj{h]hstruct clk *clk}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj{ubj)}(hhh]h)}(h clock sourceh]h clock source}(hj |hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj{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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj{ubh)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjA|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj{ubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjP|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_bulk_put (C function)c.clk_bulk_puthNtauh1hhj!hhhNhNubh)}(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.hhMhjubj)}(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&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubeh}(h]h ]h"]h$]h&]uh1jhjǁubh)}(h**Note**h]j)}(hj`h]hNote}(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.hhMhjǁubh)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjǁubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM hjǁubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_round_rate (C function)c.clk_round_ratehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h9long clk_round_rate (struct clk *clk, unsigned long rate)h]j)}(h8long clk_round_rate(struct clk *clk, unsigned long rate)h](j )}(hlongh]hlong}(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 }(hjÂhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj‚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&]jjuh1jfhjhhhj‚hM*ubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jׂsbc.clk_round_rateasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjJhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj_ubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]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)}(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&]uh1jhjhhhj‚hM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj݃jj݃jjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired clock rate in Hz **Description** This answers the question "if I were to pass **rate** to clk_set_rate(), what clock rate would I end up with?" without changing the hardware in any way. In other words: rate = clk_round_rate(clk, r); and: clk_set_rate(clk, r); rate = clk_get_rate(clk); are equivalent except the former does not modify the clock hardware in any way. Returns rounded clock rate in Hz, or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM.hjubj)}(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&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hj?h]hunsigned long rate}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM,hj9ubj)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM,hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM,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:389: ./include/linux/clk.hhM.hjubh)}(hThis answers the question "if I were to pass **rate** to clk_set_rate(), what clock rate would I end up with?" without changing the hardware in any way. In other words:h](h/This answers the question “if I were to pass }(hjhhhNhNubj)}(h**rate**h]hrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhv to clk_set_rate(), what clock rate would I end up with?” without changing the hardware in any way. In other words:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM-hjubj)}(hrate = clk_round_rate(clk, r); h]h)}(hrate = clk_round_rate(clk, r);h]hrate = clk_round_rate(clk, r);}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM1hjubah}(h]h ]h"]h$]h&]uh1jhjÄhM1hjubh)}(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.hhM3hjubj)}(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&]uh1jhjhM5hjubh)}(hOare equivalent except the former does not modify the clock hardware in any way.h]hOare equivalent except the former does not modify the clock hardware in any way.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM8hjubh)}(h4Returns rounded clock rate in Hz, or negative errno.h]h4Returns rounded clock rate in Hz, or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate (C function)c.clk_set_ratehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h6int clk_set_rate (struct clk *clk, unsigned long rate)h]j)}(h5int clk_set_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hj0hhhNhNubah}(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}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj,hhhj>hMAubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jSsbc.clk_set_rateasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hclkh]hclk}(hjƅhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hj߅hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjۅubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۅubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjۅubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjۅubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjۅubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(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}(hjAhhhNhNubah}(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&]jjjjYjjYjjjuh1hhhhj!hNhNubj)}(hX"**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired clock rate in Hz **Description** Updating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating. Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMBhj|ubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjyubj)}(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}(hjԆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjІhMChjцubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjІhMChjyubeh}(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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h@int clk_set_rate_exclusive (struct clk *clk, unsigned long rate)h]j)}(h?int clk_set_rate_exclusive(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjXhMMubjg)}(hclk_set_rate_exclusiveh]jm)}(hclk_set_rate_exclusiveh]hclk_set_rate_exclusive}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjXhMMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jmsbc.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}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhMMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhMMhj?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}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMMhjXhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1hhhhj!hNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired clock rate in Hz **Description** This helper function allows drivers to atomically set the rate of a producer and claim exclusivity over the rate control of the producer. It is essentially a combination of clk_set_rate() and clk_rate_exclusite_get(). Caller must balance this call with a call to clk_rate_exclusive_put() Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMQhjwubj)}(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&]uh1jhjwubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMRhjwubh)}(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.hhMQhjwubh)}(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()}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMThjwubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMXhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_has_parent (C function)c.clk_has_parenthNtauh1hhj!hhhNhNubh)}(hhh](j)}(hEbool clk_has_parent (const struct clk *clk, const struct clk *parent)h]j)}(hDbool clk_has_parent(const struct clk *clk, const struct clk *parent)h](j )}(hj8h]hbool}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjohhhX/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&]uh1jhjohhhjhM^ubjg)}(hclk_has_parenth]jm)}(hclk_has_parenth]hclk_has_parent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjohhhjhM^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)}(hjh]hstruct}(hjʉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj׉hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]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&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hclkh]hclk}(hjuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjwmodnameN classnameNjI jL )}jO ]jc.clk_has_parentasbuh1hhj8ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhM^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhM^ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhM^hjhhhubj)}(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&]uh1jhjhhhhjhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj!hNhNubj)}(hXU**Parameters** ``const struct clk *clk`` clock source ``const struct clk *parent`` parent clock source **Description** This function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent. Returns true if **parent** is a possible parent for **clk**, false otherwise.h](h)}(h**Parameters**h]j)}(hjh]h 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}(hj2hhhNhNubah}(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)}(hjRh]hconst struct clk *parent}(hjThhhNhNubah}(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.hhM`hjLubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM`hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM`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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhj!hhhNhNubh)}(hhh](j)}(hNint clk_set_rate_range (struct clk *clk, unsigned long min, unsigned long max)h]j)}(hMint clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max)h](j )}(hinth]hint}(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)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubh)}(hhh]jm)}(hclkh]hclk}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjbmodnameN classnameNjI jL )}jO ]jR )}jE j(sbc.clk_set_rate_rangeasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hunsigned long minh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjŒhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjЌhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjތhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hminh]hmin}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(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}(hj!hhhNhNubah}(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&]noemphjjuh1jhj:ubeh}(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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMjhjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``unsigned long min`` desired minimum clock rate in Hz, inclusive ``unsigned long max`` desired maximum clock rate in Hz, inclusive **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.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)}(hjh]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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMmhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMmhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMohjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjkhhhNhNubah}(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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h:int clk_set_min_rate (struct clk *clk, unsigned long rate)h]j)}(h9int clk_set_min_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j 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)}(hjh]hstruct}(hj׎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӎubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjӎubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]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}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjӎubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjώubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubj )}(hlongh]hlong}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubeh}(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&]jjjjÏjjÏjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired minimum clock rate in Hz, inclusive **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(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&]uh1hhj:hMvhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMvhjubeh}(h]h ]h"]h$]h&]uh1jhjǏubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMxhjǏubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjvhhhNhNubah}(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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h:int clk_set_max_rate (struct clk *clk, unsigned long rate)h]j)}(h9int clk_set_max_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.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&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM}ubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjސubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjސubh)}(hhh]jm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jȐsbc.clk_set_max_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}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjސubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjڐubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(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Αjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired maximum clock rate in Hz, inclusive **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(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)}(hj0h]hunsigned long rate}(hj2hhhNhNubah}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubeh}(h]h ]h"]h$]h&]uh1jhjґubh)}(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:389: ./include/linux/clk.hhMhjґubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjґubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_set_parent (C function)c.clk_set_parenthNtauh1hhj!hhhNhNubh)}(hhh](j)}(h8int clk_set_parent (struct clk *clk, struct clk *parent)h]j)}(h7int clk_set_parent(struct clk *clk, struct clk *parent)h](j )}(hinth]hint}(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)}(hjh]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*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hclkh]hclk}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk *parenth](j)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubh)}(hhh]jm)}(hclkh]hclk}(hj}hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j'c.clk_set_parentasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjm)}(hparenth]hparent}(hjhhhNhNubah}(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*set the parent clock source for this clockh]h*set the parent clock source for this clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjݓhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``struct clk *parent`` parent clock source **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj!h]hstruct clk *clk}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]h)}(h clock sourceh]h clock source}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h+``struct clk *parent`` parent clock source h](j)}(h``struct clk *parent``h]j)}(hjZh]hstruct clk *parent}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjTubj)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_parent (C function)c.clk_get_parenthNtauh1hhj!hhhNhNubh)}(hhh](j)}(h-struct clk * clk_get_parent (struct clk *clk)h]j)}(h+struct clk *clk_get_parent(struct clk *clk)h](j)}(hjh]hstruct}(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}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj֔hhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubh)}(hhh]jm)}(hclkh]hclk}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jc.clk_get_parentasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjm)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(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&]jjjjjjjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** Returns struct clk corresponding to parent clock source, or valid IS_ERR() condition containing errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(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)}(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: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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_sys (C function) c.clk_get_syshNtauh1hhj!hhhNhNubh)}(hhh](j)}(hAstruct clk * clk_get_sys (const char *dev_id, const char *con_id)h]j)}(h?struct clk *clk_get_sys(const char *dev_id, const char *con_id)h](j)}(hjh]hstruct}(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 }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hdev_idh]hdev_id}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](j)}(hjh]hconst}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjm)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjiubeh}(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&]jjjjjjjjjuh1hhhhj!hNhNubj)}(hX4**Parameters** ``const char *dev_id`` device name ``const char *con_id`` connection ID **Description** Returns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification. Drivers must assume that the clock source is not enabled. clk_get_sys should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h 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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(h%``const char *con_id`` connection ID h](j)}(h``const char *con_id``h]j)}(hjUh]hconst char *con_id}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjOubj)}(hhh]h)}(h connection IDh]h connection ID}(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&]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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_save_context (C function)c.clk_save_contexthNtauh1hhj!hhhNhNubh)}(hhh](j)}(hint clk_save_context (void)h]j)}(hint clk_save_context(void)h](j )}(hinth]hint}(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}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubah}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)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.hhMhj{hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Saves the context of the clock register for powerstates in which the contents of the registers will be lost. Occurs deep within the suspend code so locking is not necessary.h](h)}(h**Parameters**h]j)}(hjh]h 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&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h clk_restore_context (C function)c.clk_restore_contexthNtauh1hhj!hhhNhNubh)}(hhh](j)}(hvoid clk_restore_context (void)h]j)}(hvoid clk_restore_context(void)h](j )}(hvoidh]hvoid}(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 }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj;hhhjMhMubjg)}(hclk_restore_contexth]jm)}(hclk_restore_contexth]hclk_restore_context}(hj`hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj;hhhjMhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxubah}(h]h ]h"]h$]h&]noemphjjuh1jhjtubah}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjMhMhj4hhubj)}(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&]uh1jhj4hhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj!hNhNubj)}(h**Parameters** ``void`` no arguments **Description** This occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.h](h)}(h**Parameters**h]j)}(hjȚ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``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}(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)}(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)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjšubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_drop_range (C function)c.clk_drop_rangehNtauh1hhj!hhhNhNubh)}(hhh](j)}(h$int clk_drop_range (struct clk *clk)h]j)}(h#int clk_drop_range(struct clk *clk)h](j )}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjchhhjuhMubjg)}(hclk_drop_rangeh]jm)}(hclk_drop_rangeh]hclk_drop_range}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjchhhjuhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hclkh]hclk}(hj›hhhNhNubah}(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&]jjuh1jhjchhhjuhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\hhubj)}(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&]uh1jhj\hhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhj!hNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCubj)}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjhh]hstruct clk *clk}(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.hhMhjbubj)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubah}(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&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:389: ./include/linux/clk.hhMhjCubh)}(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.hhMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj!hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclk_get_optional (C function)c.clk_get_optionalhNtauh1hhj!hhhNhNubh)}(hhh](j)}(hBstruct clk * clk_get_optional (struct device *dev, const char *id)h]j)}(h@struct clk *clk_get_optional(struct device *dev, const char *id)h](j)}(hjh]hstruct}(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 reftargetj modnameN 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*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjg)}(hclk_get_optionalh]jm)}(hj%h]hclk_get_optional}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj^ubh)}(hhh]jm)}(hdeviceh]hdevice}(hjhhhNhNubah}(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&]noemphjjuh1jhjZubj)}(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*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΝubjm)}(hidh]hid}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjΝubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jۜah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjݜhhubj)}(hhh]h)}(hh]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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.}(hjThhhNhNubah}(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&]uh1jhj5hMhj:hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,lockdep_assert_in_rcu_read_lock_bh (C macro)$c.lockdep_assert_in_rcu_read_lock_bhhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h"lockdep_assert_in_rcu_read_lock_bhh]j)}(h"lockdep_assert_in_rcu_read_lock_bhh]jg)}(h"lockdep_assert_in_rcu_read_lock_bhh]jm)}(hj|h]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&]jjjuh1jjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(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.hhMhj:hhubj)}(h WARN if not protected by rcu_read_lock_bh() **Description** Splats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required. h](j)}(h,WARN if not protected by rcu_read_lock_bh() h]h)}(h+WARN if not protected by rcu_read_lock_bh()h]h+WARN if not protected by rcu_read_lock_bh()}(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&]uh1jhjhMhj:hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/lockdep_assert_in_rcu_read_lock_sched (C macro)'c.lockdep_assert_in_rcu_read_lock_schedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h%lockdep_assert_in_rcu_read_lock_schedh]j)}(h%lockdep_assert_in_rcu_read_lock_schedh]jg)}(h%lockdep_assert_in_rcu_read_lock_schedh]jm)}(hj+h]h%lockdep_assert_in_rcu_read_lock_sched}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1ubah}(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)hhhjHhMubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhjHhMhj&hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj&hhhjHhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjajjajjjuh1hhhhj:hNhNubh)}(h,``lockdep_assert_in_rcu_read_lock_sched ()``h]j)}(hjgh]h(lockdep_assert_in_rcu_read_lock_sched ()}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:hhubj)}(hX WARN if not protected by rcu_read_lock_sched() **Description** Splats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required. h](j)}(h/WARN if not protected by rcu_read_lock_sched() h]h)}(h.WARN if not protected by rcu_read_lock_sched()h]h.WARN if not protected by rcu_read_lock_sched()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]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&]uh1jhjhMhj:hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&lockdep_assert_in_rcu_reader (C macro)c.lockdep_assert_in_rcu_readerhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlockdep_assert_in_rcu_readerh]j)}(hlockdep_assert_in_rcu_readerh]jg)}(hlockdep_assert_in_rcu_readerh]jm)}(hjڧh]hlockdep_assert_in_rcu_reader}(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&]jjjuh1jjjhjاhhhjhMubah}(h]jӧah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjէhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjէhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h#``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.hhMhj:hhubj)}(hX WARN if not within some type of RCU reader **Description** Splats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers. Note that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT. h](j)}(h+WARN if not within some type of RCU reader h]h)}(h*WARN if not within some type of RCU readerh]h*WARN if not within some type of RCU reader}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj0ubah}(h]h ]h"]h$]h&]uh1jhjBhMhj,ubh)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjahhhNhNubah}(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.}(hjphhhNhNubah}(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&]uh1jhjBhMhj:hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunrcu_pointer (C macro)c.unrcu_pointerhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h unrcu_pointerh]j)}(h unrcu_pointerh]jg)}(h unrcu_pointerh]jm)}(hjh]h unrcu_pointer}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjΨjjΨjjjuh1hhhhj:hNhNubh)}(h``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.hhMhj:hhubj)}(h*mark a pointer as not being RCU protected h]h)}(h)mark a pointer as not being RCU protectedh]h)mark a pointer as not being RCU protected}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj:hhubj)}(h**Parameters** ``p`` pointer needing to lose its __rcu property **Description** Converts **p** from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]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}(hjAhhhNhNubah}(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)}(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.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 }(hjyhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubhn from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_INITIALIZER (C macro)c.RCU_INITIALIZERhNtauh1hhj:hhhNhNubh)}(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&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h``RCU_INITIALIZER (v)``h]j)}(hjh]hRCU_INITIALIZER (v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM*hj:hhubj)}(h7statically initialize an RCU-protected global variable h]h)}(h6statically initialize an RCU-protected global variableh]h6statically initialize an RCU-protected global variable}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM(hjubah}(h]h ]h"]h$]h&]uh1jhjhM(hj:hhubj)}(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)}(hjDh]hv}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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)hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM.hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_assign_pointer (C macro)c.rcu_assign_pointerhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_assign_pointerh]j)}(hrcu_assign_pointerh]jg)}(hrcu_assign_pointerh]jm)}(hjh]hrcu_assign_pointer}(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Ϊjjjuh1hhhhj:hNhNubh)}(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.hhM0hj:hhubj)}(h assign to RCU-protected pointer h]h)}(hassign to RCU-protected pointerh]hassign to RCU-protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM.hjubah}(h]h ]h"]h$]h&]uh1jhjhM.hj:hhubj)}(hX**Parameters** ``p`` pointer to assign to ``v`` value to assign (publish) **Description** Assigns the specified value to the specified RCU-protected pointer, ensuring that any concurrent RCU readers will see any prior initialization. Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code. In some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details. Note that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the "extra" evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]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}(hjAhhhNhNubah}(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)}(hjah]hv}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM0hj[ubj)}(hhh]h)}(hvalue to assign (publish)h]hvalue to assign (publish)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM0hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM0hjubeh}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_replace_pointer (C macro)c.rcu_replace_pointerhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_replace_pointerh]j)}(hrcu_replace_pointerh]jg)}(hrcu_replace_pointerh]jm)}(hjh]hrcu_replace_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.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>jjjuh1hhhhj:hNhNubh)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j)}(hjDh]h%rcu_replace_pointer (rcu_ptr, ptr, c)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMZhj:hhubj)}(h0replace an RCU pointer, returning its old value h]h)}(h/replace an RCU pointer, returning its old valueh]h/replace an RCU pointer, returning its old value}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMXhjZubah}(h]h ]h"]h$]h&]uh1jhjlhMXhj:hhubj)}(hX**Parameters** ``rcu_ptr`` RCU pointer, whose old value is returned ``ptr`` regular pointer ``c`` the lockdep conditions under which the dereference will take place **Description** Perform a replacement, where **rcu_ptr** is an RCU-annotated pointer and **c** is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of **rcu_ptr** is returned, and **rcu_ptr** is set to **ptr**.h](h)}(h**Parameters**h]j)}(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:398: ./include/linux/rcupdate.hhM\hjsubj)}(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)}(hj h]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[hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM]hjsubh)}(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 }(hj[hhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh! is an RCU-annotated pointer and }(hj[hhhNhNubj)}(h**c**h]hc}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh} is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of }(hj[hhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh is returned, and }(hj[hhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh is set to }(hj[hhhNhNubj)}(h**ptr**h]hptr}(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:398: ./include/linux/rcupdate.hhM\hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_access_pointer (C macro)c.rcu_access_pointerhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_access_pointerh]j)}(hrcu_access_pointerh]jg)}(hrcu_access_pointerh]jm)}(hjޭh]hrcu_access_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.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&]jjjjjjjjjuh1hhhhj:hNhNubh)}(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.hhMlhj:hhubj)}(h(fetch RCU pointer with no dereferencing h]h)}(h'fetch RCU pointer with no dereferencingh]h'fetch RCU pointer with no dereferencing}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMjhj0ubah}(h]h ]h"]h$]h&]uh1jhjBhMjhj:hhubj)}(hXT**Parameters** ``p`` The pointer to read **Description** Return the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer(). It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen. It is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.h](h)}(h**Parameters**h]j)}(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.hhMnhjIubj)}(hhh]j)}(h``p`` The pointer to read h](j)}(h``p``h]j)}(hjnh]hp}(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.hhMkhjhubj)}(hhh]h)}(hThe pointer to readh]hThe pointer to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjeubah}(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.hhMmhjIubh)}(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.hhMlhjIubh)}(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.hhMvhjIubh)}(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|hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_check (C macro)c.rcu_dereference_checkhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_checkh]j)}(hrcu_dereference_checkh]jg)}(hrcu_dereference_checkh]jm)}(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<jjjuh1hhhhj:hNhNubh)}(h ``rcu_dereference_check (p, c)``h]j)}(hjBh]hrcu_dereference_check (p, 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.hhMhj:hhubj)}(h$rcu_dereference with debug checking h]h)}(h#rcu_dereference with debug checkingh]h#rcu_dereference 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.hhMhjXubah}(h]h ]h"]h$]h&]uh1jhjjhMhj:hhubj)}(hX**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** Do an rcu_dereference(), but check that the conditions under which the dereference will take place are correct. Typically the conditions indicate the various locking conditions that should be held at that point. The check should return true if the conditions are satisfied. An implicit check for being in an RCU read-side critical section (rcu_read_lock()) is included. For example: bar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `)); could be used to indicate to lockdep that foo->bar may only be dereferenced if either rcu_read_lock() is held, or that the lock required to replace the bar struct at foo->bar is held. Note that the list of conditions may also include indications of when a lock need not be held, for example during initialisation or destruction of the target struct: bar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); Inserts memory barriers on architectures that require them (currently only the Alpha), prevents the compiler from refetching (and from merging fetches), and, more importantly, documents exactly which pointers are protected by RCU and checks that the pointer is annotated as __rcu.h](h)}(h**Parameters**h]j)}(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.hhMhjqubj)}(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&]uh1jhjqubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjqubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjqubh)}(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.hhMhjqubj)}(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(}(hjBhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjLh]h foo->lock}(hjNhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjBubh));}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjihMhj>ubah}(h]h ]h"]h$]h&]uh1jhjihMhjqubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjqubh)}(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.hhMhjqubj)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h]j)}(hhh]j)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h](j)}(hSbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) ||h](h6bar = rcu_dereference_check(foo->bar, lockdep_is_held(}(hjhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjh]h foo->lock}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjfoouh1hh]/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 ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjfoouh1hhjʰ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.hhMhjqubh)}(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.hhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_dereference_bh_check (C macro)c.rcu_dereference_bh_checkhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_bh_checkh]j)}(hrcu_dereference_bh_checkh]jg)}(hrcu_dereference_bh_checkh]jm)}(hjKh]hrcu_dereference_bh_check}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjhhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjhhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h#``rcu_dereference_bh_check (p, c)``h]j)}(hjh]hrcu_dereference_bh_check (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:hhubj)}(h'rcu_dereference_bh with debug checking h]h)}(h&rcu_dereference_bh with debug checkingh]h&rcu_dereference_bh with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj:hhubj)}(hX'**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is the RCU-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.hhMhjubj)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjұubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%rcu_dereference_sched_check (C macro)c.rcu_dereference_sched_checkhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_sched_checkh]j)}(hrcu_dereference_sched_checkh]jg)}(hrcu_dereference_sched_checkh]jm)}(hjh]hrcu_dereference_sched_check}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjIJjjIJjjjuh1hhhhj:hNhNubh)}(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.hhMhj:hhubj)}(h*rcu_dereference_sched with debug checking h]h)}(h)rcu_dereference_sched with debug checkingh]h)rcu_dereference_sched with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj:hhubj)}(hX***Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is the RCU-sched counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for preempt_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_sched() into account.h](h)}(h**Parameters**h]j)}(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}(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)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjWh]hc}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjQubj)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(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&]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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#rcu_dereference_all_check (C macro)c.rcu_dereference_all_checkhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_all_checkh]j)}(hrcu_dereference_all_checkh]jg)}(hrcu_dereference_all_checkh]jm)}(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&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h$``rcu_dereference_all_check (p, c)``h]j)}(hj h]h rcu_dereference_all_check (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:hhubj)}(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&]uh1jhj5hMhj:hhubj)}(hXD**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is similar to rcu_dereference_check(), but allows protection by all forms of vanilla RCU readers, including preemption disabled, bh-disabled, and interrupt-disabled regions of code. Note that "vanilla RCU" excludes SRCU and the various Tasks RCU flavors. Please note that this macro should not be backported to any Linux-kernel version preceding v5.0 due to changes in synchronize_rcu() semantics prior to that version.h](h)}(h**Parameters**h]j)}(hjBh]h Parameters}(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.hhMhj<ubj)}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjah]hp}(hjchhhNhNubah}(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}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjXubj)}(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&]uh1jhjhMhjXubeh}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#rcu_dereference_protected (C macro)c.rcu_dereference_protectedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_protectedh]j)}(hrcu_dereference_protectedh]jg)}(hrcu_dereference_protectedh]jm)}(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&]jjjuh1jjjhjhhhj1hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjJjjJjjjuh1hhhhj:hNhNubh)}(h$``rcu_dereference_protected (p, c)``h]j)}(hjPh]h rcu_dereference_protected (p, c)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:hhubj)}(h)fetch RCU pointer when updates prevented h]h)}(h(fetch RCU pointer when updates preventedh]h(fetch RCU pointer when updates prevented}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjfubah}(h]h ]h"]h$]h&]uh1jhjxhMhj:hhubj)}(hX**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** Return the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does *not* prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks. This function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(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&]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)}(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.hhhNhNubjx)}(h*not*h]hnot}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj.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.hhMhjubh)}(hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h]hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference (C macro)c.rcu_dereferencehNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereferenceh]j)}(hrcu_dereferenceh]jg)}(hrcu_dereferenceh]jm)}(hjxh]hrcu_dereference}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjshhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(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.hhMhj:hhubj)}(h.fetch RCU-protected pointer for dereferencing h]h)}(h-fetch RCU-protected pointer for dereferencingh]h-fetch RCU-protected pointer for dereferencing}(hjζhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjʶubah}(h]h ]h"]h$]h&]uh1jhjܶhMhj:hhubj)}(h**Parameters** ``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}(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)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(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&]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().}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_bh (C macro)c.rcu_dereference_bhhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_bhh]j)}(hrcu_dereference_bhh]jg)}(hrcu_dereference_bhh]jm)}(hjh]hrcu_dereference_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h``rcu_dereference_bh (p)``h]j)}(hjh]hrcu_dereference_bh (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:hhubj)}(h4fetch an RCU-bh-protected pointer for dereferencing h]h)}(h3fetch an RCU-bh-protected pointer for dereferencingh]h3fetch an RCU-bh-protected pointer for dereferencing}(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:hhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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'hMhj ubah}(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)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_sched (C macro)c.rcu_dereference_schedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_schedh]j)}(hrcu_dereference_schedh]jg)}(hrcu_dereference_schedh]jm)}(hjh]hrcu_dereference_sched}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jmacroeh"]h$]h&]jjjj¸jj¸jjjuh1hhhhj:hNhNubh)}(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.hhMhj:hhubj)}(h4fetch RCU-sched-protected pointer for dereferencing h]h)}(h3fetch RCU-sched-protected pointer for dereferencingh]h3fetch RCU-sched-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM hj޸ubah}(h]h ]h"]h$]h&]uh1jhjhM hj:hhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(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&]uh1jhj1hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_dereference_all (C macro)c.rcu_dereference_allhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_dereference_allh]j)}(hrcu_dereference_allh]jg)}(hrcu_dereference_allh]jm)}(hjh]hrcu_dereference_all}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj̹jj̹jjjuh1hhhhj:hNhNubh)}(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.hhMhj:hhubj)}(h2fetch RCU-all-protected pointer for dereferencing h]h)}(h1fetch RCU-all-protected pointer for dereferencingh]h1fetch RCU-all-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj:hhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(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)}(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}(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)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_pointer_handoff (C macro)c.rcu_pointer_handoffhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_pointer_handoffh]j)}(hrcu_pointer_handoffh]jg)}(hrcu_pointer_handoffh]jm)}(hjh]hrcu_pointer_handoff}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjֺjjֺjjjuh1hhhhj:hNhNubh)}(h``rcu_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.hhMhj:hhubj)}(h/Hand off a pointer from RCU to other mechanism h]h)}(h.Hand off a pointer from RCU to other mechanismh]h.Hand off a pointer from RCU to other mechanism}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj:hhubj)}(hXk**Parameters** ``p`` The pointer to hand off **Description** This is simply an identity function, but it documents where a pointer is handed off from RCU to some other synchronization mechanism, for example, reference counting or locking. In C11, it would map to kill_dependency(). It could be used as follows:: rcu_read_lock(); p = rcu_dereference(gp); long_lived = is_long_lived(p); if (long_lived) { if (!atomic_inc_not_zero(p->refcnt)) long_lived = false; else p = rcu_pointer_handoff(p); } rcu_read_unlock();h](h)}(h**Parameters**h]j)}(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!hj ubj)}(hhh]j)}(h``p`` The pointer to hand off h](j)}(h``p``h]j)}(hj0h]hp}(hj2hhhNhNubah}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubah}(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&]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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_lock (C function)c.rcu_read_lockhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock (void)h]j)}(hvoid rcu_read_lock(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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}(hjhhhNhNubah}(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>jjjuh1hhhhj:hNhNubj)}(hX **Parameters** ``void`` no arguments **Description** When synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections. Both synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled. Note, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked. RCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes. You can avoid reading and understanding the next paragraph by following this rule: don't put anything in an rcu_read_lock() RCU read-side critical section that would block in a !PREEMPTION kernel. But if you want the full story, read on! In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU), it is illegal to block while in an RCU read-side critical section. In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION kernel builds, RCU read-side critical sections may be preempted, but explicit blocking is illegal. Finally, in preemptible RCU implementations in real-time (with -rt patchset) kernel builds, RCU read-side critical sections may be preempted and they may also block, but only when acquiring spinlocks that are subject to priority inheritance.h](h)}(h**Parameters**h]j)}(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:398: ./include/linux/rcupdate.hhM7hjBubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjgh]hvoid}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjaubj)}(hhh]h)}(h no argumentsh]h no arguments}(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&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjBubh)}(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.hhM4hjBubh)}(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<hjBubh)}(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@hjBubh)}(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.hhMLhjBubh)}(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.hhMPhjBubh)}(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.hhMUhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_unlock (C function)c.rcu_read_unlockhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_read_unlock (void)h]j)}(hvoid rcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hj2hhhNhNubah}(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 }(hjAhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.hhhj@hMsubjg)}(hrcu_read_unlockh]jm)}(hrcu_read_unlockh]hrcu_read_unlock}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj.hhhj@hMsubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjkubah}(h]h ]h"]h$]h&]noemphjjuh1jhjgubah}(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&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled. See rcu_read_lock() for more information.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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.}(hj:hhhNhNubah}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_lock_bh (C function)c.rcu_read_lock_bhhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_bh (void)h]j)}(hvoid rcu_read_lock_bh(void)h](j )}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjehhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjehhhjwhMubjg)}(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&]jjuh1jfhjehhhjwhMubj)}(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&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhj^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^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hXb**Parameters** ``void`` no arguments **Description** This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated. Note that rcu_read_lock_bh() and the matching rcu_read_unlock_bh() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_bh() from one task if the matching rcu_read_lock_bh() was invoked from some other task.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhj 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)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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.}(hjbhhhNhNubah}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_read_unlock_bh (C function)c.rcu_read_unlock_bhhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_read_unlock_bh (void)h]j)}(hvoid rcu_read_unlock_bh(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrcu_read_unlock_bhh]jm)}(hrcu_read_unlock_bhh]hrcu_read_unlock_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(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&]jjjjjjjjjuh1hhhhj:hNhNubj)}(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)}(hjHh]hvoid}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjBubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_read_lock_sched (C function)c.rcu_read_lock_schedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_sched (void)h]j)}(hvoid rcu_read_lock_sched(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrcu_read_lock_schedh]jm)}(hrcu_read_lock_schedh]hrcu_read_lock_sched}(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)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** This is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated. Note that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjKubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjph]hvoid}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjgubah}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjKubh)}(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.hhMhjKubh)}(hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.h]hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_read_unlock_sched (C function)c.rcu_read_unlock_schedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h!void rcu_read_unlock_sched (void)h]j)}(h void rcu_read_unlock_sched(void)h](j )}(hvoidh]hvoid}(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&]uh1jhjhhhj hMubjg)}(hrcu_read_unlock_schedh]jm)}(hrcu_read_unlock_schedh]hrcu_read_unlock_sched}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj)}(hhh]h)}(h/marks the end of a RCU-classic critical sectionh]h/marks the end of a RCU-classic critical section}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1hhhhj:hNhNubj)}(hi**Parameters** ``void`` no arguments **Description** See rcu_read_lock_sched() for more information.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhKhjubh)}(h/See rcu_read_lock_sched() for more information.h]h/See rcu_read_lock_sched() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hRCU_INIT_POINTER (C macro)c.RCU_INIT_POINTERhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hRCU_INIT_POINTERh]j)}(hRCU_INIT_POINTERh]jg)}(hRCU_INIT_POINTERh]jm)}(hj!h]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&]jjjjWjjWjjjuh1hhhhj:hNhNubh)}(h``RCU_INIT_POINTER (p, v)``h]j)}(hj]h]hRCU_INIT_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.hhMhj:hhubj)}(h$initialize an RCU protected pointer h]h)}(h#initialize an RCU protected pointerh]h#initialize an RCU protected pointer}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjsubah}(h]h ]h"]h$]h&]uh1jhjhMhj:hhubj)}(hX<**Parameters** ``p`` The pointer to be initialized. ``v`` The value to initialized the pointer to. **Description** Initialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are: 1. This use of RCU_INIT_POINTER() is NULLing out the pointer *or* 2. The caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or* 3. The referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and* a. You have not made *any* reader-visible changes to this structure since then *or* b. It is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) Failure to follow these rules governing use of RCU_INIT_POINTER() will result in impossible-to-diagnose memory corruption. As in the structures will look OK in crash dumps, but any concurrent RCU readers might see pre-initialized values of the referenced data structure. So please be very careful how you use RCU_INIT_POINTER()!!! If you are creating an RCU-protected linked structure that is accessed by a single external-to-structure RCU-protected pointer, then you may use RCU_INIT_POINTER() to initialize the internal RCU-protected pointers, but you must use rcu_assign_pointer() to initialize the external-to-structure pointer *after* you have completely initialized the reader-accessible portions of the linked structure. Note that unlike rcu_assign_pointer(), RCU_INIT_POINTER() provides no ordering guarantees for either the CPU or the compiler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh](j)}(h%``p`` The pointer to be initialized. h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubj)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]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:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubjG)}(hhh](j)}(h>This use of RCU_INIT_POINTER() is NULLing out the pointer *or*h]h)}(hjOh](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(hjQhhhNhNubjx)}(h*or*h]hor}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjQubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjMubah}(h]h ]h"]h$]h&]uh1jhjJubj)}(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 }(hjwhhhNhNubjx)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjwubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjsubah}(h]h ]h"]h$]h&]uh1jhjJubj)}(hXThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and* a. You have not made *any* reader-visible changes to this structure since then *or* b. It is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) h](h)}(hzThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and*h](huThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() }(hjhhhNhNubjx)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubjG)}(hhh](j)}(hPYou have not made *any* reader-visible changes to this structure since then *or*h]h)}(hPYou have not made *any* reader-visible changes to this structure since then *or*h](hYou have not made }(hjhhhNhNubjx)}(h*any*h]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubh5 reader-visible changes to this structure since then }(hjhhhNhNubjx)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hIt is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) h]h)}(hIt is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.)h]hIt is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jiHjCjkHhjlHjmHuh1jGhjubeh}(h]h ]h"]h$]h&]uh1jhjJubeh}(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 }(hj1hhhNhNubjx)}(h*after*h]hafter}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jwhj1ubhX you have completely initialized the reader-accessible portions of the linked structure.}(hj1hhhNhNubeh}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!RCU_POINTER_INITIALIZER (C macro)c.RCU_POINTER_INITIALIZERhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hRCU_POINTER_INITIALIZERh]j)}(hRCU_POINTER_INITIALIZERh]jg)}(hRCU_POINTER_INITIALIZERh]jm)}(hj{h]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&]jjjuh1jjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjvhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjvhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h"``RCU_POINTER_INITIALIZER (p, v)``h]j)}(hjh]hRCU_POINTER_INITIALIZER (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj:hhubj)}(h/statically initialize an RCU protected pointer h]h)}(h.statically initialize an RCU protected pointerh]h.statically initialize an RCU protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj:hhubj)}(h**Parameters** ``p`` The pointer to be initialized. ``v`` The value to initialized the pointer to. **Description** GCC-style initialization for an RCU-protected pointer in a structure field.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.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&]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)}(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)}(hjDh]hv}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhMhj>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&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hkfree_rcu (C macro) c.kfree_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h kfree_rcuh]j)}(h kfree_rcuh]jg)}(h kfree_rcuh]jm)}(hjh]h kfree_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM$ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM$hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h``kfree_rcu (ptr, rhf)``h]j)}(hjh]hkfree_rcu (ptr, rhf)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:398: ./include/linux/rcupdate.hhM&hj:hhubj)}(h&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$hj:hhubj)}(hX,**Parameters** ``ptr`` pointer to kfree for double-argument invocations. ``rhf`` the name of the struct rcu_head within the type of **ptr**. **Description** Many rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time. The kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes. The object to be freed can be allocated either by kmalloc() 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}(hj1hhhNhNubah}(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)}(hjNh]hptr}(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.hhM%hjHubj)}(hhh]h)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM%hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM%hjEubj)}(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&hjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]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)}(hj5h]hvoid}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_is_watching (C function)c.rcu_is_watchinghNtauh1hhj:hhhNhNubh)}(hhh](j)}(h#notrace bool rcu_is_watching (void)h]j)}(h"notrace bool rcu_is_watching(void)h](hnotrace}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj )}(hj8h]hbool}(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}(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)}(h9RCU read-side critical sections permitted on current CPU?h]h9RCU read-side critical sections permitted on current CPU?}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhj:hNhNubj)}(hXo**Parameters** ``void`` no arguments **Description** Return **true** if RCU is watching the running CPU and **false** otherwise. An **true** return means that this CPU can safely enter RCU read-side critical sections. Although calls to rcu_is_watching() from most parts of the kernel will return **true**, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return **false**. Make notrace because it can be called by the internal functions of ftrace, and making this notrace removes unnecessary recursion calls.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjgubj)}(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&]uh1jhjgubh)}(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.chKhjgubh)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM return means that this CPU can safely enter RCU read-side critical sections.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjgubh)}(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.chMhjgubh)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_set_gpwrap_lag (C function)c.rcu_set_gpwrap_laghNtauh1hhj:hhhNhNubh)}(hhh](j)}(h/void rcu_set_gpwrap_lag (unsigned long lag_gps)h]j)}(h.void rcu_set_gpwrap_lag(unsigned long lag_gps)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM ubjg)}(hrcu_set_gpwrap_lagh]jm)}(hrcu_set_gpwrap_lagh]hrcu_set_gpwrap_lag}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM ubj)}(h(unsigned long lag_gps)h]j)}(hunsigned long lag_gpsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubjm)}(hlag_gpsh]hlag_gps}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhM ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjyhhubj)}(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 hj hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhj:hNhNubj)}(h**Parameters** ``unsigned long lag_gps`` Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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)}(hjdh]hunsigned long lag_gps}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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 hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM hj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu_hurry (C function)c.call_rcu_hurryhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h@void call_rcu_hurry (struct rcu_head *head, rcu_callback_t func)h]j)}(h?void call_rcu_hurry(struct rcu_head *head, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMP ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMP ubjg)}(hcall_rcu_hurryh]jm)}(hcall_rcu_hurryh]hcall_rcu_hurry}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMP ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(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_hurryasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hheadh]hhead}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(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 ]jGc.call_rcu_hurryasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj{ubjm)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMP ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMP ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMP 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.chMP hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMP ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hXS**Parameters** ``struct rcu_head *head`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. Use this API instead of call_rcu() if you don't want the callback to be delayed for very long periods of time, which can happen on systems without memory pressure and on systems which are lightly loaded or mostly idle. This function will cause callbacks to be invoked sooner than later at the expense of extra power. Other than that, this function is identical to, and reuses call_rcu()'s logic. Refer to call_rcu() for more details about memory ordering and other functionality.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.chMT 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.chMT hjubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMT hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMT 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)}(hjRh]hrcu_callback_t func}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMU hjLubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMU hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMU 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.chMW 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.chMV 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.chMZ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu (C function) c.call_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h:void call_rcu (struct rcu_head *head, rcu_callback_t func)h]j)}(h9void call_rcu(struct rcu_head *head, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMm ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMm ubjg)}(hcall_rcuh]jm)}(hcall_rcuh]hcall_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMm ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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&]uh1jlhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj>modnameN classnameNjI jL )}jO ]jR )}jE jsb c.call_rcuasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hheadh]hhead}(hjwhhhNhNubah}(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 ]jX 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&]jjuh1jhjhhhjhMm ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMm ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMm 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().1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMm hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMm ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX& **Parameters** ``struct rcu_head *head`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked. It is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler. RCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers. Note that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when "func()" is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of "func()" must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel. Furthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function "func()", then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of "func()" -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU). Implementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst. Specific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(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.chMq 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.chMr hj$ubj)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hMr hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMr hj!ubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjch]hrcu_callback_t func}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMs 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}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMs hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMs 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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMu 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.chMt 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.chMz 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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_rcu (C function)c.synchronize_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid synchronize_rcu (void)h]j)}(hvoid synchronize_rcu(void)h](j )}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhjKhM ubjg)}(hsynchronize_rcuh]jm)}(hsynchronize_rcuh]hsynchronize_rcu}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhjKhM ubj)}(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&]jjuh1jhj9hhhjKhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjKhM ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhM hj2hhubj)}(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&]uh1jhj2hhhjKhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a full grace period has elapsed, in other words after all currently executing RCU read-side critical sections have completed. Note, however, that upon return from synchronize_rcu(), the caller might well be executing concurrently with new RCU read-side critical sections that began while synchronize_rcu() was waiting. RCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers. Note that this guarantee implies further memory-ordering guarantees. On systems with more than one CPU, when synchronize_rcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to synchronize_rcu(). In addition, each CPU having an RCU read-side critical section that extends beyond the return from synchronize_rcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_rcu() and before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel. Furthermore, if CPU A invoked synchronize_rcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_rcu() -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU). Implementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]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.}(hj6hhhNhNubah}(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.}(hjEhhhNhNubah}(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.}(hjThhhNhNubah}(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).}(hjchhhNhNubah}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/get_completed_synchronize_rcu_full (C function)$c.get_completed_synchronize_rcu_fullhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hGvoid get_completed_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hFvoid get_completed_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM1 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM1 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&]jjuh1jfhjhhhjhM1 ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb$c.get_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}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM1 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM1 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM1 hjhhubj)}(hhh]h)}(h/Return a full pre-completed polled state cookieh]h/Return a full pre-completed polled state cookie}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM1 hj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM1 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` Place to put state cookie **Description** Stores into **rgosp** a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM5 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.chM2 hjubj)}(hhh]h)}(hPlace to put state cookieh]hPlace to put state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2 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.chM4 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.chM3 hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&get_state_synchronize_rcu (C function)c.get_state_synchronize_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h.unsigned long get_state_synchronize_rcu (void)h]j)}(h-unsigned long get_state_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM@ ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhjBhM@ ubj )}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj0hhhjBhM@ ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0hhhjBhM@ ubjg)}(hget_state_synchronize_rcuh]jm)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hjqhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj0hhhjBhM@ 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&]jjuh1jhj0hhhjBhM@ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhM@ ubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhM@ 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.chM@ hjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhM@ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMD 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 hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMA hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+get_state_synchronize_rcu_full (C function) c.get_state_synchronize_rcu_fullhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hCvoid get_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hBvoid get_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjthhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMR ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjthhhjhMR 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&]jjuh1jfhjthhhjhMR ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb c.get_state_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(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&]jjuh1jhjthhhjhMR ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjhMR ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhMR hjmhhubj)}(hhh]h)}(h-Snapshot RCU state, both normal and expeditedh]h-Snapshot RCU state, both normal and expedited}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMR hj5hhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhMR ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` location to place combined normal/expedited grace-period state **Description** Places the normal and expedited grace-period states in **rgosp**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. The rcu_gp_oldstate structure takes up twice the memory of an unsigned long, but is guaranteed to see all grace periods. In contrast, the combined state occupies less memory, but can sometimes fail to take grace periods into account. This does not guarantee that the needed grace period will actually start.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMV hjTubj)}(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)}(hjyh]hstruct rcu_gp_oldstate *rgosp}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMS hjsubj)}(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&]uh1hhjhMS hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMS hjpubah}(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&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMU hjTubh)}(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.chMT hjTubh)}(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.chM] hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'start_poll_synchronize_rcu (C function)c.start_poll_synchronize_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h/unsigned long start_poll_synchronize_rcu (void)h]j)}(h.unsigned long start_poll_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhj(hM ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj(hM ubjg)}(hstart_poll_synchronize_rcuh]jm)}(hstart_poll_synchronize_rcuh]hstart_poll_synchronize_rcu}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj(hM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjoubah}(h]h ]h"]h$]h&]noemphjjuh1jhjkubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj(hM hjhhubj)}(hhh]h)}(h#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&]uh1jhjhhhj(hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX_**Parameters** ``void`` no arguments **Description** Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,start_poll_synchronize_rcu_full (C function)!c.start_poll_synchronize_rcu_fullhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hDvoid start_poll_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hCvoid start_poll_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZhhhjlhM ubjg)}(hstart_poll_synchronize_rcu_fullh]jm)}(hstart_poll_synchronize_rcu_fullh]hstart_poll_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZhhhjlhM ubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.start_poll_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(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&]jjuh1jhjZhhhjlhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhM ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjlhM hjShhubj)}(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&]uh1jhjShhhjlhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhj:hNhNubj)}(hX"**Parameters** ``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() **Description** Places the normal and expedited grace-period states in ***rgos**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj:ubj)}(hhh]j)}(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}(hjahhhNhNubah}(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 hjYubj)}(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()}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj:ubh)}(hXPlaces the normal and expedited grace-period states in ***rgos**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h](h7Places the normal and expedited grace-period states in }(hjhhhNhNubj)}(h ***rgos**h]h*rgos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXK. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'poll_state_synchronize_rcu (C function)c.poll_state_synchronize_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h8bool poll_state_synchronize_rcu (unsigned long oldstate)h]j)}(h7bool poll_state_synchronize_rcu(unsigned long oldstate)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(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 }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubjm)}(holdstateh]holdstate}(hjehhhNhNubah}(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&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``unsigned long oldstate`` value from get_state_synchronize_rcu() or start_poll_synchronize_rcu() **Description** If a full RCU grace period has elapsed since the earlier call from which **oldstate** was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **oldstate** to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state. In addition, because oldstate compresses the grace-period state for both normal and expedited grace periods into a single unsigned long, it can miss a grace period when synchronize_rcu() runs concurrently with synchronize_rcu_expedited(). If this is unacceptable, please instead use the _full() variant of these polling APIs. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate**, and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubj)}(hhh]j)}(hb``unsigned long oldstate`` value from get_state_synchronize_rcu() or start_poll_synchronize_rcu() h](j)}(h``unsigned long oldstate``h]j)}(hjh]hunsigned long oldstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubj)}(hhh]h)}(hFvalue from get_state_synchronize_rcu() or start_poll_synchronize_rcu()h]hFvalue from get_state_synchronize_rcu() or start_poll_synchronize_rcu()}(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&]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 }(hj!hhhNhNubj)}(h **oldstate**h]holdstate}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh was obtained, return }(hj!hhhNhNubj)}(h**true**h]htrue}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh, otherwise return }(hj!hhhNhNubj)}(h **false**h]hfalse}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh. If }(hj!hhhNhNubj)}(h **false**h]hfalse}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hj!hhhNhNubj)}(h**true**h]htrue}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hj!hhhNhNubj)}(h **oldstate**h]holdstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh 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.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXFIn addition, because oldstate compresses the grace-period state for both normal and expedited grace periods into a single unsigned long, it can miss a grace period when synchronize_rcu() runs concurrently with synchronize_rcu_expedited(). If this is unacceptable, please instead use the _full() variant of these polling APIs.h]hXFIn addition, because oldstate compresses the grace-period state for both normal and expedited grace periods into a single unsigned long, it can miss a grace period when synchronize_rcu() runs concurrently with synchronize_rcu_expedited(). If this is unacceptable, please instead use the _full() variant of these polling APIs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate**, and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0, and that returned at the end of this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,poll_state_synchronize_rcu_full (C function)!c.poll_state_synchronize_rcu_fullhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hDbool poll_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(hCbool poll_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]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)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjUhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.poll_state_synchronize_rcu_fullasbuh1hhj3ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(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&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hXl**Parameters** ``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() **Description** If a full RCU grace period has elapsed since the earlier call from which *rgosp was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **rgosp** to cond_synchronize_rcu() or by directly invoking synchronize_rcu(). Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep rcu_gp_oldstate values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu_full() to get a guaranteed-completed grace-period state. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **rgosp**, and that returned at the end of this function. And this guarantee requires that the root rcu_node structure's ->gp_seq field be checked instead of that of the rcu_state structure. The problem is that the just-ending grace-period's callbacks can be invoked between the time that the root rcu_node structure's ->gp_seq field is updated and the time that the rcu_state structure's ->gp_seq field is updated. Therefore, if a single synchronize_rcu() is to cause a subsequent poll_state_synchronize_rcu_full() to return **true**, then the root rcu_node structure is the one that needs to be polled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubj)}(hhh]j)}(hs``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() h](j)}(h!``struct rcu_gp_oldstate *rgosp``h]j)}(hjh]hstruct rcu_gp_oldstate *rgosp}(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)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api: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 }(hjLhhhNhNubjx)}(h$*rgosp was obtained, return **true**h]h"rgosp was obtained, return **true*}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jwhjLubh, otherwise return }(hjLhhhNhNubj)}(h **false**h]hfalse}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh. If }(hjLhhhNhNubj)}(h **false**h]hfalse}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjLhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjLhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep rcu_gp_oldstate values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu_full() to get a guaranteed-completed grace-period state.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep rcu_gp_oldstate values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu_full() to get a guaranteed-completed grace-period state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubh)}(hXThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **rgosp**, and that returned at the end of this function. And this guarantee requires that the root rcu_node structure's ->gp_seq field be checked instead of that of the rcu_state structure. The problem is that the just-ending grace-period's callbacks can be invoked between the time that the root rcu_node structure's ->gp_seq field is updated and the time that the rcu_state structure's ->gp_seq field is updated. Therefore, if a single synchronize_rcu() is to cause a subsequent poll_state_synchronize_rcu_full() to return **true**, then the root rcu_node structure is the one that needs to be polled.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hjhhhNhNubj)}(h **rgosp**h]hrgosp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX, and that returned at the end of this function. And this guarantee requires that the root rcu_node structure’s ->gp_seq field be checked instead of that of the rcu_state structure. The problem is that the just-ending grace-period’s callbacks can be invoked between the time that the root rcu_node structure’s ->gp_seq field is updated and the time that the rcu_state structure’s ->gp_seq field is updated. Therefore, if a single synchronize_rcu() is to cause a subsequent poll_state_synchronize_rcu_full() to return }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhF, then the root rcu_node structure is the one that needs to be polled.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!cond_synchronize_rcu (C function)c.cond_synchronize_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h2void cond_synchronize_rcu (unsigned long oldstate)h]j)}(h1void cond_synchronize_rcu(unsigned long oldstate)h](j )}(hvoidh]hvoid}(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}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj%hMubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubj )}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPubjm)}(holdstateh]holdstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)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&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hXs**Parameters** ``unsigned long oldstate`` value from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited() **Description** If a full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu() or start_poll_synchronize_rcu(), just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate** and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.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)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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.}(hjHhhhNhNubah}(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.}(hjWhhhNhNubah}(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 }(hjfhhhNhNubj)}(h **oldstate**h]holdstate}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh/ and that returned at the end of this function.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&cond_synchronize_rcu_full (C function)c.cond_synchronize_rcu_fullhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h>void cond_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp)h]j)}(h=void cond_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.cond_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM)hjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() **Description** If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **rgosp** was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **rgosp** and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM-hjubj)}(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.chM,hjubh)}(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.chM1hjubh)}(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}(hj1hhhNhNubah}(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.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_barrier (C function) c.rcu_barrierhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_barrier (void)h]j)}(hvoid rcu_barrier(void)h](j )}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjfhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjfhhhjxhMubjg)}(h rcu_barrierh]jm)}(h rcu_barrierh]h rcu_barrier}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhhjxhMubj)}(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&]jjuh1jhjfhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhj_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_hhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX>**Parameters** ``void`` no arguments **Description** Note that this primitive does not necessarily wait for an RCU grace period to complete. For example, if there are no RCU callbacks queued anywhere in the system, then rcu_barrier() is within its rights to return immediately, without waiting for anything, much less an RCU grace period. In fact, rcu_barrier() will normally not result in any RCU grace periods beyond those that were already destined to be executed. In kernels built with CONFIG_RCU_LAZY=y, this function also hurries all pending lazy RCU callbacks.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(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'hKhj ubah}(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&]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.}(hjchhhNhNubah}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_barrier_throttled (C function)c.rcu_barrier_throttledhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h!void rcu_barrier_throttled (void)h]j)}(h void rcu_barrier_throttled(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chM@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM@ubjg)}(hrcu_barrier_throttledh]jm)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM@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&]jjuh1jhjhhhjhM@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM@ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM@hjhhubj)}(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.chM@hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj:hNhNubj)}(hXl**Parameters** ``void`` no arguments **Description** This can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware's try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three. This is intended for use by test suites to avoid OOM by flushing RCU callbacks from the previous test before starting the next. See the rcutree.do_rcu_barrier module parameter for more information. Why not simply make rcu_barrier() more scalable? That might be the eventual endpoint, but let's keep it simple for the time being. Note that the module parameter infrastructure serializes calls to a given .set() function, but should concurrent .set() invocation ever be possible, we are ready!h](h)}(h**Parameters**h]j)}(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.chMDhj$ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjIh]hvoid}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:400: ./kernel/rcu/tree.chKhjCubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hKhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(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.chMAhj$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.chMGhj$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.chMKhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&synchronize_rcu_expedited (C function)c.synchronize_rcu_expeditedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h%void synchronize_rcu_expedited (void)h]j)}(h$void synchronize_rcu_expedited(void)h](j )}(hvoidh]hvoid}(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 hj ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]h)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Wait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock() to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately. Although this is a great improvement over previous expedited implementations, it is still unfriendly to real-time workloads, so is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited() in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu() instead. This has the same semantics as (but is more brutal than) synchronize_rcu().h](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjjubj)}(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&]uh1jhjjubh)}(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.hhKhjjubh)}(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.hhMhjjubh)}(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.hhMhjjubh)}(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.hhMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h1start_poll_synchronize_rcu_expedited (C function)&c.start_poll_synchronize_rcu_expeditedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h9unsigned long start_poll_synchronize_rcu_expedited (void)h]j)}(h8unsigned long start_poll_synchronize_rcu_expedited(void)h](j )}(hunsignedh]hunsigned}(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)hhhj;hMubj )}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)hhhj;hMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj;hMubjg)}(h$start_poll_synchronize_rcu_expeditedh]jm)}(h$start_poll_synchronize_rcu_expeditedh]h$start_poll_synchronize_rcu_expedited}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(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&]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;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"hhhj;hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX}**Parameters** ``void`` no arguments **Description** Returns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhKhjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h6start_poll_synchronize_rcu_expedited_full (C function)+c.start_poll_synchronize_rcu_expedited_fullhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hNvoid start_poll_synchronize_rcu_expedited_full (struct rcu_gp_oldstate *rgosp)h]j)}(hMvoid start_poll_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)h](j )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjmhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjmhhhjhMubjg)}(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&]jjuh1jfhjmhhhjhMubj)}(h(struct rcu_gp_oldstate *rgosp)h]j)}(hstruct rcu_gp_oldstate *rgosph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsb+c.start_poll_synchronize_rcu_expedited_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosph]hrgosp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjfhhubj)}(hhh]h)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hj1hhhNhNubah}(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&]uh1jhjfhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp`` Place to put snapshot of grace-period state **Description** Places the normal and expedited grace-period states in rgosp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjMubj)}(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)}(hjrh]hstruct rcu_gp_oldstate *rgosp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjlubj)}(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&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhjiubah}(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&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:402: ./kernel/rcu/tree_exp.hhMhjMubh)}(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.hhMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+cond_synchronize_rcu_expedited (C function) c.cond_synchronize_rcu_expeditedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhjubj)}(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)}(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;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+get_completed_synchronize_srcu (C function) c.get_completed_synchronize_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h3unsigned long get_completed_synchronize_srcu (void)h]j)}(h2unsigned long get_completed_synchronize_srcu(void)h](j )}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKbubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhKbubj )}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj:hhhjLhKbubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj:hhhjLhKbubjg)}(hget_completed_synchronize_srcuh]jm)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj:hhhjLhKbubj)}(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:hhhjLhKbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhKbubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhKbhj3hhubj)}(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.hhKbhjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhKbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(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.hhKfhjubj)}(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)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(same_state_synchronize_srcu (C function)c.same_state_synchronize_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hSbool same_state_synchronize_srcu (unsigned long oldstate1, unsigned long oldstate2)h]j)}(hRbool same_state_synchronize_srcu(unsigned long oldstate1, unsigned long oldstate2)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj~hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~hhhjhKuubjg)}(hsame_state_synchronize_srcuh]jm)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj~hhhjhKuubj)}(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 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)}(h oldstate2h]h oldstate2}(hjGhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhKuubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhKuhjwhhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKuhjnhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``unsigned long oldstate1`` First old-state value. ``unsigned long oldstate2`` Second old-state value. **Description** The two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKyhjubj)}(hhh](j)}(h3``unsigned long oldstate1`` First old-state value. h](j)}(h``unsigned long oldstate1``h]j)}(hjh]hunsigned long oldstate1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKvhjubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubj)}(h4``unsigned long oldstate2`` Second old-state value. h](j)}(h``unsigned long oldstate2``h]j)}(hjh]hunsigned long oldstate2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKwhjubj)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubeh}(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.hhKyhjubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns }(hj<hhhNhNubj)}(h**true**h]htrue}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh% if the two values are identical and }(hj<hhhNhNubj)}(h **false**h]hfalse}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_read_lock_held (C function)c.srcu_read_lock_heldhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h7int srcu_read_lock_held (const struct srcu_struct *ssp)h]j)}(h6int srcu_read_lock_held(const struct srcu_struct *ssp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hsrcu_read_lock_heldh]jm)}(hsrcu_read_lock_heldh]hsrcu_read_lock_held}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(const struct srcu_struct *ssp)h]j)}(hconst struct srcu_struct *ssph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]hstruct}(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}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_lock_heldasbuh1hhjubj)}(h h]h }(hj% hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj3 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(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/might we be in SRCU read-side critical section?h]h/might we be in SRCU read-side critical section?}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjg hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj:hNhNubj)}(hXj**Parameters** ``const struct srcu_struct *ssp`` The srcu_struct structure to check **Description** If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise. Checks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh]j)}(hE``const struct srcu_struct *ssp`` The srcu_struct structure to check h](j)}(h!``const struct srcu_struct *ssp``h]j)}(hj h]hconst struct 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.hhKhj ubj)}(hhh]h)}(h"The srcu_struct structure to checkh]h"The srcu_struct structure to check}(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&]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.}(hj hhhNhNubah}(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.}(hj hhhNhNubah}(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.}(hj hhhNhNubah}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_dereference_check (C macro)c.srcu_dereference_checkhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hsrcu_dereference_checkh]j)}(hsrcu_dereference_checkh]jg)}(hsrcu_dereference_checkh]jm)}(hjC h]hsrcu_dereference_check}(hjM hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjI ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjE hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjA 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&]jjjjy jjy jjjuh1hhhhj:hNhNubh)}(h&``srcu_dereference_check (p, ssp, c)``h]j)}(hj h]h"srcu_dereference_check (p, ssp, c)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj} ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj:hhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj hKhj:hhubj)}(hX**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. ``c`` condition to check for update-side use **Description** If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat, unless **c** evaluates to 1. The **c** argument will normally be a logical expression containing lockdep_is_held() calls.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hj h]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j)}(h``ssp``h]j)}(hj h]hssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj" ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj! hKhj ubj)}(h-``c`` condition to check for update-side use h](j)}(h``c``h]j)}(hjF h]hc}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj@ ubj)}(hhh]h)}(h&condition to check for update-side useh]h&condition to check for update-side use}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubh)}(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 }(hj hhhNhNubj)}(h**c**h]hc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh evaluates to 1. The }(hj hhhNhNubj)}(h**c**h]hc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hj hhhNhNubeh}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_dereference (C macro)c.srcu_dereferencehNtauh1hhj:hhhNhNubh)}(hhh](j)}(hsrcu_dereferenceh]j)}(hsrcu_dereferenceh]jg)}(hsrcu_dereferenceh]jm)}(hj h]hsrcu_dereference}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]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&]jjjj jj jjjuh1hhhhj:hNhNubh)}(h``srcu_dereference (p, ssp)``h]j)}(hj h]hsrcu_dereference (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.hhKhj:hhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj6 ubah}(h]h ]h"]h$]h&]uh1jhjH hKhj:hhubj)}(hX**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. **Description** Makes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h](h)}(h**Parameters**h]j)}(hjU h]h Parameters}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjO ubj)}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjt h]hp}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjn ubj)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjn ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjk ubj)}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j)}(h``ssp``h]j)}(hj h]hssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjk ubeh}(h]h ]h"]h$]h&]uh1jhjO ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjO 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjO ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_dereference_notrace (C macro)c.srcu_dereference_notracehNtauh1hhj:hhhNhNubh)}(hhh](j)}(hsrcu_dereference_notraceh]j)}(hsrcu_dereference_notraceh]jg)}(hsrcu_dereference_notraceh]jm)}(hj( h]hsrcu_dereference_notrace}(hj2 hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj. ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj* hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj& hhhjE hKubah}(h]j! ah ](jjeh"]h$]h&]jj)jhuh1hhjE hKhj# hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj# hhhjE hKubeh}(h]h ](jmacroeh"]h$]h&]jjjj^ jj^ jjjuh1hhhhj:hNhNubh)}(h%``srcu_dereference_notrace (p, ssp)``h]j)}(hjd h]h!srcu_dereference_notrace (p, ssp)}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj:hhubj)}(h*no tracing and no lockdep calls from here h]h)}(h)no tracing and no lockdep calls from hereh]h)no tracing and no lockdep calls from here}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjz ubah}(h]h ]h"]h$]h&]uh1jhj hKhj:hhubj)}(h**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hj h]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(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)}(hj h]hssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj ubj)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_read_lock (C function)c.srcu_read_lockhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h,int srcu_read_lock (struct srcu_struct *ssp)h]j)}(h+int srcu_read_lock(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjFhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFhhhjXhKubjg)}(hsrcu_read_lockh]jm)}(hsrcu_read_lockh]hsrcu_read_lock}(hjkhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjFhhhjXhKubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jmsbc.srcu_read_lockasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhKubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhKhj?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.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section. 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)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj&ubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjKh]hstruct srcu_struct *ssp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhjEubj)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj&ubh)}(hXEnter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited().h]hXEnter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj&ubh)}(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.hhMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_read_lock_fast (C function)c.srcu_read_lock_fasthNtauh1hhj:hhhNhNubh)}(hhh](j)}(hHstruct srcu_ctr __percpu * srcu_read_lock_fast (struct srcu_struct *ssp)h]j)}(hFstruct srcu_ctr __percpu *srcu_read_lock_fast(struct srcu_struct *ssp)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.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}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubh)}(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 ]jc.srcu_read_lock_fastasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjbubeh}(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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is NMI-safe, in a manner similar to srcu_read_lock_nmisafe(). For srcu_read_lock_fast() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST() or DEFINE_STATIC_SRCU_FAST() on the one hand or initialized with init_srcu_struct_fast() on the other. Such an srcu_struct structure cannot be passed to any non-fast variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this restriction. Grace-period auto-expediting is disabled for SRCU-fast srcu_struct structures because SRCU-fast expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast grace periods, use synchronize_srcu_expedited(). The srcu_read_lock_fast() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(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.}(hjAhhhNhNubah}(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)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is NMI-safe, in a manner similar to srcu_read_lock_nmisafe().h]hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is NMI-safe, in a manner similar to srcu_read_lock_nmisafe().}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(hXFor srcu_read_lock_fast() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST() or DEFINE_STATIC_SRCU_FAST() on the one hand or initialized with init_srcu_struct_fast() on the other. Such an srcu_struct structure cannot be passed to any non-fast variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this restriction.h]hXFor srcu_read_lock_fast() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST() or DEFINE_STATIC_SRCU_FAST() on the one hand or initialized with init_srcu_struct_fast() on the other. Such an srcu_struct structure cannot be passed to any non-fast variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this restriction.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM hjubh)}(hGrace-period auto-expediting is disabled for SRCU-fast srcu_struct structures because SRCU-fast expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast grace periods, use synchronize_srcu_expedited().h]hGrace-period auto-expediting is disabled for SRCU-fast srcu_struct structures because SRCU-fast expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast grace periods, use synchronize_srcu_expedited().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM)hjubh)}(hThe srcu_read_lock_fast() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h]hThe srcu_read_lock_fast() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'srcu_read_lock_fast_updown (C function)c.srcu_read_lock_fast_updownhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hOstruct srcu_ctr __percpu * srcu_read_lock_fast_updown (struct srcu_struct *ssp)h]j)}(hMstruct srcu_ctr __percpu *srcu_read_lock_fast_updown(struct srcu_struct *ssp)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM?ubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE srcu_read_lock_fast_updownsbc.srcu_read_lock_fast_updownasbuh1hhjhhhjhM?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM?ubh__percpu}(hjhhhNhNubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhM?ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM?ubjg)}(hsrcu_read_lock_fast_updownh]jm)}(hjh]hsrcu_read_lock_fast_updown}(hjFhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhM?ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj]ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.srcu_read_lock_fast_updownasbuh1hhj]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&]jjuh1jhjhhhjhM?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM?hjhhubj)}(hhh]h)}(h8register a new reader for an SRCU-fast-updown structure.h]h8register a new reader for an SRCU-fast-updown structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM?hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX5**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is compatible with srcu_down_read_fast(), but is not NMI-safe. For srcu_read_lock_fast_updown() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST_UPDOWN() or DEFINE_STATIC_SRCU_FAST_UPDOWN() on the one hand or initialized with init_srcu_struct_fast_updown() on the other. Such an srcu_struct structure cannot be passed to any non-fast-updown variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this * restriction. Grace-period auto-expediting is disabled for SRCU-fast-updown srcu_struct structures because SRCU-fast-updown expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast-updown grace periods, use synchronize_srcu_expedited(). The srcu_read_lock_fast_updown() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h](h)}(h**Parameters**h]j)}(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)}(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@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&]uh1hhj8hM@hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hM@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:406: ./include/linux/srcu.hhMBhjubh)}(hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is compatible with srcu_down_read_fast(), but is not NMI-safe.h]hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is compatible with srcu_down_read_fast(), but is not NMI-safe.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMAhjubh)}(hX For srcu_read_lock_fast_updown() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST_UPDOWN() or DEFINE_STATIC_SRCU_FAST_UPDOWN() on the one hand or initialized with init_srcu_struct_fast_updown() on the other. Such an srcu_struct structure cannot be passed to any non-fast-updown variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this * restriction.h]hX For srcu_read_lock_fast_updown() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST_UPDOWN() or DEFINE_STATIC_SRCU_FAST_UPDOWN() on the one hand or initialized with init_srcu_struct_fast_updown() on the other. Such an srcu_struct structure cannot be passed to any non-fast-updown variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this * restriction.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMFhjubh)}(hXGrace-period auto-expediting is disabled for SRCU-fast-updown srcu_struct structures because SRCU-fast-updown expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast-updown grace periods, use synchronize_srcu_expedited().h]hXGrace-period auto-expediting is disabled for SRCU-fast-updown srcu_struct structures because SRCU-fast-updown expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast-updown grace periods, use synchronize_srcu_expedited().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMOhjubh)}(hThe srcu_read_lock_fast_updown() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h]hThe srcu_read_lock_fast_updown() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMThjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_down_read_fast (C function)c.srcu_down_read_fasthNtauh1hhj:hhhNhNubh)}(hhh](j)}(hHstruct srcu_ctr __percpu * srcu_down_read_fast (struct srcu_struct *ssp)h]j)}(hFstruct srcu_ctr __percpu *srcu_down_read_fast(struct srcu_struct *ssp)h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMuubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE srcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhjhhhjhMuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMuubh__percpu}(hjhhhNhNubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMuubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMuubjg)}(hsrcu_down_read_fasth]jm)}(hj h]hsrcu_down_read_fast}(hjAhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMuubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj|modnameN classnameNjI jL )}jO ]j c.srcu_down_read_fastasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMuhjhhubj)}(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.hhMuhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information. The same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast(). However, the same definition/initialization requirements called out for srcu_read_lock_safe() apply.h](h)}(h**Parameters**h]j)}(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.hhMyhjubj)}(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}(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.hhMvhjubj)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMvhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMvhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMxhjubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMwhjubh)}(hThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast(). However, the same definition/initialization requirements called out for srcu_read_lock_safe() apply.h]hThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast(). However, the same definition/initialization requirements called out for srcu_read_lock_safe() apply.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM{hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#srcu_read_lock_nmisafe (C function)c.srcu_read_lock_nmisafehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h4int srcu_read_lock_nmisafe (struct srcu_struct *ssp)h]j)}(h3int srcu_read_lock_nmisafe(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsrcu_read_lock_nmisafeh]jm)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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_lock_nmisafeasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjChhhNhNubah}(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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hXu**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section, but in an NMI-safe manner. See srcu_read_lock() for more information. If srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjh]hstruct srcu_struct *ssp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubj)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(hIf srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.h]hIf srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_down_read (C function)c.srcu_down_readhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h,int srcu_down_read (struct srcu_struct *ssp)h]j)}(h+int srcu_down_read(struct srcu_struct *ssp)h](j )}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9hhhjKhMubjg)}(hsrcu_down_readh]jm)}(hsrcu_down_readh]hsrcu_down_read}(hj^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj9hhhjKhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(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 j`sbc.srcu_down_readasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(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)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX]**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter a semaphore-like SRCU read-side critical section. 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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubj)}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(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.hhMhj8ubj)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubh)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_read_unlock (C function)c.srcu_read_unlockhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h8void srcu_read_unlock (struct srcu_struct *ssp, int idx)h]j)}(h7void srcu_read_unlock(struct srcu_struct *ssp, int idx)h](j )}(hvoidh]hvoid}(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_unlockh]jm)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hjhhhNhNubah}(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)}(hjh]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}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj9modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_unlockasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjrhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(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&]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&]jjjjjjjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``int idx`` return value from corresponding srcu_read_lock(). **Description** Exit an SRCU read-side critical section.h](h)}(h**Parameters**h]j)}(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.hhMhj ubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj ubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hjKh]hint idx}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjEubj)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj 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)}(h(Exit an SRCU read-side critical section.h]h(Exit 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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_read_unlock_fast (C function)c.srcu_read_unlock_fasthNtauh1hhj:hhhNhNubh)}(hhh](j)}(hSvoid srcu_read_unlock_fast (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]j)}(hRvoid srcu_read_unlock_fast(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj(modnameN classnameNjI jL )}jO ]jR )}jE jsbc.srcu_read_unlock_fastasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hssph]hssp}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jBc.srcu_read_unlock_fastasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh__percpu}(hjvhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hscph]hscp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(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.}(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%jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). **Description** Exit a light-weight SRCU read-side critical section.h](h)}(h**Parameters**h]j)}(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.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)}(hjNh]hstruct srcu_struct *ssp}(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.hhMhjHubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(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&]uh1jhjhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj)ubh)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)srcu_read_unlock_fast_updown (C function)c.srcu_read_unlock_fast_updownhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hZvoid srcu_read_unlock_fast_updown (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]j)}(hYvoid srcu_read_unlock_fast_updown(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(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_fast_updownh]jm)}(hsrcu_read_unlock_fast_updownh]hsrcu_read_unlock_fast_updown}(hj(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj@ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjdmodnameN classnameNjI jL )}jO ]jR )}jE j*sbc.srcu_read_unlock_fast_updownasbuh1hhj@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&]noemphjjuh1jhj<ubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j~c.srcu_read_unlock_fast_updownasbuh1hhjubj)}(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)}(h;unregister a old reader from an SRCU-fast-updown structure.h]h;unregister a old reader from an SRCU-fast-updown structure.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1hhhhj:hNhNubj)}(hX **Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast_updown(). **Description** Exit an SRCU-fast-updown read-side critical section.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhjeubj)}(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.hhMhjubj)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h```struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast_updown(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(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)}(h=return value from corresponding srcu_read_lock_fast_updown().h]h=return value from corresponding srcu_read_lock_fast_updown().}(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)}(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.hhMhjeubh)}(h4Exit an SRCU-fast-updown read-side critical section.h]h4Exit an SRCU-fast-updown 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.hhMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_up_read_fast (C function)c.srcu_up_read_fasthNtauh1hhj:hhhNhNubh)}(hhh](j)}(hOvoid srcu_up_read_fast (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]j)}(hNvoid srcu_up_read_fast(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(hjChhhNhNubah}(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 }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?hhhjQhMubjg)}(hsrcu_up_read_fasth]jm)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hjdhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj?hhhjQhMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jfsbc.srcu_up_read_fastasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjm)}(hssph]hssp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct srcu_ctr __percpu *scph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hsrcu_ctrh]hsrcu_ctr}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jc.srcu_up_read_fastasbuh1hhjubj)}(h h]h }(hj. hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh__percpu}(hjhhhNhNubj)}(h h]h }(hj@ hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjN hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hscph]hscp}(hj[ hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj:hNhNubj)}(hXG**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). **Description** Exit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read_fast().h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubj)}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj h]hstruct srcu_struct *ssp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubj)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(hj h]hstruct srcu_ctr __percpu *scp}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMhj ubj)}(hhh]h)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hj!hhhNhNubah}(h]h ]h"]h$]h&]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``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hj$h]hint idx}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM-hj$ubj)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM-hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM-hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM/hj$ubh)}(hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().h]hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().}(hj.%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM.hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+smp_mb__after_srcu_read_unlock (C function) c.smp_mb__after_srcu_read_unlockhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h*void smp_mb__after_srcu_read_unlock (void)h]j)}(h)void smp_mb__after_srcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hj]%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjY%hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM<ubj)}(h h]h }(hjl%hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjY%hhhjk%hM<ubjg)}(hsmp_mb__after_srcu_read_unlockh]jm)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hj~%hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjz%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjY%hhhjk%hM<ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj%ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhjY%hhhjk%hM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjU%hhhjk%hM<ubah}(h]jP%ah ](jjeh"]h$]h&]jj)jhuh1hhjk%hM<hjR%hhubj)}(hhh]h)}(h+ensure full ordering after srcu_read_unlockh]h+ensure full ordering after srcu_read_unlock}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM<hj%hhubah}(h]h ]h"]h$]h&]uh1jhjR%hhhjk%hM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1hhhhj:hNhNubj)}(hX7**Parameters** ``void`` no arguments **Description** Converts the preceding srcu_read_unlock into a two-way memory barrier. Call this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM@hj%ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj&h]hvoid}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj%ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj&ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhj%ubah}(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&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj%ubh)}(hFConverts the preceding srcu_read_unlock into a two-way memory barrier.h]hFConverts the preceding srcu_read_unlock into a two-way memory barrier.}(hjV&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM=hj%ubh)}(hCall this after srcu_read_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.}(hje&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhM?hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)smp_mb__after_srcu_read_lock (C function)c.smp_mb__after_srcu_read_lockhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h(void smp_mb__after_srcu_read_lock (void)h]j)}(h'void smp_mb__after_srcu_read_lock(void)h](j )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj&hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMJubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&hhhj&hMJubjg)}(hsmp_mb__after_srcu_read_lockh]jm)}(hsmp_mb__after_srcu_read_lockh]hsmp_mb__after_srcu_read_lock}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj&hhhj&hMJubj)}(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&hMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj&hMJubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hMJhj&hhubj)}(hhh]h)}(h)ensure full ordering after srcu_read_lockh]h)ensure full ordering after srcu_read_lock}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMJhj&hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1hhhhj:hNhNubj)}(hX/**Parameters** ``void`` no arguments **Description** Converts the preceding srcu_read_lock into a two-way memory barrier. Call this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.h](h)}(h**Parameters**h]j)}(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.hhMNhj'ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj<'h]hvoid}(hj>'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:'ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj6'ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjU'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ'hKhjR'ubah}(h]h ]h"]h$]h&]uh1jhj6'ubeh}(h]h ]h"]h$]h&]uh1jhjQ'hKhj3'ubah}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]j)}(hjw'h]h Description}(hjy'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju'ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhKhj'ubh)}(hDConverts the preceding srcu_read_lock into a two-way memory barrier.h]hDConverts the preceding srcu_read_lock into a two-way memory barrier.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMKhj'ubh)}(hCall this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.h]hCall this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:406: ./include/linux/srcu.hhMMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hinit_srcu_struct (C function)c.init_srcu_structhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h.int init_srcu_struct (struct srcu_struct *ssp)h]j)}(h-int init_srcu_struct(struct srcu_struct *ssp)h](j )}(hinth]hint}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj'hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMCubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'hhhj'hMCubjg)}(hinit_srcu_structh]jm)}(hinit_srcu_structh]hinit_srcu_struct}(hj'hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj'hhhj'hMCubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj(ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj&(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj#(ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj((modnameN classnameNjI jL )}jO ]jR )}jE j'sbc.init_srcu_structasbuh1hhj(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)}(hssph]hssp}(hja(hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj'hMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj'hMCubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMChj'hhubj)}(hhh]h)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMChj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Use this in place of DEFINE_SRCU() and DEFINE_STATIC_SRCU() for non-static srcu_struct structures that are to be passed to srcu_read_lock(), srcu_read_lock_nmisafe(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h](h)}(h**Parameters**h]j)}(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.chMGhj(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}(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.chMDhj(ubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMDhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMDhj(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.chMFhj(ubh)}(hXdUse this in place of DEFINE_SRCU() and DEFINE_STATIC_SRCU() for non-static srcu_struct structures that are to be passed to srcu_read_lock(), srcu_read_lock_nmisafe(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h]hXdUse this in place of DEFINE_SRCU() and DEFINE_STATIC_SRCU() for non-static srcu_struct structures that are to be passed to srcu_read_lock(), srcu_read_lock_nmisafe(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMEhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"init_srcu_struct_fast (C function)c.init_srcu_struct_fasthNtauh1hhj:hhhNhNubh)}(hhh](j)}(h3int init_srcu_struct_fast (struct srcu_struct *ssp)h]j)}(h2int init_srcu_struct_fast(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjL)hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjH)hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMUubj)}(h h]h }(hj[)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjH)hhhjZ)hMUubjg)}(hinit_srcu_struct_fasth]jm)}(hinit_srcu_struct_fasth]hinit_srcu_struct_fast}(hjm)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhji)ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjH)hhhjZ)hMUubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj)modnameN classnameNjI jL )}jO ]jR )}jE jo)sbc.init_srcu_struct_fastasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjm)}(hssph]hssp}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubah}(h]h ]h"]h$]h&]jjuh1jhjH)hhhjZ)hMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjD)hhhjZ)hMUubah}(h]j?)ah ](jjeh"]h$]h&]jj)jhuh1hhjZ)hMUhjA)hhubj)}(hhh]h)}(h,initialize a fast-reader sleep-RCU structureh]h,initialize a fast-reader 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.chMUhj *hhubah}(h]h ]h"]h$]h&]uh1jhjA)hhhjZ)hMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$*jj$*jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Use this in place of DEFINE_SRCU_FAST() and DEFINE_STATIC_SRCU_FAST() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast() and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h](h)}(h**Parameters**h]j)}(hj.*h]h Parameters}(hj0*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.chMYhj(*ubj)}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjM*h]hstruct srcu_struct *ssp}(hjO*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK*ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMVhjG*ubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hjf*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb*hMVhjc*ubah}(h]h ]h"]h$]h&]uh1jhjG*ubeh}(h]h ]h"]h$]h&]uh1jhjb*hMVhjD*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.chMXhj(*ubh)}(hXWUse this in place of DEFINE_SRCU_FAST() and DEFINE_STATIC_SRCU_FAST() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast() and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h]hXWUse this in place of DEFINE_SRCU_FAST() and DEFINE_STATIC_SRCU_FAST() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast() and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMWhj(*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)init_srcu_struct_fast_updown (C function)c.init_srcu_struct_fast_updownhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h:int init_srcu_struct_fast_updown (struct srcu_struct *ssp)h]j)}(h9int init_srcu_struct_fast_updown(struct srcu_struct *ssp)h](j )}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj*hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMfubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj*hhhj*hMfubjg)}(hinit_srcu_struct_fast_updownh]jm)}(hinit_srcu_struct_fast_updownh]hinit_srcu_struct_fast_updown}(hj*hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj*hhhj*hMfubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj+ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj(+hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%+ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj*+modnameN classnameNjI jL )}jO ]jR )}jE j*sbc.init_srcu_struct_fast_updownasbuh1hhj+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}(hjc+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)}(h4initialize a fast-reader up/down sleep-RCU structureh]h4initialize a fast-reader up/down sleep-RCU structure}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMfhj+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Use this function in place of DEFINE_SRCU_FAST_UPDOWN() and DEFINE_STATIC_SRCU_FAST_UPDOWN() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast_updown(), srcu_down_read_fast(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h](h)}(h**Parameters**h]j)}(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.chMjhj+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}(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.chMghj+ubj)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(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}(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.chMihj+ubh)}(hXUse this function in place of DEFINE_SRCU_FAST_UPDOWN() and DEFINE_STATIC_SRCU_FAST_UPDOWN() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast_updown(), srcu_down_read_fast(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h]hXUse this function in place of DEFINE_SRCU_FAST_UPDOWN() and DEFINE_STATIC_SRCU_FAST_UPDOWN() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast_updown(), srcu_down_read_fast(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h srcu_readers_active (C function)c.srcu_readers_activehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h2bool srcu_readers_active (struct srcu_struct *ssp)h]j)}(h1bool srcu_readers_active(struct srcu_struct *ssp)h](j )}(hj8h]hbool}(hjN,hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjJ,hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMwubj)}(h h]h }(hj\,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjJ,hhhj[,hMwubjg)}(hsrcu_readers_activeh]jm)}(hsrcu_readers_activeh]hsrcu_readers_active}(hjn,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjJ,hhhj[,hMwubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj,hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,modnameN classnameNjI jL )}jO ]jR )}jE jp,sbc.srcu_readers_activeasbuh1hhj,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&]jjuh1jhjJ,hhhj[,hMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjF,hhhj[,hMwubah}(h]jA,ah ](jjeh"]h$]h&]jj)jhuh1hhj[,hMwhjC,hhubj)}(hhh]h)}(h6returns true if there are readers. and false otherwiseh]h6returns true if there are readers. and false otherwise}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMwhj -hhubah}(h]h ]h"]h$]h&]uh1jhjC,hhhj[,hMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%-jj%-jjjuh1hhhhj:hNhNubj)}(hX<**Parameters** ``struct srcu_struct *ssp`` which srcu_struct to count active readers (holding srcu_read_lock). **Description** Note that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.h](h)}(h**Parameters**h]j)}(hj/-h]h Parameters}(hj1-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj--ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM{hj)-ubj)}(hhh]j)}(h```struct srcu_struct *ssp`` which srcu_struct to count active readers (holding srcu_read_lock). h](j)}(h``struct srcu_struct *ssp``h]j)}(hjN-h]hstruct srcu_struct *ssp}(hjP-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL-ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMyhjH-ubj)}(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).}(hjg-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc-hMyhjd-ubah}(h]h ]h"]h$]h&]uh1jhjH-ubeh}(h]h ]h"]h$]h&]uh1jhjc-hMyhjE-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)}(hNote that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.h]hNote that this is not an atomic primitive, and can therefore suffer severe errors when invoked on an active srcu_struct. That said, it can be useful as an error check at cleanup time.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMzhj)-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h cleanup_srcu_struct (C function)c.cleanup_srcu_structhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h2void cleanup_srcu_struct (struct srcu_struct *ssp)h]j)}(h1void cleanup_srcu_struct(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(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)}(hcleanup_srcu_structh]jm)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hj-hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj-hhhj-hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj.ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj).hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj+.modnameN classnameNjI jL )}jO ]jR )}jE j-sbc.cleanup_srcu_structasbuh1hhj.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)}(hssph]hssp}(hjd.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhj-hhhj-hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj-hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMhj-hhubj)}(hhh]h)}(h!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&]uh1jhj-hhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhj:hNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` structure to clean up. **Description** Must invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.h](h)}(h**Parameters**h]j)}(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)}(h3``struct srcu_struct *ssp`` structure to clean up. 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)}(hstructure to clean up.h]hstructure to clean up.}(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)}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_srcu (C function) c.call_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hSvoid call_srcu (struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h]j)}(hRvoid call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hjO/hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjK/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&]uh1jhjK/hhhj]/hMubjg)}(h call_srcuh]jm)}(h call_srcuh]h call_srcu}(hjp/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjl/ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjK/hhhj]/hMubj)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/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 jr/sb 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)}(hssph]hssp}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj 0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj0modnameN classnameNjI jL )}jO ]j/ c.call_srcuasbuh1hhj/ubj)}(h h]h }(hj:0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubj)}(hjh]h*}(hjH0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjm)}(hrhph]hrhp}(hjU0hhhNhNubah}(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}(hjq0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjs0modnameN classnameNjI jL )}jO ]j/ c.call_srcuasbuh1hhjj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjj0ubjm)}(hfunch]hfunc}(hj0hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjK/hhhj]/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjG/hhhj]/hMubah}(h]jB/ah ](jjeh"]h$]h&]jj)jhuh1hhj]/hMhjD/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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjD/hhhj]/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in queue the callback ``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. ``rcu_callback_t func`` function to be invoked after the SRCU grace period **Description** The callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested. The callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block. See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj0ubj)}(hhh](j)}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback h](j)}(h``struct srcu_struct *ssp``h]j)}(hj1h]hstruct srcu_struct *ssp}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj1ubj)}(hhh]h)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(hj!1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubj)}(hN``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j)}(h``struct rcu_head *rhp``h]j)}(hjA1h]hstruct rcu_head *rhp}(hjC1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?1ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj;1ubj)}(hhh]h)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(hjZ1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV1hMhjW1ubah}(h]h ]h"]h$]h&]uh1jhj;1ubeh}(h]h ]h"]h$]h&]uh1jhjV1hMhj0ubj)}(hK``rcu_callback_t func`` function to be invoked after the SRCU grace period h](j)}(h``rcu_callback_t func``h]j)}(hjz1h]hrcu_callback_t func}(hj|1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx1ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjt1ubj)}(hhh]h)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjt1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj0ubh)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'synchronize_srcu_expedited (C function)c.synchronize_srcu_expeditedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h9void synchronize_srcu_expedited (struct srcu_struct *ssp)h]j)}(h8void synchronize_srcu_expedited(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj2hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMubj)}(h h]h }(hj'2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj2hhhj&2hMubjg)}(hsynchronize_srcu_expeditedh]jm)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(hj92hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj52ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj2hhhj&2hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjU2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ2ubj)}(h h]h }(hjb2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ2ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjs2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjp2ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetju2modnameN classnameNjI jL )}jO ]jR )}jE j;2sbc.synchronize_srcu_expeditedasbuh1hhjQ2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQ2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ2ubjm)}(hssph]hssp}(hj2hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQ2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjM2ubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhj&2hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj&2hMubah}(h]j 2ah ](jjeh"]h$]h&]jj)jhuh1hhj&2hMhj 2hhubj)}(hhh]h)}(hBrute-force SRCU grace periodh]hBrute-force SRCU grace period}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhj 2hhhj&2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhj:hNhNubj)}(hXQ**Parameters** ``struct srcu_struct *ssp`` srcu_struct with which to synchronize. **Description** Wait for an SRCU grace period to elapse, but be more aggressive about spinning rather than blocking when waiting. Note that synchronize_srcu_expedited() has the same deadlock and memory-ordering properties as does synchronize_srcu().h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj2ubj)}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj3h]hstruct srcu_struct *ssp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj3ubj)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hj23hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.3hMhj/3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj.3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]j)}(hjT3h]h Description}(hjV3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR3ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj2ubh)}(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.}(hjj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj2ubh)}(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().}(hjy3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_srcu (C function)c.synchronize_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h/void synchronize_srcu (struct srcu_struct *ssp)h]j)}(h.void synchronize_srcu(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj3hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3hhhj3hM ubjg)}(hsynchronize_srcuh]jm)}(hsynchronize_srcuh]hsynchronize_srcu}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj3hhhj3hM ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4modnameN classnameNjI jL )}jO ]jR )}jE j3sbc.synchronize_srcuasbuh1hhj3ubj)}(h h]h }(hj#4hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj14hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjm)}(hssph]hssp}(hj>4hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hM ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hM hj3hhubj)}(hhh]h)}(h9wait for prior SRCU read-side critical-section completionh]h9wait for prior SRCU read-side critical-section completion}(hjh4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM hje4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhj:hNhNubj)}(hX **Parameters** ``struct srcu_struct *ssp`` srcu_struct with which to synchronize. **Description** Wait for the count to drain to zero of both indexes. To avoid the possible starvation of synchronize_srcu(), it waits for the count of the index=!(ssp->srcu_ctrp - :c:type:`ssp->sda `->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index. Can block; must be called from process context. Note that it is illegal to call synchronize_srcu() from the corresponding SRCU read-side critical section; doing so will result in deadlock. However, it is perfectly legal to call synchronize_srcu() on one srcu_struct from some other srcu_struct's read-side critical section, as long as the resulting graph of srcu_structs is acyclic. There are memory-ordering constraints implied by synchronize_srcu(). On systems with more than one CPU, when synchronize_srcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last corresponding SRCU read-side critical section whose beginning preceded the call to synchronize_srcu(). In addition, each CPU having an SRCU read-side critical section that extends beyond the return from synchronize_srcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_srcu() and before the beginning of that SRCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel. Furthermore, if CPU A invoked synchronize_srcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_srcu(). This guarantee applies even if CPU A and CPU B are the same CPU, but again only if the system has more than one CPU. Of course, these memory-ordering guarantees apply only when synchronize_srcu(), srcu_read_lock(), and srcu_read_unlock() are passed the same srcu_struct structure. Implementation of these memory-ordering guarantees is similar to that of synchronize_rcu(). If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj4ubj)}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj4h]hstruct srcu_struct *ssp}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM hj4ubj)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj4ubh)}(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 - }(hj4hhhNhNubh)}(h:c:type:`ssp->sda `h]j)}(hj5h]hssp->sda}(hj5hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjsspuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj4ubhs->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!5hMhj4ubh)}(h/Can block; must be called from process context.h]h/Can block; must be called from process context.}(hj,5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj4ubh)}(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;5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj4ubh)}(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.}(hjJ5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj4ubh)}(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.}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM(hj4ubh)}(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.}(hjh5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM.hj4ubh)}(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().}(hjw5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM2hj4ubh)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM5hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'get_state_synchronize_srcu (C function)c.get_state_synchronize_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hBunsigned long get_state_synchronize_srcu (struct srcu_struct *ssp)h]j)}(hAunsigned long get_state_synchronize_srcu(struct srcu_struct *ssp)h](j )}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMFubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hMFubj )}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj5hhhj5hMFubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5hhhj5hMFubjg)}(hget_state_synchronize_srcuh]jm)}(hget_state_synchronize_srcuh]hget_state_synchronize_srcu}(hj5hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj5hhhj5hMFubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 6ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj,6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj)6ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj.6modnameN classnameNjI jL )}jO ]jR )}jE j5sbc.get_state_synchronize_srcuasbuh1hhj 6ubj)}(h h]h }(hjL6hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj 6ubj)}(hjh]h*}(hjZ6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 6ubjm)}(hssph]hssp}(hjg6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hMFubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMFhj5hhubj)}(hhh]h)}(h%Provide an end-of-grace-period cookieh]h%Provide an end-of-grace-period cookie}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMFhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to provide cookie for. **Description** This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. It is the caller's responsibility to make sure that grace period happens, for example, by invoking call_srcu() after return from get_state_synchronize_srcu().h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMJhj6ubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj6h]hstruct srcu_struct *ssp}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMGhj6ubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMGhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMGhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubh)}(h**Description**h]j)}(hj 7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 7ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMIhj6ubh)}(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#7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMHhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(start_poll_synchronize_srcu (C function)c.start_poll_synchronize_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hCunsigned long start_poll_synchronize_srcu (struct srcu_struct *ssp)h]j)}(hBunsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)h](j )}(hunsignedh]hunsigned}(hjR7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjN7hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMYubj)}(h h]h }(hja7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN7hhhj`7hMYubj )}(hlongh]hlong}(hjo7hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjN7hhhj`7hMYubj)}(h h]h }(hj}7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjN7hhhj`7hMYubjg)}(hstart_poll_synchronize_srcuh]jm)}(hstart_poll_synchronize_srcuh]hstart_poll_synchronize_srcu}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjN7hhhj`7hMYubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj7hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj7modnameN classnameNjI jL )}jO ]jR )}jE j7sbc.start_poll_synchronize_srcuasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjm)}(hssph]hssp}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhjN7hhhj`7hMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJ7hhhj`7hMYubah}(h]jE7ah ](jjeh"]h$]h&]jj)jhuh1hhj`7hMYhjG7hhubj)}(hhh]h)}(h%Provide cookie and start grace periodh]h%Provide cookie and start grace period}(hj.8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMYhj+8hhubah}(h]h ]h"]h$]h&]uh1jhjG7hhhj`7hMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjF8jjF8jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to provide cookie for. **Description** This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. Unlike get_state_synchronize_srcu(), this function also ensures that any needed SRCU grace period will be started. This convenience does come at a cost in terms of CPU overhead.h](h)}(h**Parameters**h]j)}(hjP8h]h Parameters}(hjR8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM]hjJ8ubj)}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjo8h]hstruct srcu_struct *ssp}(hjq8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm8ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMZhji8ubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMZhj8ubah}(h]h ]h"]h$]h&]uh1jhji8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMZhjf8ubah}(h]h ]h"]h$]h&]uh1jhjJ8ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM\hjJ8ubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chM[hjJ8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(poll_state_synchronize_srcu (C function)c.poll_state_synchronize_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hPbool poll_state_synchronize_srcu (struct srcu_struct *ssp, unsigned long cookie)h]j)}(hObool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)h](j )}(hj8h]hbool}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj8hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMiubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8hhhj8hMiubjg)}(hpoll_state_synchronize_srcuh]jm)}(hpoll_state_synchronize_srcuh]hpoll_state_synchronize_srcu}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj 9ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj8hhhj8hMiubj)}(h/(struct srcu_struct *ssp, unsigned long cookie)h](j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj+9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'9ubj)}(h h]h }(hj89hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'9ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hjI9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF9ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjK9modnameN classnameNjI jL )}jO ]jR )}jE j9sbc.poll_state_synchronize_srcuasbuh1hhj'9ubj)}(h h]h }(hji9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj'9ubj)}(hjh]h*}(hjw9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'9ubjm)}(hssph]hssp}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#9ubj)}(hunsigned long cookieh](j )}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubj )}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj9ubjm)}(hcookieh]hcookie}(hj9hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#9ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hMiubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMihj8hhubj)}(hhh]h)}(h Has cookie's grace period ended?h]h"Has cookie’s grace period ended?}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMihj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to provide cookie for. ``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). **Description** This function takes the cookie that was returned from either get_state_synchronize_srcu() or start_poll_synchronize_srcu(), and returns **true** if an SRCU grace period elapsed since the time that the cookie was created. Because cookies are finite in size, wrapping/overflow is possible. This is more pronounced on 32-bit systems where cookies are 32 bits, where in theory wrapping could happen in about 14 hours assuming 25-microsecond expedited SRCU grace periods. However, a more likely overflow lower bound is on the order of 24 days in the case of one-millisecond SRCU grace periods. Of course, wrapping in a 64-bit system requires geologic timespans, as in more than seven million years even for expedited SRCU grace periods. Wrapping/overflow is much more of an issue for CONFIG_SMP=n systems that also have CONFIG_PREEMPTION=n, which selects Tiny SRCU. This uses a 16-bit cookie, which rcutorture routinely wraps in a matter of a few minutes. If this proves to be a problem, this counter will be expanded to the same size as for Tree SRCU.h](h)}(h**Parameters**h]j)}(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.chMmhj: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}(hjB: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.chMjhj::ubj)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjY:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU:hMjhjV:ubah}(h]h ]h"]h$]h&]uh1jhj::ubeh}(h]h ]h"]h$]h&]uh1jhjU:hMjhj7: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)}(hjy:h]hunsigned long cookie}(hj{:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw:ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMkhjs: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:hMkhj:ubah}(h]h ]h"]h$]h&]uh1jhjs:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMkhj7: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:408: ./kernel/rcu/srcutree.chMmhj: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}(hj: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.chMlhj: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.chMqhj: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.chMzhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsrcu_barrier (C function)c.srcu_barrierhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h+void srcu_barrier (struct srcu_struct *ssp)h]j)}(h*void srcu_barrier(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(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 }(hj8;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj%;hhhj7;hMubjg)}(h srcu_barrierh]jm)}(h srcu_barrierh]h srcu_barrier}(hjJ;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjF;ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj%;hhhj7;hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hjf;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb;ubj)}(h h]h }(hjs;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb;ubh)}(hhh]jm)}(h 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 jL;sbc.srcu_barrierasbuh1hhjb;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjb;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb;ubjm)}(hssph]hssp}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjb;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^;ubah}(h]h ]h"]h$]h&]jjuh1jhj%;hhhj7;hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!;hhhj7;hMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj7;hMhj;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.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj7;hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1hhhhj:hNhNubj)}(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.chMhj<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.chMhj$<ubj)}(hhh]h)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hjC<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj@<ubah}(h]h ]h"]h$]h&]uh1jhj$<ubeh}(h]h ]h"]h$]h&]uh1jhj?<hMhj!<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"srcu_expedite_current (C function)c.srcu_expedite_currenthNtauh1hhj:hhhNhNubh)}(hhh](j)}(h4void srcu_expedite_current (struct srcu_struct *ssp)h]j)}(h3void srcu_expedite_current(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(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)}(hsrcu_expedite_currenth]jm)}(hsrcu_expedite_currenth]hsrcu_expedite_current}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj<hhhj<hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj<ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj<hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj<modnameN classnameNjI jL )}jO ]jR )}jE j<sbc.srcu_expedite_currentasbuh1hhj<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&]jjuh1jhj<hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|<hhhj<hMubah}(h]jw<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMhjy<hhubj)}(hhh]h)}(h&Expedite the current SRCU grace periodh]h&Expedite the current SRCU grace period}(hjD=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhjA=hhubah}(h]h ]h"]h$]h&]uh1jhjy<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\=jj\=jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to expedite. **Description** Cause the current SRCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.h](h)}(h**Parameters**h]j)}(hjf=h]h Parameters}(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.chMhj`=ubj)}(hhh]j)}(h5``struct srcu_struct *ssp`` srcu_struct to expedite. 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)}(hsrcu_struct to expedite.h]hsrcu_struct to expedite.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj|=ubah}(h]h ]h"]h$]h&]uh1jhj`=ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj`=ubh)}(hX*Cause the current SRCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.h]hX*Cause the current SRCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj`=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#srcu_batches_completed (C function)c.srcu_batches_completedhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h>unsigned long srcu_batches_completed (struct srcu_struct *ssp)h]j)}(h=unsigned long srcu_batches_completed(struct srcu_struct *ssp)h](j )}(hunsignedh]hunsigned}(hj>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 }(hj0>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj>hhhj>hMubjg)}(hsrcu_batches_completedh]jm)}(hsrcu_batches_completedh]hsrcu_batches_completed}(hjB>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>hhhj>hMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hjh]hstruct}(hj^>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ>ubj)}(h h]h }(hjk>hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZ>ubh)}(hhh]jm)}(h srcu_structh]h srcu_struct}(hj|>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjy>ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj~>modnameN classnameNjI jL )}jO ]jR )}jE jD>sbc.srcu_batches_completedasbuh1hhjZ>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)}(hssph]hssp}(hj>hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjZ>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV>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>jjjuh1hhhhj:hNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` srcu_struct on which to report batch completion. **Description** Report the number of batches, correlated with, but not necessarily precisely the same as, the number of grace periods that have elapsed.h](h)}(h**Parameters**h]}j)}(hj?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)}(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)}(h0srcu_struct on which to report batch completion.h]h0srcu_struct on which to report batch completion.}(hj;?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7?hMhj8?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj7?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)}(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.}(hjs?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:408: ./kernel/rcu/srcutree.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_bl_del_rcu (C function)c.hlist_bl_del_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h/void hlist_bl_del_rcu (struct hlist_bl_node *n)h]j)}(h.void hlist_bl_del_rcu(struct hlist_bl_node *n)h](j )}(hvoidh]hvoid}(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)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj?ubh)}(hhh]jm)}(h hlist_bl_nodeh]h hlist_bl_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_bl_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)}(hjyh]hn}(hj8@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)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hja@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhj^@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjy@jjy@jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_bl_node *n`` the element to delete from the hash list. **Note** hlist_bl_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry().h](h)}(h**Parameters**h]j)}(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:410: ./include/linux/rculist_bl.hhK hj}@ubj)}(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)}(hj@h]hstruct hlist_bl_node *n}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhj@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&]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:410: ./include/linux/rculist_bl.hhKhj}@ubh)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKhj}@ubh)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK#hj}@ubh)}(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().}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK&hj}@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlist_bl_add_head_rcu (C function)c.hlist_bl_add_head_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hMvoid hlist_bl_add_head_rcu (struct hlist_bl_node *n, struct hlist_bl_head *h)h]j)}(hLvoid hlist_bl_add_head_rcu(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j )}(hvoidh]hvoid}(hj@AhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj` 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)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK\hjCubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjCh]htpos}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKYhjCubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKYhj Dubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhjDhKYhjCubj)}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj,Dh]hpos}(hj.DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Dubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhKZhj&Dubj)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hjEDhhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hjODh]hstruct hlist_bl_node}(hjQDhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjMDubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj hlist_bl_nodeuh1hhjADhKZhjEDubh to use as a loop cursor.}(hjEDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjADhKZhjBDubah}(h]h ]h"]h$]h&]uh1jhj&Dubeh}(h]h ]h"]h$]h&]uh1jhjADhKZhjCubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjDh]hhead}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK[hjDubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhK[hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhK[hjCubj)}(h;``member`` the name of the hlist_bl_node within the struct.h](j)}(h ``member``h]j)}(hjDh]hmember}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK]hjDubj)}(hhh]h)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:410: ./include/linux/rculist_bl.hhK\hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhK]hjCubeh}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_for_each_rcu (C macro)c.list_for_each_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlist_for_each_rcuh]j)}(hlist_for_each_rcuh]jg)}(hlist_for_each_rcuh]jm)}(hjEh]hlist_for_each_rcu}(hjEhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK.ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj2EhK.ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhj2EhK.hjEhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjEhhhj2EhK.ubeh}(h]h ](jmacroeh"]h$]h&]jjjjKEjjKEjjjuh1hhhhj:hNhNubh)}(h!``list_for_each_rcu (pos, head)``h]j)}(hjQEh]hlist_for_each_rcu (pos, head)}(hjSEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hj:hhubj)}(h+Iterate over a list in an RCU-safe fashion h]h)}(h*Iterate over a list in an RCU-safe fashionh]h*Iterate over a list in an RCU-safe fashion}(hjkEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK.hjgEubah}(h]h ]h"]h$]h&]uh1jhjyEhK.hj:hhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](h)}(h**Parameters**h]j)}(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.hhK2hjEubj)}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjEh]hpos}(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.hhK/hjEubj)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjEhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjEh]hstruct list_head}(hjEhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj list_headuh1hhjEhK/hjEubh to use as a loop cursor.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjEhK/hjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhK/hjEubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hjFh]hhead}(hjFhhhNhNubah}(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.hhK1hjEubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK0hjFubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjFhK1hjEubeh}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_tail_rcu (C macro)c.list_tail_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h list_tail_rcuh]j)}(h list_tail_rcuh]jg)}(h list_tail_rcuh]jm)}(hjUFh]h list_tail_rcu}(hj_FhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj[Fubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjWFhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjSFhhhjrFhK8ubah}(h]jNFah ](jjeh"]h$]h&]jj)jhuh1hhjrFhK8hjPFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPFhhhjrFhK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjFjjFjjjuh1hhhhj:hNhNubh)}(h``list_tail_rcu (head)``h]j)}(hjFh]hlist_tail_rcu (head)}(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.hhK:hj:hhubj)}(h1returns the prev pointer of the head of the list h]h)}(h0returns the prev pointer of the head of the listh]h0returns the prev pointer of the head of the list}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhK8hjFubah}(h]h ]h"]h$]h&]uh1jhjFhK8hj:hhubj)}(h**Parameters** ``head`` the head of the list **Note** This should only be used with the list header, and even then only if list_del() and similar primitives are not also used on the list header.h](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.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)}(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.hhKhjJubj)}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hjKh]hstruct list_head *new}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Kubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj Kubj)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hj(KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$KhKhj%Kubah}(h]h ]h"]h$]h&]uh1jhj Kubeh}(h]h ]h"]h$]h&]uh1jhj$KhKhjKubj)}(h6``struct list_head *head`` list head to add it before h](j)}(h``struct list_head *head``h]j)}(hjHKh]hstruct list_head *head}(hjJKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFKubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjBKubj)}(hhh]h)}(hlist head to add it beforeh]hlist head to add it before}(hjaKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]KhKhj^Kubah}(h]h ]h"]h$]h&]uh1jhjBKubeh}(h]h ]h"]h$]h&]uh1jhj]KhKhjKubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjKh]h Description}(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.hhKhjJubh)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjJubh)}(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().}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_del_rcu (C function)c.list_del_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h+void list_del_rcu (struct list_head *entry)h]j)}(h*void list_del_rcu(struct list_head *entry)h](j )}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjKhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjKhhhjKhKubjg)}(h list_del_rcuh]jm)}(h list_del_rcuh]h list_del_rcu}(hjKhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjKhhhjKhKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj!LhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubh)}(hhh]jm)}(h list_headh]h list_head}(hj2LhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/Lubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj4LmodnameN classnameNjI jL )}jO ]jR )}jE jKsbc.list_del_rcuasbuh1hhjLubj)}(h h]h }(hjRLhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjLubj)}(hjh]h*}(hj`LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjm)}(hentryh]hentry}(hjmLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Lubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjKhKhjKhhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1hhhhj:hNhNubj)}(hXz**Parameters** ``struct list_head *entry`` the element to delete from the list. **Note** list_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu(). Note that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjLubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjLh]hstruct list_head *entry}(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.hhKhjLubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhKhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhKhjLubah}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Note**h]j)}(hjMh]hNote}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjLubh)}(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)MhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjLubh)}(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.}(hj8MhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjLubh)}(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().}(hjGMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjLubh)}(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.}(hjVMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_bidir_del_rcu (C function)c.list_bidir_del_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h1void list_bidir_del_rcu (struct list_head *entry)h]j)}(h0void list_bidir_del_rcu(struct list_head *entry)h](j )}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjMhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMhhhjMhKubjg)}(hlist_bidir_del_rcuh]jm)}(hlist_bidir_del_rcuh]hlist_bidir_del_rcu}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjMhhhjMhKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubh)}(hhh]jm)}(h list_headh]h list_head}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjMmodnameN classnameNjI jL )}jO ]jR )}jE jMsbc.list_bidir_del_rcuasbuh1hhjMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjMubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjm)}(hentryh]hentry}(hjNhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}MhhhjMhKubah}(h]jxMah ](jjeh"]h$]h&]jj)jhuh1hhjMhKhjzMhhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hjENhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjBNhhubah}(h]h ]h"]h$]h&]uh1jhjzMhhhjMhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]Njj]Njjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct list_head *entry`` the element to delete from the list. **Description** In contrast to list_del_rcu() doesn't poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu(). **Note** list_empty() on entry does not return true after this because the entry is in a special undefined state that permits RCU-based lockfree reverse traversal. In particular this means that we can not poison the forward and backwards pointers that may still be used for walking the list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu(). Note that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list. Note that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h](h)}(h**Parameters**h]j)}(hjgNh]h Parameters}(hjiNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaNubj)}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjNh]hstruct list_head *entry}(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.hhKhjNubj)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhKhj}Nubah}(h]h ]h"]h$]h&]uh1jhjaNubh)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaNubh)}(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().}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaNubh)}(h**Note**h]j)}(hjNh]hNote}(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.hhKhjaNubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaNubh)}(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 OhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaNubh)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaNubh)}(hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h]hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.}(hj+OhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjaNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_del_init_rcu (C function)c.hlist_del_init_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h.void hlist_del_init_rcu (struct hlist_node *n)h]j)}(h-void hlist_del_init_rcu(struct hlist_node *n)h](j )}(hvoidh]hvoid}(hjZOhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVOhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjiOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVOhhhjhOhKubjg)}(hhlist_del_init_rcuh]jm)}(hhlist_del_init_rcuh]hhlist_del_init_rcu}(hj{OhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwOubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVOhhhjhOhKubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE j}Osbc.hlist_del_init_rcuasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjm)}(hjyh]hn}(hjOhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjVOhhhjhOhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjROhhhjhOhKubah}(h]jMOah ](jjeh"]h$]h&]jj)jhuh1hhjhOhKhjOOhhubj)}(hhh]h)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjPhhubah}(h]h ]h"]h$]h&]uh1jhjOOhhhjhOhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1Pjj1Pjjjuh1hhhhj:hNhNubj)}(hXG**Parameters** ``struct hlist_node *n`` the element to delete from the hash list. **Note** list_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hj;Ph]h Parameters}(hj=PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Pubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj5Pubj)}(hhh]j)}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjZPh]hstruct hlist_node *n}(hj\PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjTPubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjsPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoPhKhjpPubah}(h]h ]h"]h$]h&]uh1jhjTPubeh}(h]h ]h"]h$]h&]uh1jhjoPhKhjQPubah}(h]h ]h"]h$]h&]uh1jhj5Pubh)}(h**Note**h]j)}(hjPh]hNote}(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.hhKhj5Pubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj5Pubh)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj5Pubh)}(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().}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj5Pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_replace_rcu (C function)c.list_replace_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hDvoid list_replace_rcu (struct list_head *old, struct list_head *new)h]j)}(hCvoid list_replace_rcu(struct list_head *old, struct list_head *new)h](j )}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjPhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjPhhhjQhKubjg)}(hlist_replace_rcuh]jm)}(hlist_replace_rcuh]hlist_replace_rcu}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjPhhhjQhKubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hjh]hstruct}(hj5QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Qubj)}(h h]h }(hjBQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Qubh)}(hhh]jm)}(h list_headh]h list_head}(hjSQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjPQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjUQmodnameN classnameNjI jL )}jO ]jR )}jE jQsbc.list_replace_rcuasbuh1hhj1Qubj)}(h h]h }(hjsQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1Qubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Qubjm)}(holdh]hold}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj1Qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-Qubj)}(hstruct list_head *newh](j)}(hjh]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubh)}(hhh]jm)}(h list_headh]h list_head}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjQmodnameN classnameNjI jL )}jO ]joQc.list_replace_rcuasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjm)}(hnewh]hnew}(hjQhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-Qubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjQhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjQhKubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjQhKhjPhhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hj(RhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhj%Rhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjQhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@Rjj@Rjjjuh1hhhhj:hNhNubj)}(hX|**Parameters** ``struct list_head *old`` the element to be replaced ``struct list_head *new`` the new element to insert **Description** The **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any. **Note** **old** should not be empty.h](h)}(h**Parameters**h]j)}(hjJRh]h Parameters}(hjLRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjDRubj)}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hjiRh]hstruct list_head *old}(hjkRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjcRubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~RhKhjRubah}(h]h ]h"]h$]h&]uh1jhjcRubeh}(h]h ]h"]h$]h&]uh1jhj~RhKhj`Rubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hjRh]hstruct list_head *new}(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.hhKhjRubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhKhj`Rubeh}(h]h ]h"]h$]h&]uh1jhjDRubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjDRubh)}(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 }(hjRhhhNhNubj)}(h**old**h]hold}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh! entry will be replaced with the }(hjRhhhNhNubj)}(h**new**h]hnew}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjDRubh)}(h**Note**h]j)}(hj(Sh]hNote}(hj*ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Subah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjDRubh)}(h**old** should not be empty.h](j)}(h**old**h]hold}(hjBShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Subh should not be empty.}(hj>ShhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhKhjDRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__list_splice_init_rcu (C function)c.__list_splice_init_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hxvoid __list_splice_init_rcu (struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h]j)}(hwvoid __list_splice_init_rcu(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j )}(hvoidh]hvoid}(hj{ShhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjwShhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjwShhhjShM ubjg)}(h__list_splice_init_rcuh]jm)}(h__list_splice_init_rcuh]h__list_splice_init_rcu}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwShhhjShM ubj)}(h\(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubh)}(hhh]jm)}(h list_headh]h list_head}(hjShhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjSmodnameN classnameNjI jL )}jO ]jR )}jE jSsbc.__list_splice_init_rcuasbuh1hhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjSubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjm)}(hlisth]hlist}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct list_head *prevh](j)}(hjh]hstruct}(hj*ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Tubj)}(h h]h }(hj7ThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&Tubh)}(hhh]jm)}(h list_headh]h list_head}(hjHThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjETubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjJTmodnameN classnameNjI jL )}jO ]jSc.__list_splice_init_rcuasbuh1hhj&Tubj)}(h h]h }(hjfThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj&Tubj)}(hjh]h*}(hjtThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Tubjm)}(hprevh]hprev}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj&Tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct list_head *nexth](j)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubh)}(hhh]jm)}(h list_headh]h list_head}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTmodnameN classnameNjI jL )}jO ]jSc.__list_splice_init_rcuasbuh1hhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjm)}(hnexth]hnext}(hjThhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj UhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUubj)}(hj4h]h(}(hj&UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hjh]h*}(hj3UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjm)}(hsynch]hsync}(hj@UhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjUubj)}(hj4h]h)}(hjNUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hj4h]h(}(hj[UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj )}(hvoidh]hvoid}(hjhUhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUubj)}(hj4h]h)}(hjvUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjwShhhjShM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjsShhhjShM ubah}(h]jnSah ](jjeh"]h$]h&]jj)jhuh1hhjShM hjpShhubj)}(hhh]h)}(h1join an RCU-protected list into an existing list.h]h1join an RCU-protected list into an existing list.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjUhhubah}(h]h ]h"]h$]h&]uh1jhjpShhhjShM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhj:hNhNubj)}(hXI**Parameters** ``struct list_head *list`` the RCU-protected list to splice ``struct list_head *prev`` points to the last element of the existing list ``struct list_head *next`` points to the first element of the existing list ``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... **Description** The list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function. Note that this function blocks. Important note: the caller must take whatever action is necessary to prevent any other updates to the existing list. In principle, it is possible to modify the list as soon as sync() begins execution. If this sort of thing becomes necessary, an alternative version based on call_rcu() could be created. But only if -really- needed -- there is no shortage of RCU API members.h](h)}(h**Parameters**h]j)}(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.hhM hjUubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjUh]hstruct list_head *list}(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.hhM hjUubj)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjUubj)}(hK``struct list_head *prev`` points to the last element of the existing list h](j)}(h``struct list_head *prev``h]j)}(hjVh]hstruct list_head *prev}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjVubj)}(hhh]h)}(h/points to the last element of the existing listh]h/points to the last element of the existing list}(hj2VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.VhM hj/Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj.VhM hjUubj)}(hL``struct list_head *next`` points to the first element of the existing list h](j)}(h``struct list_head *next``h]j)}(hjRVh]hstruct list_head *next}(hjTVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjLVubj)}(hhh]h)}(h0points to the first element of the existing listh]h0points to the first element of the existing list}(hjkVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgVhM hjhVubah}(h]h ]h"]h$]h&]uh1jhjLVubeh}(h]h ]h"]h$]h&]uh1jhjgVhM hjUubj)}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j)}(h``void (*sync)(void)``h]j)}(hjVh]hvoid (*sync)(void)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hjVubj)}(hhh]h)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhM hjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhM 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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjUubh)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjVhhhNhNubj)}(h**prev**h]hprev}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh and }(hjVhhhNhNubj)}(h**next**h]hnext}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh; can be RCU-read traversed concurrently with this function.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjUubh)}(hNote that this function blocks.h]hNote that this function blocks.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjUubh)}(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.}(hjWhhhNhNubah}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!list_splice_init_rcu (C function)c.list_splice_init_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h^void list_splice_init_rcu (struct list_head *list, struct list_head *head, void (*sync)(void))h]j)}(h]void list_splice_init_rcu(struct list_head *list, struct list_head *head, void (*sync)(void))h](j )}(hvoidh]hvoid}(hjMWhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjIWhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMEubj)}(h h]h }(hj\WhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjIWhhhj[WhMEubjg)}(hlist_splice_init_rcuh]jm)}(hlist_splice_init_rcuh]hlist_splice_init_rcu}(hjnWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjjWubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjIWhhhj[WhMEubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(h list_headh]h list_head}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjWmodnameN classnameNjI jL )}jO ]jR )}jE jpWsbc.list_splice_init_rcuasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hlisth]hlist}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hstruct list_head *headh](j)}(hjh]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(h h]h }(hj XhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubh)}(hhh]jm)}(h list_headh]h list_head}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjXmodnameN classnameNjI jL )}jO ]jWc.list_splice_init_rcuasbuh1hhjWubj)}(h h]h }(hj8XhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjWubj)}(hjh]h*}(hjFXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjm)}(hheadh]hhead}(hjSXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hjlXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhXubj)}(h h]h }(hjzXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhXubj)}(hj4h]h(}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhXubjm)}(hsynch]hsync}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjhXubj)}(hj4h]h)}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhXubj)}(hj4h]h(}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhXubj )}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhXubj)}(hj4h]h)}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjIWhhhj[WhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEWhhhj[WhMEubah}(h]j@Wah ](jjeh"]h$]h&]jj)jhuh1hhj[WhMEhjBWhhubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMEhjXhhubah}(h]h ]h"]h$]h&]uh1jhjBWhhhj[WhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``struct list_head *list`` the RCU-protected list to splice ``struct list_head *head`` the place in the existing list to splice the first list into ``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ...h](h)}(h**Parameters**h]j)}(hj#Yh]h Parameters}(hj%YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Yubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMIhjYubj)}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjBYh]hstruct list_head *list}(hjDYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Yubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMGhj\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.hhMWhj6\ubj)}(hhh]h)}(h` pointer. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj:]h]h Parameters}(hj<]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMghj4]ubj)}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hjY]h]hptr}(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.hhMdhjS]ubj)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjr]hhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hj|]h]hstruct list_head}(hj~]hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjz]ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj list_headuh1hhjn]hMdhjr]ubh pointer.}(hjr]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjn]hMdhjo]ubah}(h]h ]h"]h$]h&]uh1jhjS]ubeh}(h]h ]h"]h$]h&]uh1jhjn]hMdhjP]ubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj]h]htype}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMehj]ubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMehj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMehjP]ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj]h]hmember}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMfhj]ubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMfhj^ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj^hMfhjP]ubeh}(h]h ]h"]h$]h&]uh1jhj4]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.hhMhhj4]ubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hj?^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMghj4]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h list_first_or_null_rcu (C macro)c.list_first_or_null_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlist_first_or_null_rcuh]j)}(hlist_first_or_null_rcuh]jg)}(hlist_first_or_null_rcuh]jm)}(hjh^h]hlist_first_or_null_rcu}(hjr^hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjn^ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjj^hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjf^hhhj^hMubah}(h]ja^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMhjc^hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjc^hhhj^hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj^jj^jjjuh1hhhhj:hNhNubh)}(h.``list_first_or_null_rcu (ptr, type, member)``h]j)}(hj^h]h*list_first_or_null_rcu (ptr, type, member)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h"get the first element from a list h]h)}(h!get the first element from a listh]h!get the first element from a list}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^ubah}(h]h ]h"]h$]h&]uh1jhj^hMhj:hhubj)}(hX**Parameters** ``ptr`` the list head to take the element from. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** Note that if the list is empty, it returns NULL. This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^ubj)}(hhh](j)}(h0``ptr`` the list head to take the element from. h](j)}(h``ptr``h]j)}(hj^h]hptr}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^ubj)}(hhh]h)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj _hMhj_ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj _hMhj^ubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj1_h]htype}(hj3_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj+_ubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjJ_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF_hMhjG_ubah}(h]h ]h"]h$]h&]uh1jhj+_ubeh}(h]h ]h"]h$]h&]uh1jhjF_hMhj^ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjj_h]hmember}(hjl_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh_ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjd_ubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjd_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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^ubh)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^ubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_next_or_null_rcu (C macro)c.list_next_or_null_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlist_next_or_null_rcuh]j)}(hlist_next_or_null_rcuh]jg)}(hlist_next_or_null_rcuh]jm)}(hj_h]hlist_next_or_null_rcu}(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:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhj`hMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhj`hMhj_hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj_hhhj`hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj)`jj)`jjjuh1hhhhj:hNhNubh)}(h3``list_next_or_null_rcu (head, ptr, type, member)``h]j)}(hj/`h]h/list_next_or_null_rcu (head, ptr, type, member)}(hj1`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h!get the next element from a list h]h)}(h get the next element from a listh]h get the next element from a list}(hjI`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjE`ubah}(h]h ]h"]h$]h&]uh1jhjW`hMhj:hhubj)}(hX**Parameters** ``head`` the head for the list. ``ptr`` the list head to take the next element from. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** Note that if the ptr is at the end of the list, NULL is returned. This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(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:412: ./include/linux/rculist.hhMhj^`ubj)}(hhh](j)}(h ``head`` the head for the list. h](j)}(h``head``h]j)}(hj`h]hhead}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj}`ubj)}(hhh]h)}(hthe head for the list.h]hthe head for the list.}(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)}(h5``ptr`` the list head to take the next element from. h](j)}(h``ptr``h]j)}(hj`h]hptr}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj`ubj)}(hhh]h)}(h,the list head to take the next element from.h]h,the list head to take the next element from.}(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)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj`h]htype}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj`ubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ahMhj aubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj ahMhjz`ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj.ah]hmember}(hj0ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,aubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj(aubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjGahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCahMhjDaubah}(h]h ]h"]h$]h&]uh1jhj(aubeh}(h]h ]h"]h$]h&]uh1jhjCahMhjz`ubeh}(h]h ]h"]h$]h&]uh1jhj^`ubh)}(h**Description**h]j)}(hjiah]h Description}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^`ubh)}(hANote that if the ptr is at the end of the list, NULL is returned.h]hANote that if the ptr is at the end of the list, NULL is returned.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^`ubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj^`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!list_for_each_entry_rcu (C macro)c.list_for_each_entry_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_rcuh]j)}(hlist_for_each_entry_rcuh]jg)}(hlist_for_each_entry_rcuh]jm)}(hjah]hlist_for_each_entry_rcu}(hjahhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjahhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjahMubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjahhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjahhhjahMubeh}(h]h ](jmacroeh"]h$]h&]jjjjajjajjjuh1hhhhj:hNhNubh)}(h8``list_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjah]h4list_for_each_entry_rcu (pos, head, member, cond...)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj bubah}(h]h ]h"]h$]h&]uh1jhjbhMhj:hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. ``cond...`` optional lockdep expression if called from non-RCU protection. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj(bh]h Parameters}(hj*bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&bubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj"bubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjGbh]hpos}(hjIbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjAbubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj`bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\bhMhj]bubah}(h]h ]h"]h$]h&]uh1jhjAbubeh}(h]h ]h"]h$]h&]uh1jhj\bhMhj>bubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjbh]hhead}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~bubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjzbubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjzbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj>bubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjbh]hmember}(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.hhMhjbubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj>bubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hjbh]hcond...}(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.hhMhjbubj)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjchMhj>bubeh}(h]h ]h"]h$]h&]uh1jhj"bubh)}(h**Description**h]j)}(hj-ch]h Description}(hj/chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+cubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj"bubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().}(hjCchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj"bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"list_for_each_entry_srcu (C macro)c.list_for_each_entry_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_srcuh]j)}(hlist_for_each_entry_srcuh]jg)}(hlist_for_each_entry_srcuh]jm)}(hjlch]hlist_for_each_entry_srcu}(hjvchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjrcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnchhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjjchhhjchMubah}(h]jecah ](jjeh"]h$]h&]jj)jhuh1hhjchMhjgchhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjgchhhjchMubeh}(h]h ](jmacroeh"]h$]h&]jjjjcjjcjjjuh1hhhhj:hNhNubh)}(h6``list_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hjch]h2list_for_each_entry_srcu (pos, head, member, cond)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjcubah}(h]h ]h"]h$]h&]uh1jhjchMhj:hhubj)}(hX **Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. ``cond`` lockdep expression for the lock required to traverse the list. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjcubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjch]hpos}(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.hhMhjcubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjcubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj5dh]hhead}(hj7dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3dubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj/dubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjNdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJdhMhjKdubah}(h]h ]h"]h$]h&]uh1jhj/dubeh}(h]h ]h"]h$]h&]uh1jhjJdhMhjcubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjndh]hmember}(hjpdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjldubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhdubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjhdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjcubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hjdh]hcond}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjdubj)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjcubeh}(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.hhMhjcubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hlist_entry_lockless (C macro)c.list_entry_locklesshNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlist_entry_locklessh]j)}(hlist_entry_locklessh]jg)}(hlist_entry_locklessh]jm)}(hj!eh]hlist_entry_lockless}(hj+ehhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'eubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj#ehhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhj>ehMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhj>ehMhjehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjehhhj>ehMubeh}(h]h ](jmacroeh"]h$]h&]jjjjWejjWejjjuh1hhhhj:hNhNubh)}(h+``list_entry_lockless (ptr, type, member)``h]j)}(hj]eh]h'list_entry_lockless (ptr, type, member)}(hj_ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[eubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(hget the struct for this entry h]h)}(hget the struct for this entryh]hget the struct for this entry}(hjwehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjseubah}(h]h ]h"]h$]h&]uh1jhjehMhj:hhubj)}(hX>**Parameters** ``ptr`` the :c:type:`struct list_head ` pointer. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.h](h)}(h**Parameters**h]j)}(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<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hjeh]hptr}(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)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjehhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjeh]hstruct list_head}(hjehhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jj list_headuh1hhjehMhjeubh pointer.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj fh]htype}(hjfhhhNhNubah}(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.hhMhjfubj)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hj&fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"fhMhj#fubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhj"fhMhjeubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjFfh]hmember}(hjHfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDfubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj@fubj)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj_fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[fhMhj\fubah}(h]h ]h"]h$]h&]uh1jhj@fubeh}(h]h ]h"]h$]h&]uh1jhj[fhMhjeubeh}(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)}(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.}(hjfhhhNhNubah}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&list_for_each_entry_lockless (C macro)c.list_for_each_entry_locklesshNtauh1hhj:hhhNhNubh)}(hhh](j)}(hlist_for_each_entry_locklessh]j)}(hlist_for_each_entry_locklessh]jg)}(hlist_for_each_entry_locklessh]jm)}(hjfh]hlist_for_each_entry_lockless}(hjfhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjfhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhjfhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjfhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjfjjfjjjuh1hhhhj:hNhNubh)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j)}(hjfh]h0list_for_each_entry_lockless (pos, head, member)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h$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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubah}(h]h ]h"]h$]h&]uh1jhj$ghMhj:hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_struct within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.h](h)}(h**Parameters**h]j)}(hj1gh]h Parameters}(hj3ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/gubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj+gubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjPgh]hpos}(hjRghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjJgubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjighhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeghMhjfgubah}(h]h ]h"]h$]h&]uh1jhjJgubeh}(h]h ]h"]h$]h&]uh1jhjeghMhjGgubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjgh]hhead}(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)}(hthe head for your list.h]hthe head for your list.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjGgubj)}(h:``member`` the name of the list_struct within the struct. h](j)}(h ``member``h]j)}(hjgh]hmember}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjgubj)}(hhh]h)}(h.the name of the list_struct within the struct.h]h.the name of the list_struct within the struct.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjGgubeh}(h]h ]h"]h$]h&]uh1jhj+gubh)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj+gubh)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj+gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*list_for_each_entry_continue_rcu (C macro)"c.list_for_each_entry_continue_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h list_for_each_entry_continue_rcuh]j)}(h list_for_each_entry_continue_rcuh]jg)}(h list_for_each_entry_continue_rcuh]jm)}(hjhhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhhjYhhMubah}(h]j5hah ](jjeh"]h$]h&]jj)jhuh1hhjYhhMhj7hhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7hhhhjYhhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjrhjjrhjjjuh1hhhhj:hNhNubh)}(h8``list_for_each_entry_continue_rcu (pos, head, member)``h]j)}(hjxhh]h4list_for_each_entry_continue_rcu (pos, head, member)}(hjzhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h+continue iteration over list of given type h]h)}(h*continue iteration over list of given typeh]h*continue iteration over list of given type}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhhMhj:hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Continue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list. This iterator is similar to list_for_each_entry_from_rcu() except this starts after the given position and that one starts at the given position.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjhh]hpos}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjhubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjih]hhead}(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.hhMhjhubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjihMhjhubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj>ih]hmember}(hj@ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjsh]hstruct hlist_node *n}(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.hhMrhjsubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMrhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMrhjsubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hjsh]hstruct hlist_head *h}(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.hhMshjsubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMshjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMshjsubeh}(h]h ]h"]h$]h&]uh1jhjqsubh)}(h**Description**h]j)}(hj th]h Description}(hj thhhNhNubah}(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.hhMuhjqsubh)}(hVAdds the specified element to the specified hlist, while permitting racing traversals.h]hVAdds the specified element to the specified hlist, while permitting racing traversals.}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMuhjqsubh)}(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/thhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMxhjqsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_add_tail_rcu (C function)c.hlist_add_tail_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hDvoid hlist_add_tail_rcu (struct hlist_node *n, struct hlist_head *h)h]j)}(hCvoid hlist_add_tail_rcu(struct hlist_node *n, struct hlist_head *h)h](j )}(hvoidh]hvoid}(hj^thhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjZthhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hjmthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjZthhhjlthMubjg)}(hhlist_add_tail_rcuh]jm)}(hhlist_add_tail_rcuh]hhlist_add_tail_rcu}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{tubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjZthhhjlthMubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjtmodnameN classnameNjI jL )}jO ]jR )}jE jtsbc.hlist_add_tail_rcuasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjm)}(hjyh]hn}(hjthhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hstruct hlist_head *hh](j)}(hjh]hstruct}(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubh)}(hhh]jm)}(h hlist_headh]h hlist_head}(hj*uhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj'uubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj,umodnameN classnameNjI jL )}jO ]jtc.hlist_add_tail_rcuasbuh1hhjuubj)}(h h]h }(hjHuhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjuubj)}(hjh]h*}(hjVuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubjm)}(hjGBh]hh}(hjcuhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhjZthhhjlthMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVthhhjlthMubah}(h]jQtah ](jjeh"]h$]h&]jj)jhuh1hhjlthMhjSthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjSthhhjlthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the element to add to the hash list. ``struct hlist_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(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>``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjuh]hstruct hlist_node *n}(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)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjuubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hjuh]hstruct hlist_head *h}(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)}(hthe list to add to.h]hthe list to add to.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj vhMhj vubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhj vhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjuubh)}(h**Description**h]j)}(hj2vh]h Description}(hj4vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0vubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjuubh)}(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.}(hjHvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjuubh)}(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().}(hjWvhhhNhNubah}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!hlist_add_before_rcu (C function)c.hlist_add_before_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hIvoid hlist_add_before_rcu (struct hlist_node *n, struct hlist_node *next)h]j)}(hHvoid hlist_add_before_rcu(struct hlist_node *n, struct hlist_node *next)h](j )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjvhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvhhhjvhMubjg)}(hhlist_add_before_rcuh]jm)}(hhlist_add_before_rcuh]hhlist_add_before_rcu}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjvhhhjvhMubj)}(h/(struct hlist_node *n, struct hlist_node *next)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjvhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjvmodnameN classnameNjI jL )}jO ]jR )}jE jvsbc.hlist_add_before_rcuasbuh1hhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjm)}(hjyh]hn}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hstruct hlist_node *nexth](j)}(hjh]hstruct}(hj4whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0wubj)}(h h]h }(hjAwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0wubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hjRwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjOwubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjTwmodnameN classnameNjI jL )}jO ]jvc.hlist_add_before_rcuasbuh1hhj0wubj)}(h h]h }(hjpwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj0wubj)}(hjh]h*}(hj~whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0wubjm)}(hnexth]hnext}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~vhhhjvhMubah}(h]jyvah ](jjeh"]h$]h&]jj)jhuh1hhjvhMhj{vhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{vhhhjvhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the new element to add to the hash list. ``struct hlist_node *next`` the existing element to add the new element before. **Description** Adds the specified element to the specified hlist before the specified node while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubj)}(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)}(hjwh]hstruct hlist_node *n}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubj)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubj)}(hP``struct hlist_node *next`` the existing element to add the new element before. h](j)}(h``struct hlist_node *next``h]j)}(hj xh]hstruct hlist_node *next}(hj"xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjxubj)}(hhh]h)}(h3the existing element to add the new element before.h]h3the existing element to add the new element before.}(hj9xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5xhMhj6xubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj5xhMhjwubeh}(h]h ]h"]h$]h&]uh1jhjwubh)}(h**Description**h]j)}(hj[xh]h Description}(hj]xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYxubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubh)}(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.}(hjqxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubh)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!hlist_add_behind_rcu (C function)c.hlist_add_behind_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hIvoid hlist_add_behind_rcu (struct hlist_node *n, struct hlist_node *prev)h]j)}(hHvoid hlist_add_behind_rcu(struct hlist_node *n, struct hlist_node *prev)h](j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjxhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxhhhjxhMubjg)}(hhlist_add_behind_rcuh]jm)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjxhhhjxhMubj)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j)}(hstruct hlist_node *nh](j)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hj yhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj ymodnameN classnameNjI jL )}jO ]jR )}jE jxsbc.hlist_add_behind_rcuasbuh1hhjxubj)}(h h]h }(hj*yhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjxubj)}(hjh]h*}(hj8yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjm)}(hjyh]hn}(hjEyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct hlist_node *prevh](j)}(hjh]hstruct}(hj]yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYyubj)}(h h]h }(hjjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYyubh)}(hhh]jm)}(h hlist_nodeh]h hlist_node}(hj{yhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjxyubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj}ymodnameN classnameNjI jL )}jO ]j&yc.hlist_add_behind_rcuasbuh1hhjYyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjYyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYyubjm)}(hprevh]hprev}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjYyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the new element to add to the hash list. ``struct hlist_node *prev`` the existing element to add the new element after. **Description** Adds the specified element to the specified hlist after the specified node while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubj)}(hhh](j)}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjzh]hstruct hlist_node *n}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj zubj)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hj)zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%zhMhj&zubah}(h]h ]h"]h$]h&]uh1jhj zubeh}(h]h ]h"]h$]h&]uh1jhj%zhMhjzubj)}(hO``struct hlist_node *prev`` the existing element to add the new element after. h](j)}(h``struct hlist_node *prev``h]j)}(hjIzh]hstruct hlist_node *prev}(hjKzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGzubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjCzubj)}(hhh]h)}(h2the existing element to add the new element after.h]h2the existing element to add the new element after.}(hjbzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^zhMhj_zubah}(h]h ]h"]h$]h&]uh1jhjCzubeh}(h]h ]h"]h$]h&]uh1jhj^zhMhjzubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"hlist_for_each_entry_rcu (C macro)c.hlist_for_each_entry_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_rcuh]j)}(hhlist_for_each_entry_rcuh]jg)}(hhlist_for_each_entry_rcuh]jm)}(hjzh]hhlist_for_each_entry_rcu}(hjzhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjzhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj{jj{jjjuh1hhhhj:hNhNubh)}(h9``hlist_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hj{h]h5hlist_for_each_entry_rcu (pos, head, member, cond...)}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj {ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hj({hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj${ubah}(h]h ]h"]h$]h&]uh1jhj6{hMhj:hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. ``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)}(hjC{h]h Parameters}(hjE{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA{ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj={ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjb{h]hpos}(hjd{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`{ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj\{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&]uh1hhjw{hMhjx{ubah}(h]h ]h"]h$]h&]uh1jhj\{ubeh}(h]h ]h"]h$]h&]uh1jhjw{hMhjY{ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj{h]hhead}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj{ubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjY{ubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hj{h]hmember}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj{ubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjY{ubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hj |h]hcond...}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj |ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj|ubj)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hj&|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"|hMhj#|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj"|hMhjY{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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj={ubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hj^|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj={ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#hlist_for_each_entry_srcu (C macro)c.hlist_for_each_entry_srcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_srcuh]j)}(hhlist_for_each_entry_srcuh]jg)}(hhlist_for_each_entry_srcuh]jm)}(hj|h]hhlist_for_each_entry_srcu}(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:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hMhj|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj|jj|jjjuh1hhhhj:hNhNubh)}(h7``hlist_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hj|h]h3hlist_for_each_entry_srcu (pos, head, member, cond)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj:hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|hMhj:hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. ``cond`` lockdep expression for the lock required to traverse the list. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj|ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj}h]hpos}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj}ubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj0}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!``head`` the head for your list. h](j)}(h``head``h]j)}(hjP}h]hhead}(hjR}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN}ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhjJ}ubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hji}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje}hMhjf}ubah}(h]h ]h"]h$]h&]uh1jhjJ}ubeh}(h]h ]h"]h$]h&]uh1jhje}hMhj}ubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hj}h]hmember}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj}ubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj}ubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hj}h]hcond}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj}ubj)}(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.}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hj|ubh)}(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~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*hlist_for_each_entry_rcu_notrace (C macro)"c.hlist_for_each_entry_rcu_notracehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h hlist_for_each_entry_rcu_notraceh]j)}(h hlist_for_each_entry_rcu_notraceh]jg)}(h hlist_for_each_entry_rcu_notraceh]jm)}(hj<~h]h hlist_for_each_entry_rcu_notrace}(hjF~hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjB~ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj>~hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj:~hhhjY~hMubah}(h]j5~ah ](jjeh"]h$]h&]jj)jhuh1hhjY~hMhj7~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj7~hhhjY~hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjr~jjr~jjjuh1hhhhj:hNhNubh)}(h8``hlist_for_each_entry_rcu_notrace (pos, head, member)``h]j)}(hjx~h]h4hlist_for_each_entry_rcu_notrace (pos, head, member)}(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.hhMhj:hhubj)}(h2iterate over rcu list of given type (for tracing) h]h)}(h1iterate over rcu list of given type (for tracing)h]h1iterate over rcu list of given type (for tracing)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj~ubah}(h]h ]h"]h$]h&]uh1jhj~hMhj:hhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock(). This is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj~ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj~h]hpos}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj~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~hMhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj~ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj~ubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hj>h]hmember}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj8ubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj~ubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMhj~ubh)}(hgThis is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.h]hgThis is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM!hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_for_each_entry_rcu_bh (C macro)c.hlist_for_each_entry_rcu_bhhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_rcu_bhh]j)}(hhlist_for_each_entry_rcu_bhh]jg)}(hhlist_for_each_entry_rcu_bhh]jm)}(hjh]hhlist_for_each_entry_rcu_bh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM-ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM-hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM-ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h3``hlist_for_each_entry_rcu_bh (pos, head, member)``h]j)}(hjh]h/hlist_for_each_entry_rcu_bh (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM/hj:hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM-hjubah}(h]h ]h"]h$]h&]uh1jhj+hM-hj:hhubj)}(hXe**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM1hj2ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjWh]hpos}(hjYhhhNhNubah}(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.hhM.hjQubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM.hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM.hjNubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM/hjubj)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjNubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjɀh]hmember}(hjˀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǀubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM0hjÀubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjހhM0hj߀ubah}(h]h ]h"]h$]h&]uh1jhjÀubeh}(h]h ]h"]h$]h&]uh1jhjހhM0hjNubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM2hj2ubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM1hj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+hlist_for_each_entry_continue_rcu (C macro)#c.hlist_for_each_entry_continue_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h!hlist_for_each_entry_continue_rcuh]j)}(h!hlist_for_each_entry_continue_rcuh]jg)}(h!hlist_for_each_entry_continue_rcuh]jm)}(hjCh]h!hlist_for_each_entry_continue_rcu}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM>ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhj`hM>ubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM>hj>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj`hM>ubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1hhhhj:hNhNubh)}(h3``hlist_for_each_entry_continue_rcu (pos, member)``h]j)}(hjh]h/hlist_for_each_entry_continue_rcu (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM@hj:hhubj)}(h4iterate over a hlist continuing after current point h]h)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM>hjubah}(h]h ]h"]h$]h&]uh1jhjhM>hj:hhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMBhjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjӁh]hpos}(hjՁhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjсubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM?hj́ubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhj́ubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjʁubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hj h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMAhjubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhM@hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMAhjʁubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.hlist_for_each_entry_continue_rcu_bh (C macro)&c.hlist_for_each_entry_continue_rcu_bhhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h$hlist_for_each_entry_continue_rcu_bhh]j)}(h$hlist_for_each_entry_continue_rcu_bhh]jg)}(h$hlist_for_each_entry_continue_rcu_bhh]jm)}(hj`h]h$hlist_for_each_entry_continue_rcu_bh}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjbhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj}hMJubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhj}hMJhj[hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj}hMJubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j)}(hjh]h2hlist_for_each_entry_continue_rcu_bh (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMLhj:hhubj)}(h4iterate over a hlist continuing after current point h]h)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhjĂhMJhj:hhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjтh]h Parameters}(hjӂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjςubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMNhj˂ubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMKhjubj)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hj)h]hmember}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMMhj#ubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMLhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMMhjubeh}(h]h ]h"]h$]h&]uh1jhj˂ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'hlist_for_each_entry_from_rcu (C macro)c.hlist_for_each_entry_from_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_for_each_entry_from_rcuh]j)}(hhlist_for_each_entry_from_rcuh]jg)}(hhlist_for_each_entry_from_rcuh]jm)}(hj}h]hhlist_for_each_entry_from_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMVubah}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhjhMVubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMVhjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjhMVubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h/``hlist_for_each_entry_from_rcu (pos, member)``h]j)}(hjh]h+hlist_for_each_entry_from_rcu (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMXhj:hhubj)}(h3iterate over a hlist continuing from current point h]h)}(h2iterate over a hlist continuing from current pointh]h2iterate over a hlist continuing from current point}(hjӃhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMVhjσubah}(h]h ]h"]h$]h&]uh1jhjhMVhj:hhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMZhjubj)}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMWhjubj)}(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"hMWhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMWhjubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjFh]hmember}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMYhj@ubj)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:412: ./include/linux/rculist.hhMXhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMYhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_del_init_rcu (C function)c.hlist_nulls_del_init_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h:void hlist_nulls_del_init_rcu (struct hlist_nulls_node *n)h]j)}(h9void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(hhlist_nulls_del_init_rcuh]jm)}(hhlist_nulls_del_init_rcuh]hhlist_nulls_del_init_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hj݄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjلubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjلubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jÄsbc.hlist_nulls_del_init_rcuasbuh1hhjلubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjلubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjلubjm)}(hjyh]hn}(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)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj\hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1hhhhj:hNhNubj)}(hXf**Parameters** ``struct hlist_nulls_node *n`` the element to delete from the hash list. **Note** hlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj{ubj)}(hhh]j)}(hI``struct hlist_nulls_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hjh]hstruct hlist_nulls_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj{ubh)}(hhlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.h]hhlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj{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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj{ubh)}(hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h]hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_nulls_first_rcu (C macro)c.hlist_nulls_first_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_nulls_first_rcuh]j)}(hhlist_nulls_first_rcuh]jg)}(hhlist_nulls_first_rcuh]jm)}(hj8h]hhlist_nulls_first_rcu}(hjBhhhNhNubah}(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.hhK*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjUhK*ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjUhK*hj3hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj3hhhjUhK*ubeh}(h]h ](jmacroeh"]h$]h&]jjjjnjjnjjjuh1hhhhj:hNhNubh)}(h ``hlist_nulls_first_rcu (head)``h]j)}(hjth]hhlist_nulls_first_rcu (head)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK,hj:hhubj)}(h,returns the first element of the hash list. h]h)}(h+returns the first element of the hash list.h]h+returns the first element of the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK*hjubah}(h]h ]h"]h$]h&]uh1jhjhK*hj:hhubj)}(h0**Parameters** ``head`` the head of the list.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK.hjubj)}(hhh]j)}(h``head`` the head of the list.h](j)}(h``head``h]j)}(hjȆh]hhead}(hjʆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƆubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK0hj†ubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK+hjކubah}(h]h ]h"]h$]h&]uh1jhj†ubeh}(h]h ]h"]h$]h&]uh1jhj݆hK0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_nulls_next_rcu (C macro)c.hlist_nulls_next_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_nulls_next_rcuh]j)}(hhlist_nulls_next_rcuh]jg)}(hhlist_nulls_next_rcuh]jm)}(hjh]hhlist_nulls_next_rcu}(hj&hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK1ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj9hK1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj9hK1hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj9hK1ubeh}(h]h ](jmacroeh"]h$]h&]jjjjRjjRjjjuh1hhhhj:hNhNubh)}(h``hlist_nulls_next_rcu (node)``h]j)}(hjXh]hhlist_nulls_next_rcu (node)}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK3hj:hhubj)}(h0returns the element of the list after **node**. h]h)}(h/returns the element of the list after **node**.h](h&returns the element of the list after }(hjrhhhNhNubj)}(h**node**h]hnode}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK1hjnubah}(h]h ]h"]h$]h&]uh1jhjhK1hj:hhubj)}(h/**Parameters** ``node`` element of the list.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK5hjubj)}(hhh]j)}(h``node`` element of the list.h](j)}(h``node``h]j)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK7hjubj)}(hhh]h)}(helement of the list.h]helement of the list.}(hjׇhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK2hjԇubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӇhK7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hhlist_nulls_pprev_rcu (C macro)c.hlist_nulls_pprev_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_nulls_pprev_rcuh]j)}(hhlist_nulls_pprev_rcuh]jg)}(hhlist_nulls_pprev_rcuh]jm)}(hjh]hhlist_nulls_pprev_rcu}(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.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hK8ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj/hK8hj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj/hK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjHjjHjjjuh1hhhhj:hNhNubh)}(h ``hlist_nulls_pprev_rcu (node)``h]j)}(hjNh]hhlist_nulls_pprev_rcu (node)}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK:hj:hhubj)}(h,returns the dereferenced pprev of **node**. h]h)}(h+returns the dereferenced pprev of **node**.h](h"returns the dereferenced pprev of }(hjhhhhNhNubj)}(h**node**h]hnode}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK8hjdubah}(h]h ]h"]h$]h&]uh1jhjhK8hj:hhubj)}(h/**Parameters** ``node`` element of the list.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(helement of the list.h]helement of the list.}(hj͈hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK9hjʈubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɈhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h hlist_nulls_del_rcu (C function)c.hlist_nulls_del_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h5void hlist_nulls_del_rcu (struct hlist_nulls_node *n)h]j)}(h4void hlist_nulls_del_rcu(struct hlist_nulls_node *n)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj hhhjhK?ubjg)}(hhlist_nulls_del_rcuh]jm)}(hhlist_nulls_del_rcuh]hhlist_nulls_del_rcu}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj hhhjhK?ubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjihhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjkmodnameN classnameNjI jL )}jO ]jR )}jE j1sbc.hlist_nulls_del_rcuasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhK?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK?hjhhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hj͉hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK?hjʉhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to delete from the hash list. **Note** hlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKChjubj)}(hhh]j)}(hI``struct hlist_nulls_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hjh]hstruct hlist_nulls_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK@hjubj)}(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#hK@hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hK@hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Note**h]j)}(hjIh]hNote}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKBhjubh)}(hhlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hhlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKBhjubh)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKFhjubh)}(hXkThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().h]hXkThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_add_head_rcu (C function)c.hlist_nulls_add_head_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hVvoid hlist_nulls_add_head_rcu (struct hlist_nulls_node *n, struct hlist_nulls_head *h)h]j)}(hUvoid hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKXubjg)}(hhlist_nulls_add_head_rcuh]jm)}(hhlist_nulls_add_head_rcuh]hhlist_nulls_add_head_rcu}(hj͊hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjɊubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKXubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jϊsbc.hlist_nulls_add_head_rcuasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_head *hh](j)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubh)}(hhh]jm)}(hhlist_nulls_headh]hhlist_nulls_head}(hjxhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjzmodnameN classnameNjI jL )}jO ]j#c.hlist_nulls_add_head_rcuasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjm)}(hjGBh]hh}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKXhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to add to the hash list. ``struct hlist_nulls_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK\hjubj)}(hhh](j)}(hD``struct hlist_nulls_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hj h]hstruct hlist_nulls_node *n}(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.hhKYhjubj)}(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!hKYhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hKYhjubj)}(h3``struct hlist_nulls_head *h`` the list to add to. h](j)}(h``struct hlist_nulls_head *h``h]j)}(hjEh]hstruct hlist_nulls_head *h}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKZhj?ubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKZhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKZhjubeh}(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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK\hjubh)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK\hjubh)}(hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK_hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%hlist_nulls_add_tail_rcu (C function)c.hlist_nulls_add_tail_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hVvoid hlist_nulls_add_tail_rcu (struct hlist_nulls_node *n, struct hlist_nulls_head *h)h]j)}(hUvoid hlist_nulls_add_tail_rcu(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j )}(hvoidh]hvoid}(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.hhKwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjЌhhhjhKwubjg)}(hhlist_nulls_add_tail_rcuh]jm)}(hhlist_nulls_add_tail_rcuh]hhlist_nulls_add_tail_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjЌhhhjhKwubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj/hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj1modnameN classnameNjI jL )}jO ]jR )}jE jsbc.hlist_nulls_add_tail_rcuasbuh1hhj ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjm)}(hjyh]hn}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct hlist_nulls_head *hh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubh)}(hhh]jm)}(hhlist_nulls_headh]hhlist_nulls_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jKc.hlist_nulls_add_tail_rcuasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hj̍hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjm)}(hjGBh]hh}(hjٍhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjЌhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhǰhhhjhKwubah}(h]jnjah ](jjeh"]h$]h&]jj)jhuh1hhjhKwhjɌhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjɌhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to add to the hash list. ``struct hlist_nulls_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK{hjubj)}(hhh](j)}(hD``struct hlist_nulls_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hj4h]hstruct hlist_nulls_node *n}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKxhj.ubj)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKxhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKxhj+ubj)}(h3``struct hlist_nulls_head *h`` the list to add to. h](j)}(h``struct hlist_nulls_head *h``h]j)}(hjmh]hstruct hlist_nulls_head *h}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKyhjgubj)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhKyhj+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&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK{hjubh)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK{hjubh)}(hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hj͎hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhK~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$hlist_nulls_replace_rcu (C function)c.hlist_nulls_replace_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hYvoid hlist_nulls_replace_rcu (struct hlist_nulls_node *old, struct hlist_nulls_node *new)h]j)}(hXvoid hlist_nulls_replace_rcu(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hKubjg)}(hhlist_nulls_replace_rcuh]jm)}(hhlist_nulls_replace_rcuh]hhlist_nulls_replace_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hKubj)}(h<(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j)}(hstruct hlist_nulls_node *oldh](j)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjWhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjYmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.hlist_nulls_replace_rcuasbuh1hhj5ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjm)}(holdh]hold}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(hstruct hlist_nulls_node *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjɏhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjƏubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjˏmodnameN classnameNjI jL )}jO ]jsc.hlist_nulls_replace_rcuasbuh1hhjubj)}(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&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjhhubj)}(hhh]h)}(h!replace an old entry by a new oneh]h!replace an old entry by a new one}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhj:hNhNubj)}(hXz**Parameters** ``struct hlist_nulls_node *old`` the element to be replaced ``struct hlist_nulls_node *new`` the new element to insert **Description** Replace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjHubj)}(hhh](j)}(h<``struct hlist_nulls_node *old`` the element to be replaced h](j)}(h ``struct hlist_nulls_node *old``h]j)}(hjmh]hstruct hlist_nulls_node *old}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjgubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhjdubj)}(h;``struct hlist_nulls_node *new`` the new element to insert h](j)}(h ``struct hlist_nulls_node *new``h]j)}(hjh]hstruct hlist_nulls_node *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjdubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߐubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjHubh)}(hjReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals.h]hjReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjHubh)}(hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h]hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)hlist_nulls_replace_init_rcu (C function)c.hlist_nulls_replace_init_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h^void hlist_nulls_replace_init_rcu (struct hlist_nulls_node *old, struct hlist_nulls_node *new)h]j)}(h]void hlist_nulls_replace_init_rcu(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj1hhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj1hhhjChKubjg)}(hhlist_nulls_replace_init_rcuh]jm)}(hhlist_nulls_replace_init_rcuh]hhlist_nulls_replace_init_rcu}(hjVhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj1hhhjChKubj)}(h<(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j)}(hstruct hlist_nulls_node *oldh](j)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jXsbc.hlist_nulls_replace_init_rcuasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjm)}(holdh]hold}(hjˑhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hstruct hlist_nulls_node *newh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.hlist_nulls_replace_init_rcuasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hnewh]hnew}(hj;hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChKubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjChKhj*hhubj)}(hhh]h)}(h8replace an old entry by a new one and initialize the oldh]h8replace an old entry by a new one and initialize the old}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjbhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *old`` the element to be replaced ``struct hlist_nulls_node *new`` the new element to insert **Description** Replace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals, and reinitialize the old entry. **Note** **old** must be hashed. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh](j)}(h<``struct hlist_nulls_node *old`` the element to be replaced h](j)}(h ``struct hlist_nulls_node *old``h]j)}(hjh]hstruct hlist_nulls_node *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``struct hlist_nulls_node *new`` the new element to insert h](j)}(h ``struct hlist_nulls_node *new``h]j)}(hjߒh]hstruct hlist_nulls_node *new}(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.hhKhjْubj)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(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&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(hReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals, and reinitialize the old entry.h]hReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals, and reinitialize the old entry.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(h**Note**h]j)}(hjAh]hNote}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(h**old** must be hashed.h](j)}(h**old**h]hold}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh must be hashed.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(hXoThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h]hXoThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(hlist_nulls_for_each_entry_rcu (C macro) c.hlist_nulls_for_each_entry_rcuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_nulls_for_each_entry_rcuh]j)}(hhlist_nulls_for_each_entry_rcuh]jg)}(hhlist_nulls_for_each_entry_rcuh]jm)}(hjh]hhlist_nulls_for_each_entry_rcu}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjӓjjӓjjjuh1hhhhj:hNhNubh)}(h<``hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)``h]j)}(hjٓh]h8hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)}(hjۓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjדubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj:hhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj:hhubj)}(hX**Parameters** ``tpos`` the type * to use as a loop cursor. ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. ``head`` the head of the list. ``member`` the name of the hlist_nulls_node within the struct. **Description** The barrier() is needed to make sure compiler doesn't cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh](j)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhj$ubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hjfh]hpos}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(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 }(hjhhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hjh]hstruct hlist_nulls_node}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjhlist_nulls_nodeuh1hhj{hKhjubh to use as a loop cursor.}(hjhhhNhNubeh}(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)}(hj”h]hhead}(hjĔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hj۔hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjהhKhjؔubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjהhKhj$ubj)}(h?``member`` the name of the hlist_nulls_node within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj$ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubh)}(hThe barrier() is needed to make sure compiler doesn't cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146h]hThe barrier() is needed to make sure compiler doesn’t cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)hlist_nulls_for_each_entry_safe (C macro)!c.hlist_nulls_for_each_entry_safehNtauh1hhj:hhhNhNubh)}(hhh](j)}(hhlist_nulls_for_each_entry_safeh]j)}(hhlist_nulls_for_each_entry_safeh]jg)}(hhlist_nulls_for_each_entry_safeh]jm)}(hjuh]hhlist_nulls_for_each_entry_safe}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjwhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhKubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h=``hlist_nulls_for_each_entry_safe (tpos, pos, head, member)``h]j)}(hjh]h9hlist_nulls_for_each_entry_safe (tpos, pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj:hhubj)}(hCiterate over list of given type safe against removal of list entry h]h)}(hBiterate over list of given type safe against removal of list entryh]hBiterate over list of given type safe against removal of list entry}(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&]uh1jhjٕhKhj:hhubj)}(h**Parameters** ``tpos`` the type * to use as a loop cursor. ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. ``head`` the head of the list. ``member`` the name of the hlist_nulls_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjh]htpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj>h]hpos}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj8ubj)}(hhh]h)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hjWhhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hjah]hstruct hlist_nulls_node}(hjchhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnjI jjhlist_nulls_nodeuh1hhjShKhjWubh to use as a loop cursor.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjShKhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShKhjubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubj)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h>``member`` the name of the hlist_nulls_node within the struct.h](j)}(h ``member``h]j)}(hjӖh]hmember}(hjՖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjіubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhj͖ubj)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:414: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj͖ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_is_idle (C function)c.rcu_sync_is_idlehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h,bool rcu_sync_is_idle (struct rcu_sync *rsp)h]j)}(h+bool rcu_sync_is_idle(struct rcu_sync *rsp)h](j )}(hj8h]hbool}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj)hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj)hhhj:hKubjg)}(hrcu_sync_is_idleh]jm)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj)hhhj:hKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubh)}(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 jOsbc.rcu_sync_is_idleasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjm)}(hrsph]hrsp}(hj—hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(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-Are readers permitted to use their fastpaths?h]h-Are readers permitted to use their fastpaths?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj:hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** Returns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.h](h)}(h**Parameters**h]j)}(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:416: ./include/linux/rcu_sync.hhKhjubj)}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(hj-h]hstruct rcu_sync *rsp}(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:416: ./include/linux/rcu_sync.hhKhj'ubj)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhj$ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjubh)}(hReturns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.h]hReturns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:416: ./include/linux/rcu_sync.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_init (C function)c.rcu_sync_inithNtauh1hhj:hhhNhNubh)}(hhh](j)}(h)void rcu_sync_init (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_init(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h rcu_sync_inith]jm)}(h rcu_sync_inith]h rcu_sync_init}(hjΘhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjʘubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj modnameN classnameNjI jL )}jO ]jR )}jE jИsbc.rcu_sync_initasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrsph]hrsp}(hjChhhNhNubah}(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 Initialize an rcu_sync structureh]h Initialize an rcu_sync structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hZ**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubj)}(hhh]j)}(hH``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](j)}(h``struct rcu_sync *rsp``h]j)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjubj)}(hhh]h)}(h/Pointer to rcu_sync structure to be 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.chKhjęubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjÙhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_func (C function)c.rcu_sync_funchNtauh1hhj:hhhNhNubh)}(hhh](j)}(h)void rcu_sync_func (struct rcu_head *rhp)h]j)}(h(void rcu_sync_func(struct rcu_head *rhp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/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&]uh1jhjhhhjhK#ubjg)}(h rcu_sync_funch]jm)}(h rcu_sync_funch]h rcu_sync_func}(hj)hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK#ubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjchhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjemodnameN classnameNjI jL )}jO ]jR )}jE j+sbc.rcu_sync_funcasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjm)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK#hjhhubj)}(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#hjŚhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` Pointer to rcu_head in rcu_sync structure to use for synchronization **Description** This function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit. If it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path. If it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period. If another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK'hjubj)}(hhh]j)}(h^``struct rcu_head *rhp`` Pointer to rcu_head in rcu_sync structure to use for synchronization h](j)}(h``struct rcu_head *rhp``h]j)}(hj h]hstruct rcu_head *rhp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK$hjubj)}(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}(hj"hhhNhNubah}(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)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK&hjubh)}(hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.h]hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK%hjubh)}(haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.h]haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK)hjubh)}(hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.h]hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK,hjubh)}(hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.h]hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_enter (C function)c.rcu_sync_enterhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h*void rcu_sync_enter (struct rcu_sync *rsp)h]j)}(h)void rcu_sync_enter(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK[ubj)}(h h]h }(hjśhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjěhK[ubjg)}(hrcu_sync_enterh]jm)}(hrcu_sync_enterh]hrcu_sync_enter}(hjכhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjӛubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjěhK[ubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(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_enterasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrsph]hrsp}(hjLhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjěhK[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjěhK[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjěhK[hjhhubj)}(hhh]h)}(hForce readers onto slowpathh]hForce readers onto slowpath}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK[hjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhjěhK[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths. When called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK_hjubj)}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(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.chK\hjubj)}(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̜hK\hj͜ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̜hK\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:418: ./kernel/rcu/sync.chK^hjubh)}(hX*This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths.h]hX*This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chK]hjubh)}(hWhen called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().h]hWhen called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_exit (C function)c.rcu_sync_exithNtauh1hhj:hhhNhNubh)}(hhh](j)}(h)void rcu_sync_exit (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_exit(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjBhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjBhhhjThKubjg)}(h rcu_sync_exith]jm)}(h rcu_sync_exith]h rcu_sync_exit}(hjghhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjBhhhjThKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jisbc.rcu_sync_exitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjϝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrsph]hrsp}(hjܝhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubah}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhjThKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThKhj;hhubj)}(hhh]h)}(h4Allow readers back onto fast path after grace periodh]h4Allow readers back onto fast path after grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** This function is used by updaters who 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)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj"ubj)}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(hjGh]hstruct rcu_sync *rsp}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjAubj)}(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&]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:418: ./kernel/rcu/sync.chKhj"ubh)}(hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.h]hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_sync_dtor (C function)c.rcu_sync_dtorhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h)void rcu_sync_dtor (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_dtor(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjǞhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjÞhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKubj)}(h h]h }(hj֞hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjÞhhhj՞hKubjg)}(h rcu_sync_dtorh]jm)}(h rcu_sync_dtorh]h rcu_sync_dtor}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjÞhhhj՞hKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_synch]hrcu_sync}(hj"hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj$modnameN classnameNjI jL )}jO ]jR )}jE jsbc.rcu_sync_dtorasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrsph]hrsp}(hj]hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjÞhhhj՞hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj՞hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj՞hKhjhhubj)}(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&]uh1jhjhhhj՞hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(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.chKhjŸubj)}(hhh]h)}(h.Pointer to rcu_sync structure to be cleaned uph]h.Pointer to rcu_sync structure to be cleaned up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:418: ./kernel/rcu/sync.chKhjޟubah}(h]h ]h"]h$]h&]uh1jhjŸubeh}(h]h ]h"]h$]h&]uh1jhjݟhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_tasks_percpu (C struct)c.rcu_tasks_percpuhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hrcu_tasks_percpuh]j)}(hstruct rcu_tasks_percpuh](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj/hKubjg)}(hrcu_tasks_percpuh]jm)}(hjh]hrcu_tasks_percpu}(hjBhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj/hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hKhjhhubj)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hKubeh}(h]h ](jstructeh"]h$]h&]jjjj|jj|jjjuh1hhhhj:hNhNubj)}(hX**Definition**:: struct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; }; **Members** ``cblist`` Callback list. ``lock`` Lock protecting per-CPU callback list. ``rtp_jiffies`` Jiffies counter value for statistics. ``rtp_n_lock_retries`` Rough lock-contention statistic. ``lazy_timer`` Timer to unlazify callbacks. ``urgent_gp`` Number of additional non-lazy grace periods. ``rtp_work`` Work queue for invoking callbacks. ``rtp_irq_work`` IRQ work queue for deferred wakeups. ``barrier_q_head`` RCU callback for barrier operation. ``rtp_blkd_tasks`` List of tasks blocked as readers. ``rtp_exit_list`` List of tasks in the latter portion of do_exit(). ``cpu`` CPU number corresponding to this entry. ``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. ``rtpp`` Pointer to the rcu_tasks structure.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj#C)}(hXstruct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; };h]hXstruct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; };}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)}(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.hhK/hjubj)}(hhh](j)}(h``cblist`` Callback list. h](j)}(h ``cblist``h]j)}(hjѠh]hcblist}(hjӠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϠubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjˠubj)}(hhh]h)}(hCallback list.h]hCallback list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjˠubeh}(h]h ]h"]h$]h&]uh1jhjhKhjȠubj)}(h0``lock`` Lock protecting per-CPU callback list. h](j)}(h``lock``h]j)}(hj h]hlock}(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&Lock protecting per-CPU callback list.h]h&Lock protecting per-CPU callback list.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjȠubj)}(h6``rtp_jiffies`` Jiffies counter value for statistics. h](j)}(h``rtp_jiffies``h]j)}(hjCh]h rtp_jiffies}(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.hhKhj=ubj)}(hhh]h)}(h%Jiffies counter value for statistics.h]h%Jiffies counter value for statistics.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjȠubj)}(h8``rtp_n_lock_retries`` Rough lock-contention statistic. h](j)}(h``rtp_n_lock_retries``h]j)}(hj|h]hrtp_n_lock_retries}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjvubj)}(hhh]h)}(h Rough lock-contention statistic.h]h Rough lock-contention statistic.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjȠubj)}(h,``lazy_timer`` Timer to unlazify callbacks. h](j)}(h``lazy_timer``h]j)}(hjh]h lazy_timer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj)}(hhh]h)}(hTimer to unlazify callbacks.h]hTimer to unlazify callbacks.}(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;``urgent_gp`` Number of additional non-lazy grace periods. h](j)}(h ``urgent_gp``h]j)}(hjh]h urgent_gp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubj)}(hhh]h)}(h,Number of additional non-lazy grace periods.h]h,Number of additional non-lazy grace periods.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjȠubj)}(h0``rtp_work`` Work queue for invoking callbacks. h](j)}(h ``rtp_work``h]j)}(hj'h]hrtp_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"Work queue for invoking callbacks.h]h"Work queue for invoking callbacks.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hK hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hK 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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK!hjZubj)}(hhh]h)}(h$IRQ work queue for deferred wakeups.h]h$IRQ work queue for deferred wakeups.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhK!hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhK!hjȠubj)}(h7``barrier_q_head`` RCU callback for barrier operation. h](j)}(h``barrier_q_head``h]j)}(hjh]hbarrier_q_head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK"hjubj)}(hhh]h)}(h#RCU callback for barrier operation.h]h#RCU callback for barrier operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjȠubj)}(h5``rtp_blkd_tasks`` List of tasks blocked as readers. h](j)}(h``rtp_blkd_tasks``h]j)}(hjҢh]hrtp_blkd_tasks}(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!List of tasks blocked as readers.h]h!List of tasks blocked as readers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhj̢ubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjȠubj)}(hD``rtp_exit_list`` List of tasks in the latter portion of do_exit(). h](j)}(h``rtp_exit_list``h]j)}(hj h]h rtp_exit_list}(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$hjubj)}(hhh]h)}(h1List of tasks in the latter portion of do_exit().h]h1List of tasks in the latter portion of do_exit().}(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)}(h0``cpu`` CPU number corresponding to this entry. h](j)}(h``cpu``h]j)}(hjDh]hcpu}(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.hhK%hj>ubj)}(hhh]h)}(h'CPU number corresponding to this entry.h]h'CPU number corresponding to this entry.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhK%hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhK%hjȠubj)}(hG``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. h](j)}(h ``index``h]j)}(hj}h]hindex}(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&hjwubj)}(hhh]h)}(hhjnubj#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@hjnubh)}(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.hhKehjnubj)}(hhh](j)}(hJ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. h](j)}(h ``cbs_wait``h]j)}(hjh]hcbs_wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKRCU wait allowing a new callback to get kthread’s attention.}(hjؤhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԤhKhj+ubj)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhK>hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhK>hjubj)}(hF``gp_state`` Grace period's most recent state transition (debugging). h](j)}(h ``gp_state``h]j)}(hjjh]hgp_state}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK@hjdubj)}(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&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubj)}(h/``init_fract`` Initial backoff sleep interval. h](j)}(h``init_fract``h]j)}(hjܥh]h init_fract}(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.hhKBhj֥ubj)}(hhh]h)}(hInitial backoff sleep interval.h]hInitial backoff sleep interval.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1jhj֥ubeh}(h]h ]h"]h$]h&]uh1jhjhKBhjubj)}(h5``gp_jiffies`` Time of last **gp_state** transition. h](j)}(h``gp_jiffies``h]j)}(hjh]h gp_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKChjubj)}(hhh]h)}(h%Time of last **gp_state** transition.h](h Time of last }(hj.hhhNhNubj)}(h **gp_state**h]hgp_state}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh transition.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hKChj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKChjubj)}(h8``gp_start`` Most recent grace-period start in jiffies. h](j)}(h ``gp_start``h]j)}(hj`h]hgp_start}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKDhjZubj)}(hhh]h)}(h*Most recent grace-period start in jiffies.h]h*Most recent grace-period start in jiffies.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKDhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKDhjubj)}(hM``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. h](j)}(h``tasks_gp_seq``h]j)}(hjh]h tasks_gp_seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKEhjubj)}(hhh]h)}(h;Number of grace periods completed since boot in upper bits.h]h;Number of grace periods completed since boot in upper bits.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKEhjubj)}(hB``n_ipis`` Number of IPIs sent to encourage grace periods to end. h](j)}(h ``n_ipis``h]j)}(hjҦh]hn_ipis}(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.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1jhj̦ubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubj)}(h.``n_ipis_fails`` Number of IPI-send failures. h](j)}(h``n_ipis_fails``h]j)}(hj h]h n_ipis_fails}(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.hhKGhjubj)}(hhh]h)}(hNumber of IPI-send failures.h]hNumber of IPI-send failures.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKGhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKGhjubj)}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j)}(h``kthread_ptr``h]j)}(hjDh]h kthread_ptr}(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.hhKHhj>ubj)}(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&]uh1hhjYhKHhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKHhjubj)}(hB``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. h](j)}(h``lazy_jiffies``h]j)}(hj}h]h lazy_jiffies}(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.hhKIhjwubj)}(hhh]h)}(h0Number of jiffies to allow callbacks to be lazy.h]h0Number of jiffies to allow callbacks to be lazy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKIhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjubj)}(h6``gp_func`` This flavor's grace-period-wait function. h](j)}(h ``gp_func``h]j)}(hjh]hgp_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.hhK?hjubj)}(hhh]h)}(h)This flavor's grace-period-wait function.h]h+This flavor’s grace-period-wait function.}(hjϧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˧hK?hj̧ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˧hK?hjubj)}(hC``pregp_func`` This flavor's pre-grace-period function (optional). h](j)}(h``pregp_func``h]j)}(hjh]h pregp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKJhjubj)}(hhh]h)}(h3This flavor's pre-grace-period function (optional).h]h5This flavor’s pre-grace-period function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubj)}(hB``pertask_func`` This flavor's per-task scan function (optional). h](j)}(h``pertask_func``h]j)}(hj(h]h pertask_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.hhKKhj"ubj)}(hhh]h)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKKhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKKhjubj)}(hD``postscan_func`` This flavor's post-task scan function (optional). h](j)}(h``postscan_func``h]j)}(hjah]h postscan_func}(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.hhKLhj[ubj)}(hhh]h)}(h1This flavor's post-task scan function (optional).h]h3This flavor’s post-task scan function (optional).}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhKLhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKLhjubj)}(hG``holdouts_func`` This flavor's holdout-list scan function (optional). h](j)}(h``holdouts_func``h]j)}(hjh]h holdouts_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKMhjubj)}(hhh]h)}(h4This flavor's holdout-list scan function (optional).h]h6This flavor’s holdout-list scan function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(hE``postgp_func`` This flavor's post-grace-period function (optional). h](j)}(h``postgp_func``h]j)}(hjӨh]h postgp_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.hhKNhjͨubj)}(hhh]h)}(h4This flavor's post-grace-period function (optional).h]h6This flavor’s post-grace-period function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjͨubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubj)}(h<``call_func`` This flavor's call_rcu()-equivalent function. h](j)}(h ``call_func``h]j)}(hj h]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.hhKOhjubj)}(hhh]h)}(h-This flavor's call_rcu()-equivalent function.h]h/This flavor’s call_rcu()-equivalent function.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKOhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hKOhjubj)}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j)}(h``wait_state``h]j)}(hjEh]h wait_state}(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.hhKPhj?ubj)}(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&]uh1hhjZhKPhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKPhjubj)}(h5``rtpcpu`` This flavor's rcu_tasks_percpu structure. h](j)}(h ``rtpcpu``h]j)}(hj~h]hrtpcpu}(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.hhKQhjxubj)}(hhh]h)}(h)This flavor's rcu_tasks_percpu structure.h]h+This flavor’s rcu_tasks_percpu structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubj)}(h^``rtpcp_array`` Array of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask. h](j)}(h``rtpcp_array``h]j)}(hjh]h rtpcp_array}(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.hhKRhjubj)}(hhh]h)}(hMArray of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask.h]hMArray of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask.}(hjЩhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̩hKRhjͩubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̩hKRhjubj)}(hO``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. h](j)}(h``percpu_enqueue_shift``h]j)}(hjh]hpercpu_enqueue_shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKShjubj)}(hhh]h)}(h5Shift down CPU ID this much when enqueuing callbacks.h]h5Shift down CPU ID this much when enqueuing callbacks.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKShjubj)}(hO``percpu_enqueue_lim`` Number of per-CPU callback queues in use for enqueuing. h](j)}(h``percpu_enqueue_lim``h]j)}(hj)h]hpercpu_enqueue_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.hhKThj#ubj)}(hhh]h)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKThj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKThjubj)}(hO``percpu_dequeue_lim`` Number of per-CPU callback queues in use for dequeuing. h](j)}(h``percpu_dequeue_lim``h]j)}(hjbh]hpercpu_dequeue_lim}(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.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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhKUhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKUhjubj)}(hZ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. h](j)}(h``percpu_dequeue_gpseq``h]j)}(hjh]hpercpu_dequeue_gpseq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKVhjubj)}(hhh]h)}(h@RCU grace-period number to propagate enqueue limit to dequeuers.h]h@RCU grace-period number to propagate enqueue limit to dequeuers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKVhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKVhjubj)}(h2``barrier_q_mutex`` Serialize barrier operations. h](j)}(h``barrier_q_mutex``h]j)}(hjԪh]hbarrier_q_mutex}(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.hhKWhjΪubj)}(hhh]h)}(hSerialize barrier operations.h]hSerialize barrier operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKWhjubah}(h]h ]h"]h$]h&]uh1jhjΪubeh}(h]h ]h"]h$]h&]uh1jhjhKWhjubj)}(h6``barrier_q_count`` Number of queues being waited on. h](j)}(h``barrier_q_count``h]j)}(hj h]hbarrier_q_count}(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.hhKXhjubj)}(hhh]h)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKXhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hKXhjubj)}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j)}(h``barrier_q_completion``h]j)}(hjFh]hbarrier_q_completion}(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.hhKYhj@ubj)}(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&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKYhjubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKZhjyubj)}(hhh]h)}(h'Sequence number for barrier operations.h]h'Sequence number for barrier operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(h:``barrier_q_start`` Most recent barrier start in jiffies. h](j)}(h``barrier_q_start``h]j)}(hjh]hbarrier_q_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK[hjubj)}(hhh]h)}(h%Most recent barrier start in jiffies.h]h%Most recent barrier start in jiffies.}(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%``name`` This flavor's textual name. h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK\hjubj)}(hhh]h)}(hThis flavor's textual name.h]hThis flavor’s textual name.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubj)}(h%``kname`` This flavor's kthread name.h](j)}(h ``kname``h]j)}(hj*h]hkname}(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)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhK]hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hK\hjubeh}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hcall_rcu_tasks (C function)c.call_rcu_taskshNtauh1hhj:hhhNhNubh)}(hhh](j)}(h?void call_rcu_tasks (struct rcu_head *rhp, rcu_callback_t func)h]j)}(h>void call_rcu_tasks(struct rcu_head *rhp, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hcall_rcu_tasksh]jm)}(hcall_rcu_tasksh]hcall_rcu_tasks}(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)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjάhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hj߬hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjܬubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jsbc.call_rcu_tasksasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrhph]hrhp}(hjhhhNhNubah}(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}(hj6hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj8modnameN classnameNjI jL )}jO ]jc.call_rcu_tasksasbuh1hhj/ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj/ubjm)}(hfunch]hfunc}(hjbhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjyhhubj)}(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&]uh1jhjyhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a full grace period elapses, in other words after all currently executing RCU read-side critical sections have completed. call_rcu_tasks() assumes that the read-side critical sections end at a voluntary context switch (not a preemption!), cond_resched_tasks_rcu_qs(), entry into idle, or transition to usermode execution. As such, there are no read-side primitives analogous to rcu_read_lock() and rcu_read_unlock() because this primitive is intended to determine that all tasks have passed through a safe state, not so much for data-structure synchronization. See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(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)}(hjͭh]hstruct rcu_head *rhp}(hjϭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˭ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjǭubj)}(hhh]h)}(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&]uh1jhjǭubeh}(h]h ]h"]h$]h&]uh1jhjhMhjĭubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjh]hrcu_callback_t func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjĭubeh}(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: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.}(hjWhhhNhNubah}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"synchronize_rcu_tasks (C function)c.synchronize_rcu_taskshNtauh1hhj:hhhNhNubh)}(hhh](j)}(h!void synchronize_rcu_tasks (void)h]j)}(h void synchronize_rcu_tasks(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hsynchronize_rcu_tasksh]jm)}(hsynchronize_rcu_tasksh]hsynchronize_rcu_tasks}(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)}(h1wait until an rcu-tasks grace period has elapsed.h]h1wait until an rcu-tasks grace period has elapsed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX7**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj=h]hvoid}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj7ubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKhj4ubah}(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&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcu_barrier_tasks (C function)c.rcu_barrier_taskshNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_barrier_tasks (void)h]j)}(hvoid rcu_barrier_tasks(void)h](j )}(hvoidh]hvoid}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjׯhhhjhMubjg)}(hrcu_barrier_tasksh]jm)}(hrcu_barrier_tasksh]hrcu_barrier_tasks}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjׯhhhjhMubj)}(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ׯhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjӯhhhjhMubah}(h]jίah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjЯhhubj)}(hhh]h)}(h.Wait for in-flight call_rcu_tasks() callbacks.h]h.Wait for in-flight call_rcu_tasks() callbacks.}(hjBhhhNhNubah}(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&]uh1jhjЯhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Although the current implementation is guaranteed to wait, it is not obligated to, for example, if there are no pending callbacks.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(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.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&]uh1jhjhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhj^ubh)}(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.hhMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'synchronize_rcu_tasks_rude (C function)c.synchronize_rcu_tasks_rudehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h&void synchronize_rcu_tasks_rude (void)h]j)}(h%void synchronize_rcu_tasks_rude(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhW/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&]uh1jhjhhhjhMpubjg)}(hsynchronize_rcu_tasks_rudeh]jm)}(hsynchronize_rcu_tasks_rudeh]hsynchronize_rcu_tasks_rude}(hj$hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhMpubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj<ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMphjhhubj)}(hhh]h)}(h&wait for a rude rcu-tasks grace periodh]h&wait for a rude rcu-tasks grace period}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMphjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX+**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMthjubj)}(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&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjubh)}(hXControl will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched().h]hXControl will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.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.}(hj hhhNhNubah}(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&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!call_rcu_tasks_trace (C function)c.call_rcu_tasks_tracehNtauh1hhj:hhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjEhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjEhhhjWhMubjg)}(hcall_rcu_tasks_traceh]jm)}(hcall_rcu_tasks_traceh]hcall_rcu_tasks_trace}(hjjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjEhhhjWhMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jR )}jE jlsbc.call_rcu_tasks_traceasbuh1hhjubj)}(h h]h }(hjIJhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjҲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrhph]hrhp}(hj߲hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hrcu_callback_t funch](h)}(hhh]jm)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]jc.call_rcu_tasks_traceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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&]jjuh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj>hhubj)}(hhh]h)}(h.Queue a callback trace task-based grace periodh]h.Queue a callback trace task-based grace period}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjNhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1hhhhj:hNhNubj)}(hX^**Parameters** ``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a 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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjmubj)}(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}(hjͳhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɳubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjųubj)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(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&]uh1jhjmubh)}(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.hhMhjmubh)}(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.hhMhjmubh)}(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.hhMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(synchronize_rcu_tasks_trace (C function)c.synchronize_rcu_tasks_tracehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h'void synchronize_rcu_tasks_trace (void)h]j)}(h&void synchronize_rcu_tasks_trace(void)h](j )}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjVhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMubj)}(h h]h }(hjihhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjVhhhjhhMubjg)}(hsynchronize_rcu_tasks_traceh]jm)}(hsynchronize_rcu_tasks_traceh]hsynchronize_rcu_tasks_trace}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjVhhhjhhMubj)}(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&]jjuh1jhjVhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjOhhubj)}(hhh]h)}(h'wait for a trace rcu-tasks grace periodh]h'wait for a trace rcu-tasks grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjٴjjٴjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_trace() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]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&]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&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhKhjݴubh)}(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().}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjݴubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjݴubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhjݴubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$rcu_barrier_tasks_trace (C function)c.rcu_barrier_tasks_tracehNtauh1hhj:hhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhMubjg)}(hrcu_barrier_tasks_traceh]jm)}(hrcu_barrier_tasks_traceh]hrcu_barrier_tasks_trace}(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)}(h4Wait for in-flight call_rcu_tasks_trace() callbacks.h]h4Wait for in-flight call_rcu_tasks_trace() callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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&]jjjjjjjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Although the current implementation is guaranteed to wait, it is not obligated to, for example, if there are no pending callbacks.h](h)}(h**Parameters**h]j)}(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)}(hjHh]hvoid}(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.hhKhjBubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:420: ./kernel/rcu/tasks.hhMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_cpu_stall_reset (C function)c.rcu_cpu_stall_resethNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_cpu_stall_reset (void)h]j)}(hvoid rcu_cpu_stall_reset(void)h](j )}(hvoidh]hvoid}(hjȶhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjĶhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKubj)}(h h]h }(hj׶hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjĶhhhjֶhKubjg)}(hrcu_cpu_stall_reseth]jm)}(hrcu_cpu_stall_reseth]hrcu_cpu_stall_reset}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjĶhhhjֶ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&]jjuh1jhjĶhhhjֶhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjֶhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjֶhKhjhhubj)}(hhh]h)}(h6restart stall-warning timeout for current grace periodh]h6restart stall-warning timeout for current grace period}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjֶhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhj:hNhNubj)}(hXg**Parameters** ``void`` no arguments **Description** To perform the reset request from the caller, disable stall detection until 3 fqs loops have passed. This is required to ensure a fresh jiffies is loaded. It should be safe to do from the fqs loop as enough timer interrupts and context switches should have passed. The caller must disable hard irqs.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjKubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjph]hvoid}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjjubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjgubah}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjKubh)}(hX To perform the reset request from the caller, disable stall detection until 3 fqs loops have passed. This is required to ensure a fresh jiffies is loaded. It should be safe to do from the fqs loop as enough timer interrupts and context switches should have passed.h]hX To perform the reset request from the caller, disable stall detection until 3 fqs loops have passed. This is required to ensure a fresh jiffies is loaded. It should be safe to do from the fqs loop as enough timer interrupts and context switches should have passed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjKubh)}(h"The caller must disable hard irqs.h]h"The caller must disable hard irqs.}(hjзhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhKhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.rcu_stall_chain_notifier_register (C function)#c.rcu_stall_chain_notifier_registerhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h@int rcu_stall_chain_notifier_register (struct notifier_block *n)h]j)}(h?int rcu_stall_chain_notifier_register(struct notifier_block *n)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhj hMlubjg)}(h!rcu_stall_chain_notifier_registerh]jm)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hj hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhj hMlubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hjZhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj\modnameN classnameNjI jL )}jO ]jR )}jE j"sb#c.rcu_stall_chain_notifier_registerasbuh1hhj8ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjm)}(hjyh]hn}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMlhjhhubj)}(hhh]h)}(hAdd an RCU CPU stall notifierh]hAdd an RCU CPU stall notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMlhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjָjjָjjjuh1hhhhj:hNhNubj)}(hXq**Parameters** ``struct notifier_block *n`` Entry to add. **Description** Adds an RCU CPU stall notifier to an atomic notifier chain. The **action** passed to a notifier will be **RCU_STALL_NOTIFY_NORM** or friends. The **data** will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer. Returns 0 on success, ``-EEXIST`` on error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޸ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMphjڸubj)}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hjh]hstruct notifier_block *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMmhjubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjڸubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMohjڸubh)}(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 }(hjPhhhNhNubj)}(h **action**h]haction}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh passed to a notifier will be }(hjPhhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh or friends. The }(hjPhhhNhNubj)}(h**data**h]hdata}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMnhjڸubh)}(h+Returns 0 on success, ``-EEXIST`` on error.h](hReturns 0 on success, }(hjhhhNhNubj)}(h ``-EEXIST``h]h-EEXIST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMshjڸubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h0rcu_stall_chain_notifier_unregister (C function)%c.rcu_stall_chain_notifier_unregisterhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hBint rcu_stall_chain_notifier_unregister (struct notifier_block *n)h]j)}(hAint rcu_stall_chain_notifier_unregister(struct notifier_block *n)h](j )}(hinth]hint}(hjֹhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjҹhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjҹhhhjhMubjg)}(h#rcu_stall_chain_notifier_unregisterh]jm)}(h#rcu_stall_chain_notifier_unregisterh]h#rcu_stall_chain_notifier_unregister}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjҹhhhjhMubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hnotifier_blockh]hnotifier_block}(hj1hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj3modnameN classnameNjI jL )}jO ]jR )}jE jsb%c.rcu_stall_chain_notifier_unregisterasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hjyh]hn}(hjlhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(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 Remove an RCU CPU stall notifierh]h Remove an RCU CPU stall notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj˹hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``struct notifier_block *n`` Entry to add. **Description** Removes an RCU CPU stall notifier from an atomic notifier chain. Returns zero on success, ``-ENOENT`` on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjubj)}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hjֺh]hstruct notifier_block *n}(hjغhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԺubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjкubj)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjкubeh}(h]h ]h"]h$]h&]uh1jhjhMhjͺubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjubh)}(h@Removes an RCU CPU stall notifier from an atomic notifier chain.h]h@Removes an RCU CPU stall notifier from an atomic notifier chain.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjubh)}(h0Returns zero on success, ``-ENOENT`` on failure.h](hReturns zero on success, }(hj6hhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh on failure.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:422: ./kernel/rcu/tree_stall.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h rcu_read_lock_trace (C function)c.rcu_read_lock_tracehNtauh1hhj:hhhNhNubh)}(hhh](j)}(hvoid rcu_read_lock_trace (void)h]j)}(hvoid rcu_read_lock_trace(void)h](j )}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjshhhc/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&]uh1jhjshhhjhK&ubjg)}(hrcu_read_lock_traceh]jm)}(hrcu_read_lock_traceh]hrcu_read_lock_trace}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjshhhjhK&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&]jjuh1jhjshhhjhK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhK&ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhK&hjlhhubj)}(hhh]h)}(h6mark beginning of RCU-trace read-side critical sectionh]h6mark beginning of RCU-trace read-side critical section}(hj޻hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK&hjۻhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK*hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjubh)}(hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.h]hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhK'hjubh)}(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.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"rcu_read_unlock_trace (C function)c.rcu_read_unlock_tracehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h!void rcu_read_unlock_trace (void)h]j)}(h void rcu_read_unlock_trace(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]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_unlock_traceh]jm)}(hrcu_read_unlock_traceh]hrcu_read_unlock_trace}(hjϼhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj˼ubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK>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&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK>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&]uh1jhjhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhj:hNhNubj)}(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)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKBhj1ubj)}(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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhjPubj)}(hhh]h)}(h no argumentsh]h no arguments}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKhj1ubh)}(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?hj1ubh)}(hEFor more details, please see the documentation for rcu_read_unlock().h]hEFor more details, please see the documentation for rcu_read_unlock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:424: ./include/linux/rcupdate_trace.hhKChj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsynchronize_rcu_mult (C macro)c.synchronize_rcu_multhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hsynchronize_rcu_multh]j)}(hsynchronize_rcu_multh]jg)}(hsynchronize_rcu_multh]jm)}(hj߽h]hsynchronize_rcu_mult}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK'ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjݽhhhjhK'ubah}(h]jؽah ](jjeh"]h$]h&]jj)jhuh1hhjhK'hjڽhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjڽhhhjhK'ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubh)}(h``synchronize_rcu_mult (...)``h]j)}(hjh]hsynchronize_rcu_mult (...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK)hj:hhubj)}(h-Wait concurrently for multiple grace periods h]h)}(h,Wait concurrently for multiple grace periodsh]h,Wait concurrently for multiple grace periods}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK'hj1ubah}(h]h ]h"]h$]h&]uh1jhjChK'hj:hhubj)}(hX**Parameters** ``...`` List of call_rcu() functions for different grace periods to wait on **Description** This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain's call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct. Note that call_rcu_hurry() should be used instead of call_rcu() because in kernels built with CONFIG_RCU_LAZY=y the delay between the invocation of call_rcu() and that of the corresponding RCU callback can be multiple seconds. The first argument tells Tiny RCU's _wait_rcu_gp() not to bother waiting for RCU. The reason for this is because anywhere synchronize_rcu_mult() can be called is automatically already a full grace period.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK+hjJubj)}(hhh]j)}(hL``...`` List of call_rcu() functions for different grace periods to wait on h](j)}(h``...``h]j)}(hjoh]h...}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK(hjiubj)}(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&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjfubah}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK*hjJubh)}(hX|This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain's call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct.h]hX~This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain’s call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK)hjJubh)}(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.}(hjϾhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK0hjJubh)}(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.}(hj޾hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:426: ./include/linux/rcupdate_wait.hhK5hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_init (C function) c.rcuref_inithNtauh1hhj:hhhNhNubh)}(hhh](j)}(h2void rcuref_init (rcuref_t *ref, unsigned int cnt)h]j)}(h1void rcuref_init(rcuref_t *ref, unsigned int cnt)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(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}(hj.hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj*ubah}(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}(hjMhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjOmodnameN classnameNjI jL )}jO ]jR )}jE j0sb c.rcuref_initasbuh1hhjFubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hunsigned int cnth](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)}(hcnth]hcnt}(hjٿhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]h)}(hBInitialize a rcuref reference count with the given reference counth]hBInitialize a rcuref reference count with the given reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(h**Parameters** ``rcuref_t *ref`` Pointer to the reference count ``unsigned int cnt`` The initial reference count typically '1'h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubj)}(hhh](j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjDh]h rcuref_t *ref}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj>ubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj;ubj)}(h>``unsigned int cnt`` The initial reference count typically '1'h](j)}(h``unsigned int cnt``h]j)}(hj}h]hunsigned int cnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjwubj)}(hhh]h)}(h)The initial reference count typically '1'h]h-The initial reference count typically ‘1’}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(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](hrcuref_read (C function) c.rcuref_readhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h(unsigned int rcuref_read (rcuref_t *ref)h]j)}(h'unsigned int rcuref_read(rcuref_t *ref)h](j )}(hunsignedh]hunsigned}(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&]uh1jhjhhhjhKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKubjg)}(h rcuref_readh]jm)}(h rcuref_readh]h rcuref_read}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hj3hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetj5modnameN classnameNjI jL )}jO ]jR )}jE jsb c.rcuref_readasbuh1hhj,ubj)}(h h]h }(hjShhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj,ubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjm)}(hrefh]href}(hjnhhhNhNubah}(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)}(h4Read the number of held reference counts of a rcurefh]h4Read the number of held reference counts of a rcuref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hXu**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Return** The number of held references (0 ... N). The value 0 does not indicate that it is safe to schedule the object, protected by this reference counter, for deconstruction. If you want to know if the reference counter has been marked DEAD (as signaled by rcuref_put()) please use rcuread_is_dead().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK"hjubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.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&]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.hhK!hjubh)}(hX%The number of held references (0 ... N). The value 0 does not indicate that it is safe to schedule the object, protected by this reference counter, for deconstruction. If you want to know if the reference counter has been marked DEAD (as signaled by rcuref_put()) please use rcuread_is_dead().h]hX%The number of held references (0 ... N). The value 0 does not indicate that it is safe to schedule the object, protected by this reference counter, for deconstruction. If you want to know if the reference counter has been marked DEAD (as signaled by rcuref_put()) please use rcuread_is_dead().}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_is_dead (C function)c.rcuref_is_deadhNtauh1hhj:hhhNhNubh)}(hhh](j)}(h#bool rcuref_is_dead (rcuref_t *ref)h]j)}(h"bool rcuref_is_dead(rcuref_t *ref)h](j )}(hj8h]hbool}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjUhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjUhhhjfhK0ubjg)}(hrcuref_is_deadh]jm)}(hrcuref_is_deadh]hrcuref_is_dead}(hjyhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjUhhhjfhK0ubj)}(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{sbc.rcuref_is_deadasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjUhhhjfhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjfhK0ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjfhK0hjNhhubj)}(hhh]h)}(h0Check if the rcuref has been already marked deadh]h0Check if the rcuref has been already marked dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK0hjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjfhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX;**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Return** True if the object has been marked DEAD. This signals that a previous invocation of rcuref_put() returned true on this reference counter meaning the protected object can safely be scheduled for deconstruction. Otherwise, returns false.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK4hjubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hj>h]h rcuref_t *ref}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK1hj8ubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShK1hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShK1hj5ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK3hjubh)}(hTrue if the object has been marked DEAD. This signals that a previous invocation of rcuref_put() returned true on this reference counter meaning the protected object can safely be scheduled for deconstruction. Otherwise, returns false.h]hTrue if the object has been marked DEAD. This signals that a previous invocation of rcuref_put() returned true on this reference counter meaning the protected object can safely be scheduled for deconstruction. Otherwise, returns false.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_get (C function) c.rcuref_gethNtauh1hhj:hhhNhNubh)}(hhh](j)}(hbool rcuref_get (rcuref_t *ref)h]j)}(hbool rcuref_get(rcuref_t *ref)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhKBubjg)}(h rcuref_geth]jm)}(h rcuref_geth]h rcuref_get}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhKBubj)}(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_getasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hj8hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKBhjhhubj)}(hhh]h)}(h1Acquire one reference on a rcuref reference counth]h1Acquire one reference on a rcuref reference count}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKBhj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhj:hNhNubj)}(hX **Parameters** ``rcuref_t *ref`` Pointer to the reference count **Description** Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF. Provides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.c True if a reference was successfully acquired **Return** False if the attempt to acquire a reference failed. This happens when the last reference has been put alreadyh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKFhj~ubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubah}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKEhj~ubh)}(h@Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF.h]h@Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKDhj~ubh)}(hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.ch]hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKFhj~ubj)}(h.True if a reference was successfully acquired h]h)}(h-True if a reference was successfully acquiredh]h-True if a reference was successfully acquired}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKKhjubah}(h]h ]h"]h$]h&]uh1jhj$hKKhj~ubh)}(h **Return**h]j)}(hj-h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKMhj~ubh)}(hmFalse if the attempt to acquire a reference failed. This happens when the last reference has been put alreadyh]hmFalse if the attempt to acquire a reference failed. This happens when the last reference has been put already}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_put_rcusafe (C function)c.rcuref_put_rcusafehNtauh1hhj:hhhNhNubh)}(hhh](j)}(h'bool rcuref_put_rcusafe (rcuref_t *ref)h]j)}(h&bool rcuref_put_rcusafe(rcuref_t *ref)h](j )}(hj8h]hbool}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjnhhh[/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&]uh1jhjnhhhjhKyubjg)}(hrcuref_put_rcusafeh]jm)}(hrcuref_put_rcusafeh]hrcuref_put_rcusafe}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjnhhhjhKyubj)}(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 jsbc.rcuref_put_rcusafeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhKyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjhKyubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhKyhjghhubj)}(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&]uh1jhjhhhj*hNubah}(h]h ]h"]h$]h&]jjuh1jhj*hKyhjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1hhhhj:hNhNubj)}(hXt**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Description** Provides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after. Can be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()'ed and atomic contexts qualify. False if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object. **Return** True if this was the last reference with no future references possible. This signals the caller that it can safely release the object which is protected by the reference counter.h](h)}(h**Parameters**h]j)}(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:428: ./include/linux/rcuref.hhK}hjDubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjih]h rcuref_t *ref}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKzhjcubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKzhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKzhj`ubah}(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:428: ./include/linux/rcuref.hhK|hjDubh)}(hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.h]hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhK{hjDubh)}(hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()'ed and atomic contexts qualify.h]hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()’ed and atomic contexts qualify.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjDubj)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object. h]h)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.h]hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjDubh)}(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.hhKhjDubh)}(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.hhKhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hrcuref_put (C function) c.rcuref_puthNtauh1hhj:hhhNhNubh)}(hhh](j)}(hbool rcuref_put (rcuref_t *ref)h]j)}(hbool rcuref_put(rcuref_t *ref)h](j )}(hj8h]hbool}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1j hj4hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhj4hhhjEhKubjg)}(h rcuref_puth]jm)}(h rcuref_puth]h rcuref_put}(hjXhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jfhj4hhhjEhKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]jm)}(hrcuref_th]hrcuref_t}(hjwhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjymodnameN classnameNjI jL )}jO ]jR )}jE jZsb c.rcuref_putasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjm)}(hrefh]href}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubah}(h]h ]h"]h$]h&]jjuh1jhj4hhhjEhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjEhKubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjEhKhj-hhubj)}(hhh]j)}(hhh]j)}(h2Release one reference for a rcuref reference counth]h)}(hjh]h2Release one reference for a rcuref reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjEhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Description** Can be invoked from any context. Provides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after. True if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction. False if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:428: ./include/linux/rcuref.hhKhj ubj)}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hj/h]h rcuref_t *ref}(hj1hhhNhNubah}(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.hhKhj)ubj)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]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.}(hjhhhNhNubah}(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&]uh1jhjhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj:hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,same_state_synchronize_rcu_full (C function)!c.same_state_synchronize_rcu_fullhNtauh1hhj:hhhNhNubh)}(hhh](j)}(hebool same_state_synchronize_rcu_full (struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h]j)}(hdbool same_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1j hjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK3ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjhhhjhK3ubjg)}(hsame_state_synchronize_rcu_fullh]jm)}(hsame_state_synchronize_rcu_fullh]hsame_state_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ](jjeh"]h$]h&]jjuh1jfhjhhhjhK3ubj)}(h@(struct rcu_gp_oldstate *rgosp1, struct rcu_gp_oldstate *rgosp2)h](j)}(hstruct rcu_gp_oldstate *rgosp1h](j)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hj@hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjBmodnameN classnameNjI jL )}jO ]jR )}jE jsb!c.same_state_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosp1h]hrgosp1}(hj{hhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rcu_gp_oldstate *rgosp2h](j)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubh)}(hhh]jm)}(hrcu_gp_oldstateh]hrcu_gp_oldstate}(hjhhhNhNubah}(h]h ]jyah"]h$]h&]uh1jlhjubah}(h]h ]h"]h$]h&] refdomainjreftypejE reftargetjmodnameN classnameNjI jL )}jO ]j\!c.same_state_synchronize_rcu_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j*ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjm)}(hrgosp2h]hrgosp2}(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)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhj:hNhNubj)}(hX**Parameters** ``struct rcu_gp_oldstate *rgosp1`` First old-state value. ``struct rcu_gp_oldstate *rgosp2`` Second old-state value. **Description** The two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller. Note that equality is judged on a bitwise basis, so that an **rcu_gp_oldstate** structure with an already-completed state in one field will compare not-equal to a structure with an already-completed state in the other field. After all, the **rcu_gp_oldstate** structure is opaque so how did such a situation come to pass in the first place?h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK7hj1ubj)}(hhh](j)}(h:``struct rcu_gp_oldstate *rgosp1`` First old-state value. h](j)}(h"``struct rcu_gp_oldstate *rgosp1``h]j)}(hjVh]hstruct rcu_gp_oldstate *rgosp1}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK4hjPubj)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhK4hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhK4hjMubj)}(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&]uh1jhjhK5hjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK7hj1ubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% if the two values are identical and }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:430: ./include/linux/rcutree.hhK6hj1ubh)}(hXUNote that equality is judged on a bitwise basis, so that an **rcu_gp_oldstate** structure with an already-completed state in one field will compare not-equal to a structure with an already-completed state in the other field. After all, the **rcu_gp_oldstate** structure is opaque so how did such a situation come to pass in the first place?h](hesrefids}j<](j <jI>esnameids}(jbj_jjj,`j)`jjjjj j j1ej.ej>j<jljljoxjlxjʅjDžjjj^0j[0jjjvjsjjjjj,j,jV0jS0jijijijijj|jwjtjWjTjOjLjjjjjhjejjjgj`j]jjjU"jR"jjj, j) jM"jJ"j>%j;%j_uj\ujyjyjjj!j!j&j#jZjWjRjOu nametypes}(jbjj,`jjj j1ej>jljoxjʅjj^0jjvjjj,jV0jijijjwjWjOjjjhjjj`jjU"jj, jM"j>%j_ujyjj!j&jZjRuh}(j_hjhj)`hhjjjjjj j j j jdjijjjnjsjMjRjjj@jEj j j)$j.$j&j&j(j(jD+jI+j-j-j`0je0j2j2j|5j5j7j7j9j9jp=ju=j>@jC@jmCjrCjIjIjLjLjNjNjQPjVPjQjQjSjSj3Wj8WjEZjJZj]j]jj/`jL`jQ`j!bj&bj1gj6gjqijvijjjjjnjnj!qj&qjvtj{tjvjvjByjGyj{j{j}j}jjjցjہjjjzjjjjj jjjjjj#jkjpjjjvj{jjjrjwjjjZj_jߣjjQjVjLjQjjjUjZjjjjjjjmjrjjjjjjjþjȾj{jj<jAjjj(j-jjjjjjjjjjj%j*jDjIjjjhjmj jjjjjjjjjjjj jjj!j4j9j*j/jAjFj6j;j+j0j j%j2j7jDjIjVj[jgjljxj}jjjjjjjjjjjvj{j.ej jo jt jjjojjjjj jj j j%j%j'j'j"*j'*j,j,j6/j;/j 3j3j<j <jS>jI>j<j>j?j?j CjCjFjFjJjJjNjNjaSjfSjUjUjdXjiXj&[j+[jl\jq\j^j^jajajlj4ejQejVejgjgjbjjgjjlxjljljljmjmjiojnojspjxpjrjrjsjsjujujvjvjDžjrxjxjxj|j|jjjjͅjjj8j=jjjwj|jjjjjejjjjjjj[0jjjjjjUjZjѝj֝jkjpjjjjj6j;jϥjԥjKjPjjjTjYjcjhjQjVjNjSj<jAjjjjjjjjŻjNjSj'j,jjjjjjjdjij,j1jj j;j@jjjsjjjjjj]jbjNjSj=jBjjjjjjjj$jjjjjojtjjjjyjjj?jDjjjjjjj jjjj j%jUjZjnjsjjjjjjjjjj!jjj,jjjj j jl jq jjjjjsjxj`jejtjyjajfjjjjj!j!j#j#jz$j$j%j%jN'jS'j(j(j+j+jS0j,j,j,j.j.jija0jijr0j0j0j1j1jG3jL3j6j6j9j9j;j;j]?jb?jCjCjFjFjHjHjJjJjMj!MjFOjKOj RjRj[Tj`TjVjVjXjXj![j&[j^j^j`j`jejejgj gj|jijtjijijijjjjjJljOlj.mj3mjnjnjojojpjpjqjqjrjrjsjsjtjtj|ujuj`vjevj}wjwjxjxj~yjyjbzjgzj{j{jc|jh|jm}jr}j~j~jjjjj+j0j}jjυjԅj!j&jjjajfjjjjjVj[j jjjj۔jjjj8j=jUjZjjj2j7jjjTjjLjjjàjHjMjjjĨjɨjjjjj!j&jjjjj8j=jjjjjjjjj jjjjjj2j7j=jBjpjujjj%j*jYj^jHjMjjjjZjjkjjjejjgjwj]jmjjkjR"jjjjjjjj) jjjjPjUjbjgjjjjjPjUjjjjjjjjjijnjGjLjjjjjjjjjD jI j j jfjkjjjjjtjyjjjjjJ"j/ jL jQ j;%jX"ju"jz"j$j $jv&j{&j(j(j*j*j(,j-,j-j-jH/jM/j0j0jh2jm2j3j3j5j5j7j7j8j8j<j<j>j>jzAjAj%Dj*DjGjGjIjIjKjKj}OjOj,Tj1TjWjWjZjZj\j\j.^j3^j`j`jbjbjejejgjgjijijkjkjEmjJmjojoj rjrj\tjatjvjvjwjwjjOjTjjjxj}jjjjj` je j j! jNjSjRjWj jjjjjj3j8jjjjjjj j jS"jX"j@%jE%j'j'j)j)j#,j(,j-j-j0j0j3j3jK6jP6j8j8jP:jU:j <j<jB>jG>j{@j@j4Bj9BjEEjJEjUHjZHjJjJjKjKjMjMjXQj]QjTjTjWjWjXjXjZjZj]j]j^j^j@`jE`jajajcjcjejejgjgjjjjjnjnjbpjgpjqjqj tjtjEvjJvj yjyjzjzjY|j^|jo~jt~jjjփjۃjljqjjj'j,j\jajjj3j8jjj9j>jjj|jj_jdjujzjبjݨjjjĮjɮjljqjjjjj@jEjhjmjjjjjDjIjjj.j3jjjjjjjVj[jjjjjIjNjjjjjjjjj<jAjtjyj jjjjjjMjRj[j`jjj,j1jjjjjjjnjsjjj j%jjj" j' j j jG jL j j jpjujjjjj<jAjjj3j8j[j`jjjljqj#j#j\ujA%j^%jc%j(j(j*j*j,j,j=.jB.j1j1j6j 6j 8j8j9j9j ;j;jg<jl<j=j=jE@jJ@jAjAjPCjUCjFjFjnHjsHj)Jj.JjKjKjSNjXNj}PjPjRjRjUjUjWjWjYjYjZjZj]j]j_j_jaj"ajbjbj\djadjtgjygjijijkjkjTmjYmjojojqjqjrjrjyjbujujuj$wj)wjxjxjjyjyjyj{j{jm}jr}j~j~j4j9jOjTjjjŇjʇjjjEjJjތjj8j=jjj^jcjߒjjǔj̔jƗj˗jcjhj#j(jj jjjjjjj>jCjOjTjjj+j0jjjj jdjijjŴjjj̺jѺjjjȿjͿjRjWj_jdjjjajfjjjjjjjjjjjjjjj#j(jjjyj~jjjj jjjjjSjXjajfjwj|jj$jjjjjjj}jjjj!jj%j*jjjm jr j j jyj~jjj;j@jdjijjjWj\jjjujzj#j!jd"ji"j<$jA$j%j%jG'jL'jq)jv)ju+jz+jH.jM.j/j/j1j1j93j>3j5j5j7j7j:j:j:<j?<j>j>j6@j;@jAjAjdCjiCjDjDjGjGjJjJjMj"MjOjOj\RjaRjWUj\UjWjWjZj Zj\j]j_j_jbjbjejejhjhjekjjkjnjnjqjqjsjsjujujCwjHwjkyjpyjzjzjr|jw|jp~ju~jnjsjjj#j(j=jBjfjkjjjjjjjjj͔jҔjjj jj2j7jZj_jۜjjWj)jOj:jWj\jdjijjjIjNjjjƥj˥jujzj$j)jӧjاjjjjjjjjj׭jܭjjjDjIjjjʳjϳj jjqjvj{jjjjjjjjjj%j*j\jajjjjjjjjjtjyjjjHjMjjj.j3jjjjjGjLj~jjjjjjwj|jjjjj0j5jjj'j,jkjpj jjQjVjjjjj jjjj]jbjjjjj j%jdjijjjujzj8j=j jj3j8j[j`jjjjjjjjjojjjljqjjj1j6jujzjjj< jA j j j! j& j=jBjjjjjjjjj0j5jjjjjjj6j;jr!jw!ja#jf#jP%jU%j&j&j'j'j?)jD)j*j*jA,jF,j-j-jB/jG/j 2j2j3j3j5j5jE7jJ7j8j8j;j!;jw<j|<j=j=j?j?j3Aj8Aj\CjaCjEjEjNFjSFjXGj]GjIjIjKjKjxMj}MjMOjROjPjPjnSjsSj@WjEWjZjZj\j\ja^jf^j_j_jajajecjjcjejejfjfj5hj:hjijijokjtkj mjmj[oj`oj)rj.rjQtjVtjyvj~vjxjxjzjzj|j|j5~j:~jjj<jAjYj^jvj{jjj1j6jjj jjjjjjnjǰjjj(j-jjjnjsj j%jjjjjjj9j>jjjjjjjwj|jjjίjӯjjj<jAjMjRjjjjjjjɹjιjjjojjjؽjݽjjjjjLjQjjjejjj+j0jju footnote_refs}j](j <jI>es citation_refs} autofootnotes]j>aautofootnote_refs](j <jI>esymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.